Skip to contentSkip to conversation

arm64: Add NVIDIA Rigel CPU definitions and BBML2

PATCH Applied Shanker Donthineni 2 participants 4 messages Oct 13 – Oct 15 arm64

lore
Share & tools
lore
#0 lore raw

cover arm64: Add NVIDIA Rigel CPU definitions and BBML2

Add CPU part and MIDR definitions for the NVIDIA Rigel core. Then add Rigel to the BBML2 no-abort allow-list because it supports BBML2 without raising TLB conflict aborts during mapping granularity changes.

Shanker Donthineni (2):
arm64: cputype: Add NVIDIA Rigel definitions
arm64: cpufeature: Enable BBML2 for NVIDIA Rigel

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

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

Add CPU part and model macro definitions for the NVIDIA Rigel core.

---
 arch/arm64/include/asm/cputype.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/include/asm/cputype.h +2 -0
index 1fa29616e586e..6002d1d5f55f4 100644
@@ -136,6 +136,7 @@
 #define NVIDIA_CPU_PART_DENVER		0x003
 #define NVIDIA_CPU_PART_CARMEL		0x004
 #define NVIDIA_CPU_PART_OLYMPUS		0x010
+#define NVIDIA_CPU_PART_RIGEL		0x011
 
 #define FUJITSU_CPU_PART_A64FX		0x001
 
@@ -234,6 +235,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_NVIDIA_RIGEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_RIGEL)
 #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.43.0
#2 lore raw

PATCH 2/2 arm64: cpufeature: Enable BBML2 for NVIDIA Rigel

In reply to Shanker Donthineni

The BBML2 no-abort capability is an allow-list of CPUs that support BBML2 and do not raise TLB conflict aborts for mapping granularity changes.

Add the NVIDIA Rigel core to that allow-list.

---
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/cpufeature.c +1 -0
index a06dc20c59e47..6333fefc67027 100644
@@ -2167,6 +2167,7 @@ bool cpu_supports_bbml3(void)
 		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),
 		MIDR_ALL_VERSIONS(MIDR_AMPERE1A),
 		MIDR_ALL_VERSIONS(MIDR_CORTEX_A520AE),
Signature · 1 line
2.43.0
maintainer Applied
#3 lore raw
In reply to Shanker Donthineni
Quoted 9 lines · Shanker Donthineni

Add CPU part and MIDR definitions for the NVIDIA Rigel core. Then add Rigel to the BBML2 no-abort allow-list because it supports BBML2 without raising TLB conflict aborts during mapping granularity changes.

Shanker Donthineni (2):
arm64: cputype: Add NVIDIA Rigel definitions
arm64: cpufeature: Enable BBML2 for NVIDIA Rigel

[...]

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

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

      https://git.kernel.org/arm64/c/cd2a6b71f974
[2/2] arm64: cpufeature: Enable BBML2 for NVIDIA Rigel
      https://git.kernel.org/arm64/c/6be42f0e4dc1