Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.16-6.17 0/2] arm64: errata: Apply workarounds for Neoverse-V3AE
@ 2025-10-20  9:27 Ryan Roberts
  2025-10-20  9:27 ` [PATCH 6.16-6.17 1/2] arm64: cputype: Add Neoverse-V3AE definitions Ryan Roberts
  2025-10-20  9:27 ` [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Roberts @ 2025-10-20  9:27 UTC (permalink / raw)
  To: stable
  Cc: Ryan Roberts, catalin.marinas, will, mark.rutland,
	linux-arm-kernel, linux-kernel

Hi All,

This series is a backport that applies to stable kernels 6.16 and 6.17, of the
recent errata workarounds for Neoverse-V3AE, which were originally posted at:

  https://lore.kernel.org/all/20250919145832.4035534-1-ryan.roberts@arm.com/

... and were originally merged upstream in v6.18-rc1.

Thanks,
Ryan

Mark Rutland (2):
  arm64: cputype: Add Neoverse-V3AE definitions
  arm64: errata: Apply workarounds for Neoverse-V3AE

 Documentation/arch/arm64/silicon-errata.rst | 2 ++
 arch/arm64/Kconfig                          | 1 +
 arch/arm64/include/asm/cputype.h            | 2 ++
 arch/arm64/kernel/cpu_errata.c              | 1 +
 4 files changed, 6 insertions(+)

--
2.43.0


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

* [PATCH 6.16-6.17 1/2] arm64: cputype: Add Neoverse-V3AE definitions
  2025-10-20  9:27 [PATCH 6.16-6.17 0/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
@ 2025-10-20  9:27 ` Ryan Roberts
  2025-10-20  9:27 ` [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
  1 sibling, 0 replies; 5+ messages in thread
From: Ryan Roberts @ 2025-10-20  9:27 UTC (permalink / raw)
  To: stable
  Cc: Ryan Roberts, catalin.marinas, will, mark.rutland,
	linux-arm-kernel, linux-kernel, James Morse

From: Mark Rutland <mark.rutland@arm.com>

Add cputype definitions for Neoverse-V3AE. These will be used for errata
detection in subsequent patches.

These values can be found in the Neoverse-V3AE TRM:

  https://developer.arm.com/documentation/SDEN-2615521/9-0/

... in section A.6.1 ("MIDR_EL1, Main ID Register").

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
---
 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 661735616787..eaec55dd3dbe 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -93,6 +93,7 @@
 #define ARM_CPU_PART_NEOVERSE_V2	0xD4F
 #define ARM_CPU_PART_CORTEX_A720	0xD81
 #define ARM_CPU_PART_CORTEX_X4		0xD82
+#define ARM_CPU_PART_NEOVERSE_V3AE	0xD83
 #define ARM_CPU_PART_NEOVERSE_V3	0xD84
 #define ARM_CPU_PART_CORTEX_X925	0xD85
 #define ARM_CPU_PART_CORTEX_A725	0xD87
@@ -182,6 +183,7 @@
 #define MIDR_NEOVERSE_V2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V2)
 #define MIDR_CORTEX_A720 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A720)
 #define MIDR_CORTEX_X4 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X4)
+#define MIDR_NEOVERSE_V3AE	MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V3AE)
 #define MIDR_NEOVERSE_V3 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V3)
 #define MIDR_CORTEX_X925 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X925)
 #define MIDR_CORTEX_A725 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A725)
--
2.43.0


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

* [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE
  2025-10-20  9:27 [PATCH 6.16-6.17 0/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
  2025-10-20  9:27 ` [PATCH 6.16-6.17 1/2] arm64: cputype: Add Neoverse-V3AE definitions Ryan Roberts
@ 2025-10-20  9:27 ` Ryan Roberts
  2025-10-20  9:30   ` kernel test robot
  1 sibling, 1 reply; 5+ messages in thread
From: Ryan Roberts @ 2025-10-20  9:27 UTC (permalink / raw)
  To: stable
  Cc: Ryan Roberts, catalin.marinas, will, mark.rutland,
	linux-arm-kernel, linux-kernel, James Morse

From: Mark Rutland <mark.rutland@arm.com>

Neoverse-V3AE is also affected by erratum #3312417, as described in its
Software Developer Errata Notice (SDEN) document:

  Neoverse V3AE (MP172) SDEN v9.0, erratum 3312417
  https://developer.arm.com/documentation/SDEN-2615521/9-0/

Enable the workaround for Neoverse-V3AE, and document this.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
---
 Documentation/arch/arm64/silicon-errata.rst | 2 ++
 arch/arm64/Kconfig                          | 1 +
 arch/arm64/kernel/cpu_errata.c              | 1 +
 3 files changed, 4 insertions(+)

diff --git a/Documentation/arch/arm64/silicon-errata.rst b/Documentation/arch/arm64/silicon-errata.rst
index b18ef4064bc0..a7ec57060f64 100644
--- a/Documentation/arch/arm64/silicon-errata.rst
+++ b/Documentation/arch/arm64/silicon-errata.rst
@@ -200,6 +200,8 @@ stable kernels.
 +----------------+-----------------+-----------------+-----------------------------+
 | ARM            | Neoverse-V3     | #3312417        | ARM64_ERRATUM_3194386       |
 +----------------+-----------------+-----------------+-----------------------------+
+| ARM            | Neoverse-V3AE   | #3312417        | ARM64_ERRATUM_3194386       |
++----------------+-----------------+-----------------+-----------------------------+
 | ARM            | MMU-500         | #841119,826419  | ARM_SMMU_MMU_500_CPRE_ERRATA|
 |                |                 | #562869,1047329 |                             |
 +----------------+-----------------+-----------------+-----------------------------+
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 393d71124f5d..1503b78f8611 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -1137,6 +1137,7 @@ config ARM64_ERRATUM_3194386
 	  * ARM Neoverse-V1 erratum 3324341
 	  * ARM Neoverse V2 erratum 3324336
 	  * ARM Neoverse-V3 erratum 3312417
+	  * ARM Neoverse-V3AE erratum 3312417

 	  On affected cores "MSR SSBS, #0" instructions may not affect
 	  subsequent speculative instructions, which may permit unexepected
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 59d723c9ab8f..21f86c160aab 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -545,6 +545,7 @@ static const struct midr_range erratum_spec_ssbs_list[] = {
 	MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
 	MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V2),
 	MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3),
+	MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3AE),
 	{}
 };
 #endif
--
2.43.0


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

* Re: [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE
  2025-10-20  9:27 ` [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
@ 2025-10-20  9:30   ` kernel test robot
  2025-10-20  9:34     ` Ryan Roberts
  0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2025-10-20  9:30 UTC (permalink / raw)
  To: Ryan Roberts; +Cc: stable, oe-kbuild-all

Hi,

Thanks for your patch.

FYI: kernel test robot notices the stable kernel rule is not satisfied.

The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3

Rule: The upstream commit ID must be specified with a separate line above the commit text.
Subject: [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE
Link: https://lore.kernel.org/stable/20251020092741.592431-3-ryan.roberts%40arm.com

Please ignore this mail if the patch is not relevant for upstream.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




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

* Re: [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE
  2025-10-20  9:30   ` kernel test robot
@ 2025-10-20  9:34     ` Ryan Roberts
  0 siblings, 0 replies; 5+ messages in thread
From: Ryan Roberts @ 2025-10-20  9:34 UTC (permalink / raw)
  To: kernel test robot; +Cc: stable, oe-kbuild-all

On 20/10/2025 10:30, kernel test robot wrote:
> Hi,
> 
> Thanks for your patch.
> 
> FYI: kernel test robot notices the stable kernel rule is not satisfied.
> 
> The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3
> 
> Rule: The upstream commit ID must be specified with a separate line above the commit text.
> Subject: [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE
> Link: https://lore.kernel.org/stable/20251020092741.592431-3-ryan.roberts%40arm.com
> 
> Please ignore this mail if the patch is not relevant for upstream.
> 

Ugh, I re-backported this verion from mainline and forgot to re-add the extras
to the commit log. I'll resend the 6.16-617 series. Sorry about that...


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

end of thread, other threads:[~2025-10-20  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20  9:27 [PATCH 6.16-6.17 0/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
2025-10-20  9:27 ` [PATCH 6.16-6.17 1/2] arm64: cputype: Add Neoverse-V3AE definitions Ryan Roberts
2025-10-20  9:27 ` [PATCH 6.16-6.17 2/2] arm64: errata: Apply workarounds for Neoverse-V3AE Ryan Roberts
2025-10-20  9:30   ` kernel test robot
2025-10-20  9:34     ` Ryan Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox