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>
This commit is contained in:
Mitchel Humpherys 2015-02-17 17:12:24 -08:00 committed by David Keitel
parent 64bfe1d2be
commit fd8292fee2

View file

@ -474,8 +474,8 @@ struct arm_smmu_cfg {
}; };
#define INVALID_IRPTNDX 0xff #define INVALID_IRPTNDX 0xff
#define ARM_SMMU_CB_ASID(cfg) ((cfg)->cbndx) #define ARM_SMMU_CB_ASID(cfg) ((cfg)->cbndx + 1)
#define ARM_SMMU_CB_VMID(cfg) ((cfg)->cbndx + 1) #define ARM_SMMU_CB_VMID(cfg) ((cfg)->cbndx + 2)
struct arm_smmu_domain { struct arm_smmu_domain {
struct arm_smmu_device *smmu; struct arm_smmu_device *smmu;