Skip to contentSkip to conversation

Enable FEAT_BBM (Level 2) for Olympus core

PATCH Applied Shanker Donthineni 2 participants 4 messages Sep 18, 2025 arm64

lore
Share & tools
lore
#0 lore raw

cover Enable FEAT_BBM (Level 2) for Olympus core

The NVIDIA Olympus cpu supports BBML2 without conflict aborts. Enable ARM64_HAS_BBML2_NOABORT by adding its MIDR to the allow list.

Shanker Donthineni (2):
arm64: cputype: Add NVIDIA Olympus definitions
arm64: cpufeature: Add Olympus MIDR to BBML2 allow list

 arch/arm64/include/asm/cputype.h       | 2 ++
 arch/arm64/kernel/cpufeature.c         | 1 +
 tools/arch/arm64/include/asm/cputype.h | 2 ++
 3 files changed, 5 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 arm64: cputype: Add NVIDIA Olympus definitions

Add cpu part and model macro definitions for NVIDIA Olympus core.

---
 arch/arm64/include/asm/cputype.h       | 2 ++
 tools/arch/arm64/include/asm/cputype.h | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/include/asm/cputype.h +2 -0
index b10eba7f52476..402e6c94bec3d 100644
@@ -130,6 +130,7 @@
 
 #define NVIDIA_CPU_PART_DENVER		0x003
 #define NVIDIA_CPU_PART_CARMEL		0x004
+#define NVIDIA_CPU_PART_OLYMPUS		0x010
 
 #define FUJITSU_CPU_PART_A64FX		0x001
 
@@ -222,6 +223,7 @@
 
 #define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER)
 #define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)
+#define MIDR_NVIDIA_OLYMPUS MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_OLYMPUS)
 #define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)
 #define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110)
 #define MIDR_HISI_HIP09 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP09)
tools/arch/arm64/include/asm/cputype.h +2 -0
index 139d5e87dc959..45ec0d4fba71e 100644
@@ -129,6 +129,7 @@
 
 #define NVIDIA_CPU_PART_DENVER		0x003
 #define NVIDIA_CPU_PART_CARMEL		0x004
+#define NVIDIA_CPU_PART_OLYMPUS		0x010
 
 #define FUJITSU_CPU_PART_A64FX		0x001
 
@@ -220,6 +221,7 @@
 
 #define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER)
 #define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)
+#define MIDR_NVIDIA_OLYMPUS MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_OLYMPUS)
 #define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)
 #define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110)
 #define MIDR_HISI_HIP09 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP09)
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 arm64: cpufeature: Add Olympus MIDR to BBML2 allow list

In reply to Shanker Donthineni

The NVIDIA Olympus core supports BBML2 without conflict abort. Add its MIDR to the allow list to enable FEAT_BBM.

---
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/cpufeature.c +1 -0
index bb6d82b2f7584..30f45af3b684e 100644
@@ -2236,6 +2236,7 @@ static bool has_bbml2_noabort(const struct arm64_cpu_capabilities *caps, int sco
 	static const struct midr_range supports_bbml2_noabort_list[] = {
 		MIDR_REV_RANGE(MIDR_CORTEX_X4, 0, 3, 0xf),
 		MIDR_REV_RANGE(MIDR_NEOVERSE_V3, 0, 2, 0xf),
+		MIDR_ALL_VERSIONS(MIDR_NVIDIA_OLYMPUS),
 		{}
 	};
 
Signature · 1 line
2.25.1
maintainer Applied
#3 lore raw
In reply to Shanker Donthineni
Quoted 8 lines · Shanker Donthineni

The NVIDIA Olympus cpu supports BBML2 without conflict aborts. Enable ARM64_HAS_BBML2_NOABORT by adding its MIDR to the allow list.

Shanker Donthineni (2):
arm64: cputype: Add NVIDIA Olympus definitions
arm64: cpufeature: Add Olympus MIDR to BBML2 allow list

[...]

Applied to arm64 (for-next/cpufeature), thanks!

(note that I dropped the tools/ part from the first patch)

[1/2] arm64: cputype: Add NVIDIA Olympus definitions

      https://git.kernel.org/arm64/c/e185c8a0d842
[2/2] arm64: cpufeature: Add Olympus MIDR to BBML2 allow list
      https://git.kernel.org/arm64/c/cc80537caaa7

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev