]> Gentwo Git Trees - linux/.git/commit
x86/microcode/intel: Establish staging control logic
authorChang S. Bae <chang.seok.bae@intel.com>
Sun, 21 Sep 2025 22:48:37 +0000 (15:48 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 15 Oct 2025 14:47:20 +0000 (16:47 +0200)
commit740144bc6bde9d44e3a6c224cee6fe971a08fbca
tree4e777e86f3f3c651e9989fe67e36a71bb7ed3dc9
parent7cdda85ed90c1abaccaf5f05ec217acbc102c164
x86/microcode/intel: Establish staging control logic

When microcode staging is initiated, operations are carried out through
an MMIO interface. Each package has a unique interface specified by the
IA32_MCU_STAGING_MBOX_ADDR MSR, which maps to a set of 32-bit registers.

Prepare staging with the following steps:

  1.  Ensure the microcode image is 32-bit aligned to match the MMIO
      register size.

  2.  Identify each MMIO interface based on its per-package scope.

  3.  Invoke the staging function for each identified interface, which
      will be implemented separately.

  [ bp: Improve error logging. ]

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Tested-by: Anselm Busse <abusse@amazon.de>
Link: https://lore.kernel.org/all/871pznq229.ffs@tglx
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/microcode/intel.c