[Patch v5 0/5] Some fixes and cleanups for microcode

From: Ashok Raj
Date: Fri Jan 20 2023 - 11:19:43 EST


Hi Boris,

Here is a followup after v4[1] with all comments addressed.

Please review and apply.

Changes since v4[1]:

Boris:
- Fix compile errors for 32bit.
- Drop last patch that displays loading failure during early load.

Changes since v3[2]:

Tony, Ingo
- Display clear message when microcode load fails.

Boris
- Changed function names microcode_store_cpu_caps() ->
store_cpu_caps().
- Fix commit logs
- Document new parameter to microcode_check()

Dave Hansen
- Fix commit log
- Change parameter names from generic to something that's
meaningful.

[1] https://lore.kernel.org/lkml/20230109153555.4986-1-ashok.raj@xxxxxxxxx/
[2] https://lore.kernel.org/lkml/20230103180212.333496-1-ashok.raj@xxxxxxxxx/

Ashok Raj (5):
x86/microcode: Add a parameter to microcode_check() to store CPU
capabilities
x86/microcode/core: Take a snapshot before and after applying
microcode
x86/microcode: Display revisions only when update is successful
x86/microcode/intel: Use a plain revision argument for
print_ucode_rev()
x86/microcode/intel: Print old and new rev during early boot

arch/x86/include/asm/processor.h | 3 +-
arch/x86/kernel/cpu/common.c | 48 +++++++++++++++++++--------
arch/x86/kernel/cpu/microcode/core.c | 20 ++++++++---
arch/x86/kernel/cpu/microcode/intel.c | 41 +++++++++--------------
4 files changed, 69 insertions(+), 43 deletions(-)


base-commit: 5dc4c995db9eb45f6373a956eb1f69460e69e6d4

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>
--
2.34.1