arm64/smmu: Fix the SMMU-600 errata check

Fixes:	6dca6e2aa8 ("arm64/smmu: Start handling errata")
Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner committed 2026-09-18 20:54:16 +01:00
1 parent 6d9f435739
commit a856958cab
1 file changed
+6 -4
+6 -4
View File
@@ -1563,12 +1563,14 @@ smmu_check_errata(struct smmu_softc *sc)
reg = bus_read_4(sc->res[0], SMMU_IIDR);
variant = SMMU_Variant_GET(reg);
switch(SMMU_ProductID_GET(reg)) {
switch(SMMU_Implementer_GET(reg)) {
case SMMU_Implementer_ARM:
switch (SMMU_ProductID_GET(reg)) {
/* Arm erratum 1076982 */
if (variant < 1)
sc->features &= ~SMMU_FEATURE_SEV;
case SMMU_ProductID_ARM_MMU_600:
/* Arm erratum 1076982 */
if (variant < 1)
sc->features &= ~SMMU_FEATURE_SEV;
break;
default:
break;
}