Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316599
b: refs/heads/master
c: 2334990
h: refs/heads/master
i:
  316597: ccfc2a8
  316595: ebb4467
  316591: 10b6cf8
v: v3
  • Loading branch information
Hiroshi DOYU authored and Joerg Roedel committed Jul 11, 2012
1 parent dbd7b46 commit 8e20c29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4be6a290b87af9136b482d5c22574f070ffdbdb8
refs/heads/master: 23349902edec4d3d932bca1bb99261477139a36a
5 changes: 5 additions & 0 deletions trunk/drivers/iommu/tegra-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ static int gart_iommu_attach_dev(struct iommu_domain *domain,
return -EINVAL;
domain->priv = gart;

domain->geometry.aperture_start = gart->iovmm_base;
domain->geometry.aperture_end = gart->iovmm_base +
gart->page_count * GART_PAGE_SIZE - 1;
domain->geometry.force_aperture = true;

client = devm_kzalloc(gart->dev, sizeof(*c), GFP_KERNEL);
if (!client)
return -ENOMEM;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,11 @@ static int smmu_iommu_domain_init(struct iommu_domain *domain)
spin_unlock_irqrestore(&as->lock, flags);
domain->priv = as;

domain->geometry.aperture_start = smmu->iovmm_base;
domain->geometry.aperture_end = smmu->iovmm_base +
smmu->page_count * SMMU_PAGE_SIZE - 1;
domain->geometry.force_aperture = true;

dev_dbg(smmu->dev, "smmu_as@%p\n", as);
return 0;

Expand Down

0 comments on commit 8e20c29

Please sign in to comment.