Re: [PATCH] x86/MCE: Get microcode revision from cpu_data instead of boot_cpu_data

From: Borislav Petkov
Date: Fri Dec 01 2023 - 13:59:43 EST


On Fri, Dec 01, 2023 at 11:23:27AM +0000, Filippo Sironi wrote:
> Unfortunately, boot_cpu_data isn't updated on late microcode loading,

Looks good to me here:

[ 50.881231] microcode: Unsafe microcode update: Microcode header does not specify a required min version
[ 50.892577] microcode: Late microcode loading without minimal revision check.
[ 50.900099] microcode: You should switch to early loading, if possible.
[ 50.958919] microcode: load: updated on 6 primary CPUs with 0 siblings
[ 50.965856] microcode: revision: 0xbe -> 0xf0

That comes from:

pr_info("revision: 0x%x -> 0x%x\n", old_rev, boot_cpu_data.microcode);

--
Regards/Gruss,
Boris.

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