Re: [RFC PATCH 0/3] RDMA/rxe: Add dma-buf support

From: Zhu Yanjun
Date: Thu Sep 09 2021 - 01:46:02 EST


On Wed, Sep 8, 2021 at 2:16 PM Shunsuke Mie <mie@xxxxxxxxxx> wrote:
>
> This patch series add a support for rxe driver.

After applying the patches, please run rdma-core tests with the patched kernel.
Then fix all the problems in rdma-core.

Thanks
Zhu Yanjun

>
> 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 memories in rxe rdma device, add some changes and
> implementation in this patch series.
>
> This series consists of three patches. The first patch changes the IB core
> to support for rdma drivers that have not real dma device. The second
> patch extracts a memory mapping process of rxe as a common function to use
> a dma-buf support. The third patch adds the dma-buf support to rxe driver.
>
> Related user space RDMA library changes are provided as a separate
> patch.
>
> Shunsuke Mie (3):
> RDMA/umem: Change for rdma devices has not dma device
> RDMA/rxe: Extract a mapping process into a function
> RDMA/rxe: Support dma-buf as memory region
>
> drivers/infiniband/core/umem_dmabuf.c | 2 +-
> drivers/infiniband/sw/rxe/rxe_loc.h | 3 +
> drivers/infiniband/sw/rxe/rxe_mr.c | 186 +++++++++++++++++++++-----
> drivers/infiniband/sw/rxe/rxe_verbs.c | 36 +++++
> 4 files changed, 193 insertions(+), 34 deletions(-)
>
> --
> 2.17.1
>