]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode: Add per CPU result state
authorThomas Gleixner <tglx@linutronix.de>
Tue, 17 Oct 2023 21:24:05 +0000 (23:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:53 +0000 (16:45 +0100)
commit05baf15d045fd91776f29ed7f4f31fe12fb02393
treeaf0de60d48b563201126af2a371a8e393c73107e
parent738aa6b98613b3986aab3a849b130464b44ff329
x86/microcode: Add per CPU result state

commit 4b753955e9151ad2f722137a7bcbafda756186b3 upstream

The microcode rendezvous is purely acting on global state, which does
not allow to analyze fails in a coherent way.

Introduce per CPU state where the results are written into, which allows to
analyze the return codes of the individual CPUs.

Initialize the state when walking the cpu_present_mask in the online
check to avoid another for_each_cpu() loop.

Enhance the result print out with that.

The structure is intentionally named ucode_ctrl as it will gain control
fields in subsequent changes.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231017211723.632681010@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/internal.h