| From eb0a6840cb4679ae2a43dec69819fea52451d46f Mon Sep 17 00:00:00 2001 |
| From: Florian Fainelli <f.fainelli@gmail.com> |
| Date: Thu, 31 Oct 2019 14:47:24 -0700 |
| Subject: [PATCH] arm64: Brahma-B53 is SSB and spectre v2 safe |
| |
| commit e059770cb1cdfbcbe3f1748f76005861cc79dd1a upstream. |
| |
| Add the Brahma-B53 CPU (all versions) to the whitelists of CPUs for the |
| SSB and spectre v2 mitigations. |
| |
| Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> |
| Signed-off-by: Will Deacon <will@kernel.org> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c |
| index 6d4b2802cf7e..7b6278d67a54 100644 |
| --- a/arch/arm64/kernel/cpu_errata.c |
| +++ b/arch/arm64/kernel/cpu_errata.c |
| @@ -488,6 +488,7 @@ static const struct midr_range arm64_ssb_cpus[] = { |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A35), |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A53), |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A55), |
| + MIDR_ALL_VERSIONS(MIDR_BRAHMA_B53), |
| {}, |
| }; |
| |
| @@ -561,6 +562,7 @@ static const struct midr_range spectre_v2_safe_list[] = { |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A35), |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A53), |
| MIDR_ALL_VERSIONS(MIDR_CORTEX_A55), |
| + MIDR_ALL_VERSIONS(MIDR_BRAHMA_B53), |
| { /* sentinel */ } |
| }; |
| |
| -- |
| 2.7.4 |
| |