Skip to content

Commit 53375a5

Browse files
Peter Zijlstrasuryasaimadhu
authored andcommitted
x86/cpu: Resort and comment Intel models
The INTEL_FAM6 list has become a mess again. Try and bring some sanity back into it. Where previously we had one microarch per year and a number of SKUs within that, this no longer seems to be the case. We now get different uarch names that share a 'core' design. Add the core name starting at skylake and reorder to keep the cores in chronological order. Furthermore, Intel marketed the names {Amber, Coffee, Whiskey} Lake, but those are in fact steppings of Kaby Lake, add comments for them. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9bc0bb5 commit 53375a5

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

arch/x86/include/asm/intel-family.h

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
* _EP - 2 socket server parts
3333
* _EX - 4+ socket server parts
3434
*
35-
* The #define line may optionally include a comment including platform names.
35+
* The #define line may optionally include a comment including platform or core
36+
* names. An exception is made for kabylake where steppings seem to have gotten
37+
* their own names :-(
3638
*/
3739

3840
/* Wildcard match for FAM6 so X86_MATCH_INTEL_FAM6_MODEL(ANY) works */
@@ -69,35 +71,39 @@
6971
#define INTEL_FAM6_BROADWELL_X 0x4F
7072
#define INTEL_FAM6_BROADWELL_D 0x56
7173

72-
#define INTEL_FAM6_SKYLAKE_L 0x4E
73-
#define INTEL_FAM6_SKYLAKE 0x5E
74-
#define INTEL_FAM6_SKYLAKE_X 0x55
75-
#define INTEL_FAM6_KABYLAKE_L 0x8E
76-
#define INTEL_FAM6_KABYLAKE 0x9E
74+
#define INTEL_FAM6_SKYLAKE_L 0x4E /* Sky Lake */
75+
#define INTEL_FAM6_SKYLAKE 0x5E /* Sky Lake */
76+
#define INTEL_FAM6_SKYLAKE_X 0x55 /* Sky Lake */
7777

78-
#define INTEL_FAM6_CANNONLAKE_L 0x66
78+
#define INTEL_FAM6_KABYLAKE_L 0x8E /* Sky Lake */
79+
/* AMBERLAKE_L 0x8E Sky Lake -- s: 9 */
80+
/* COFFEELAKE_L 0x8E Sky Lake -- s: 10 */
81+
/* WHISKEYLAKE_L 0x8E Sky Lake -- s: 11,12 */
7982

80-
#define INTEL_FAM6_ICELAKE_X 0x6A
81-
#define INTEL_FAM6_ICELAKE_D 0x6C
82-
#define INTEL_FAM6_ICELAKE 0x7D
83-
#define INTEL_FAM6_ICELAKE_L 0x7E
84-
#define INTEL_FAM6_ICELAKE_NNPI 0x9D
83+
#define INTEL_FAM6_KABYLAKE 0x9E /* Sky Lake */
84+
/* COFFEELAKE 0x9E Sky Lake -- s: 10-13 */
8585

86-
#define INTEL_FAM6_TIGERLAKE_L 0x8C
87-
#define INTEL_FAM6_TIGERLAKE 0x8D
86+
#define INTEL_FAM6_COMETLAKE 0xA5 /* Sky Lake */
87+
#define INTEL_FAM6_COMETLAKE_L 0xA6 /* Sky Lake */
8888

89-
#define INTEL_FAM6_COMETLAKE 0xA5
90-
#define INTEL_FAM6_COMETLAKE_L 0xA6
89+
#define INTEL_FAM6_CANNONLAKE_L 0x66 /* Palm Cove */
9190

92-
#define INTEL_FAM6_ROCKETLAKE 0xA7
91+
#define INTEL_FAM6_ICELAKE_X 0x6A /* Sunny Cove */
92+
#define INTEL_FAM6_ICELAKE_D 0x6C /* Sunny Cove */
93+
#define INTEL_FAM6_ICELAKE 0x7D /* Sunny Cove */
94+
#define INTEL_FAM6_ICELAKE_L 0x7E /* Sunny Cove */
95+
#define INTEL_FAM6_ICELAKE_NNPI 0x9D /* Sunny Cove */
9396

94-
#define INTEL_FAM6_SAPPHIRERAPIDS_X 0x8F
97+
#define INTEL_FAM6_LAKEFIELD 0x8A /* Sunny Cove / Tremont */
9598

96-
/* Hybrid Core/Atom Processors */
99+
#define INTEL_FAM6_ROCKETLAKE 0xA7 /* Cypress Cove */
97100

98-
#define INTEL_FAM6_LAKEFIELD 0x8A
99-
#define INTEL_FAM6_ALDERLAKE 0x97
100-
#define INTEL_FAM6_ALDERLAKE_L 0x9A
101+
#define INTEL_FAM6_TIGERLAKE_L 0x8C /* Willow Cove */
102+
#define INTEL_FAM6_TIGERLAKE 0x8D /* Willow Cove */
103+
#define INTEL_FAM6_SAPPHIRERAPIDS_X 0x8F /* Willow Cove */
104+
105+
#define INTEL_FAM6_ALDERLAKE 0x97 /* Golden Cove / Gracemont */
106+
#define INTEL_FAM6_ALDERLAKE_L 0x9A /* Golden Cove / Gracemont */
101107

102108
/* "Small Core" Processors (Atom) */
103109

0 commit comments

Comments
 (0)