Skip to content

RDMA: Support CQs with user memory

Michael Margolin linux-rdma 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v12 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3RDMA/uverbs: Add a common way to create CQ with umemdrivers/infiniband/core/device.c drivers/infiniband/core/uverbs_std_types_cq.c include/rdma/ib_verbs.h +1 more+90 -60 replies
2/3RDMA/core: Add umem "is_contiguous" and "start_dma_addr" helpersinclude/rdma/ib_umem.h+21 -40 replies
3/3RDMA/efa: Add CQ with external memory supportdrivers/infiniband/hw/efa/efa.h drivers/infiniband/hw/efa/efa_main.c drivers/infiniband/hw/efa/efa_verbs.c +1 more+53 -150 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel KranzdorfYonatan NachumJason Gunthorpe
SeriesR-b
1/3
2/3
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH for-next v2 0/3] RDMA: Support CQs with user memory

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/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.47.1