Skip to content

Commit 546b7cd

Browse files
robherringwilldeacon
authored andcommitted
arm64: Rename ARM64_WORKAROUND_2966298
In preparation to apply ARM64_WORKAROUND_2966298 for multiple errata, rename the kconfig and capability. No functional change. Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 3931261 commit 546b7cd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

arch/arm64/Kconfig

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

10381038
If unsure, say Y.
10391039

1040+
config ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
1041+
bool
1042+
10401043
config ARM64_ERRATUM_2966298
10411044
bool "Cortex-A520: 2966298: workaround for speculatively executed unprivileged load"
1045+
select ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
10421046
default y
10431047
help
10441048
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
@@ -713,10 +713,10 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
713713
MIDR_FIXED(MIDR_CPU_VAR_REV(1,1), BIT(25)),
714714
},
715715
#endif
716-
#ifdef CONFIG_ARM64_ERRATUM_2966298
716+
#ifdef CONFIG_ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
717717
{
718718
.desc = "ARM erratum 2966298",
719-
.capability = ARM64_WORKAROUND_2966298,
719+
.capability = ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD,
720720
/* Cortex-A520 r0p0 - r0p1 */
721721
ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A520, 0, 0, 1),
722722
},

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
@@ -84,7 +84,6 @@ WORKAROUND_2077057
8484
WORKAROUND_2457168
8585
WORKAROUND_2645198
8686
WORKAROUND_2658417
87-
WORKAROUND_2966298
8887
WORKAROUND_AMPERE_AC03_CPU_38
8988
WORKAROUND_TRBE_OVERWRITE_FILL_MODE
9089
WORKAROUND_TSB_FLUSH_FAILURE
@@ -100,3 +99,4 @@ WORKAROUND_NVIDIA_CARMEL_CNP
10099
WORKAROUND_QCOM_FALKOR_E1003
101100
WORKAROUND_REPEAT_TLBI
102101
WORKAROUND_SPECULATIVE_AT
102+
WORKAROUND_SPECULATIVE_UNPRIV_LOAD

0 commit comments

Comments
 (0)