]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: Update the Intel processor flag scan check
authorSohil Mehta <sohil.mehta@intel.com>
Wed, 19 Feb 2025 18:41:21 +0000 (18:41 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:19:38 +0000 (11:19 +0100)
commit7e6b0a2e4152f4046af95eeb46f8b4f9b2a7398d
tree7b8e1a4e02c266832c8ac51e6652d7207f369d68
parent7e67f3617228318da655dc87bc705f9c5f7bb101
x86/microcode: Update the Intel processor flag scan check

The Family model check to read the processor flag MSR is misleading and
potentially incorrect. It doesn't consider Family while comparing the
model number. The original check did have a Family number but it got
lost/moved during refactoring.

intel_collect_cpu_info() is called through multiple paths such as early
initialization, CPU hotplug as well as IFS image load. Some of these
flows would be error prone due to the ambiguous check.

Correct the processor flag scan check to use a Family number and update
it to a VFM based one to make it more readable.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20250219184133.816753-4-sohil.mehta@intel.com
arch/x86/include/asm/intel-family.h
arch/x86/kernel/cpu/microcode/intel.c