]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: armv8_deprecated: Disable swp emulation when FEAT_LSUI present
authorYeoreum Yun <yeoreum.yun@arm.com>
Sat, 14 Mar 2026 17:51:31 +0000 (17:51 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 27 Mar 2026 17:29:10 +0000 (17:29 +0000)
commite223258ed8a683d9debbb03ca1be0736f2c12e5b
tree9b1cc036711ba9e9ba55709323818782c935a86b
parent377609ae8b6ac2ef522c9dcecfa20a7123116dbf
arm64: armv8_deprecated: Disable swp emulation when FEAT_LSUI present

The purpose of supporting LSUI is to eliminate PAN toggling. CPUs that
support LSUI are unlikely to support a 32-bit runtime. Rather than
emulating the SWP instruction using LSUI instructions in order to remove
PAN toggling, simply disable SWP emulation.

Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
[catalin.marinas@arm.com: some tweaks to the in-code comment]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/armv8_deprecated.c