Thread (43 messages) 43 messages, 3 authors, 2013-10-08
STALE4667d
Revisions (3)
  1. v1 [diff vs current]
  2. v1 current
  3. v1 [diff vs current]

[PATCH 8/9] iommu/arm-smmu: Introduce a default fault handler

From: Will Deacon <hidden>
Date: 2013-09-27 10:09:02
Also in: linux-iommu

On Thu, Sep 26, 2013 at 11:36:20PM +0100, Andreas Herrmann wrote:
quoted hunk ↗ jump to hunk
And register the default handler for domains that are created during
device isolation.

Signed-off-by: Andreas Herrmann <redacted>
---
 drivers/iommu/arm-smmu.c |   10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 48f3bfb..380c2a0 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1816,6 +1816,13 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
 	return 0;
 }
 
+static int arm_smmu_context_fault_handler(struct iommu_domain *domain,
+		struct device *dev, unsigned long iova, int flags, void *arg)
+{
+	dev_warn(dev, "context fault: iova=0x%08lx, flags=0x%x\n", iova, flags);
+	return 0;
Maybe we're better off sandwiching this into arm_smmu_context_fault when
report_iommu_fault doesn't handle the fault.

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help