Ver código fonte

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>
Thierry Reding 10 anos atrás
pai
commit
471d9144b4
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      drivers/iommu/tegra-smmu.c

+ 5 - 0
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;
 }