All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Cohen <david.cohen@nokia.com>
To: linux-omap@vger.kernel.org
Cc: tony@atomide.com, David Cohen <david.cohen@nokia.com>
Subject: [PATCH 1/2] OMAP: Add generic IOMMU errors code
Date: Mon, 31 Jan 2011 19:25:07 +0200	[thread overview]
Message-ID: <1296494708-17569-2-git-send-email-david.cohen@nokia.com> (raw)
In-Reply-To: <1296494708-17569-1-git-send-email-david.cohen@nokia.com>

Generic IOMMU errors code are necessary to handle errors on generic
layer.

Signed-off-by: David Cohen <david.cohen@nokia.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..c653fd7 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 IOMMU_ERR_TLB_MISS		(1 << 0)
+#define IOMMU_ERR_TRANS_FAULT		(1 << 1)
+#define IOMMU_ERR_EMU_MISS		(1 << 2)
+#define IOMMU_ERR_TBLWALK_FAULT		(1 << 3)
+#define IOMMU_ERR_MULTIHIT_FAULT	(1 << 4)
+
 #if defined(CONFIG_ARCH_OMAP1)
 #error "iommu for this processor not implemented yet"
 #else
-- 
1.7.1


  reply	other threads:[~2011-01-31 17:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 17:25 [PATCH 0/2] IOMMU error message cleanup David Cohen
2011-01-31 17:25 ` David Cohen [this message]
2011-01-31 17:25 ` [PATCH 2/2] OMAP: Cleanup IOMMU error messages David Cohen
2011-02-01  3:16   ` Ramirez Luna, Omar
2011-02-01  8:41     ` David Cohen
2011-02-02 19:54 ` [PATCH 0/2] IOMMU error message cleanup Tony Lindgren

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=1296494708-17569-2-git-send-email-david.cohen@nokia.com \
    --to=david.cohen@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.