Re: [PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user memory region

2020-11-15 Thread Jason Gunthorpe
> > ; Sumit Semwal ; Christian Koenig > > ; Vetter, Daniel > > > > Subject: Re: [PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user > > memory region > > > > On Tue, Nov 10, 2020 at 01:41:12PM -0800, Jianxin Xiong w

Re: [PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user memory region

2020-11-13 Thread Jason Gunthorpe
On Tue, Nov 10, 2020 at 01:41:12PM -0800, Jianxin Xiong wrote: > +struct ib_umem *ib_umem_dmabuf_get(struct ib_device *device, > +unsigned long offset, size_t size, > +int fd, int access, > +const struct

RE: [PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user memory region

2020-11-12 Thread Xiong, Jianxin
Daniel > > Subject: Re: [PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user > memory region > > On Tue, Nov 10, 2020 at 01:41:12PM -0800, Jianxin Xiong wrote: > > +struct ib_umem *ib_umem_dmabuf_get(struct ib_device *device, > > +

[PATCH v10 1/6] RDMA/umem: Support importing dma-buf as user memory region

2020-11-10 Thread Jianxin Xiong
Dma-buf is a standard cross-driver buffer sharing mechanism that can be used to support peer-to-peer access from RDMA devices. Device memory exported via dma-buf is associated with a file descriptor. This is passed to the user space as a property associated with the buffer allocation. When the buf