]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/cpu: Remove the CONFIG_X86_INVD_BUG quirk
authorIngo Molnar <mingo@kernel.org>
Fri, 25 Apr 2025 08:42:03 +0000 (10:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 6 May 2026 06:05:30 +0000 (08:05 +0200)
Now that support for 486 CPUs is gone, remove this
quirk as well.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ahmed S. Darwish <darwi@linutronix.de>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250425084216.3913608-7-mingo@kernel.org
arch/x86/Kconfig.cpu
arch/x86/kernel/traps.c

index 9b912091dabd8b48fa4a6ee92c942392e7490aad..1377edd9a99743369a3e1f4403db7cadbcfe3408 100644 (file)
@@ -248,10 +248,6 @@ config X86_F00F_BUG
        def_bool y
        depends on M586MMX || M586TSC || M586
 
-config X86_INVD_BUG
-       def_bool y
-       depends on M486SX || M486
-
 config X86_ALIGNMENT_16
        def_bool y
        depends on MCYRIXIII || MK6 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODEGX1
index 0ca3912ecb7f4282105bb19954a3af5d4b635e88..52177bce08025798362782e8c2eda84664268290 100644 (file)
@@ -1475,13 +1475,6 @@ DEFINE_IDTENTRY(exc_coprocessor_error)
 
 DEFINE_IDTENTRY(exc_simd_coprocessor_error)
 {
-       if (IS_ENABLED(CONFIG_X86_INVD_BUG)) {
-               /* AMD 486 bug: INVD in CPL 0 raises #XF instead of #GP */
-               if (!static_cpu_has(X86_FEATURE_XMM)) {
-                       __exc_general_protection(regs, 0);
-                       return;
-               }
-       }
        math_error(regs, X86_TRAP_XF);
 }