From: Joerg Roedel <joerg.roedel@amd.com>
To: <iommu@lists.linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>, Joerg Roedel <joerg.roedel@amd.com>
Subject: [PATCH 5/7] iommu/msm: Implement DOMAIN_ATTR_GEOMETRY attribute
Date: Wed, 11 Jul 2012 12:49:21 +0200 [thread overview]
Message-ID: <1342003763-8139-6-git-send-email-joerg.roedel@amd.com> (raw)
In-Reply-To: <1342003763-8139-1-git-send-email-joerg.roedel@amd.com>
Implement the attribute for the MSM IOMMU driver.
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
drivers/iommu/msm_iommu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c
index cee307e..6a8870a 100644
--- a/drivers/iommu/msm_iommu.c
+++ b/drivers/iommu/msm_iommu.c
@@ -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:
--
1.7.9.5
next prev parent reply other threads:[~2012-07-11 11:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 10:49 [PATCH 0/7] Make IOMMU-API ready for GART-like hardware Joerg Roedel
2012-07-11 10:49 ` [PATCH 1/7] iommu: Add domain-attribute handlers Joerg Roedel
2012-07-11 10:49 ` [PATCH 2/7] iommu/amd: Implement DOMAIN_ATTR_GEOMETRY attribute Joerg Roedel
2012-07-11 11:47 ` Sethi Varun-B16395
2012-07-11 12:17 ` Joerg Roedel
2012-07-11 13:28 ` Sethi Varun-B16395
2012-07-11 10:49 ` [PATCH 3/7] iommu/vt-d: " Joerg Roedel
2012-07-11 10:49 ` [PATCH 4/7] iommu/omap: " Joerg Roedel
2012-07-11 10:49 ` Joerg Roedel [this message]
2012-07-11 10:49 ` [PATCH 6/7] iommu/tegra: " Joerg Roedel
2012-07-11 10:49 ` [PATCH 7/7] iommu/exynos: " Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1342003763-8139-6-git-send-email-joerg.roedel@amd.com \
--to=joerg.roedel@amd.com \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox