diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-12-12 11:18:47 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-12-19 20:23:53 +0300 |
commit | 92b6919d7fb29691a8bc5aca49044056683542ca (patch) | |
tree | b644dad8b98269defb42840a4236e3280b42d39a /tools/perf/scripts/python/gecko.py | |
parent | 9d86c3c974348eb4220b637fae1a2466232078b7 (diff) | |
download | linux-92b6919d7fb29691a8bc5aca49044056683542ca.tar.xz |
arm64: Kconfig: force ARM64_PAN=y when enabling TTBR0 sw PAN
There are a couple of instances of Kconfig constraints where PAN must be
enabled too if TTBR0 sw PAN is enabled, primarily to avoid dealing with
the modified TTBR0_EL1 sysreg format that is used when 52-bit physical
addressing and/or CnP are enabled (support for either implies support
for hardware PAN as well, which will supersede PAN emulation if both are
available)
Let's simplify this, and always enable ARM64_PAN when enabling TTBR0 sw
PAN. This decouples the PAN configuration from the VA size selection,
permitting us to simplify the latter in subsequent patches. (Note that
PAN and TTBR0 sw PAN can still be disabled after this patch, but not
independently)
To avoid a convoluted circular Kconfig dependency involving KCSAN, make
ARM64_MTE select ARM64_PAN too, instead of depending on it.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241212081841.2168124-13-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions