iommu/tegra: Setup aperture
authorThierry Reding <treding@nvidia.com>
Fri, 27 Mar 2015 10:07:25 +0000 (11:07 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 31 Mar 2015 14:34:12 +0000 (16:34 +0200)
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>
drivers/iommu/tegra-smmu.c

index 6e134c7c227fced6a0c186f3e403fc6d9e1d49f7..d8418b54619e74d182498025cadede76961a8efc 100644 (file)
@@ -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;
 }
 
This page took 0.043418 seconds and 5 git commands to generate.