]> Gentwo Git Trees - linux/.git/commit
iommufd: Allow MMIO pages in a batch
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Nov 2025 15:51:02 +0000 (11:51 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Nov 2025 15:30:15 +0000 (11:30 -0400)
commit3114c674401e81b6b56da2f9f0762eb99ae8ceba
treeeae47b69748591798b5194840092568cc39e5017
parentfc7063abd98e8477c47b792324785ef60c071b9e
iommufd: Allow MMIO pages in a batch

Addresses intended for MMIO should be propagated through to the iommu with
the IOMMU_MMIO flag set.

Keep track in the batch if all the pfns are cachable or mmio and flush the
batch out of it ever needs to be changed. Switch to IOMMU_MMIO if the
batch is MMIO when mapping the iommu.

Link: https://patch.msgid.link/r/5-v2-b2c110338e3f+5c2-iommufd_dmabuf_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/pages.c