RDMA/erdma: Support non-contiguous kernel queue buffers
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 1 replyApplied
- v35 patches 0 repliesSuperseded
- v24 patches 9 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 1 reply | Superseded |
Changes in v4 from the cover letter
- Address Sashiko automated review findings:
- Keep the CPU and DMA addresses returned by dma_alloc_coherent() instead of deriving a virtual address through scatterlist helpers.
- Sync continuous MTTs after populating their entries.
- Keep DMA MRs and MTT-only FRMRs outside queue buffer backing cleanup.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | RDMA/erdma: Unwind kernel QP initialization failuresdrivers/ | +31 | 0 replies | |
| 2/5 | RDMA/erdma: Support non-contiguous kernel QP buffersdrivers/ drivers/ drivers/ +1 more | +188 | 0 replies | |
| 3/5 | RDMA/erdma: Support non-contiguous kernel CQ buffersdrivers/ drivers/ drivers/ | +36 | 0 replies | |
| 4/5 | RDMA/erdma: Unify userspace and kernel queue buffer managementdrivers/ drivers/ | +175 | 0 replies | |
| 5/5 | RDMA/erdma: Move kernel QP helpers after memory helpersdrivers/ | +86 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH for-next v4 0/5] RDMA/erdma: Support non-contiguous kernel queue buffers
Hi,
This small patchset introduces support for non-contiguous kernel queue buffers. Kernel QP and CQ buffers currently use a single coherent DMA allocation, which can fail for large queues when memory is fragmented. To address this, we allocate page-sized coherent buffers and describe them with the existing MTT.
- #1 unwinds kernel QP initialization failures explicitly.
- #2 adds support for non-contiguous kernel QP buffers.
- #3 adds support for non-contiguous kernel CQ buffers.
- #4 unifies userspace and kernel space queue buffer management.
- #5 moves kernel QP helpers after the shared memory helpers.
Changes from v3:
- Address Sashiko automated review findings:
- Keep the CPU and DMA addresses returned by dma_alloc_coherent() instead of deriving a virtual address through scatterlist helpers.
- Sync continuous MTTs after populating their entries.
- Keep DMA MRs and MTT-only FRMRs outside queue buffer backing cleanup.
Changes from v2:
- Add explicit resource unwinding for kernel QP initialization.
- Use struct scatterlist for kernel queue buffer pages.
- Make memory cleanup operate only on initialized backing memory.
- Return -ENOMEM when a kernel QP doorbell record allocation fails.
Changes from v1:
- Fix formatting issues.
Thanks,
Cheng Xu
Cheng Xu (5):
RDMA/erdma: Unwind kernel QP initialization failures RDMA/erdma: Support non-contiguous kernel QP buffers RDMA/erdma: Support non-contiguous kernel CQ buffers RDMA/erdma: Unify userspace and kernel queue buffer management RDMA/erdma: Move kernel QP helpers after memory helpers
drivers/infiniband/hw/erdma/erdma_cq.c | 18 +- drivers/infiniband/hw/erdma/erdma_qp.c | 38 +- drivers/infiniband/hw/erdma/erdma_verbs.c | 569 ++++++++++++---------- drivers/infiniband/hw/erdma/erdma_verbs.h | 65 ++- 4 files changed, 404 insertions(+), 286 deletions(-)
Signature · 1 line
2.31.1