diff options
author | Hiroshi DOYU <hdoyu@nvidia.com> | 2012-01-26 19:40:57 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-07-11 12:25:57 +0200 |
commit | 23349902edec4d3d932bca1bb99261477139a36a (patch) | |
tree | 96eb09c80fd527125d8dd10f31a5c22f1966e57a /drivers/iommu/tegra-gart.c | |
parent | 4be6a290b87af9136b482d5c22574f070ffdbdb8 (diff) | |
download | op-kernel-dev-23349902edec4d3d932bca1bb99261477139a36a.zip op-kernel-dev-23349902edec4d3d932bca1bb99261477139a36a.tar.gz |
iommu/tegra: Implement DOMAIN_ATTR_GEOMETRY attribute
Implement the attribute for the Tegra IOMMU drivers.
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
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 0c0a377..c16e8fc 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, 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; |