Skip to content

Commit

Permalink
iommu/msm: Implement DOMAIN_ATTR_GEOMETRY attribute
Browse files Browse the repository at this point in the history
Implement the attribute for the MSM IOMMU driver.

Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Jul 11, 2012
1 parent 2c6edb0 commit 4be6a29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/iommu/msm_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ static int msm_iommu_domain_init(struct iommu_domain *domain)

memset(priv->pgtable, 0, SZ_16K);
domain->priv = priv;

domain->geometry.aperture_start = 0;
domain->geometry.aperture_end = (1ULL << 32) - 1;
domain->geometry.force_aperture = true;

return 0;

fail_nomem:
Expand Down

0 comments on commit 4be6a29

Please sign in to comment.