Skip to content

Commit 357dd8a

Browse files
geertuwilldeacon
authored andcommitted
arm64: cpufeature: Add "or" to mitigations for multiple errata
Several actions are not mitigations for a single erratum, but for multiple errata. However, printing a line like CPU features: detected: ARM errata 1165522, 1530923 may give the false impression that all three listed errata have been detected. This can confuse the user, who may think his Cortex-A55 is suddenly affected by a Cortex-A76 erratum. Add "or" to all descriptions for mitigations for multiple errata, to make it clear that only one or more of the errata printed are applicable, and not necessarily all of them. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent ebcea69 commit 357dd8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm64/kernel/cpu_errata.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ static const struct midr_range erratum_speculative_at_vhe_list[] = {
774774
const struct arm64_cpu_capabilities arm64_errata[] = {
775775
#ifdef CONFIG_ARM64_WORKAROUND_CLEAN_CACHE
776776
{
777-
.desc = "ARM errata 826319, 827319, 824069, 819472",
777+
.desc = "ARM errata 826319, 827319, 824069, or 819472",
778778
.capability = ARM64_WORKAROUND_CLEAN_CACHE,
779779
ERRATA_MIDR_RANGE_LIST(workaround_clean_cache),
780780
.cpu_enable = cpu_enable_cache_maint_trap,
@@ -856,7 +856,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
856856
#endif
857857
#ifdef CONFIG_ARM64_WORKAROUND_REPEAT_TLBI
858858
{
859-
.desc = "Qualcomm erratum 1009, ARM erratum 1286807",
859+
.desc = "Qualcomm erratum 1009, or ARM erratum 1286807",
860860
.capability = ARM64_WORKAROUND_REPEAT_TLBI,
861861
.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
862862
.matches = cpucap_multi_entry_cap_matches,
@@ -899,7 +899,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
899899
#endif
900900
#ifdef CONFIG_ARM64_WORKAROUND_SPECULATIVE_AT_VHE
901901
{
902-
.desc = "ARM errata 1165522, 1530923",
902+
.desc = "ARM errata 1165522 or 1530923",
903903
.capability = ARM64_WORKAROUND_SPECULATIVE_AT_VHE,
904904
ERRATA_MIDR_RANGE_LIST(erratum_speculative_at_vhe_list),
905905
},

0 commit comments

Comments
 (0)