From fd8292fee2335bb90a1cadbd1ca6875abbdd8515 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Tue, 17 Feb 2015 17:12:24 -0800 Subject: [PATCH] iommu/arm-smmu: avoid using ASID 0 Thulium has a hardware errata that requires that we avoid using ASID 0. Implement the workaround in the SMMU driver. Change-Id: Ia44ab1b385450994641c5f5ccb3dba4a462a8033 Signed-off-by: Mitchel Humpherys --- drivers/iommu/arm-smmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 75f6ca0877f6..6d8d58056362 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -474,8 +474,8 @@ struct arm_smmu_cfg { }; #define INVALID_IRPTNDX 0xff -#define ARM_SMMU_CB_ASID(cfg) ((cfg)->cbndx) -#define ARM_SMMU_CB_VMID(cfg) ((cfg)->cbndx + 1) +#define ARM_SMMU_CB_ASID(cfg) ((cfg)->cbndx + 1) +#define ARM_SMMU_CB_VMID(cfg) ((cfg)->cbndx + 2) struct arm_smmu_domain { struct arm_smmu_device *smmu;