[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] xen/x86: import intel-family.h from Linux


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 20 Jan 2022 17:13:00 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xDiLfegh1LN0Ovmkbt1PyxYFwjVYi1Vv6NSlbHV9b98=; b=Dt+SBESrOYcBcgmoXZ10455ZAEuZ4bjT9XPp3H2SJtiqKc9viywassdp4LsPNmc5mdRmOWdBN7khtm36MC/lKB8OuOn7iA/OKVRkbuI8/nJHQSKhX2SxdEo8ShvStKJ6Qu+cCjAm21ovDtqSm7WdC+itbDZrINlQqc0IzEG1ydwfnIhsyNjcHDc/Cgc9yCPiwGN2R151JL5M18Kf5B5Ga6yXyHRFPXc/5w/7oGzEJNSoa7qt516+ghhfBHMG/V6zPD5EDoLVFVFqVxyEfmw1AP4FaRB/ZjUtaOppWb60rPy+EKcDi396WIPt7htx4zFw1mY1nv4hPSPwQC/MAw4qVQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bE8nATy/ocp0BloJNj5HaKDoDVrauwBB7C8IrJP1GJ9wdnKq7C6+r0uJihcqqIjN6DHoP54n8HueXgAZmodEPw/6M9/iaYkF50tY7xrrpvMkiTAZmff7o9Tmjnw7dkauhgCDWR0OrMK9+/9oclJjL6WMf06D+n7k8VIOnCiWknIv8D1yFmXcITDZEaRYbfJvi7u7iIHtPlxLkcBJ+WJ4zzUZlsn/XmmZYm4Ih3VBwZsAZDY5WKpxK22NNdGWrJuFFNbKZVkFJZ5i4jCsblFqX+DJmy7izgOR5FCsdhbZ1edSH0E7Knr1eL6nMrXrxqFg9aiJriwlBDjAZroQDqKitQ==
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 20 Jan 2022 16:13:19 +0000
  • Ironport-data: A9a23:LfPTiaseUlR1gqrnv/MYfYWRsefnVLdZMUV32f8akzHdYApBsoF/q tZmKTqCOvaJYWD3LopwPdm+8UkOv8XWzNJmG1dkripnEHga+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZQP0VOZigHtIQMsadUsxKbVIiGHdJZS5LwbZj2NYx24DhWWthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ Npl8syMEFkTDvz3kuU5byRzFQF7Pp9J5+qSSZS/mZT7I0zudnLtx7NlDV0sPJ1e8eFyaY1M3 aVGcnZXNEnF3r/ohuLgIgVvrp1LwM3DJoQQt2sm1TjEJf0nXYrCU+PB4towMDIY2JoSRKeFN 5ZxhTxHYw3LOy9kJWksUJsgt8i1p3ulaQBjgQfAzUYwyzeKl1EguFT3C/LKfvSaSMMTmVyXz krE9WnkBhARNPSE1CGItHmrg4fnjS79HY4fCrC83vprm0GIgHweDgUMUlm2quX/jVSxM++zM GRNpHBo9/JrshX2EJ+tBHVUvUJooDZbC+YJTdcKuTqHy47o3i2fJm0HfDFePYlOWNANeRQm0 VqAntXMDDNpsaGIRX/1yop4vQ9eKgBOczZcOHZsoR8t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33gaISDAsQemQIGIKZOTHr82jruOaXfZXbyRXkDVnlFmTmcXHLyQ=
  • Ironport-sdr: ZKi6jp4rgwNp3MDwAbXg6HzzUKNDZlJ7xAa84XgvQh9NqPjp9aAurw97/+nB9Syfo+UQXaWtDT /+/cANUprf0lWS3kAm2dmn3+kkWX7/Bts+n3ruDhjVdzbQPivm1DEspbonIU33Wqrwdrbsk6bh Nn/YX0GaFLcOu1+0xT90JnoHl+i0xljjzxlbq2tHzlKbEBdMRH0l2T+qVMk4E58zFG5rCTauJM TyZ7RWmyTzK1iy0L+TeqgILV/uvrqYu+r3u8kgQfypCXMkjK4j6dgbX1VFs3eBojudEteEeqGt I8PcksZ+hsELwplJsgC9tqLY
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Last commit to the file is:

7d697f0d5737 x86/cpu: Drop spurious underscore from RAPTOR_LAKE #define

This should help the readability of code that's currently open-coding
Intel model numbers.

No change introduced to existing code, it's expected that new code
could start using the defines. Changing existing users could cause
quite a lot of code churn.

Requested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
 xen/arch/x86/include/asm/intel-family.h | 145 ++++++++++++++++++++++++
 1 file changed, 145 insertions(+)
 create mode 100644 xen/arch/x86/include/asm/intel-family.h

diff --git a/xen/arch/x86/include/asm/intel-family.h 
b/xen/arch/x86/include/asm/intel-family.h
new file mode 100644
index 0000000000..ffc49151be
--- /dev/null
+++ b/xen/arch/x86/include/asm/intel-family.h
@@ -0,0 +1,145 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_X86_INTEL_FAMILY_H
+#define _ASM_X86_INTEL_FAMILY_H
+
+/*
+ * "Big Core" Processors (Branded as Core, Xeon, etc...)
+ *
+ * While adding a new CPUID for a new microarchitecture, add a new
+ * group to keep logically sorted out in chronological order. Within
+ * that group keep the CPUID for the variants sorted by model number.
+ *
+ * The defined symbol names have the following form:
+ *     INTEL_FAM6{OPTFAMILY}_{MICROARCH}{OPTDIFF}
+ * where:
+ * OPTFAMILY   Describes the family of CPUs that this belongs to. Default
+ *             is assumed to be "_CORE" (and should be omitted). Other values
+ *             currently in use are _ATOM and _XEON_PHI
+ * MICROARCH   Is the code name for the micro-architecture for this core.
+ *             N.B. Not the platform name.
+ * OPTDIFF     If needed, a short string to differentiate by market segment.
+ *
+ *             Common OPTDIFFs:
+ *
+ *                     - regular client parts
+ *             _L      - regular mobile parts
+ *             _G      - parts with extra graphics on
+ *             _X      - regular server parts
+ *             _D      - micro server parts
+ *
+ *             Historical OPTDIFFs:
+ *
+ *             _EP     - 2 socket server parts
+ *             _EX     - 4+ socket server parts
+ *
+ * The #define line may optionally include a comment including platform or core
+ * names. An exception is made for skylake/kabylake where steppings seem to 
have gotten
+ * their own names :-(
+ */
+
+#define INTEL_FAM6_CORE_YONAH          0x0E
+
+#define INTEL_FAM6_CORE2_MEROM         0x0F
+#define INTEL_FAM6_CORE2_MEROM_L       0x16
+#define INTEL_FAM6_CORE2_PENRYN                0x17
+#define INTEL_FAM6_CORE2_DUNNINGTON    0x1D
+
+#define INTEL_FAM6_NEHALEM             0x1E
+#define INTEL_FAM6_NEHALEM_G           0x1F /* Auburndale / Havendale */
+#define INTEL_FAM6_NEHALEM_EP          0x1A
+#define INTEL_FAM6_NEHALEM_EX          0x2E
+
+#define INTEL_FAM6_WESTMERE            0x25
+#define INTEL_FAM6_WESTMERE_EP         0x2C
+#define INTEL_FAM6_WESTMERE_EX         0x2F
+
+#define INTEL_FAM6_SANDYBRIDGE         0x2A
+#define INTEL_FAM6_SANDYBRIDGE_X       0x2D
+#define INTEL_FAM6_IVYBRIDGE           0x3A
+#define INTEL_FAM6_IVYBRIDGE_X         0x3E
+
+#define INTEL_FAM6_HASWELL             0x3C
+#define INTEL_FAM6_HASWELL_X           0x3F
+#define INTEL_FAM6_HASWELL_L           0x45
+#define INTEL_FAM6_HASWELL_G           0x46
+
+#define INTEL_FAM6_BROADWELL           0x3D
+#define INTEL_FAM6_BROADWELL_G         0x47
+#define INTEL_FAM6_BROADWELL_X         0x4F
+#define INTEL_FAM6_BROADWELL_D         0x56
+
+#define INTEL_FAM6_SKYLAKE_L           0x4E    /* Sky Lake             */
+#define INTEL_FAM6_SKYLAKE             0x5E    /* Sky Lake             */
+#define INTEL_FAM6_SKYLAKE_X           0x55    /* Sky Lake             */
+/*                 CASCADELAKE_X       0x55       Sky Lake -- s: 7     */
+/*                 COOPERLAKE_X                0x55       Sky Lake -- s: 11    
*/
+
+#define INTEL_FAM6_KABYLAKE_L          0x8E    /* Sky Lake             */
+/*                 AMBERLAKE_L         0x8E       Sky Lake -- s: 9     */
+/*                 COFFEELAKE_L                0x8E       Sky Lake -- s: 10    
*/
+/*                 WHISKEYLAKE_L       0x8E       Sky Lake -- s: 11,12 */
+
+#define INTEL_FAM6_KABYLAKE            0x9E    /* Sky Lake             */
+/*                 COFFEELAKE          0x9E       Sky Lake -- s: 10-13 */
+
+#define INTEL_FAM6_COMETLAKE           0xA5    /* Sky Lake             */
+#define INTEL_FAM6_COMETLAKE_L         0xA6    /* Sky Lake             */
+
+#define INTEL_FAM6_CANNONLAKE_L                0x66    /* Palm Cove */
+
+#define INTEL_FAM6_ICELAKE_X           0x6A    /* Sunny Cove */
+#define INTEL_FAM6_ICELAKE_D           0x6C    /* Sunny Cove */
+#define INTEL_FAM6_ICELAKE             0x7D    /* Sunny Cove */
+#define INTEL_FAM6_ICELAKE_L           0x7E    /* Sunny Cove */
+#define INTEL_FAM6_ICELAKE_NNPI                0x9D    /* Sunny Cove */
+
+#define INTEL_FAM6_LAKEFIELD           0x8A    /* Sunny Cove / Tremont */
+
+#define INTEL_FAM6_ROCKETLAKE          0xA7    /* Cypress Cove */
+
+#define INTEL_FAM6_TIGERLAKE_L         0x8C    /* Willow Cove */
+#define INTEL_FAM6_TIGERLAKE           0x8D    /* Willow Cove */
+
+#define INTEL_FAM6_SAPPHIRERAPIDS_X    0x8F    /* Golden Cove */
+
+#define INTEL_FAM6_ALDERLAKE           0x97    /* Golden Cove / Gracemont */
+#define INTEL_FAM6_ALDERLAKE_L         0x9A    /* Golden Cove / Gracemont */
+
+#define INTEL_FAM6_RAPTORLAKE          0xB7
+
+/* "Small Core" Processors (Atom) */
+
+#define INTEL_FAM6_ATOM_BONNELL                0x1C /* Diamondville, Pineview 
*/
+#define INTEL_FAM6_ATOM_BONNELL_MID    0x26 /* Silverthorne, Lincroft */
+
+#define INTEL_FAM6_ATOM_SALTWELL       0x36 /* Cedarview */
+#define INTEL_FAM6_ATOM_SALTWELL_MID   0x27 /* Penwell */
+#define INTEL_FAM6_ATOM_SALTWELL_TABLET        0x35 /* Cloverview */
+
+#define INTEL_FAM6_ATOM_SILVERMONT     0x37 /* Bay Trail, Valleyview */
+#define INTEL_FAM6_ATOM_SILVERMONT_D   0x4D /* Avaton, Rangely */
+#define INTEL_FAM6_ATOM_SILVERMONT_MID 0x4A /* Merriefield */
+
+#define INTEL_FAM6_ATOM_AIRMONT                0x4C /* Cherry Trail, Braswell 
*/
+#define INTEL_FAM6_ATOM_AIRMONT_MID    0x5A /* Moorefield */
+#define INTEL_FAM6_ATOM_AIRMONT_NP     0x75 /* Lightning Mountain */
+
+#define INTEL_FAM6_ATOM_GOLDMONT       0x5C /* Apollo Lake */
+#define INTEL_FAM6_ATOM_GOLDMONT_D     0x5F /* Denverton */
+
+/* Note: the micro-architecture is "Goldmont Plus" */
+#define INTEL_FAM6_ATOM_GOLDMONT_PLUS  0x7A /* Gemini Lake */
+
+#define INTEL_FAM6_ATOM_TREMONT_D      0x86 /* Jacobsville */
+#define INTEL_FAM6_ATOM_TREMONT                0x96 /* Elkhart Lake */
+#define INTEL_FAM6_ATOM_TREMONT_L      0x9C /* Jasper Lake */
+
+/* Xeon Phi */
+
+#define INTEL_FAM6_XEON_PHI_KNL                0x57 /* Knights Landing */
+#define INTEL_FAM6_XEON_PHI_KNM                0x85 /* Knights Mill */
+
+/* Family 5 */
+#define INTEL_FAM5_QUARK_X1000         0x09 /* Quark X1000 SoC */
+
+#endif /* _ASM_X86_INTEL_FAMILY_H */
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.