public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
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 4/7] iommu/omap: Implement DOMAIN_ATTR_GEOMETRY attribute
Date: Wed, 11 Jul 2012 12:49:20 +0200	[thread overview]
Message-ID: <1342003763-8139-5-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 OMAP IOMMU driver.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
 drivers/iommu/omap-iommu.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index e70ee2b..d0b1234 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1148,6 +1148,10 @@ static int omap_iommu_domain_init(struct iommu_domain *domain)
 
 	domain->priv = omap_domain;
 
+	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



  parent reply	other threads:[~2012-07-11 10:49 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 ` Joerg Roedel [this message]
2012-07-11 10:49 ` [PATCH 5/7] iommu/msm: " Joerg Roedel
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-5-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