iommu/arm-smmu: Install bypass S2CRs for IOMMU_DOMAIN_IDENTITY domains
authorWill Deacon <will.deacon@arm.com>
Fri, 6 Jan 2017 16:56:03 +0000 (16:56 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Apr 2017 15:06:43 +0000 (16:06 +0100)
commit61bc671179f19060be883068b6d3d82ae0b24bc0
treea9a947e81cba20b0b9426bfb73e9f08cf5f3ddab
parent0834cc28fa56c65887c614b6c045be2ba06fdcb0
iommu/arm-smmu: Install bypass S2CRs for IOMMU_DOMAIN_IDENTITY domains

In preparation for allowing the default domain type to be overridden,
this patch adds support for IOMMU_DOMAIN_IDENTITY domains to the
ARM SMMU driver.

An identity domain is created by placing the corresponding S2CR
registers into "bypass" mode, which allows transactions to flow through
the SMMU without any translation.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c