* [PATCH v2 0/3] BBML3 cleanups and additions
@ 2026-11-27 15:11 Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 1/3] arm64: cputype: Add Cortex-A320 definitions Ryan Roberts
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ryan Roberts @ 2026-11-27 15:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland, Linu Cherian
Cc: Ryan Roberts, linux-arm-kernel, linux-kernel
Hi All,
This series updates the BBML3 allow list following a review of Arm CPU errata
and implementation support. Add a comment to track why 13 CPUs are not in the
BBML3 allow list, and enable BBML3 for Cortex-A320, A520 and A720.
Applies on top of v7.4-rc4.
Changes since v1 [1]
====================
- First 2 patches of v1 were errata workarounds; they were already merged and
are in v7.4-rc4, so dropped them here.
- Documenting which CPUs have errata preventing admission to BBML3 allow list
using comment instead of the previous Kconfig approach (per Catalin).
- Dropped C2 Ultra definitions as they are no longer needed.
Thanks,
Ryan
Ryan Roberts (3):
arm64: cputype: Add Cortex-A320 definitions
arm64: cpufeature: Document BBML3 exclusions
arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720
Documentation/arch/arm64/silicon-errata.rst | 16 +++++++++++++
arch/arm64/include/asm/cputype.h | 2 ++
arch/arm64/kernel/cpufeature.c | 26 ++++++++++++++++++++-
3 files changed, 43 insertions(+), 1 deletion(-)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/3] arm64: cputype: Add Cortex-A320 definitions
2026-11-27 15:11 [PATCH v2 0/3] BBML3 cleanups and additions Ryan Roberts
@ 2026-11-27 15:11 ` Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 2/3] arm64: cpufeature: Document BBML3 exclusions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 3/3] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720 Ryan Roberts
2 siblings, 0 replies; 4+ messages in thread
From: Ryan Roberts @ 2026-11-27 15:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland, Linu Cherian
Cc: Ryan Roberts, linux-arm-kernel, linux-kernel
Add 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.
Link: https://support.arm.com/documentation/109551/0002?lang=en&rev=0002-04
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
---
arch/arm64/include/asm/cputype.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
index 6002d1d5f55f..abff1ba1c305 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -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)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 2/3] arm64: cpufeature: Document BBML3 exclusions
2026-11-27 15:11 [PATCH v2 0/3] BBML3 cleanups and additions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 1/3] arm64: cputype: Add Cortex-A320 definitions Ryan Roberts
@ 2026-11-27 15:11 ` Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 3/3] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720 Ryan Roberts
2 siblings, 0 replies; 4+ messages in thread
From: Ryan Roberts @ 2026-11-27 15:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland, Linu Cherian
Cc: Ryan Roberts, linux-arm-kernel, linux-kernel
Several CPUs advertise BBML2 and are known never to raise a conflict
abort, but cannot safely use the BBML3 no-abort semantics because of
hardware errata. Omitting their MIDRs from the allow list hides the
reason for the exclusion and makes it difficult to tell whether a CPU
has simply not been added yet.
Document the excluded CPUs and their erratum numbers above
supports_bbml3_list[]. Record the errata in silicon-errata.rst with N/A
Kconfig entries.
Keep C1-Ultra and C1-Premium enabled from r1p1, where erratum 3683289 is
fixed. Also explain that Cortex-A510 can generate conflict aborts and
therefore does not meet the BBML3 requirements, independently of errata.
Link: https://support.arm.com/documentation/109180/13-0/?lang=en
Link: https://support.arm.com/documentation/111077/10-0/?lang=en
Link: https://support.arm.com/documentation/111078/10-0/?lang=en
Link: https://support.arm.com/documentation/111287/10-0/?lang=en
Link: https://support.arm.com/documentation/SDEN-2055130/18-0?lang=en&rev=18.0
Link: https://support.arm.com/documentation/SDEN-2332927/13-0?lang=en&rev=13.0
Link: https://support.arm.com/documentation/SDEN-1775101/23-0?lang=en&rev=23.0
Link: https://support.arm.com/documentation/SDEN-1775100/23-0?lang=en&rev=23.0
Link: https://support.arm.com/documentation/SDEN-1982442/21-0?lang=en&rev=21.0
Link: https://support.arm.com/documentation/SDEN-1401781/23-0?lang=en&rev=23.0
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
---
Documentation/arch/arm64/silicon-errata.rst | 16 ++++++++++++++
arch/arm64/kernel/cpufeature.c | 23 ++++++++++++++++++++-
2 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/Documentation/arch/arm64/silicon-errata.rst b/Documentation/arch/arm64/silicon-errata.rst
index bffaa46c664b..64ad29d00243 100644
--- a/Documentation/arch/arm64/silicon-errata.rst
+++ b/Documentation/arch/arm64/silicon-errata.rst
@@ -159,6 +159,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-A78C | #4193794 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Cortex-A710 | #3696244 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-A710 | #2119858 | ARM64_ERRATUM_2119858 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-A710 | #2054223 | ARM64_ERRATUM_2054223 |
@@ -197,6 +199,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X1C | #4193792 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Cortex-X2 | #3696244 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X2 | #2119858 | ARM64_ERRATUM_2119858 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X2 | #2224489 | ARM64_ERRATUM_2224489 |
@@ -205,6 +209,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X2 | #4193788 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Cortex-X3 | #3696239 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X3 | #3324335 | ARM64_ERRATUM_3194386 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X3 | #4193786 | ARM64_ERRATUM_4118414 |
@@ -215,6 +221,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X4 | #4118414 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Cortex-X925 | #3043240 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X925 | #3324334 | ARM64_ERRATUM_3194386 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Cortex-X925 | #4193781 | ARM64_ERRATUM_4118414 |
@@ -231,6 +239,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-N1 | #4193800 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Neoverse-N2 | #3696250 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-N2 | #2139208 | ARM64_ERRATUM_2139208 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-N2 | #2067961 | ARM64_ERRATUM_2067961 |
@@ -245,12 +255,16 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-N3 | #4689341 | ARM64_ERRATUM_3821522 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Neoverse-V1 | #3696285 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-V1 | #1619801 | N/A |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-V1 | #3324341 | ARM64_ERRATUM_3194386 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-V1 | #4193790 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | Neoverse-V2 | #3696242 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-V2 | #3324336 | ARM64_ERRATUM_3194386 |
+----------------+-----------------+-----------------+-----------------------------+
| ARM | Neoverse-V2 | #4193787 | ARM64_ERRATUM_4118414 |
@@ -279,6 +293,8 @@ stable kernels.
+----------------+-----------------+-----------------+-----------------------------+
| ARM | C1-Ultra | #4193780 | ARM64_ERRATUM_4118414 |
+----------------+-----------------+-----------------+-----------------------------+
+| ARM | C2-Ultra | #4196850 | N/A |
++----------------+-----------------+-----------------+-----------------------------+
| ARM | MMU-500 | #562869, | ARM_SMMU_MMU_500_CPRE_ERRATA|
| | | #841119, | |
| | | #826419, | |
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index a8a1a73ba1b8..710d44a30d29 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -2010,7 +2010,28 @@ static bool hvhe_possible(const struct arm64_cpu_capabilities *entry,
bool cpu_supports_bbml3(void)
{
- /* CPUs that support BBML3 but dont advertise through ID_AA64MMFR2_EL1 */
+ /*
+ * CPUs that support BBML3 but don't advertise through ID_AA64MMFR2_EL1.
+ *
+ * The following CPUs advertise BBML2 and are known not to raise
+ * conflict aborts, but are excluded because of errata that can cause a
+ * load or store to livelock when changing mapping size without
+ * break-before-make:
+ *
+ * 3043240: Cortex-X925
+ * 3043263: Cortex-X4
+ * 3053180: Neoverse-V3 and Neoverse-V3AE
+ * 3683289: C1-Ultra and C1-Premium (before r1p1)
+ * 3696239: Cortex-X3
+ * 3696242: Neoverse-V2
+ * 3696244: Cortex-A710 and Cortex-X2
+ * 3696250: Neoverse-N2
+ * 3696285: Neoverse-V1
+ * 4196850: C2-Ultra
+ *
+ * Cortex-A510 also advertises BBML2 but can generate conflict aborts,
+ * independently of errata, so it does not meet the BBML3 requirements.
+ */
static const struct midr_range supports_bbml3_list[] = {
MIDR_ALL_VERSIONS(MIDR_NVIDIA_OLYMPUS),
MIDR_ALL_VERSIONS(MIDR_NVIDIA_RIGEL),
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720
2026-11-27 15:11 [PATCH v2 0/3] BBML3 cleanups and additions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 1/3] arm64: cputype: Add Cortex-A320 definitions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 2/3] arm64: cpufeature: Document BBML3 exclusions Ryan Roberts
@ 2026-11-27 15:11 ` Ryan Roberts
2 siblings, 0 replies; 4+ messages in thread
From: Ryan Roberts @ 2026-11-27 15:11 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Mark Rutland, Linu Cherian
Cc: Ryan Roberts, linux-arm-kernel, linux-kernel
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: 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.
Link: https://support.arm.com/documentation/SDEN-2877630/0000?lang=en&rev=0000-06
Link: https://support.arm.com/documentation/SDEN-2444153/0000?lang=en&rev=0000-12
Link: https://support.arm.com/documentation/SDEN-2439421/0000?lang=en&rev=0000-17
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
---
arch/arm64/kernel/cpufeature.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 710d44a30d29..1c4e809f73e4 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -2037,8 +2037,11 @@ 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),
MIDR_ALL_VERSIONS(MIDR_CORTEX_A715),
+ MIDR_ALL_VERSIONS(MIDR_CORTEX_A720),
MIDR_ALL_VERSIONS(MIDR_CORTEX_A720AE),
MIDR_ALL_VERSIONS(MIDR_CORTEX_A725),
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N3),
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-27 15:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 15:11 [PATCH v2 0/3] BBML3 cleanups and additions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 1/3] arm64: cputype: Add Cortex-A320 definitions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 2/3] arm64: cpufeature: Document BBML3 exclusions Ryan Roberts
2026-11-27 15:11 ` [PATCH v2 3/3] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720 Ryan Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®