From: David Cohen <dacohen@gmail.com>
To: Hiroshi.DOYU@nokia.com
Cc: linux-omap@vger.kernel.org, David Cohen <dacohen@gmail.com>
Subject: [RFC/PATCH 1/3] OMAP: IOMMU: Add generic IOMMU errors code
Date: Sat, 12 Feb 2011 12:42:51 +0200 [thread overview]
Message-ID: <1297507373-1520-2-git-send-email-dacohen@gmail.com> (raw)
In-Reply-To: <1297507373-1520-1-git-send-email-dacohen@gmail.com>
Generic IOMMU errors code are necessary to handle errors on generic
layer.
Signed-off-by: David Cohen <dacohen@gmail.com>
---
arch/arm/plat-omap/include/plat/iommu.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-omap/include/plat/iommu.h b/arch/arm/plat-omap/include/plat/iommu.h
index 69230d6..71f369d 100644
--- a/arch/arm/plat-omap/include/plat/iommu.h
+++ b/arch/arm/plat-omap/include/plat/iommu.h
@@ -109,6 +109,13 @@ struct iommu_platform_data {
u32 da_end;
};
+/* IOMMU errors */
+#define OMAP_IOMMU_ERR_TLB_MISS (1 << 0)
+#define OMAP_IOMMU_ERR_TRANS_FAULT (1 << 1)
+#define OMAP_IOMMU_ERR_EMU_MISS (1 << 2)
+#define OMAP_IOMMU_ERR_TBLWALK_FAULT (1 << 3)
+#define OMAP_IOMMU_ERR_MULTIHIT_FAULT (1 << 4)
+
#if defined(CONFIG_ARCH_OMAP1)
#error "iommu for this processor not implemented yet"
#else
--
1.7.1
next prev parent reply other threads:[~2011-02-12 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 10:42 [RFC/PATCH 0/3] IOMMU fault callback support David Cohen
2011-02-12 10:42 ` David Cohen [this message]
2011-02-13 22:33 ` [RFC/PATCH 1/3] OMAP: IOMMU: Add generic IOMMU errors code Varadarajan, Charulatha
2011-02-14 11:28 ` David Cohen
2011-02-12 10:42 ` [RFC/PATCH 2/3] OMAP2+: IOMMU: change OMAP2+ error message to dev_dbg() David Cohen
2011-02-12 10:42 ` [RFC/PATCH 3/3] OMAP: IOMMU: add support to callback during fault handling David Cohen
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=1297507373-1520-2-git-send-email-dacohen@gmail.com \
--to=dacohen@gmail.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=linux-omap@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