]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode/amd: Use cached microcode for AP load
authorThomas Gleixner <tglx@linutronix.de>
Tue, 17 Oct 2023 21:23:55 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:52 +0000 (16:45 +0100)
commit021ab466701ce0734c1cdc7ca2acf3188558324a
treed0ea98800175177631fd7dad7f37dfa1f2e3ca62
parent628478b1e42c15b6108be9ef901652253a07b879
x86/microcode/amd: Use cached microcode for AP load

commit 5af05b8d51a8e3ff5905663655c0f46d1aaae44a upstream

Now that the microcode cache is initialized before the APs are brought
up, there is no point in scanning builtin/initrd microcode during AP
loading.

Convert the AP loader to utilize the cache, which in turn makes the CPU
hotplug callback which applies the microcode after initrd/builtin is
gone, obsolete as the early loading during late hotplug operations
including the resume path depends now only on the cache.

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