Skip to contentSkip to conversation

arm64: cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list

PATCH Applied Hanjun Guo 2 participants 2 messages Dec 20, 2019 arm64

lore
Share & tools
lore

Hanjun Guo

author
#0 lore raw

PATCH 1/1 arm64: cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list

From: Wei Li <[email protected]>

HiSilicon Taishan v110 CPUs didn't implement CSV2 field of the ID_AA64PFR0_EL1, but spectre-v2 is mitigated by hardware, so whitelist the MIDR in the safe list.

[hanjun: re-write the commit log]
---
 arch/arm64/kernel/cpu_errata.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/cpu_errata.c +1 -0
index 6a09ca7..85f4bec 100644
@@ -547,6 +547,7 @@ int get_spectre_v2_workaround_state(void)
 	MIDR_ALL_VERSIONS(MIDR_CORTEX_A53),
 	MIDR_ALL_VERSIONS(MIDR_CORTEX_A55),
 	MIDR_ALL_VERSIONS(MIDR_BRAHMA_B53),
+	MIDR_ALL_VERSIONS(MIDR_HISI_TSV110),
 	{ /* sentinel */ }
 };
 
Signature · 7 lines
1.7.12.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw
Quoted 9 lines · Hanjun Guo

From: Wei Li <[email protected]>

HiSilicon Taishan v110 CPUs didn't implement CSV2 field of the ID_AA64PFR0_EL1, but spectre-v2 is mitigated by hardware, so whitelist the MIDR in the safe list.

[hanjun: re-write the commit log]

Queued for 5.5. Thanks.

Signature · 6 lines
Catalin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel