summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/iommu.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-09-13 15:43:35 +0200
committerJoerg Roedel <jroedel@suse.de>2023-09-25 11:40:52 +0200
commit1c68cbc64fe6ac01dc242ba562344303031a76fb (patch)
tree87579f79b71ba87fe65ce42bb03c6bf29669eea9 /arch/powerpc/kernel/iommu.c
parentiommu: Add iommu_ops->identity_domain (diff)
downloadlinux-1c68cbc64fe6ac01dc242ba562344303031a76fb.tar.xz
linux-1c68cbc64fe6ac01dc242ba562344303031a76fb.zip
iommu: Add IOMMU_DOMAIN_PLATFORM
This is used when the iommu driver is taking control of the dma_ops, currently only on S390 and power spapr. It is designed to preserve the original ops->detach_dev() semantic that these S390 was built around. Provide an opaque domain type and a 'default_domain' ops value that allows the driver to trivially force any single domain as the default domain. Update iommufd selftest to use this instead of set_platform_dma_ops Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/2-v8-81230027b2fa+9d-iommu_all_defdom_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/iommu.c')
0 files changed, 0 insertions, 0 deletions