Merge branches 'iommu/fixes', 'x86/amd', 'groups', 'arm/tegra' and 'api/domain-attr...
[firefly-linux-kernel-4.4.55.git] / drivers / iommu / tegra-smmu.c
index 541d210cb4216aab2b3624a19cee810902277098..4ba325ab626249c2aa2aee1271a6d0c68ec20d9a 100644 (file)
@@ -839,6 +839,11 @@ found:
 
        domain->priv = as;
 
+       domain->geometry.aperture_start = smmu->iovmm_base;
+       domain->geometry.aperture_end   = smmu->iovmm_base +
+               smmu->page_count * SMMU_PAGE_SIZE - 1;
+       domain->geometry.force_aperture = true;
+
        dev_dbg(smmu->dev, "smmu_as@%p\n", as);
 
        return 0;