mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core
@ 2025-09-18 13:25 Shanker Donthineni
  2025-09-18 13:25 ` [PATCH 1/2] arm64: cputype: Add NVIDIA Olympus definitions Shanker Donthineni
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shanker Donthineni @ 2025-09-18 13:25 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, linux-arm-kernel
  Cc: linux-kernel, Shanker Donthineni, Vikram Sethi

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(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] arm64: cputype: Add NVIDIA Olympus definitions
  2025-09-18 13:25 [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Shanker Donthineni
@ 2025-09-18 13:25 ` Shanker Donthineni
  2025-09-18 13:25 ` [PATCH 2/2] arm64: cpufeature: Add Olympus MIDR to BBML2 allow list Shanker Donthineni
  2025-09-18 21:10 ` [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Will Deacon
  2 siblings, 0 replies; 4+ messages in thread
From: Shanker Donthineni @ 2025-09-18 13:25 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, linux-arm-kernel
  Cc: linux-kernel, Shanker Donthineni, Vikram Sethi

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

Signed-off-by: Shanker Donthineni <sdonthineni@nvidia.com>
---
 arch/arm64/include/asm/cputype.h       | 2 ++
 tools/arch/arm64/include/asm/cputype.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
index b10eba7f52476..402e6c94bec3d 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -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)
diff --git a/tools/arch/arm64/include/asm/cputype.h b/tools/arch/arm64/include/asm/cputype.h
index 139d5e87dc959..45ec0d4fba71e 100644
--- a/tools/arch/arm64/include/asm/cputype.h
+++ b/tools/arch/arm64/include/asm/cputype.h
@@ -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)
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: cpufeature: Add Olympus MIDR to BBML2 allow list
  2025-09-18 13:25 [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Shanker Donthineni
  2025-09-18 13:25 ` [PATCH 1/2] arm64: cputype: Add NVIDIA Olympus definitions Shanker Donthineni
@ 2025-09-18 13:25 ` Shanker Donthineni
  2025-09-18 21:10 ` [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Will Deacon
  2 siblings, 0 replies; 4+ messages in thread
From: Shanker Donthineni @ 2025-09-18 13:25 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, linux-arm-kernel
  Cc: linux-kernel, Shanker Donthineni, Vikram Sethi

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

Signed-off-by: Shanker Donthineni <sdonthineni@nvidia.com>
---
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index bb6d82b2f7584..30f45af3b684e 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -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),
 		{}
 	};
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core
  2025-09-18 13:25 [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Shanker Donthineni
  2025-09-18 13:25 ` [PATCH 1/2] arm64: cputype: Add NVIDIA Olympus definitions Shanker Donthineni
  2025-09-18 13:25 ` [PATCH 2/2] arm64: cpufeature: Add Olympus MIDR to BBML2 allow list Shanker Donthineni
@ 2025-09-18 21:10 ` Will Deacon
  2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2025-09-18 21:10 UTC (permalink / raw)
  To: Catalin Marinas, linux-arm-kernel, Shanker Donthineni
  Cc: kernel-team, Will Deacon, linux-kernel, Vikram Sethi

On Thu, 18 Sep 2025 08:25:46 -0500, Shanker Donthineni wrote:
> 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,
-- 
Will

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-18 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-18 13:25 [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Shanker Donthineni
2025-09-18 13:25 ` [PATCH 1/2] arm64: cputype: Add NVIDIA Olympus definitions Shanker Donthineni
2025-09-18 13:25 ` [PATCH 2/2] arm64: cpufeature: Add Olympus MIDR to BBML2 allow list Shanker Donthineni
2025-09-18 21:10 ` [PATCH 0/2] Enable FEAT_BBM (Level 2) for Olympus core Will Deacon

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®