Skip to contentSkip to conversation

ARM: SMMUv2: Add compatible match entry for cavium smmuv2

PATCH In review Manish Jaggi 2 participants 2 messages Jun 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: SMMUv2: Add compatible match entry for cavium smmuv2

This patch adds cavium,smmu-v2 compatible match entry in smmu driver

---
 xen/drivers/passthrough/arm/smmu.c | 1 +
 1 file changed, 1 insertion(+)
xen/drivers/passthrough/arm/smmu.c +1 -0
index 1082fcf..887f874 100644
@@ -2272,6 +2272,7 @@ static const struct of_device_id arm_smmu_of_match[] = {
 	{ .compatible = "arm,mmu-400", .data = (void *)ARM_SMMU_V1 },
 	{ .compatible = "arm,mmu-401", .data = (void *)ARM_SMMU_V1 },
 	{ .compatible = "arm,mmu-500", .data = (void *)ARM_SMMU_V2 },
+	{ .compatible = "cavium,smmu-v2", .data = (void *)ARM_SMMU_V2 },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, arm_smmu_of_match);
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

Hi Manish,

Quoted 12 lines · Manish Jaggi

This patch adds cavium,smmu-v2 compatible match entry in smmu driver

---
 xen/drivers/passthrough/arm/smmu.c | 1 +
 1 file changed, 1 insertion(+)
xen/drivers/passthrough/arm/smmu.c +0 -0
index 1082fcf..887f874 100644

xen/drivers/passthrough/arm/smmu.c static const struct of_device_id arm_smmu_of_match[] = { · line 2275

Quoted 4 lines
xen/drivers/passthrough/arm/smmu.c +1 -0
@@ -2272,6 +2272,7 @@ static const struct of_device_id arm_smmu_of_match[] = {
 	{ .compatible = "arm,mmu-400", .data = (void *)ARM_SMMU_V1 },
 	{ .compatible = "arm,mmu-401", .data = (void *)ARM_SMMU_V1 },
 	{ .compatible = "arm,mmu-500", .data = (void *)ARM_SMMU_V2 },
+	{ .compatible = "cavium,smmu-v2", .data = (void *)ARM_SMMU_V2 },

Hmmm, you are saying that the driver will work with the cavium SMMU. However, looking at Linux code there is a least one erratum needed (see #27704). What's the plan here?

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel