Skip to content

Commit e42890c

Browse files
robherringroxanan1996
authored andcommitted
arm64: Rename ARM64_WORKAROUND_2966298
BugLink: https://bugs.launchpad.net/bugs/2059068 commit 546b7cd upstream. In preparation to apply ARM64_WORKAROUND_2966298 for multiple errata, rename the kconfig and capability. No functional change. Cc: stable@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20240110-arm-errata-a510-v1-1-d02bc51aeeee@kernel.org Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent cf5920e commit e42890c

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

arch/arm64/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,12 @@ config ARM64_ERRATUM_2645198
10381038

10391039
If unsure, say Y.
10401040

1041+
config ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
1042+
bool
1043+
10411044
config ARM64_ERRATUM_2966298
10421045
bool "Cortex-A520: 2966298: workaround for speculatively executed unprivileged load"
1046+
select ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
10431047
default y
10441048
help
10451049
This option adds the workaround for ARM Cortex-A520 erratum 2966298.

arch/arm64/kernel/cpu_errata.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
730730
.cpu_enable = cpu_clear_bf16_from_user_emulation,
731731
},
732732
#endif
733-
#ifdef CONFIG_ARM64_ERRATUM_2966298
733+
#ifdef CONFIG_ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
734734
{
735735
.desc = "ARM erratum 2966298",
736-
.capability = ARM64_WORKAROUND_2966298,
736+
.capability = ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD,
737737
/* Cortex-A520 r0p0 - r0p1 */
738738
ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A520, 0, 0, 1),
739739
},

arch/arm64/kernel/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ alternative_else_nop_endif
428428
ldp x28, x29, [sp, #16 * 14]
429429

430430
.if \el == 0
431-
alternative_if ARM64_WORKAROUND_2966298
431+
alternative_if ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
432432
tlbi vale1, xzr
433433
dsb nsh
434434
alternative_else_nop_endif

arch/arm64/tools/cpucaps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ WORKAROUND_2077057
8383
WORKAROUND_2457168
8484
WORKAROUND_2645198
8585
WORKAROUND_2658417
86-
WORKAROUND_2966298
8786
WORKAROUND_AMPERE_AC03_CPU_38
8887
WORKAROUND_TRBE_OVERWRITE_FILL_MODE
8988
WORKAROUND_TSB_FLUSH_FAILURE
@@ -99,3 +98,4 @@ WORKAROUND_NVIDIA_CARMEL_CNP
9998
WORKAROUND_QCOM_FALKOR_E1003
10099
WORKAROUND_REPEAT_TLBI
101100
WORKAROUND_SPECULATIVE_AT
101+
WORKAROUND_SPECULATIVE_UNPRIV_LOAD

0 commit comments

Comments
 (0)