On Tue, Jan 27, 2026 at 08:54:22AM -0800, Matthew Brost wrote:

> That will likely work for dma-buf, let me see if I can convert our
> dma-buf flows to use this helper. But it won't work for things like SVM,
> so it would be desirable to figure out to have an API drivers can use to
> iova alloc/link/sync/unlink/free for multi-device or just agree we trust
> drivers enough to use the existing API.

SVM should be driven with HMM and there is a helper in
hmm_dma_map_pfn() for this.

Yonatan posted a series to expand it to work with ZONE_DEVICE PRIVATE
pages but it needs a refresh

https://lore.kernel.org/linux-rdma/[email protected]/

If there are other cases it would be reasonable to discuss enhancing
hmm_dma_map_pfn().

Jason

Reply via email to