aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-03-27 11:07:25 +0100
committerJoerg Roedel <jroedel@suse.de>2015-03-31 16:34:12 +0200
commit471d9144b4ec2a2cbf497af7e186c1fe89b5150e (patch)
tree3490b8bc57b5e77b4eb7189b42206e481655b3ca /drivers/iommu
parentLinux 4.0-rc6 (diff)
downloadlinux-dev-471d9144b4ec2a2cbf497af7e186c1fe89b5150e.tar.xz
linux-dev-471d9144b4ec2a2cbf497af7e186c1fe89b5150e.zip
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;
}