diff options
| author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-08-19 10:57:55 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:13:53 -0700 |
| commit | c08056b7ad5279d7b71b4647c04097e66adb697a (patch) | |
| tree | b8c8bfafd3ebe951be592940cca401cc2ad19f2c /include/linux | |
| parent | ef93bf3565d7c1335b9641c20e1ad8d58cdb2a73 (diff) | |
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 <mitchelh@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 *); |
