Re: [PATCH 0/6] rust: iommu: add a paging domain abstraction

From: Nicolas Dufresne

Date: Wed Nov 18 2026 - 14:47:14 EST


Jason,

Le mercredi 18 novembre 2026 à 15:35 -0400, Jason Gunthorpe a écrit :
> > No, not OK :/ We want to use GEM shmem, which calls into the DMA API internally
> > through drm_gem_shmem_get_pages_sgt() -> dma_map_sgtable().
>
> You cannot continue to use DMA API once you start touching a paging
> domain directly. It is why driver_managed exist.

You are building a strong argument around something that is not what we intent
this binding to be used for. If you had cared about the context you'd know we
don't want to touch paging from userspace in this type of drivers. At least not
until we have a really good reason to include this complexity. And I agree, its
quite likely the iommu subsystem API would just fall short, its far from
perfect.

There is a line to draw between GPU and VPUs, and memory management is worth
looking into. But seriously, let's have this discussion once the driver is ready
for the ML, so we can code to correlate to.

Nicolas

Attachment: signature.asc
Description: This is a digitally signed message part