]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver
authorAntonios Motakis <a.motakis@virtualopensystems.com>
Mon, 13 Oct 2014 13:06:18 +0000 (14:06 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 14:41:38 +0000 (14:41 +0000)
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>
drivers/iommu/arm-smmu.c

index 566c1769d9bd8676bfb7123575bcb6d5e7bd859a..c8fc02f111c59b2f04ee3c7126f8b918333f3908 100644 (file)
@@ -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;
        }