arm64: ssbd: Add support for PSTATE.SSBS rather than trapping to EL3
authorWill Deacon <will.deacon@arm.com>
Tue, 7 Aug 2018 12:47:06 +0000 (13:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 14 Sep 2018 16:46:19 +0000 (17:46 +0100)
commit8f04e8e6e29c93421a95b61cad62e3918425eac7
treed933a8bd5c9e9a3094019c9bc51d5b5178eb768e
parent0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34
arm64: ssbd: Add support for PSTATE.SSBS rather than trapping to EL3

On CPUs with support for PSTATE.SSBS, the kernel can toggle the SSBD
state without needing to call into firmware.

This patch hooks into the existing SSBD infrastructure so that SSBS is
used on CPUs that support it, but it's all made horribly complicated by
the very real possibility of big/little systems that don't uniformly
provide the new capability.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/processor.h
arch/arm64/include/asm/ptrace.h
arch/arm64/include/asm/sysreg.h
arch/arm64/include/uapi/asm/ptrace.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/process.c
arch/arm64/kernel/ssbd.c