OpenCloudOS-Kernel/drivers/iommu/arm/arm-smmu
Robin Murphy 628bf55b62 iommu/arm-smmu: Force identity domains for legacy binding
When using the legacy "mmu-masters" DT binding, we reject DMA domains
since we have no guarantee of driver probe order and thus can't rely on
client drivers getting the correct DMA ops. However, we can do better
than fall back to the old no-default-domain behaviour now, by forcing an
identity default domain instead. This also means that detaching from a
VFIO domain can actually work - that looks to have been broken for over
6 years, so clearly isn't something that legacy binding users care
about, but we may as well make the driver code make sense anyway.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/9805e4c492cb972bdcdd57999d2d001a2d8b5aab.1652171938.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
2022-05-10 12:01:31 +01:00
..
Makefile qcom_scm: hide Kconfig symbol 2021-10-07 16:51:57 +02:00
arm-smmu-impl.c iommu/arm-smmu: Support Tegra234 SMMU 2022-05-06 16:29:28 +01:00
arm-smmu-nvidia.c iommu: arm-smmu: disable large page mappings for Nvidia arm-smmu 2022-04-22 11:21:30 +01:00
arm-smmu-qcom.c iommu/arm-smmu-qcom: Add SC8280XP support 2022-05-06 16:27:59 +01:00
arm-smmu.c iommu/arm-smmu: Force identity domains for legacy binding 2022-05-10 12:01:31 +01:00
arm-smmu.h iommu/arm-smmu: Account for PMU interrupts 2022-03-07 21:09:39 +00:00
qcom_iommu.c Merge branches 'arm/mediatek', 'arm/msm', 'arm/renesas', 'arm/rockchip', 'arm/smmu', 'x86/vt-d' and 'x86/amd' into next 2022-03-08 12:21:31 +01:00