From c08056b7ad5279d7b71b4647c04097e66adb697a Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Wed, 19 Aug 2015 10:57:55 -0700 Subject: [PATCH] iommu: Add client fault handler flag for external faults Some IOMMUs (like the ARM SMMU) can raise "external faults" in addition to translation and permission faults. Add an IOMMU fault flag so that this fault type can be propagated to client fault handlers. Change-Id: Ia476ed6c727f5f01011747f30b3a74ebf0fc07f7 Signed-off-by: Mitchel Humpherys --- include/linux/iommu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 4c7d91992e7c..faf3b3dc457f 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -43,7 +43,8 @@ struct notifier_block; #define IOMMU_FAULT_WRITE (1 << 1) #define IOMMU_FAULT_TRANSLATION (1 << 2) #define IOMMU_FAULT_PERMISSION (1 << 3) -#define IOMMU_FAULT_TRANSACTION_STALLED (1 << 4) +#define IOMMU_FAULT_EXTERNAL (1 << 4) +#define IOMMU_FAULT_TRANSACTION_STALLED (1 << 5) typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, unsigned long, int, void *); -- 2.11.0