[RFC 11/11] iommu/arm-smmu: Advertise IOMMU_CAP_TRANSLATE_MSI
From: Eric Auger
Date: Tue Sep 27 2016 - 16:50:06 EST
arm-smmu and arm-smmu-v3 do translate MSI write transactions
emitted by downstream devices. Advertise this property through
the capable operation.
Signed-off-by: Eric Auger <eric.auger@xxxxxxxxxx>
---
drivers/iommu/arm-smmu-v3.c | 2 ++
drivers/iommu/arm-smmu.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c
index c86ba84..431ba8c 100644
--- a/drivers/iommu/arm-smmu-v3.c
+++ b/drivers/iommu/arm-smmu-v3.c
@@ -1375,6 +1375,8 @@ static bool arm_smmu_capable(enum iommu_cap cap)
return false;
case IOMMU_CAP_NOEXEC:
return true;
+ case IOMMU_CAP_TRANSLATE_MSI:
+ return true;
default:
return false;
}
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 7af1dd0..b862a1c 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1363,6 +1363,8 @@ static bool arm_smmu_capable(enum iommu_cap cap)
return false;
case IOMMU_CAP_NOEXEC:
return true;
+ case IOMMU_CAP_TRANSLATE_MSI:
+ return true;
default:
return false;
}
--
1.9.1