ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x
Subsystems (3)
PATCH 1/1 ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x
Armada 38x uses Cortex-A9 r4p1, but MACH_ARMADA_38X selects the workaround for erratum 720789, which was fixed in r2p0, and omits workarounds for errata that still affect r4p1.
Drop ARM_ERRATA_720789 and select ARM_ERRATA_754322 for faulty MMU translations following an ASID switch and ARM_ERRATA_764319 for unexpected undefined instruction exceptions when reading debug registers. Also select ARM_ERRATA_764369 when SMP is enabled to work around cache maintenance by MVA failing to reach other agents.
The Cortex-A9 r4 Software Developers Errata Notice (ARM UAN 0009D) lists these errata in sections 2.3.3, 2.5.10 and 2.3.4, respectively.
--- arch/arm/mach-mvebu/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/mach-mvebu/Kconfig +3 -1
@@ -55,7 +55,9 @@ config MACH_ARMADA_375 config MACH_ARMADA_38X bool "Marvell Armada 380/385 boards" depends on ARCH_MULTI_V7 - select ARM_ERRATA_720789 + select ARM_ERRATA_754322 + select ARM_ERRATA_764319 + select ARM_ERRATA_764369 if SMP select PL310_ERRATA_753970 select ARM_GIC select ARM_GLOBAL_TIMER
Signature · 1 line
2.43.0
Gregory CLEMENT
maintainerHello Qingfang Deng,
Quoted 4 lines
Armada 38x uses Cortex-A9 r4p1, but
MACH_ARMADA_38Xselects the workaround for erratum 720789, which was fixed in r2p0, and omits workarounds for errata that still affect r4p1.
I think that the very early version used r2p0.
The logs that I have from various Armada 38x show the CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7). The value 414fc091 is the MIDR. The MIDR indicates that the CPU is a CortexA9 at revision 4p1.
The logs that I checked are more than 10 years old. We can now safely apply this change.
Quoted 6 lines
Drop
ARM_ERRATA_720789and selectARM_ERRATA_754322for faulty MMU translations following an ASID switch andARM_ERRATA_764319for unexpected undefined instruction exceptions when reading debug registers. Also selectARM_ERRATA_764369when SMP is enabled to work around cache maintenance by MVA failing to reach other agents.
Quoted 6 lines
The Cortex-A9 r4 Software Developers Errata Notice (ARM UAN 0009D) lists these errata in sections 2.3.3, 2.5.10 and 2.3.4, respectively.
Fixes 9aa30f1c13d1 ("ARM: mvebu: add initial support for the Armada 380/385 SOCs")Signed-off-by Qingfang Deng <[email protected]>
Applied on mvebu/arm
Thanks,
Gregory
Quoted 22 lines
--- arch/arm/mach-mvebu/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/arm/mach-mvebu/Kconfig +3
-1@@ -55,7 +55,9 @@ config MACH_ARMADA_375 config MACH_ARMADA_38X bool "Marvell Armada 380/385 boards" depends on ARCH_MULTI_V7 - select ARM_ERRATA_720789 + select ARM_ERRATA_754322 + select ARM_ERRATA_764319 + select ARM_ERRATA_764369 if SMP select PL310_ERRATA_753970 select ARM_GIC select ARM_GLOBAL_TIMERSignature · 1 line
2.43.0
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com