Re: [PATCH for-next 0/3] EFA dmabuf memory regions

2021-10-26 Thread Gal Pressman
On 12/10/2021 15:09, Gal Pressman wrote: > Hey all, > > This is a followup to my previous RFCs [1][2], which now adds a new api > to the RDMA subsystem that allows drivers to get a pinned dmabuf memory > region without requiring an implementation of the move_notify callback. >

[PATCH for-next 2/3] RDMA/umem: Allow pinned dmabuf umem usage

2021-10-12 Thread Gal Pressman
). Signed-off-by: Gal Pressman --- drivers/infiniband/core/umem_dmabuf.c | 51 +++ include/rdma/ib_umem.h| 12 +++ 2 files changed, 63 insertions(+) diff --git a/drivers/infiniband/core/umem_dmabuf.c b/drivers/infiniband/core/umem_dmabuf.c index

[PATCH for-next 1/3] dma-buf: Fix pin callback comment

2021-10-12 Thread Gal Pressman
The pin callback does not necessarily have to move the memory to system memory, remove the sentence from the comment. Signed-off-by: Gal Pressman --- include/linux/dma-buf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h

[PATCH for-next 0/3] EFA dmabuf memory regions

2021-10-12 Thread Gal Pressman
EFA as the importer to allow for peer2peer access through libibverbs. [1] https://lore.kernel.org/linux-rdma/20210818074352.29950-1-galpr...@amazon.com/ [2] https://lore.kernel.org/linux-rdma/20211007104301.76693-1-galpr...@amazon.com/ Thanks Gal Pressman (3): dma-buf: Fix pin callback comment

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

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

2021-10-09 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(struc

Re: [RFC PATCH 1/2] dma-buf: Fix pin callback comment

2021-10-09 Thread Gal Pressman
On 07/10/2021 13:44, Christian König wrote: > Am 07.10.21 um 12:42 schrieb Gal Pressman: >> The pin callback does not necessarily have to move the memory to system >> memory, remove the sentence from the comment. >> >> Signed-off-by: Gal Pressman >> ---

[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

[RFC PATCH 1/2] dma-buf: Fix pin callback comment

2021-10-07 Thread Gal Pressman
The pin callback does not necessarily have to move the memory to system memory, remove the sentence from the comment. Signed-off-by: Gal Pressman --- include/linux/dma-buf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h

[RFC PATCH 0/2] EFA dmabuf memory regions

2021-10-07 Thread Gal Pressman
mporter to allow for peer2peer access through libibverbs. [1] https://lore.kernel.org/linux-rdma/20210818074352.29950-1-galpr...@amazon.com/ Thanks Gal Pressman (2): dma-buf: Fix pin callback comment RDMA/efa: Add support for dmabuf memory regions drivers/infiniband/hw/efa/efa.h | 4

Re: [RFC] Make use of non-dynamic dmabuf in RDMA

2021-08-21 Thread Gal Pressman
On 20/08/2021 17:32, Jason Gunthorpe wrote: > On Fri, Aug 20, 2021 at 03:58:33PM +0300, Gal Pressman wrote: > >> Though it would've been nicer if we could agree on a solution that could work >> for more than 1-2 RDMA devices, using the existing tools the RDMA subsystem >

Re: [RFC] Make use of non-dynamic dmabuf in RDMA

2021-08-18 Thread Gal Pressman
On 18/08/2021 11:00, Christian König wrote: > Am 18.08.21 um 09:43 schrieb Gal Pressman: >> Hey all, >> >> Currently, the RDMA subsystem can only work with dynamic dmabuf >> attachments, which requires the RDMA device to support on-demand-paging >> (ODP) which is