summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-03-27 13:07:25 +0300
committerJoerg Roedel <jroedel@suse.de>2015-03-31 17:34:12 +0300
commit471d9144b4ec2a2cbf497af7e186c1fe89b5150e (patch)
tree3490b8bc57b5e77b4eb7189b42206e481655b3ca /drivers/iommu
parente42391cd048809d903291d07f86ed3934ce138e9 (diff)
downloadlinux-471d9144b4ec2a2cbf497af7e186c1fe89b5150e.tar.xz
iommu/tegra: Setup aperture
Each address space in the Tegra SMMU provides 4 GiB worth of addresses. Cc: Hiroshi Doyu <hdoyu@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/tegra-smmu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 6e134c7c227f..d8418b54619e 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -266,6 +266,11 @@ static int tegra_smmu_domain_init(struct iommu_domain *domain)
domain->priv = as;
+ /* setup aperture */
+ domain->geometry.aperture_start = 0;
+ domain->geometry.aperture_end = 0xffffffff;
+ domain->geometry.force_aperture = true;
+
return 0;
}