]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: spectre-v2: add Cortex A8 and A15 validation of the IBE bit
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 10 May 2018 12:09:54 +0000 (13:09 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 May 2018 09:40:02 +0000 (10:40 +0100)
commit7fbc326656ca15d4070b08de4f0c9f9d7aa6b377
treed8848ddadb77fc5dc2e4f47573aadc9d0aa61469
parent6ab6f890ed4cca44a2c8f6f76b5bdbb8b90fea8e
ARM: spectre-v2: add Cortex A8 and A15 validation of the IBE bit

When the branch predictor hardening is enabled, firmware must have set
the IBE bit in the auxiliary control register.  If this bit has not
been set, the Spectre workarounds will not be functional.

Add validation that this bit is set, and print a warning at alert level
if this is not the case.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
arch/arm/mm/Makefile
arch/arm/mm/proc-v7-bugs.c [new file with mode: 0644]
arch/arm/mm/proc-v7.S