linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] RDMA/rxe: Add dma-buf support
@ 2021-09-29  4:19 Shunsuke Mie
  2021-09-29  4:19 ` [RFC PATCH v2 1/2] RDMA/umem: Change for rdma devices has not dma device Shunsuke Mie
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Shunsuke Mie @ 2021-09-29  4:19 UTC (permalink / raw)
  To: Zhu Yanjun
  Cc: Shunsuke Mie, Christian König, Alex Deucher, Daniel Vetter,
	Doug Ledford, Jason Gunthorpe, Jianxin Xiong, Leon Romanovsky,
	Maor Gottlieb, Sean Hefty, Sumit Semwal, dri-devel,
	linaro-mm-sig, linux-media, linux-kernel, linux-rdma, dhobsong,
	taki, etom

This patch series add a dma-buf support for rxe driver.

A dma-buf based memory registering has beed introduced to use the memory
region that lack of associated page structures (e.g. device memory and CMA
managed memory) [1]. However, to use the dma-buf based memory, each rdma
device drivers require add some implementation. The rxe driver has not
support yet.

[1] https://www.spinics.net/lists/linux-rdma/msg98592.html

To enable to use the dma-buf memory in rxe rdma device, add some changes
and implementation in this patch series.

This series consists of two patches. The first patch changes the IB core
to support for rdma drivers that has not dma device. The secound patch adds
the dma-buf support to rxe driver.

Related user space RDMA library changes are provided as a separate patch.

v2:
* Rebase to the latest linux-rdma 'for-next' branch (5.15.0-rc1+)
* Instead of using a dummy dma_device to attach dma-buf, just store
  dma-buf to use software RDMA driver
* Use dma-buf vmap() interface
* Check to pass tests of rdma-core
v1: https://www.spinics.net/lists/linux-rdma/msg105376.html
* The initial patch set
* Use ib_device as dma_device.
* Use dma-buf dynamic attach interface
* Add dma-buf support to rxe device

Shunsuke Mie (2):
  RDMA/umem: Change for rdma devices has not dma device
  RDMA/rxe: Add dma-buf support

 drivers/infiniband/core/umem_dmabuf.c |  20 ++++-
 drivers/infiniband/sw/rxe/rxe_loc.h   |   2 +
 drivers/infiniband/sw/rxe/rxe_mr.c    | 118 ++++++++++++++++++++++++++
 drivers/infiniband/sw/rxe/rxe_verbs.c |  34 ++++++++
 drivers/infiniband/sw/rxe/rxe_verbs.h |   2 +
 include/rdma/ib_umem.h                |   1 +
 6 files changed, 173 insertions(+), 4 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2021-10-13 23:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29  4:19 [RFC PATCH v2 0/2] RDMA/rxe: Add dma-buf support Shunsuke Mie
2021-09-29  4:19 ` [RFC PATCH v2 1/2] RDMA/umem: Change for rdma devices has not dma device Shunsuke Mie
2021-09-29  4:19 ` [RFC PATCH v2 2/2] RDMA/rxe: Add dma-buf support Shunsuke Mie
2021-09-30 14:41   ` Daniel Vetter
2021-10-01  3:56     ` Shunsuke Mie
2021-10-05 10:20       ` Shunsuke Mie
2021-10-10 15:01         ` Zhu Yanjun
2021-10-13 11:42       ` Daniel Vetter
2021-10-13 23:10         ` Shunsuke Mie
2021-10-10 15:31 ` [RFC PATCH v2 0/2] " Zhu Yanjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).