diff mbox

ARM: SMMUv2: Add compatible match entry for cavium smmuv2

Message ID 1498007218-29344-1-git-send-email-mjaggi@cavium.com (mailing list archive)
State New, archived
Headers show

Commit Message

Manish Jaggi June 21, 2017, 1:06 a.m. UTC
This patch adds cavium,smmu-v2 compatible match entry in smmu driver

Signed-off-by: Manish Jaggi <mjaggi@cavium.com>
---
 xen/drivers/passthrough/arm/smmu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Julien Grall June 21, 2017, 1:29 p.m. UTC | #1
Hi Manish,

On 21/06/17 02:06, Manish Jaggi wrote:
> This patch adds cavium,smmu-v2 compatible match entry in smmu driver
>
> Signed-off-by: Manish Jaggi <mjaggi@cavium.com>
> ---
>  xen/drivers/passthrough/arm/smmu.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c
> index 1082fcf..887f874 100644
> --- a/xen/drivers/passthrough/arm/smmu.c
> +++ b/xen/drivers/passthrough/arm/smmu.c
> @@ -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,
diff mbox

Patch

diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c
index 1082fcf..887f874 100644
--- a/xen/drivers/passthrough/arm/smmu.c
+++ b/xen/drivers/passthrough/arm/smmu.c
@@ -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);