RDMA/irdma: Fix SRQ completion handling
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | RDMA/irdma: Fix QP handle assignment for SRQ completionsdrivers/ | +3 | 3 replies | |
| 2/4 | RDMA/irdma: Check QP handle before decoding CQE errorsdrivers/ | +4 | 0 replies | |
| 3/4 | RDMA/irdma: Fix CQ scrub for SRQ associated QPsdrivers/ drivers/ | +12 | 0 replies | |
| 4/4 | RDMA/irdma: Release SRQ slots during CQ scrubdrivers/ | +26 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | David Hu |
|---|---|
| 1/4 | R-b |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH rdma-next 0/4] RDMA/irdma: Fix SRQ completion handling
SRQ support was introduced along with GEN3 HW support, but the kernel implementation contained several bugs which rendered it unusable for kernel consumers.
- The QP handle was being loaded from the incorrect offset, which would cause a crash/hang upon receiving the first receive completion for an SRQ-associated QP.
- Similar to above, the CQ scrubbing logic was scrubbing the wrong CQE offset, which would leave stale CQEs in the CQ for a QP that has been destroyed.
- When SRQ CQEs were scrubbed, the SRQ slots weren't being released.
- A NULL dereference could occur during CQ poll if scrubbed CQEs happen to be in the ring at the time of polling, due to the NULL check being located after the pointer was dereferenced.
SRQ functionality was verified using nvmet-rdma with use_srq=1 with sequential+parallel I/O, disconnects under load, etc.
Jacob Moroni (4):
RDMA/irdma: Fix QP handle assignment for SRQ completions RDMA/irdma: Check QP handle before decoding CQE errors RDMA/irdma: Fix CQ scrub for SRQ associated QPs RDMA/irdma: Release SRQ slots during CQ scrub
drivers/infiniband/hw/irdma/uk.c | 64 ++++++++++++++++++++---------- drivers/infiniband/hw/irdma/user.h | 2 +- 2 files changed, 44 insertions(+), 22 deletions(-)
base-commit: e50525a486300e5ff8014c9985b8477b2fca0368
Signature · 1 line
2.56.0.455.g6c5a503b38-goog