summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
authorSohil Mehta <sohil.mehta@intel.com>2026-01-20 15:47:30 -0800
committerDave Hansen <dave.hansen@linux.intel.com>2026-03-03 09:49:45 -0800
commit68400c1aaf02636a97c45ba198110b66feb270a9 (patch)
treea4948e403b0757bc0e283f1cb11345c5e824cae6 /arch/x86/kernel/cpu
parent0021e71cfb96d7816e2027a76b813da6003c3a0c (diff)
downloadlinux-next-68400c1aaf02636a97c45ba198110b66feb270a9.tar.gz
linux-next-68400c1aaf02636a97c45ba198110b66feb270a9.zip
x86/cpu: Remove LASS restriction on EFI
The initial LASS enabling has been deferred to much later during boot, and EFI runtime services now run with LASS temporarily disabled. This removes LASS from the path of all EFI services. Remove the LASS restriction on EFI config, as the two can now coexist. Signed-off-by: Sohil Mehta <sohil.mehta@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Tested-by: Tony Luck <tony.luck@intel.com> Tested-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> Link: https://patch.msgid.link/20260120234730.2215498-4-sohil.mehta@intel.com
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 8c56d5970d61..3557f0e6b3aa 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -415,14 +415,9 @@ static __always_inline void setup_lass(struct cpuinfo_x86 *c)
* Legacy vsyscall page access causes a #GP when LASS is active.
* Disable LASS because the #GP handler doesn't support vsyscall
* emulation.
- *
- * Also disable LASS when running under EFI, as some runtime and
- * boot services rely on 1:1 mappings in the lower half.
*/
- if (IS_ENABLED(CONFIG_X86_VSYSCALL_EMULATION) ||
- IS_ENABLED(CONFIG_EFI)) {
+ if (IS_ENABLED(CONFIG_X86_VSYSCALL_EMULATION))
setup_clear_cpu_cap(X86_FEATURE_LASS);
- }
}
static int enable_lass(unsigned int cpu)