Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7839444b authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Matt Wagantall
Browse files

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: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent fdd89166
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;