summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorAntonios Motakis <a.motakis@virtualopensystems.com>2014-10-13 15:06:18 +0200
committerWill Deacon <will.deacon@arm.com>2014-11-14 15:41:38 +0100
commit0029a8dd6c807e04b119ec9416510d30936f45e6 (patch)
tree92eb714262f5d9977dcdb47f2e8d75154ce3d711 /drivers/iommu/arm-smmu.c
parentiommu: add capability IOMMU_CAP_NOEXEC (diff)
downloadlinux-0029a8dd6c807e04b119ec9416510d30936f45e6.tar.xz
linux-0029a8dd6c807e04b119ec9416510d30936f45e6.zip
iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver
The ARM SMMU supports the IOMMU_NOEXEC protection flag. Add the corresponding IOMMU capability. Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 566c1769d9bd..c8fc02f111c5 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1569,6 +1569,8 @@ static bool arm_smmu_capable(enum iommu_cap cap)
return true;
case IOMMU_CAP_INTR_REMAP:
return true; /* MSIs are just memory writes */
+ case IOMMU_CAP_NOEXEC:
+ return true;
default:
return false;
}