mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 06:46:44 +07:00
6773f079b7
Under rare circumstances, the ehca hardware might erroneously generate two CQEs for the same WQE, which is not compliant to the IB spec and will cause unpredictable errors like memory being freed twice. To avoid this problem, the driver needs to detect the second CQE and discard it. For this purpose, introduce an array holding as many elements as the SQ of the QP, called sq_map. Each sq_map entry stores a "reported" flag for one WQE in the SQ. When a work request is posted to the SQ, the respective "reported" flag is set to zero. After the arrival of a CQE, the flag is set to 1, which allows to detect the occurence of a second CQE. The mapping between WQE / CQE and the corresponding sq_map element is implemented by replacing the lowest 16 Bits of the wr_id with the index in the queue map. The original 16 Bits are stored in the sq_map entry and are restored when the CQE is passed to the application. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com> |
||
---|---|---|
.. | ||
ehca_av.c | ||
ehca_classes_pSeries.h | ||
ehca_classes.h | ||
ehca_cq.c | ||
ehca_eq.c | ||
ehca_hca.c | ||
ehca_irq.c | ||
ehca_irq.h | ||
ehca_iverbs.h | ||
ehca_main.c | ||
ehca_mcast.c | ||
ehca_mrmw.c | ||
ehca_mrmw.h | ||
ehca_pd.c | ||
ehca_qes.h | ||
ehca_qp.c | ||
ehca_reqs.c | ||
ehca_sqp.c | ||
ehca_tools.h | ||
ehca_uverbs.c | ||
hcp_if.c | ||
hcp_if.h | ||
hcp_phyp.c | ||
hcp_phyp.h | ||
hipz_fns_core.h | ||
hipz_fns.h | ||
hipz_hw.h | ||
ipz_pt_fn.c | ||
ipz_pt_fn.h | ||
Kconfig | ||
Makefile |