[GIT PULL] x86/microcode for v6.3-rc1

From: Borislav Petkov
Date: Mon Feb 20 2023 - 12:57:56 EST


Hi Linus,

please pull a bunch of x86 microcode loader updates and fixes for 6.3.

Thx.

---

The following changes since commit 1b929c02afd37871d5afb9d498426f83432e71c2:

Linux 6.2-rc1 (2022-12-25 13:41:39 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_microcode_for_v6.3_rc1

for you to fetch changes up to f33e0c893b22bf94d7985f1f2aa3872237560c74:

x86/microcode/core: Return an error only when necessary (2023-02-06 13:41:31 +0100)

----------------------------------------------------------------
- Fix mixed steppings support on AMD which got broken somewhere along
the way

- Improve revision reporting

- Properly check CPUID capabilities after late microcode upgrade to
avoid false positives

- A garden variety of other small fixes

----------------------------------------------------------------
Ashok Raj (6):
x86/microcode: Add a parameter to microcode_check() to store CPU capabilities
x86/microcode: Check CPU capabilities after late microcode update correctly
x86/microcode: Adjust late loading result reporting message
x86/microcode/intel: Pass the microcode revision to print_ucode_info() directly
x86/microcode/intel: Print old and new revision during early boot
x86/microcode: Allow only "1" as a late reload trigger value

Borislav Petkov (2):
x86/microcode/AMD: Rename a couple of functions
x86/microcode/AMD: Handle multiple glued containers properly

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

Guangju Wang[baidu] (1):
x86/microcode: Use the DEVICE_ATTR_RO() macro

arch/x86/include/asm/microcode.h | 4 +-
arch/x86/include/asm/microcode_amd.h | 4 +-
arch/x86/include/asm/processor.h | 3 +-
arch/x86/kernel/cpu/common.c | 45 ++++++++++++++-------
arch/x86/kernel/cpu/microcode/amd.c | 76 +++++++++++++++++------------------
arch/x86/kernel/cpu/microcode/core.c | 45 ++++++++++++---------
arch/x86/kernel/cpu/microcode/intel.c | 44 +++++++++-----------
7 files changed, 117 insertions(+), 104 deletions(-)

--
Regards/Gruss,
Boris.

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