iommu/msm: Implement an IDENTITY domain
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 13 Sep 2023 13:43:47 +0000 (10:43 -0300)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Sep 2023 09:40:59 +0000 (11:40 +0200)
commit78fc30b4bb3540c88edd19c36d0a72bb0dd02d0b
tree492ea7714b5c200e135a87810f0688c504fd6b4e
parentbbe39b76330ecf64f8b3f45cdf8bacbbb7f390c9
iommu/msm: Implement an IDENTITY domain

What msm does during msm_iommu_set_platform_dma() is actually putting the
iommu into identity mode.

Move to the new core support for ARM_DMA_USE_IOMMU by defining
ops->identity_domain.

This driver does not support IOMMU_DOMAIN_DMA, however it cannot be
compiled on ARM64 either. Most likely it is fine to support dma-iommu.c

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/14-v8-81230027b2fa+9d-iommu_all_defdom_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/msm_iommu.c