[Part 2 v2[cleanup] 0/4] Some additional cleanups in microcode
From: Ashok Raj
Date: Sat Jan 21 2023 - 16:35:31 EST
Hi Thomas and Boris,
This mini series is in response to Thomas's feedback here[1].
I hope this addresses all/most of your concerns you raised in this thread.
Sorry if I missed any, drop more hints and I'll fix them up.
Patch3 needs an AMD change as well. I wasn't confident looking at the
source that was returning the patchid vs reading fromt he real MSR. I'll
check with Boris to confirm before I submit this again.
[1] https://lore.kernel.org/lkml/87y1pygiyf.ffs@tglx/
Now that the other patches are now staged in tip/x86/microcode,
this series applies on top of that.
Cheers,
Ashok
Ashok Raj (4):
x86/microcode: Taint kernel only if microcode loading was successful
x86/microcode: Report invalid writes to reload sysfs file
x86/microcode/intel: Fix collect_cpu_info() to reflect current
microcode
x86/microcode: Do not call apply_microde() on sibling threads
arch/x86/kernel/cpu/microcode/core.c | 28 ++++++++++++++-------------
arch/x86/kernel/cpu/microcode/intel.c | 10 +++++++++-
2 files changed, 24 insertions(+), 14 deletions(-)
Cc: LKML <linux-kernel@xxxxxxxxxxxxxxx>
Cc: x86 <x86@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Tony Luck <tony.luck@xxxxxxxxx>
Cc: Dave Hansen <dave.hansen@xxxxxxxxx>
Cc: Alison Schofield <alison.schofield@xxxxxxxxx>
Cc: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Cc: Thomas Gleixner (Intel) <tglx@xxxxxxxxxxxxx>
Cc: Tom Lendacky <thomas.lendacky@xxxxxxx>
Cc: Stefan Talpalaru <stefantalpalaru@xxxxxxxxx>
Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Cc: Jonathan Corbet <corbet@xxxxxxx>
Cc: Rafael J. Wysocki <rafael@xxxxxxxxxx>
Cc: Peter Zilstra (Intel) <peterz@xxxxxxxxxxxxx>
Cc: Andy Lutomirski <luto@xxxxxxxxxx>
Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
Cc: Martin Pohlack <mpohlack@xxxxxxxxx>
--
2.34.1