Skip to contentSkip to conversation

x86/microcode/intel: Drop wbinvd(), no longer required

PATCH In review Ashok Raj 2 participants 2 messages Aug 29, 2022 – Sep 2, 2022

Subsystems (2)
lore
Share & tools
lore

Ashok Raj

author
#0 lore raw

PATCH 1/1 x86/microcode/intel: Drop wbinvd(), no longer required

Some older processors had a bad interaction when updating microcode if the caches were dirty causing machine checks. The wbinvd() was added to mitigate that before doing microcode updates. Now that Linux checks for the minimum version before performing an update, those old microcode versions can't be loaded. Remove calls to wbinvd().

Depends on Link below:

---
 arch/x86/kernel/cpu/microcode/intel.c | 12 ------------
 1 file changed, 12 deletions(-)
arch/x86/kernel/cpu/microcode/intel.c +0 -12
index 332ba19e0147..ae3c7ed15e79 100644
@@ -536,12 +536,6 @@ static int apply_microcode_early(struct ucode_cpu_info *uci, bool early)
 		return UCODE_OK;
 	}
 
-	/*
-	 * Writeback and invalidate caches before updating microcode to avoid
-	 * internal issues depending on what the microcode is updating.
-	 */
-	native_wbinvd();
-
 	/* write microcode via MSR 0x79 */
 	native_wrmsrl(MSR_IA32_UCODE_WRITE, (unsigned long)mc->bits);
 
@@ -758,12 +752,6 @@ static enum ucode_state apply_microcode_intel(int cpu)
 		goto out;
 	}
 
-	/*
-	 * Writeback and invalidate caches before updating microcode to avoid
-	 * internal issues depending on what the microcode is updating.
-	 */
-	native_wbinvd();
-
 	/* write microcode via MSR 0x79 */
 	wrmsrl(MSR_IA32_UCODE_WRITE, (unsigned long)mc->bits);
 
Signature · 1 line
2.32.0
maintainer
#1 lore raw
Quoted 1 line · Ashok Raj

Depends on Link below:

Please send patches together in a set like everyone else. This one should simply be part of the min_rev set - not sent separately.

Thx.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette