aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-09-12 12:13:58 -0400
committerWill Deacon <will.deacon@arm.com>2016-09-16 04:34:22 -0400
commit455eb7d34ad11b09490f70c33973f9f3e31c4df6 (patch)
treee4c576989dc67dccd3bbfa60885ae8aa8db198e4 /drivers/iommu/arm-smmu.c
parent021bb8420d44cf56102d44fca9af628625e75482 (diff)
iommu/arm-smmu: Set domain geometry
For non-aperture-based IOMMUs, the domain geometry seems to have become the de-facto way of indicating the input address space size. That is quite a useful thing from the users' perspective, so let's do the same. Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index fd6cc19c4ced..c841eb7a1a74 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -939,6 +939,8 @@ static int arm_smmu_init_domain_context(struct iommu_domain *domain,
939 939
940 /* Update the domain's page sizes to reflect the page table format */ 940 /* Update the domain's page sizes to reflect the page table format */
941 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; 941 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap;
942 domain->geometry.aperture_end = (1UL << ias) - 1;
943 domain->geometry.force_aperture = true;
942 944
943 /* Initialise the context bank with our page table cfg */ 945 /* Initialise the context bank with our page table cfg */
944 arm_smmu_init_context_bank(smmu_domain, &pgtbl_cfg); 946 arm_smmu_init_context_bank(smmu_domain, &pgtbl_cfg);