diff options
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
-rw-r--r-- | drivers/iommu/tegra-gart.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index 0c0a37792218..c16e8fc8a4bd 100644 --- a/drivers/iommu/tegra-gart.c +++ b/drivers/iommu/tegra-gart.c | |||
@@ -165,6 +165,11 @@ static int gart_iommu_attach_dev(struct iommu_domain *domain, | |||
165 | return -EINVAL; | 165 | return -EINVAL; |
166 | domain->priv = gart; | 166 | domain->priv = gart; |
167 | 167 | ||
168 | domain->geometry.aperture_start = gart->iovmm_base; | ||
169 | domain->geometry.aperture_end = gart->iovmm_base + | ||
170 | gart->page_count * GART_PAGE_SIZE - 1; | ||
171 | domain->geometry.force_aperture = true; | ||
172 | |||
168 | client = devm_kzalloc(gart->dev, sizeof(*c), GFP_KERNEL); | 173 | client = devm_kzalloc(gart->dev, sizeof(*c), GFP_KERNEL); |
169 | if (!client) | 174 | if (!client) |
170 | return -ENOMEM; | 175 | return -ENOMEM; |