diff options
author | dann frazier <[email protected]> | 2021-09-23 08:50:02 -0600 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2021-09-23 15:59:15 +0100 |
commit | 22b70e6f2da0a4c8b1421b00cfc3016bc9d4d9d4 (patch) | |
tree | bbd4e04dcf32a7db7296e56a6d1905389d2c9288 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 0e3dbf765fe22060acbcb8eb8c4d256e655a1247 (diff) |
arm64: Restore forced disabling of KPTI on ThunderX
A noted side-effect of commit 0c6c2d3615ef ("arm64: Generate cpucaps.h")
is that cpucaps are now sorted, changing the enumeration order. This
assumed no dependencies between cpucaps, which turned out not to be true
in one case. UNMAP_KERNEL_AT_EL0 currently needs to be processed after
WORKAROUND_CAVIUM_27456. ThunderX systems are incompatible with KPTI, so
unmap_kernel_at_el0() bails if WORKAROUND_CAVIUM_27456 is set. But because
of the sorting, WORKAROUND_CAVIUM_27456 will not yet have been considered
when unmap_kernel_at_el0() checks for it, so the kernel tries to
run w/ KPTI - and quickly falls over.
Because all ThunderX implementations have homogeneous CPUs, we can remove
this dependency by just checking the current CPU for the erratum.
Fixes: 0c6c2d3615ef ("arm64: Generate cpucaps.h")
Cc: <[email protected]> # 5.13.x
Signed-off-by: dann frazier <[email protected]>
Suggested-by: Suzuki K Poulose <[email protected]>
Reviewed-by: Suzuki K Poulose <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions