diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-09-12 19:13:58 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-16 11:34:22 +0300 |
commit | 455eb7d34ad11b09490f70c33973f9f3e31c4df6 (patch) | |
tree | e4c576989dc67dccd3bbfa60885ae8aa8db198e4 /drivers/iommu/arm-smmu-v3.c | |
parent | 021bb8420d44cf56102d44fca9af628625e75482 (diff) | |
download | linux-455eb7d34ad11b09490f70c33973f9f3e31c4df6.tar.xz |
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-v3.c')
-rw-r--r-- | drivers/iommu/arm-smmu-v3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 0c45c1e02e04..15c01c3cd540 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -1551,6 +1551,8 @@ static int arm_smmu_domain_finalise(struct iommu_domain *domain) return -ENOMEM; domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; + domain->geometry.aperture_end = (1UL << ias) - 1; + domain->geometry.force_aperture = true; smmu_domain->pgtbl_ops = pgtbl_ops; ret = finalise_stage_fn(smmu_domain, &pgtbl_cfg); |