]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cpu: Add a steppings field to struct x86_cpu_id
authorMark Gross <mgross@linux.intel.com>
Tue, 28 Apr 2020 14:58:20 +0000 (16:58 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 11 Jun 2020 18:05:56 +0000 (19:05 +0100)
commitbed86e750bb02981a5efe110b7e9ae3d989a2e73
treec6a95a7a11bb4ad237a695d841359885d7c4f46a
parent582f3009d4511bdd12a4d88ae52da46359cd88aa
x86/cpu: Add a steppings field to struct x86_cpu_id

commit e9d7144597b10ff13ff2264c059f7d4a7fbc89ac upstream.

Intel uses the same family/model for several CPUs. Sometimes the
stepping must be checked to tell them apart.

On x86 there can be at most 16 steppings. Add a steppings bitmask to
x86_cpu_id and a X86_MATCH_VENDOR_FAMILY_MODEL_STEPPING_FEATURE macro
and support for matching against family/model/stepping.

 [ bp: Massage.
   tglx: Lightweight variant for backporting ]

Signed-off-by: Mark Gross <mgross@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/include/asm/cpu_device_id.h
arch/x86/kernel/cpu/match.c
include/linux/mod_devicetable.h