[PATCH v3 0/6] Some fixes and cleanups for microcode

From: Ashok Raj
Date: Tue Jan 03 2023 - 13:02:30 EST


Hi Boris

This is a followup after earlier post [1]

Sending the rest of the patches after first 2 patches that were merged.

Please review and consider applying.

Changes since v1:

- Updated comments and added reviewed by from Thomas.
- Moved microcode_check() to where it originally was based on your
feedback. [2]

[1] https://lore.kernel.org/lkml/20221227192340.8358-1-ashok.raj@xxxxxxxxx/
[2] https://lore.kernel.org/lkml/Y6tMgcU2aGbx%2F6yt@xxxxxxx/

Ashok Raj (6):
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
x86/microcode/intel: Print when early microcode loading fails

arch/x86/include/asm/processor.h | 3 +-
arch/x86/kernel/cpu/common.c | 29 ++++++++++-----
arch/x86/kernel/cpu/microcode/core.c | 17 ++++++---
arch/x86/kernel/cpu/microcode/intel.c | 52 +++++++++++++--------------
4 files changed, 60 insertions(+), 41 deletions(-)


base-commit: 88603b6dc419445847923fcb7fe5080067a30f98
--
2.34.1