Enable FEAT_BBM (Level 2) for Olympus core
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
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
@@ -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
@@ -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
PATCH 2/2 arm64: cpufeature: Add Olympus MIDR to BBML2 allow list
In reply to Shanker DonthineniThe 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
@@ -2236,6 +2236,7 @@ static bool has_bbml2_noabort(const struct arm64_cpu_capabilities *caps, int scostatic 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
Quoted 8 lines · Shanker Donthineni
The NVIDIA Olympus cpu supports BBML2 without conflict aborts. Enable
ARM64_HAS_BBML2_NOABORTby 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