summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-02-17 17:12:24 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:11:41 -0700
commitfd8292fee2335bb90a1cadbd1ca6875abbdd8515 (patch)
tree849a9055ebd492425cd5db8a43c52bee77fabca1
parent64bfe1d2be6fc54957f3a2e7740d045424c76669 (diff)
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 <mitchelh@codeaurora.org>
-rw-r--r--drivers/iommu/arm-smmu.c4
1 files 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;