Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH for-next v2 0/3] RDMA/erdma: Add DMA-BUF memory registration
@ 2026-05-18 12:06 Boshi Yu
  2026-05-18 12:06 ` [PATCH for-next v2 1/3] RDMA/erdma: Rename get/put_mtt_entries to erdma_mem_init/uninit Boshi Yu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Boshi Yu @ 2026-05-18 12:06 UTC (permalink / raw)
  To: jgg, leon; +Cc: linux-rdma, chengyou, kaishen

Hi,

This patch series adds DMA-BUF memory registration support to the erdma
driver:

- #1 renames get/put_mtt_entries to erdma_mem_init/uninit to better reflect
     their purpose of initializing the struct erdma_mem.
- #2 introduces struct erdma_mem_init_attr to pass parameters to
     erdma_mem_init(), improving code maintainability and preparing for
     DMA-BUF support.
- #3 implements erdma_reg_user_mr_dmabuf() to enable DMA-BUF based user
     memory registration using ib_umem_dmabuf_get_pinned().

Thanks,
Boshi Yu

---

v2:
 - Patch#2: Add validation for the return value of ib_umem_find_best_pgsz().

v1:
  link: https://lore.kernel.org/all/20260507053437.46211-1-boshiyu@linux.alibaba.com/

Boshi Yu (3):
  RDMA/erdma: Rename get/put_mtt_entries to erdma_mem_init/uninit
  RDMA/erdma: Introduce struct erdma_mem_init_attr
  RDMA/erdma: Implement erdma_reg_user_mr_dmabuf

 drivers/infiniband/hw/erdma/erdma_main.c  |   1 +
 drivers/infiniband/hw/erdma/erdma_verbs.c | 152 +++++++++++++++-------
 drivers/infiniband/hw/erdma/erdma_verbs.h |  19 +++
 3 files changed, 123 insertions(+), 49 deletions(-)

-- 
2.46.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-25 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 12:06 [PATCH for-next v2 0/3] RDMA/erdma: Add DMA-BUF memory registration Boshi Yu
2026-05-18 12:06 ` [PATCH for-next v2 1/3] RDMA/erdma: Rename get/put_mtt_entries to erdma_mem_init/uninit Boshi Yu
2026-05-18 12:06 ` [PATCH for-next v2 2/3] RDMA/erdma: Introduce struct erdma_mem_init_attr Boshi Yu
2026-05-18 12:06 ` [PATCH for-next v2 3/3] RDMA/erdma: Implement erdma_reg_user_mr_dmabuf Boshi Yu
2026-05-25 16:37   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox