From: Cheng Xu <chengyou@linux.alibaba.com>
To: jgg@ziepe.ca, leon@kernel.org
Cc: linux-rdma@vger.kernel.org, KaiShen@linux.alibaba.com
Subject: [PATCH for-next v3 0/5] RDMA/erdma: Support non-contiguous kernel queue buffers
Date: Tue, 8 Sep 2026 11:37:04 +0800 [thread overview]
Message-ID: <20260908033709.89898-1-chengyou@linux.alibaba.com> (raw)
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 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.
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 | 571 ++++++++++++----------
drivers/infiniband/hw/erdma/erdma_verbs.h | 60 ++-
4 files changed, 400 insertions(+), 287 deletions(-)
--
2.31.1
next reply other threads:[~2026-09-08 3:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 3:37 Cheng Xu [this message]
2026-09-08 3:37 ` [PATCH for-next v3 1/5] RDMA/erdma: Unwind kernel QP initialization failures Cheng Xu
2026-09-08 3:37 ` [PATCH for-next v3 2/5] RDMA/erdma: Support non-contiguous kernel QP buffers Cheng Xu
2026-09-08 3:37 ` [PATCH for-next v3 3/5] RDMA/erdma: Support non-contiguous kernel CQ buffers Cheng Xu
2026-09-08 3:37 ` [PATCH for-next v3 4/5] RDMA/erdma: Unify userspace and kernel queue buffer management Cheng Xu
2026-09-08 3:37 ` [PATCH for-next v3 5/5] RDMA/erdma: Move kernel QP helpers after memory helpers Cheng Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260908033709.89898-1-chengyou@linux.alibaba.com \
--to=chengyou@linux.alibaba.com \
--cc=KaiShen@linux.alibaba.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.