]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iommu/arm-smmu: Do not advertise IOMMU_CAP_INTR_REMAP anymore
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Jan 2017 20:58:03 +0000 (20:58 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 23 Jan 2017 15:00:47 +0000 (15:00 +0000)
IOMMU_CAP_INTR_REMAP has been advertised in arm-smmu(-v3) although
on ARM this property is not attached to the IOMMU but rather is
implemented in the MSI controller (GICv3 ITS).

Now vfio_iommu_type1 checks MSI remapping capability at MSI controller
level, let's correct this.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c

index 6c4111cb19ffa479913e0246b0874bc372539cd3..d9cf6cb8c6cc199509201a529bd20bb2b3838e55 100644 (file)
@@ -1375,8 +1375,6 @@ static bool arm_smmu_capable(enum iommu_cap cap)
        switch (cap) {
        case IOMMU_CAP_CACHE_COHERENCY:
                return true;
-       case IOMMU_CAP_INTR_REMAP:
-               return true; /* MSIs are just memory writes */
        case IOMMU_CAP_NOEXEC:
                return true;
        default:
index a354572491c8a3cb1ca0d393ad6ce72eb3b9cc0b..13d26009b8e07a3d5aa0bc487dc99d2d921871c2 100644 (file)
@@ -1374,8 +1374,6 @@ static bool arm_smmu_capable(enum iommu_cap cap)
                 * requests.
                 */
                return true;
-       case IOMMU_CAP_INTR_REMAP:
-               return true; /* MSIs are just memory writes */
        case IOMMU_CAP_NOEXEC:
                return true;
        default: