mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
arm64/smmu: Fix the SMMU-600 errata check
Fixes: 6dca6e2aa8 ("arm64/smmu: Start handling errata")
Sponsored by: Arm Ltd
This commit is contained in:
1 parent
6d9f435739
commit
a856958cab
1 file changed
+6
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user