All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next v2 0/3] RDMA: Support CQs with user memory
@ 2025-07-08 20:23 Michael Margolin
  2025-07-08 20:23 ` [PATCH for-next v2 1/3] RDMA/uverbs: Add a common way to create CQ with umem Michael Margolin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Michael Margolin @ 2025-07-08 20:23 UTC (permalink / raw)
  To: jgg, leon, linux-rdma; +Cc: sleybo, matua, gal.pressman

This series is adding a common way for creating CQs on top of
preallocated memory supplied by userspace. The memory buffer can be
provided as a virtual address or by dmabuf, in both cases a umem object
is created for driver's use.
EFA is the first to support this new interface, new drivers or existing
drivers that want/need to get the memory from userspace are expected to
use this flow.

It's follow-up of the discussion in [1].

Changelog
=========
Changes from v1 [2]:
- Added a new "create_cq_umem" driver op instead of a flag set by
  supporting drivers
- Added ib_umem_is_contiguous() and ib_umem_start_dma_addr() helpers in
  a new patch
- Dropped references to umem scatter-gather list in EFA implementation
  and using the new helpers that hide the details instead

References
==========
[1] https://lore.kernel.org/all/c7d312ac-19a0-45e3-9f40-3e6f81500f83@amazon.com/
[2] https://lore.kernel.org/all/20250701231545.14282-1-mrgolin@amazon.com/

Thanks

Michael Margolin (3):
  RDMA/uverbs: Add a common way to create CQ with umem
  RDMA/core: Add umem "is_contiguous" and "start_dma_addr" helpers
  RDMA/efa: Add CQ with external memory support

 drivers/infiniband/core/device.c              |  1 +
 drivers/infiniband/core/uverbs_std_types_cq.c | 87 +++++++++++++++++--
 drivers/infiniband/hw/efa/efa.h               |  3 +
 drivers/infiniband/hw/efa/efa_main.c          |  1 +
 drivers/infiniband/hw/efa/efa_verbs.c         | 61 ++++++++++---
 include/rdma/ib_umem.h                        | 25 +++++-
 include/rdma/ib_verbs.h                       |  4 +
 include/uapi/rdma/efa-abi.h                   |  3 +-
 include/uapi/rdma/ib_user_ioctl_cmds.h        |  4 +
 9 files changed, 164 insertions(+), 25 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2025-07-13  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 20:23 [PATCH for-next v2 0/3] RDMA: Support CQs with user memory Michael Margolin
2025-07-08 20:23 ` [PATCH for-next v2 1/3] RDMA/uverbs: Add a common way to create CQ with umem Michael Margolin
2025-07-08 20:23 ` [PATCH for-next v2 2/3] RDMA/core: Add umem "is_contiguous" and "start_dma_addr" helpers Michael Margolin
2025-07-08 20:23 ` [PATCH for-next v2 3/3] RDMA/efa: Add CQ with external memory support Michael Margolin
2025-07-10 20:04 ` [PATCH for-next v2 0/3] RDMA: Support CQs with user memory Jason Gunthorpe
2025-07-13  8:01 ` Leon Romanovsky

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.