[RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma
Jason Gunthorpe
jgg at mellanox.com
Wed Jan 30 04:18:48 UTC 2019
On Tue, Jan 29, 2019 at 06:17:43PM -0700, Logan Gunthorpe wrote:
> This isn't answering my question at all... I specifically asked what is
> backing the VMA when we are *not* using HMM.
At least for RDMA what backs the VMA today is non-struct-page BAR
memory filled in with io_remap_pfn.
And we want to expose this for P2P DMA. None of the HMM stuff applies
here and the p2p_map/unmap are a nice simple approach that covers all
the needs RDMA has, at least.
Every attempt to give BAR memory to struct page has run into major
trouble, IMHO, so I like that this approach avoids that.
And if you don't have struct page then the only kernel object left to
hang meta data off is the VMA itself.
It seems very similar to the existing P2P work between in-kernel
consumers, just that VMA is now mediating a general user space driven
discovery process instead of being hard wired into a driver.
Jason
More information about the dri-devel
mailing list