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

2020-11-10 Thread Jason Gunthorpe
On Mon, Nov 09, 2020 at 11:22:57AM -0800, Jianxin Xiong wrote: > + page_size = ib_umem_find_best_pgsz(_dmabuf->umem, PAGE_SIZE, > +umem_dmabuf->umem.iova); > + > + if (WARN_ON(cur != end || page_size != PAGE_SIZE)) { > +

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

2020-11-09 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