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

From: Borislav Petkov
Date: Mon Aug 28 2023 - 08:29:06 EST


Hi Linus,

please pull the first part of Thomas' microcode loader work, for 6.6.
The other part wasn't fully ready in time so it will follow on later.

Thx.

---

The following changes since commit 6eaae198076080886b9e7d57f4ae06fa782f90ef:

Linux 6.5-rc3 (2023-07-23 15:24:10 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 4d2b748305e96fb76202a0d1072a285b1500bff3:

x86/microcode: Remove remaining references to CONFIG_MICROCODE_AMD (2023-08-26 13:37:55 +0200)

----------------------------------------------------------------
- The first, cleanup part of the microcode loader reorg tglx has been
working on. This part makes the loader core code as it is practically
enabled on pretty much every baremetal machine so there's no need to
have the Kconfig items. In addition, there are cleanups which prepare
for future feature enablement.

----------------------------------------------------------------
Ashok Raj (2):
x86/microcode: Include vendor headers into microcode.h
x86/microcode/intel: Rename get_datasize() since its used externally

Borislav Petkov (AMD) (1):
x86/microcode/AMD: Rip out static buffers

Lukas Bulwahn (1):
x86/microcode: Remove remaining references to CONFIG_MICROCODE_AMD

Sebastian Andrzej Siewior (1):
x86/microcode: Remove microcode_mutex

Thomas Gleixner (7):
x86/mm: Remove unused microcode.h include
x86/microcode: Hide the config knob
x86/microcode/intel: Move microcode functions out of cpu/intel.c
x86/microcode: Make reload_early_microcode() static
x86/microcode: Move core specific defines to local header
x86/microcode/intel: Remove debug code
x86/microcode/intel: Remove pointless mutex

arch/x86/Kconfig | 38 +---
arch/x86/configs/i386_defconfig | 1 -
arch/x86/configs/x86_64_defconfig | 1 -
arch/x86/include/asm/microcode.h | 154 +++++-----------
arch/x86/include/asm/microcode_amd.h | 58 ------
arch/x86/include/asm/microcode_intel.h | 88 ---------
arch/x86/kernel/cpu/common.c | 4 +-
arch/x86/kernel/cpu/intel.c | 176 +-----------------
arch/x86/kernel/cpu/microcode/Makefile | 4 +-
arch/x86/kernel/cpu/microcode/amd.c | 133 +++++++-------
arch/x86/kernel/cpu/microcode/core.c | 17 +-
arch/x86/kernel/cpu/microcode/intel.c | 304 +++++++++++++++++++++----------
arch/x86/kernel/cpu/microcode/internal.h | 131 +++++++++++++
arch/x86/mm/init.c | 1 -
drivers/platform/x86/intel/ifs/load.c | 7 +-
15 files changed, 466 insertions(+), 651 deletions(-)
delete mode 100644 arch/x86/include/asm/microcode_amd.h
delete mode 100644 arch/x86/include/asm/microcode_intel.h
create mode 100644 arch/x86/kernel/cpu/microcode/internal.h


--
Regards/Gruss,
Boris.

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