arm64: BBML3 errata workarounds and cleanup
Subsystems (3)
cover arm64: BBML3 errata workarounds and cleanup
Hi All,
This series updates the BBML3 allow list following a review of Arm CPU errata and implementation support.
The first two patches remove Neoverse-V3/AE and Cortex-X4: their latest SDENs show that revisions previously treated as unaffected still suffer from BBM-related livelock errata. These patches are intended for stable backporting.
The remaining patches introduce default-enabled Kconfig options to track 10 BBML3 errata, and enable BBML3 for Cortex-A320, A520 and A720. The result is much more explicit about what CPUs are supported and what CPUs have errata preventing them from being opted-in.
Applies on top of v7.4-rc2.
Thanks,
Ryan
Ryan Roberts (6):
arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list
arm64: cpufeature: Remove Cortex-X4 from the BBML3 allow list
arm64: cputype: Add Cortex-A320 definitions
arm64: cputype: Add C2-Ultra definitions
arm64: cpufeature: Track BBML3 exclusions with erratum options
arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720
Documentation/arch/arm64/silicon-errata.rst | 26 +++- arch/arm64/Kconfig | 163 ++++++++++++++++++++ arch/arm64/include/asm/cputype.h | 4 + arch/arm64/kernel/cpufeature.c | 43 +++++- 4 files changed, 230 insertions(+), 6 deletions(-)
--
2.43.0
PATCH 1/6 arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list
Neoverse-V3 and Neoverse-V3AE erratum 3053180 can cause a load or store to livelock when mapping size changes without break-before-make or when contiguous hints are programmed inconsistently.
The erratum was previously reported as fixed in r0p2. On that basis, commit 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") allowed Neoverse-V3 from r0p2, and commit 8fca3852e33d ("arm64: cpufeature: add Neoverse-V3AE to BBML2 allow list") did the same for Neoverse-V3AE.
The updated SDENs, MP168 v11 for Neoverse-V3 and MP172 v12 for Neoverse-V3AE, dated 9 June 2026, list r0p0, r0p1 and r0p2 as affected and the erratum as open. There is no fixed revision on which to base either allow-list entry.
Remove both entries so these CPUs observe break-before-make, and record the workaround in the silicon errata registry.
--- Documentation/arch/arm64/silicon-errata.rst | 4 ++++ arch/arm64/kernel/cpufeature.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-)
Documentation/arch/arm64/silicon-errata.rst +4 -0
@@ -243,10 +243,14 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V2 | #4193787 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V3 | #3053180 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #4193784 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V3AE | #3053180 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #4193784 | ARM64_ERRATUM_4118414 |
arch/arm64/kernel/cpufeature.c +0 -2
@@ -2012,8 +2012,6 @@ bool cpu_supports_bbml3(void)/* CPUs that support BBML3 but dont advertise through ID_AA64MMFR2_EL1 */ static const struct midr_range supports_bbml3_list[] = {MIDR_REV_RANGE (MIDR_CORTEX_X4 ,0 ,3 ,0xf ), -MIDR_REV_RANGE (MIDR_NEOVERSE_V3 ,0 ,2 ,0xf ), -MIDR_REV_RANGE (MIDR_NEOVERSE_V3AE ,0 ,2 ,0xf ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_OLYMPUS ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_RIGEL ),MIDR_ALL_VERSIONS (MIDR_AMPERE1 ),
Signature · 1 line
2.43.0
Re: [PATCH v1 1/6] arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list
Quoted 60 lines · Ryan Roberts
Neoverse-V3 and Neoverse-V3AE erratum 3053180 can cause a load or store to livelock when mapping size changes without break-before-make or when contiguous hints are programmed inconsistently.
The erratum was previously reported as fixed in r0p2. On that basis, commit
5aa4b625762e("arm64: Add BBM Level 2 cpu feature") allowed Neoverse-V3 from r0p2, and commit8fca3852e33d("arm64: cpufeature: add Neoverse-V3AE to BBML2 allow list") did the same for Neoverse-V3AE.The updated SDENs, MP168 v11 for Neoverse-V3 and MP172 v12 for Neoverse-V3AE, dated 9 June 2026, list r0p0, r0p1 and r0p2 as affected and the erratum as open. There is no fixed revision on which to base either allow-list entry.
Remove both entries so these CPUs observe break-before-make, and record the workaround in the silicon errata registry.
Signed-off-by Ryan Roberts <[email protected]>--- Documentation/arch/arm64/silicon-errata.rst | 4 ++++ arch/arm64/kernel/cpufeature.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-)Documentation/arch/arm64/silicon-errata.rst +4
-0@@ -243,10 +243,14 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V2 | #4193787 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V3 | #3053180 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #4193784 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V3AE | #3053180 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #4193784 | ARM64_ERRATUM_4118414 |arch/arm64/kernel/cpufeature.c +0
-2@@ -2012,8 +2012,6 @@ bool cpu_supports_bbml3(void)/* CPUs that support BBML3 but dont advertise through ID_AA64MMFR2_EL1 */ static const struct midr_range supports_bbml3_list[] = {MIDR_REV_RANGE (MIDR_CORTEX_X4 ,0 ,3 ,0xf ), -MIDR_REV_RANGE (MIDR_NEOVERSE_V3 ,0 ,2 ,0xf ), -MIDR_REV_RANGE (MIDR_NEOVERSE_V3AE ,0 ,2 ,0xf ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_OLYMPUS ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_RIGEL ),MIDR_ALL_VERSIONS (MIDR_AMPERE1 ),Signature · 1 line
2.43.0
PATCH 2/6 arm64: cpufeature: Remove Cortex-X4 from the BBML3 allow list
In reply to Ryan RobertsCortex-X4 erratum 3043263 can cause a load or store to livelock when mapping size changes without break-before-make or when contiguous hints are programmed inconsistently.
The erratum was previously reported as fixed in r0p3. On that basis, commit 5aa4b625762e ("arm64: Add BBM Level 2 cpu feature") added Cortex-X4 from r0p3.
The updated Cortex-X4 SDEN v13, dated 18 June 2026, lists r0p0, r0p1, r0p2 and r0p3 as affected and the erratum as open.
Remove the entry so Cortex-X4 observes break-before-make, and record the workaround in the silicon errata registry.
--- Documentation/arch/arm64/silicon-errata.rst | 2 ++ arch/arm64/kernel/cpufeature.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-)
Documentation/arch/arm64/silicon-errata.rst +2 -0
@@ -201,6 +201,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X3 | #4193786 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-X4 | #3043263 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X4 | #3194386 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X4 | #4118414 | ARM64_ERRATUM_4118414 |
arch/arm64/kernel/cpufeature.c +0 -1
@@ -2011,7 +2011,6 @@ bool cpu_supports_bbml3(void) {/* CPUs that support BBML3 but dont advertise through ID_AA64MMFR2_EL1 */ static const struct midr_range supports_bbml3_list[] = { -MIDR_REV_RANGE (MIDR_CORTEX_X4 ,0 ,3 ,0xf ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_OLYMPUS ),MIDR_ALL_VERSIONS (MIDR_NVIDIA_RIGEL ),MIDR_ALL_VERSIONS (MIDR_AMPERE1 ),
Signature · 1 line
2.43.0
PATCH 3/6 arm64: cputype: Add Cortex-A320 definitions
In reply to Ryan RobertsAdd the Cortex-A320 part number and MIDR definition. The MIDR_EL1 description in the Cortex-A320 Technical Reference Manual specifies implementer 0x41 and part number 0xd8f.
These definitions will be used to identify Cortex-A320 in the BBML3 allow list.
--- arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/include/asm/cputype.h +2 -0
@@ -103,6 +103,7 @@#define ARM_CPU_PART_C1_NANO 0xD8A#define ARM_CPU_PART_C1_PRO 0xD8B#define ARM_CPU_PART_C1_PREMIUM 0xD90 +#define ARM_CPU_PART_CORTEX_A320 0xD8F#define APM_CPU_PART_XGENE 0x000#define APM_CPU_VAR_POTENZA 0x00
@@ -200,6 +201,7 @@#define MIDR_C1_NANO MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_NANO)#define MIDR_C1_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PRO)#define MIDR_C1_PREMIUM MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PREMIUM) +#define MIDR_CORTEX_A320 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A320)#define MIDR_THUNDERX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX)#define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX)#define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX)
Signature · 1 line
2.43.0
Re: [PATCH v1 3/6] arm64: cputype: Add Cortex-A320 definitions
Quoted 9 lines · Ryan Roberts
Add the Cortex-A320 part number and MIDR definition. The
MIDR_EL1description in the Cortex-A320 Technical Reference Manual specifies implementer0x41and part number0xd8f.These definitions will be used to identify Cortex-A320 in the BBML3 allow list.
PATCH 4/6 arm64: cputype: Add C2-Ultra definitions
In reply to Ryan RobertsAdd the C2-Ultra part number and MIDR definition. The MIDR_EL1 description in the C2-Ultra Technical Reference Manual specifies implementer 0x41 and part number 0xd96.
These definitions will be used to identify C2-Ultra in the BBML3 allow list.
--- arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/include/asm/cputype.h +2 -0
@@ -104,6 +104,7 @@#define ARM_CPU_PART_C1_PRO 0xD8B#define ARM_CPU_PART_C1_PREMIUM 0xD90#define ARM_CPU_PART_CORTEX_A320 0xD8F +#define ARM_CPU_PART_C2_ULTRA 0xD96#define APM_CPU_PART_XGENE 0x000#define APM_CPU_VAR_POTENZA 0x00
@@ -202,6 +203,7 @@#define MIDR_C1_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PRO)#define MIDR_C1_PREMIUM MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C1_PREMIUM)#define MIDR_CORTEX_A320 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A320) +#define MIDR_C2_ULTRA MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_C2_ULTRA)#define MIDR_THUNDERX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX)#define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX)#define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX)
Signature · 1 line
2.43.0
Re: [PATCH v1 4/6] arm64: cputype: Add C2-Ultra definitions
Quoted 9 lines · Ryan Roberts
Add the C2-Ultra part number and MIDR definition. The
MIDR_EL1description in the C2-Ultra Technical Reference Manual specifies implementer0x41and part number0xd96.These definitions will be used to identify C2-Ultra in the BBML3 allow list.
PATCH 5/6 arm64: cpufeature: Track BBML3 exclusions with erratum options
In reply to Ryan RobertsSeveral CPUs implementing the BBML3 no-abort semantics advertise only BBML2, but cannot safely use those semantics because of hardware errata. Omitting their MIDRs from the allow list hides the reason for the exclusion and makes the relevant workarounds difficult to track.
Add a default-enabled Kconfig option for each of the following errata, and include the affected CPUs in the BBML3 allow list only when the corresponding workaround is disabled:
3043240 Cortex-X925 3043263 Cortex-X4 3053180 Neoverse-V3 and Neoverse-V3AE 3683289 C1-Ultra and C1-Premium 3696239 Cortex-X3 3696242 Neoverse-V2 3696244 Cortex-A710 and Cortex-X2 3696250 Neoverse-N2 3696285 Neoverse-V1 4196850 C2-Ultra
These errata can cause a load or store to livelock when mapping size changes without break-before-make or contiguous hints are inconsistent. For CPUs with no documented fixed revision, exclude all revisions while the workaround is enabled.
Preserve the C1-Ultra and C1-Premium entries from r1p1, where erratum 3683289 is fixed. Disabling that workaround additionally allows their earlier revisions.
Note that Cortex-A510 advertises BBML2 and is not subject to any errata, but it can generate conflict aborts, and so does not meet the requirements of BBML3. It is therefore not included in the list.
--- Documentation/arch/arm64/silicon-errata.rst | 26 +++- arch/arm64/Kconfig | 163 ++++++++++++++++++++ arch/arm64/kernel/cpufeature.c | 37 ++++- 3 files changed, 220 insertions(+), 6 deletions(-)
Documentation/arch/arm64/silicon-errata.rst +21 -5
@@ -159,6 +159,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A78C | #4193794 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-A710 | #3696244 | ARM64_ERRATUM_3696244 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A710 | #2119858 | ARM64_ERRATUM_2119858 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A710 | #2054223 | ARM64_ERRATUM_2054223 |
@@ -189,6 +191,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X1C | #4193792 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-X2 | #3696244 | ARM64_ERRATUM_3696244 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X2 | #2119858 | ARM64_ERRATUM_2119858 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X2 | #2224489 | ARM64_ERRATUM_2224489 |
@@ -197,16 +201,20 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X2 | #4193788 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-X3 | #3696239 | ARM64_ERRATUM_3696239 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X3 | #3324335 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X3 | #4193786 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | Cortex-X4 | #3043263 | N/A | +| ARM | Cortex-X4 | #3043263 | ARM64_ERRATUM_3043263 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X4 | #3194386 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X4 | #4118414 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-X925 | #3043240 | ARM64_ERRATUM_3043240 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X925 | #3324334 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X925 | #4193781 | ARM64_ERRATUM_4118414 |
@@ -223,6 +231,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N1 | #4193800 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-N2 | #3696250 | ARM64_ERRATUM_3696250 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N2 | #2139208 | ARM64_ERRATUM_2139208 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N2 | #2067961 | ARM64_ERRATUM_2067961 |
@@ -235,38 +245,44 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-N3 | #3456111 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V1 | #3696285 | ARM64_ERRATUM_3696285 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V1 | #1619801 | N/A | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V1 | #3324341 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V1 | #4193790 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Neoverse-V2 | #3696242 | ARM64_ERRATUM_3696242 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V2 | #3324336 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V2 | #4193787 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | Neoverse-V3 | #3053180 | N/A | +| ARM | Neoverse-V3 | #3053180 | ARM64_ERRATUM_3053180 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3 | #4193784 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | Neoverse-V3AE | #3053180 | N/A | +| ARM | Neoverse-V3AE | #3053180 | ARM64_ERRATUM_3053180 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #3312417 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Neoverse-V3AE | #4193784 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | C1-Premium | #3683289 | N/A | +| ARM | C1-Premium | #3683289 | ARM64_ERRATUM_3683289 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | C1-Premium | #4193780 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | C1-Pro | #4193714 | ARM64_ERRATUM_4193714 | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | C1-Ultra | #3683289 | N/A | +| ARM | C1-Ultra | #3683289 | ARM64_ERRATUM_3683289 | +----------------+-----------------+-----------------+-----------------------------+ | ARM | C1-Ultra | #4193780 | ARM64_ERRATUM_4118414 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | C2-Ultra | #4196850 | ARM64_ERRATUM_4196850 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | MMU-500 | #562869, | ARM_SMMU_MMU_500_CPRE_ERRATA| | | | #841119, | | | | | #826419, | |
arch/arm64/Kconfig +163 -0
169 lines not on this page · raw message
arch/arm64/kernel/cpufeature.c +36 -1
@@ -2016,15 +2016,50 @@ bool cpu_supports_bbml3(void)MIDR_ALL_VERSIONS (MIDR_AMPERE1 ),MIDR_ALL_VERSIONS (MIDR_AMPERE1A ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A520AE ), +#ifndef CONFIG_ARM64_ERRATUM_3696244 +MIDR_ALL_VERSIONS (MIDR_CORTEX_A710 ), +#endifMIDR_ALL_VERSIONS (MIDR_CORTEX_A715 ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A720AE ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A725 ), +#ifndef CONFIG_ARM64_ERRATUM_3696244 +MIDR_ALL_VERSIONS (MIDR_CORTEX_X2 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3696239 +MIDR_ALL_VERSIONS (MIDR_CORTEX_X3 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3043263 +MIDR_ALL_VERSIONS (MIDR_CORTEX_X4 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3043240 +MIDR_ALL_VERSIONS (MIDR_CORTEX_X925 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3696250 +MIDR_ALL_VERSIONS (MIDR_NEOVERSE_N2 ), +#endifMIDR_ALL_VERSIONS (MIDR_NEOVERSE_N3 ), +#ifndef CONFIG_ARM64_ERRATUM_3696285 +MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V1 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3696242 +MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V2 ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_3053180 +MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V3 ), +MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V3AE ), +#endifMIDR_ALL_VERSIONS (MIDR_C1_NANO ),MIDR_ALL_VERSIONS (MIDR_C1_PRO ), -/* Erratum 3683289 fixed in r1p1 */ +#ifndef CONFIG_ARM64_ERRATUM_3683289 +MIDR_ALL_VERSIONS (MIDR_C1_ULTRA ), +MIDR_ALL_VERSIONS (MIDR_C1_PREMIUM ), +#elseMIDR_RANGE (MIDR_C1_ULTRA ,1 ,1 ,0xf ,0xf ),MIDR_RANGE (MIDR_C1_PREMIUM ,1 ,1 ,0xf ,0xf ), +#endif +#ifndef CONFIG_ARM64_ERRATUM_4196850 + MIDR_ALL_VERSIONS(MIDR_C2_ULTRA), +#endif {} };u64 mmfr2 =__read_sysreg_by_encoding (SYS_ID_AA64MMFR2_EL1 );
Signature · 1 line
2.43.0
Catalin Marinas
maintainerRe: [PATCH v1 5/6] arm64: cpufeature: Track BBML3 exclusions with erratum options
Quoted 9 lines · Ryan Roberts
Several CPUs implementing the BBML3 no-abort semantics advertise only BBML2, but cannot safely use those semantics because of hardware errata. Omitting their MIDRs from the allow list hides the reason for the exclusion and makes the relevant workarounds difficult to track.
Add a default-enabled
Kconfigoption for each of the following errata, and include the affected CPUs in the BBML3 allow list only when the corresponding workaround is disabled:
Quoted 10 lines
3043240 Cortex-X925 3043263 Cortex-X4 3053180 Neoverse-V3 and Neoverse-V3AE 3683289 C1-Ultra and C1-Premium 3696239 Cortex-X3 3696242 Neoverse-V2 3696244 Cortex-A710 and Cortex-X2 3696250 Neoverse-N2 3696285 Neoverse-V1 4196850 C2-Ultra
I'm not sure what the benefit of this is. These CPUs are not listed in the BBML3 capable list anyway, so the patch adds them but gated by a Kconfig option, default y. Is it only an elaborate way to tell people why we couldn't enable BBML3 support for them? Maybe the documentation part is sufficient.
Signature · 1 line
Catalin
Re: [PATCH v1 5/6] arm64: cpufeature: Track BBML3 exclusions with erratum options
Quoted 21 lines · Catalin Marinas
Quoted 9 lines · Ryan Roberts
Several CPUs implementing the BBML3 no-abort semantics advertise only BBML2, but cannot safely use those semantics because of hardware errata. Omitting their MIDRs from the allow list hides the reason for the exclusion and makes the relevant workarounds difficult to track.
Add a default-enabled
Kconfigoption for each of the following errata, and include the affected CPUs in the BBML3 allow list only when the corresponding workaround is disabled:Quoted 10 lines
3043240 Cortex-X925 3043263 Cortex-X4 3053180 Neoverse-V3 and Neoverse-V3AE 3683289 C1-Ultra and C1-Premium 3696239 Cortex-X3 3696242 Neoverse-V2 3696244 Cortex-A710 and Cortex-X2 3696250 Neoverse-N2 3696285 Neoverse-V1 4196850 C2-Ultra
Quoted 6 lines
I'm not sure what the benefit of this is. These CPUs are not listed in the BBML3 capable list anyway, so the patch adds them but gated by a
Kconfigoption, default y. Is it only an elaborate way to tell people why we couldn't enable BBML3 support for them? Maybe the documentation part is sufficient.
I'm just trying to make it very clear why certain CPUs are not in the list. With the exception of A510, in general, Arm-designed CPUs that advertise BBML2 are also BBML3 compliant and should therefore be in this list. But some of the CPUs have BBML2 errata which prevent them from being in the list.
The information is all very scattered internally, and I've personally had to do the exercise 3 times now, of figuring out which CPUs are excluded from the list because they haven't been added yet vs which are excluded because of an erratum.
Perhaps it would be simpler just to create a file in Documentation/arch/arm64 to track this and add a comment next to the midr list referring to it? I don't mind how we do it, but I do think it's valuable to capture the info somehow. I did it the way I've done it because it looked like the standard way of documenting workarounds.
Thanks,
Ryan
Catalin Marinas
maintainerRe: [PATCH v1 5/6] arm64: cpufeature: Track BBML3 exclusions with erratum options
Quoted 33 lines · Ryan Roberts
Quoted 21 lines · Catalin Marinas
Quoted 9 lines · Ryan Roberts
Several CPUs implementing the BBML3 no-abort semantics advertise only BBML2, but cannot safely use those semantics because of hardware errata. Omitting their MIDRs from the allow list hides the reason for the exclusion and makes the relevant workarounds difficult to track.
Add a default-enabled
Kconfigoption for each of the following errata, and include the affected CPUs in the BBML3 allow list only when the corresponding workaround is disabled:Quoted 10 lines
3043240 Cortex-X925 3043263 Cortex-X4 3053180 Neoverse-V3 and Neoverse-V3AE 3683289 C1-Ultra and C1-Premium 3696239 Cortex-X3 3696242 Neoverse-V2 3696244 Cortex-A710 and Cortex-X2 3696250 Neoverse-N2 3696285 Neoverse-V1 4196850 C2-UltraQuoted 5 lines
I'm not sure what the benefit of this is. These CPUs are not listed in the BBML3 capable list anyway, so the patch adds them but gated by a
Kconfigoption, default y. Is it only an elaborate way to tell people why we couldn't enable BBML3 support for them? Maybe the documentation part is sufficient.I'm just trying to make it very clear why certain CPUs are not in the list. With the exception of A510, in general, Arm-designed CPUs that advertise BBML2 are also BBML3 compliant and should therefore be in this list. But some of the CPUs have BBML2 errata which prevent them from being in the list.
Quoted 7 lines
The information is all very scattered internally, and I've personally had to do the exercise 3 times now, of figuring out which CPUs are excluded from the list because they haven't been added yet vs which are excluded because of an erratum.
Perhaps it would be simpler just to create a file in
Documentation/arch/arm64to track this and add a comment next to the midr list referring to it? I don't mind how we do it, but I do think it's valuable to capture the info somehow.
I agree it's worth recording. I'd just put a comment above supports_bbml3_list[] listing the excluded CPUs with their erratum numbers and keep the N/A entries in silicon-errata.rst (as you did in patches 1 and 2). The errata is the same, live-lock, so you might as well include that in the comment.
The Kconfig options don't add much. These CPUs have never been in the list, so the only thing =n does is enable BBML3 on hardware with an open erratum.
Signature · 1 line
Catalin
PATCH 6/6 arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720
In reply to Ryan RobertsCortex-A320, Cortex-A520 and Cortex-A720 advertise BBML2 and are known not to raise conflict aborts for mapping-granularity changes. They can therefore use the BBML3 semantics, but their MIDRs are missing from the allow list.
Commit a7ac60414475 ("arm64: cpufeature: Extend bbml2_noabort support list") named A520(AE) and A720(AE), but added only the AE MIDRs. The non-AE CPUs have distinct MIDRs and need their own entries. Cortex-A320 can now be identified using its new MIDR definition.
Add all revisions of these three CPUs to the allow list. The reviewed SDENs identify no BBML3 exclusion erratum for them.
Cortex-A510 remains excluded because it can raise conflict aborts.
--- arch/arm64/kernel/cpufeature.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/kernel/cpufeature.c +3 -0
@@ -2015,11 +2015,14 @@ bool cpu_supports_bbml3(void)MIDR_ALL_VERSIONS (MIDR_NVIDIA_RIGEL ),MIDR_ALL_VERSIONS (MIDR_AMPERE1 ),MIDR_ALL_VERSIONS (MIDR_AMPERE1A ), +MIDR_ALL_VERSIONS (MIDR_CORTEX_A320 ), +MIDR_ALL_VERSIONS (MIDR_CORTEX_A520 ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A520AE ), #ifndef CONFIG_ARM64_ERRATUM_3696244MIDR_ALL_VERSIONS (MIDR_CORTEX_A710 ), #endifMIDR_ALL_VERSIONS (MIDR_CORTEX_A715 ), +MIDR_ALL_VERSIONS (MIDR_CORTEX_A720 ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A720AE ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A725 ), #ifndef CONFIG_ARM64_ERRATUM_3696244
Signature · 1 line
2.43.0
Re: [PATCH v1 6/6] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720
Quoted 13 lines · Ryan Roberts
Cortex-A320, Cortex-A520 and Cortex-A720 advertise BBML2 and are known not to raise conflict aborts for mapping-granularity changes. They can therefore use the BBML3 semantics, but their MIDRs are missing from the allow list.
Commit
a7ac60414475("arm64: cpufeature: Extendbbml2_noabortsupport list") named A520(AE) and A720(AE), but added only the AE MIDRs. The non-AE CPUs have distinct MIDRs and need their own entries. Cortex-A320 can now be identified using its new MIDR definition.Add all revisions of these three CPUs to the allow list. The reviewed SDENs identify no BBML3 exclusion erratum for them.
Quoted 6 lines
Cortex-A510 remains excluded because it can raise conflict aborts.
Re: (subset) [PATCH v1 0/6] arm64: BBML3 errata workarounds and cleanup
In reply to Ryan RobertsQuoted 8 lines · Ryan Roberts
This series updates the BBML3 allow list following a review of Arm CPU errata and implementation support.
The first two patches remove Neoverse-V3/AE and Cortex-X4: their latest SDENs show that revisions previously treated as unaffected still suffer from BBM-related livelock errata. These patches are intended for stable backporting.
[...]
Applied to arm64 (for-next/fixes), thanks!
[1/6] arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list
https://git.kernel.org/arm64/c/4f9280c8db69 [2/6] arm64: cpufeature: Remove Cortex-X4 from the BBML3 allow list https://git.kernel.org/arm64/c/c6ba16d8157b