]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add AMPERE1 to the Spectre-BHB affected list
authorD Scott Phillips <scott@os.amperecomputing.com>
Tue, 11 Oct 2022 02:21:40 +0000 (19:21 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Oct 2022 16:36:06 +0000 (17:36 +0100)
commit91fde74b32fe597c8642021357710950d5f1c57f
tree9551dd36a66919bbadd41c4f07deb1c59de5168e
parentc0bbf95c8d2296ffa10e5200efbf00a5a5a78725
arm64: Add AMPERE1 to the Spectre-BHB affected list

Per AmpereOne erratum AC03_CPU_12, "Branch history may allow control of
speculative execution across software contexts," the AMPERE1 core needs the
bhb clearing loop to mitigate Spectre-BHB, with a loop iteration count of
11.

Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20221011022140.432370-1-scott@os.amperecomputing.com
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/proton-pack.c