]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8937/1: spectre-v2: remove Brahma-B53 from hardening
authorDoug Berger <opendmb@gmail.com>
Mon, 11 Nov 2019 03:32:04 +0000 (04:32 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 16 Nov 2019 10:51:23 +0000 (10:51 +0000)
commitcc5644a57462fcf30fb610bd8066f8b79320f8cd
tree5a8d60daadc61e5b4b8cad228e2446961311aded
parent4e9d4c560422c5bec079ab9d9d165a0f353286e1
ARM: 8937/1: spectre-v2: remove Brahma-B53 from hardening

When the default processor handling was added to the function
cpu_v7_spectre_init() it only excluded other ARM implemented processor
cores. The Broadcom Brahma B53 core is not implemented by ARM so it
ended up falling through into the set of processors that attempt to use
the ARM_SMCCC_ARCH_WORKAROUND_1 service to harden the branch predictor.

Since this workaround is not necessary for the Brahma-B53 this commit
explicitly checks for it and prevents it from applying a branch
predictor hardening workaround.

Fixes: e1fb65704436 ("ARM: spectre-v2: add firmware based hardening")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/proc-v7-bugs.c