Re: [RFC PATCH 2/2] RDMA/efa: Add support for dmabuf memory regions

2021-10-12 Thread Gal Pressman
On 12/10/2021 2:28, Jason Gunthorpe wrote: > On Sun, Oct 10, 2021 at 09:55:49AM +0300, Gal Pressman wrote: >> On 07/10/2021 14:40, Jason Gunthorpe wrote: >>> On Thu, Oct 07, 2021 at 01:43:00PM +0300, Gal Pressman wrote: >>> @@ -1491,26 +1493,29 @@ static int efa_create_pbl(struct efa_dev

Re: [RFC PATCH 2/2] RDMA/efa: Add support for dmabuf memory regions

2021-10-11 Thread Jason Gunthorpe
On Sun, Oct 10, 2021 at 09:55:49AM +0300, Gal Pressman wrote: > On 07/10/2021 14:40, Jason Gunthorpe wrote: > > On Thu, Oct 07, 2021 at 01:43:00PM +0300, Gal Pressman wrote: > > > >> @@ -1491,26 +1493,29 @@ static int efa_create_pbl(struct efa_dev *dev, > >>return 0; > >> } > >> > >>

Re: [RFC PATCH 2/2] RDMA/efa: Add support for dmabuf memory regions

2021-10-10 Thread Gal Pressman
On 07/10/2021 14:40, Jason Gunthorpe wrote: > On Thu, Oct 07, 2021 at 01:43:00PM +0300, Gal Pressman wrote: > >> @@ -1491,26 +1493,29 @@ static int efa_create_pbl(struct efa_dev *dev, >> return 0; >> } >> >> -struct ib_mr *efa_reg_mr(struct ib_pd *ibpd, u64 start, u64 length, >> -

Re: [RFC PATCH 2/2] RDMA/efa: Add support for dmabuf memory regions

2021-10-07 Thread Jason Gunthorpe
On Thu, Oct 07, 2021 at 01:43:00PM +0300, Gal Pressman wrote: > @@ -1491,26 +1493,29 @@ static int efa_create_pbl(struct efa_dev *dev, > return 0; > } > > -struct ib_mr *efa_reg_mr(struct ib_pd *ibpd, u64 start, u64 length, > - u64 virt_addr, int access_flags, > -

[RFC PATCH 2/2] RDMA/efa: Add support for dmabuf memory regions

2021-10-07 Thread Gal Pressman
Implement a dmabuf importer for the EFA driver. As ODP is not supported, the dmabuf memory regions always pin the buffers to prevent the move_notify callback from being called. Signed-off-by: Gal Pressman --- drivers/infiniband/hw/efa/efa.h | 4 + drivers/infiniband/hw/efa/efa_main.c |