[PATCH 0/4] x86/microcode: Some fixes

From: Borislav Petkov
Date: Mon Jan 30 2023 - 11:17:21 EST


From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>

Hi,

here's a small set of fixes which materialized from me staring at the
AMD side of the loader code in recent times.

Comments and suggestions are always appreciated.

Thx.

[ TODO for self: Add patches 1 and 2 in patch 3's stable field as
prerequisites for backporting. ]

Borislav Petkov (AMD) (4):
x86/microcode/amd: Remove load_microcode_amd()'s bsp parameter
x86/microcode/AMD: Add a @cpu parameter to the reloading functions
x86/microcode/AMD: Fix mixed steppings support
x86/microcode/core: Return an error only when necessary

arch/x86/include/asm/microcode.h | 4 +-
arch/x86/include/asm/microcode_amd.h | 4 +-
arch/x86/kernel/cpu/microcode/amd.c | 55 +++++++++++++---------------
arch/x86/kernel/cpu/microcode/core.c | 12 +++---
4 files changed, 36 insertions(+), 39 deletions(-)

--
2.35.1