[PATCH v5 2/5] iommu: Tiny domain for iommu_setup_dma_ops()

Baolu Lu baolu.lu at linux.intel.com
Tue Nov 11 21:22:38 PST 2025


On 11/11/25 13:12, Nicolin Chen wrote:
> This function can only be called on the default_domain. Trivally pass it
> in. In all three existing cases, the default domain was just attached to
> the device.
> 
> This avoids iommu_setup_dma_ops() calling iommu_get_domain_for_dev() the
> that will be used by external callers.
> 
> Suggested-by: Jason Gunthorpe<jgg at nvidia.com>
> Signed-off-by: Nicolin Chen<nicolinc at nvidia.com>
> ---
>   drivers/iommu/dma-iommu.h | 5 +++--
>   drivers/iommu/dma-iommu.c | 4 +---
>   drivers/iommu/iommu.c     | 6 +++---
>   3 files changed, 7 insertions(+), 8 deletions(-)

Reviewed-by: Lu Baolu <baolu.lu at linux.intel.com>



More information about the linux-arm-kernel mailing list