From 04388853213b89eae29c9138eb53359aba6de18e Mon Sep 17 00:00:00 2001 From: Hiroshi DOYU Date: Fri, 20 Jan 2012 08:02:54 +0200 Subject: [PATCH 2/2] iommu/tegra/smmu: Implement DOMAIN_ATTR_GEOMETRY attribute Implement the attribute for the Tegra SMMU driver. Signed-off-by: Hiroshi DOYU --- drivers/iommu/tegra-smmu.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 7deea32..84504ff 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -723,6 +723,12 @@ found: 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; -- 1.7.5.4