arm64: Branch predictor hardening for Cavium ThunderX2
authorJayachandran C <jnair@caviumnetworks.com>
Fri, 19 Jan 2018 12:22:47 +0000 (04:22 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 23 Jan 2018 19:59:20 +0000 (19:59 +0000)
commitf3d795d9b360523beca6d13ba64c2c532f601149
treec070edac0a5e8fe9bab727073dbeb1f72378493c
parent55b35d070c2534dfb714b883f3c3ae05d02032da
arm64: Branch predictor hardening for Cavium ThunderX2

Use PSCI based mitigation for speculative execution attacks targeting
the branch predictor. We use the same mechanism as the one used for
Cortex-A CPUs, we expect the PSCI version call to have a side effect
of clearing the BTBs.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpu_errata.c