Files
linux/tools/arch/x86/kcpuid/cpuid.csv
Borislav Petkov f281854fa7 tools/x86/kcpuid: Add AMD leaf 0x8000001E
Contains core IDs, node IDs and other topology info.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Feng Tang <feng.tang@intel.com>
Link: https://lkml.kernel.org/r/20210315125901.30315-2-bp@alien8.de
2021-03-18 11:36:14 +01:00

19 KiB

1# The basic row format is:
2# LEAF, SUBLEAF, register_name, bits, short_name, long_description
3# Leaf 00H
4 0, 0, EAX, 31:0, max_basic_leafs, Max input value for supported subleafs
5# Leaf 01H
6 1, 0, EAX, 3:0, stepping, Stepping ID
7 1, 0, EAX, 7:4, model, Model
8 1, 0, EAX, 11:8, family, Family ID
9 1, 0, EAX, 13:12, processor, Processor Type
10 1, 0, EAX, 19:16, model_ext, Extended Model ID
11 1, 0, EAX, 27:20, family_ext, Extended Family ID
12 1, 0, EBX, 7:0, brand, Brand Index
13 1, 0, EBX, 15:8, clflush_size, CLFLUSH line size (value * 8) in bytes
14 1, 0, EBX, 23:16, max_cpu_id, Maxim number of addressable logic cpu in this package
15 1, 0, EBX, 31:24, apic_id, Initial APIC ID
16 1, 0, ECX, 0, sse3, Streaming SIMD Extensions 3(SSE3)
17 1, 0, ECX, 1, pclmulqdq, PCLMULQDQ instruction supported
18 1, 0, ECX, 2, dtes64, DS area uses 64-bit layout
19 1, 0, ECX, 3, mwait, MONITOR/MWAIT supported
20 1, 0, ECX, 4, ds_cpl, CPL Qualified Debug Store which allows for branch message storage qualified by CPL
21 1, 0, ECX, 5, vmx, Virtual Machine Extensions supported
22 1, 0, ECX, 6, smx, Safer Mode Extension supported
23 1, 0, ECX, 7, eist, Enhanced Intel SpeedStep Technology
24 1, 0, ECX, 8, tm2, Thermal Monitor 2
25 1, 0, ECX, 9, ssse3, Supplemental Streaming SIMD Extensions 3 (SSSE3)
26 1, 0, ECX, 10, l1_ctx_id, L1 data cache could be set to either adaptive mode or shared mode (check IA32_MISC_ENABLE bit 24 definition)
27 1, 0, ECX, 11, sdbg, IA32_DEBUG_INTERFACE MSR for silicon debug supported
28 1, 0, ECX, 12, fma, FMA extensions using YMM state supported
29 1, 0, ECX, 13, cmpxchg16b, 'CMPXCHG16B - Compare and Exchange Bytes' supported
30 1, 0, ECX, 14, xtpr_update, xTPR Update Control supported
31 1, 0, ECX, 15, pdcm, Perfmon and Debug Capability present
32 1, 0, ECX, 17, pcid, Process-Context Identifiers feature present
33 1, 0, ECX, 18, dca, Prefetching data from a memory mapped device supported
34 1, 0, ECX, 19, sse4_1, SSE4.1 feature present
35 1, 0, ECX, 20, sse4_2, SSE4.2 feature present
36 1, 0, ECX, 21, x2apic, x2APIC supported
37 1, 0, ECX, 22, movbe, MOVBE instruction supported
38 1, 0, ECX, 23, popcnt, POPCNT instruction supported
39 1, 0, ECX, 24, tsc_deadline_timer, LAPIC supports one-shot operation using a TSC deadline value
40 1, 0, ECX, 25, aesni, AESNI instruction supported
41 1, 0, ECX, 26, xsave, XSAVE/XRSTOR processor extended states (XSETBV/XGETBV/XCR0)
42 1, 0, ECX, 27, osxsave, OS has set CR4.OSXSAVE bit to enable XSETBV/XGETBV/XCR0
43 1, 0, ECX, 28, avx, AVX instruction supported
44 1, 0, ECX, 29, f16c, 16-bit floating-point conversion instruction supported
45 1, 0, ECX, 30, rdrand, RDRAND instruction supported
46 1, 0, EDX, 0, fpu, x87 FPU on chip
47 1, 0, EDX, 1, vme, Virtual-8086 Mode Enhancement
48 1, 0, EDX, 2, de, Debugging Extensions
49 1, 0, EDX, 3, pse, Page Size Extensions
50 1, 0, EDX, 4, tsc, Time Stamp Counter
51 1, 0, EDX, 5, msr, RDMSR and WRMSR Support
52 1, 0, EDX, 6, pae, Physical Address Extensions
53 1, 0, EDX, 7, mce, Machine Check Exception
54 1, 0, EDX, 8, cx8, CMPXCHG8B instr
55 1, 0, EDX, 9, apic, APIC on Chip
56 1, 0, EDX, 11, sep, SYSENTER and SYSEXIT instrs
57 1, 0, EDX, 12, mtrr, Memory Type Range Registers
58 1, 0, EDX, 13, pge, Page Global Bit
59 1, 0, EDX, 14, mca, Machine Check Architecture
60 1, 0, EDX, 15, cmov, Conditional Move Instrs
61 1, 0, EDX, 16, pat, Page Attribute Table
62 1, 0, EDX, 17, pse36, 36-Bit Page Size Extension
63 1, 0, EDX, 18, psn, Processor Serial Number
64 1, 0, EDX, 19, clflush, CLFLUSH instr
65# 1, 0, EDX, 20,
66 1, 0, EDX, 21, ds, Debug Store
67 1, 0, EDX, 22, acpi, Thermal Monitor and Software Controlled Clock Facilities
68 1, 0, EDX, 23, mmx, Intel MMX Technology
69 1, 0, EDX, 24, fxsr, XSAVE and FXRSTOR Instrs
70 1, 0, EDX, 25, sse, SSE
71 1, 0, EDX, 26, sse2, SSE2
72 1, 0, EDX, 27, ss, Self Snoop
73 1, 0, EDX, 28, hit, Max APIC IDs
74 1, 0, EDX, 29, tm, Thermal Monitor
75# 1, 0, EDX, 30,
76 1, 0, EDX, 31, pbe, Pending Break Enable
77# Leaf 02H
78# cache and TLB descriptor info
79# Leaf 03H
80# Precessor Serial Number, introduced on Pentium III, not valid for
81# latest models
82# Leaf 04H
83# thread/core and cache topology
84 4, 0, EAX, 4:0, cache_type, Cache type like instr/data or unified
85 4, 0, EAX, 7:5, cache_level, Cache Level (starts at 1)
86 4, 0, EAX, 8, cache_self_init, Cache Self Initialization
87 4, 0, EAX, 9, fully_associate, Fully Associative cache
88# 4, 0, EAX, 13:10, resvd, resvd
89 4, 0, EAX, 25:14, max_logical_id, Max number of addressable IDs for logical processors sharing the cache
90 4, 0, EAX, 31:26, max_phy_id, Max number of addressable IDs for processors in phy package
91 4, 0, EBX, 11:0, cache_linesize, Size of a cache line in bytes
92 4, 0, EBX, 21:12, cache_partition, Physical Line partitions
93 4, 0, EBX, 31:22, cache_ways, Ways of associativity
94 4, 0, ECX, 31:0, cache_sets, Number of Sets - 1
95 4, 0, EDX, 0, c_wbinvd, 1 means WBINVD/INVD is not ganranteed to act upon lower level caches of non-originating threads sharing this cache
96 4, 0, EDX, 1, c_incl, Whether cache is inclusive of lower cache level
97 4, 0, EDX, 2, c_comp_index, Complex Cache Indexing
98# Leaf 05H
99# MONITOR/MWAIT
100 5, 0, EAX, 15:0, min_mon_size, Smallest monitor line size in bytes
101 5, 0, EBX, 15:0, max_mon_size, Largest monitor line size in bytes
102 5, 0, ECX, 0, mwait_ext, Enum of Monitor-Mwait extensions supported
103 5, 0, ECX, 1, mwait_irq_break, Largest monitor line size in bytes
104 5, 0, EDX, 3:0, c0_sub_stats, Number of C0* sub C-states supported using MWAIT
105 5, 0, EDX, 7:4, c1_sub_stats, Number of C1* sub C-states supported using MWAIT
106 5, 0, EDX, 11:8, c2_sub_stats, Number of C2* sub C-states supported using MWAIT
107 5, 0, EDX, 15:12, c3_sub_stats, Number of C3* sub C-states supported using MWAIT
108 5, 0, EDX, 19:16, c4_sub_stats, Number of C4* sub C-states supported using MWAIT
109 5, 0, EDX, 23:20, c5_sub_stats, Number of C5* sub C-states supported using MWAIT
110 5, 0, EDX, 27:24, c6_sub_stats, Number of C6* sub C-states supported using MWAIT
111 5, 0, EDX, 31:28, c7_sub_stats, Number of C7* sub C-states supported using MWAIT
112# Leaf 06H
113# Thermal & Power Management
114 6, 0, EAX, 0, dig_temp, Digital temperature sensor supported
115 6, 0, EAX, 1, turbo, Intel Turbo Boost
116 6, 0, EAX, 2, arat, Always running APIC timer
117# 6, 0, EAX, 3, resv, Reserved
118 6, 0, EAX, 4, pln, Power limit notifications supported
119 6, 0, EAX, 5, ecmd, Clock modulation duty cycle extension supported
120 6, 0, EAX, 6, ptm, Package thermal management supported
121 6, 0, EAX, 7, hwp, HWP base register
122 6, 0, EAX, 8, hwp_notify, HWP notification
123 6, 0, EAX, 9, hwp_act_window, HWP activity window
124 6, 0, EAX, 10, hwp_energy, HWP energy performance preference
125 6, 0, EAX, 11, hwp_pkg_req, HWP package level request
126# 6, 0, EAX, 12, resv, Reserved
127 6, 0, EAX, 13, hdc, HDC base registers supported
128 6, 0, EAX, 14, turbo3, Turbo Boost Max 3.0
129 6, 0, EAX, 15, hwp_cap, Highest Performance change supported
130 6, 0, EAX, 16, hwp_peci, HWP PECI override is supported
131 6, 0, EAX, 17, hwp_flex, Flexible HWP is supported
132 6, 0, EAX, 18, hwp_fast, Fast access mode for the IA32_HWP_REQUEST MSR is supported
133# 6, 0, EAX, 19, resv, Reserved
134 6, 0, EAX, 20, hwp_ignr, Ignoring Idle Logical Processor HWP request is supported
135 6, 0, EBX, 3:0, therm_irq_thresh, Number of Interrupt Thresholds in Digital Thermal Sensor
136 6, 0, ECX, 0, aperfmperf, Presence of IA32_MPERF and IA32_APERF
137 6, 0, ECX, 3, energ_bias, Performance-energy bias preference supported
138# Leaf 07H
139#ECX == 0
140# AVX512 refers to https://en.wikipedia.org/wiki/AVX-512
141# XXX: Do we really need to enumerate each and every AVX512 sub features
142 7, 0, EBX, 0, fsgsbase, RDFSBASE/RDGSBASE/WRFSBASE/WRGSBASE supported
143 7, 0, EBX, 1, tsc_adjust, TSC_ADJUST MSR supported
144 7, 0, EBX, 2, sgx, Software Guard Extensions
145 7, 0, EBX, 3, bmi1, BMI1
146 7, 0, EBX, 4, hle, Hardware Lock Elision
147 7, 0, EBX, 5, avx2, AVX2
148# 7, 0, EBX, 6, fdp_excp_only, x87 FPU Data Pointer updated only on x87 exceptions
149 7, 0, EBX, 7, smep, Supervisor-Mode Execution Prevention
150 7, 0, EBX, 8, bmi2, BMI2
151 7, 0, EBX, 9, rep_movsb, Enhanced REP MOVSB/STOSB
152 7, 0, EBX, 10, invpcid, INVPCID instruction
153 7, 0, EBX, 11, rtm, Restricted Transactional Memory
154 7, 0, EBX, 12, rdt_m, Intel RDT Monitoring capability
155 7, 0, EBX, 13, depc_fpu_cs_ds, Deprecates FPU CS and FPU DS
156 7, 0, EBX, 14, mpx, Memory Protection Extensions
157 7, 0, EBX, 15, rdt_a, Intel RDT Allocation capability
158 7, 0, EBX, 16, avx512f, AVX512 Foundation instr
159 7, 0, EBX, 17, avx512dq, AVX512 Double and Quadword AVX512 instr
160 7, 0, EBX, 18, rdseed, RDSEED instr
161 7, 0, EBX, 19, adx, ADX instr
162 7, 0, EBX, 20, smap, Supervisor Mode Access Prevention
163 7, 0, EBX, 21, avx512ifma, AVX512 Integer Fused Multiply Add
164# 7, 0, EBX, 22, resvd, resvd
165 7, 0, EBX, 23, clflushopt, CLFLUSHOPT instr
166 7, 0, EBX, 24, clwb, CLWB instr
167 7, 0, EBX, 25, intel_pt, Intel Processor Trace instr
168 7, 0, EBX, 26, avx512pf, Prefetch
169 7, 0, EBX, 27, avx512er, AVX512 Exponent Reciproca instr
170 7, 0, EBX, 28, avx512cd, AVX512 Conflict Detection instr
171 7, 0, EBX, 29, sha, Intel Secure Hash Algorithm Extensions instr
172 7, 0, EBX, 26, avx512bw, AVX512 Byte & Word instr
173 7, 0, EBX, 28, avx512vl, AVX512 Vector Length Extentions (VL)
174 7, 0, ECX, 0, prefetchwt1, X
175 7, 0, ECX, 1, avx512vbmi, AVX512 Vector Byte Manipulation Instructions
176 7, 0, ECX, 2, umip, User-mode Instruction Prevention
177 7, 0, ECX, 3, pku, Protection Keys for User-mode pages
178 7, 0, ECX, 4, ospke, CR4 PKE set to enable protection keys
179# 7, 0, ECX, 16:5, resvd, resvd
180 7, 0, ECX, 21:17, mawau, The value of MAWAU used by the BNDLDX and BNDSTX instructions in 64-bit mode
181 7, 0, ECX, 22, rdpid, RDPID and IA32_TSC_AUX
182# 7, 0, ECX, 29:23, resvd, resvd
183 7, 0, ECX, 30, sgx_lc, SGX Launch Configuration
184# 7, 0, ECX, 31, resvd, resvd
185# Leaf 08H
186#
187# Leaf 09H
188# Direct Cache Access (DCA) information
189 9, 0, ECX, 31:0, dca_cap, The value of IA32_PLATFORM_DCA_CAP
190# Leaf 0AH
191# Architectural Performance Monitoring
192#
193# Do we really need to print out the PMU related stuff?
194# Does normal user really care about it?
195#
196 0xA, 0, EAX, 7:0, pmu_ver, Performance Monitoring Unit version
197 0xA, 0, EAX, 15:8, pmu_gp_cnt_num, Numer of general-purose PMU counters per logical CPU
198 0xA, 0, EAX, 23:16, pmu_cnt_bits, Bit wideth of PMU counter
199 0xA, 0, EAX, 31:24, pmu_ebx_bits, Length of EBX bit vector to enumerate PMU events
200 0xA, 0, EBX, 0, pmu_no_core_cycle_evt, Core cycle event not available
201 0xA, 0, EBX, 1, pmu_no_instr_ret_evt, Instruction retired event not available
202 0xA, 0, EBX, 2, pmu_no_ref_cycle_evt, Reference cycles event not available
203 0xA, 0, EBX, 3, pmu_no_llc_ref_evt, Last-level cache reference event not available
204 0xA, 0, EBX, 4, pmu_no_llc_mis_evt, Last-level cache misses event not available
205 0xA, 0, EBX, 5, pmu_no_br_instr_ret_evt, Branch instruction retired event not available
206 0xA, 0, EBX, 6, pmu_no_br_mispredict_evt, Branch mispredict retired event not available
207 0xA, 0, ECX, 4:0, pmu_fixed_cnt_num, Performance Monitoring Unit version
208 0xA, 0, ECX, 12:5, pmu_fixed_cnt_bits, Numer of PMU counters per logical CPU
209# Leaf 0BH
210# Extended Topology Enumeration Leaf
211#
212 0xB, 0, EAX, 4:0, id_shift, Number of bits to shift right on x2APIC ID to get a unique topology ID of the next level type
213 0xB, 0, EBX, 15:0, cpu_nr, Number of logical processors at this level type
214 0xB, 0, ECX, 15:8, lvl_type, 0-Invalid 1-SMT 2-Core
215 0xB, 0, EDX, 31:0, x2apic_id, x2APIC ID the current logical processor
216# Leaf 0DH
217# Processor Extended State
218 0xD, 0, EAX, 0, x87, X87 state
219 0xD, 0, EAX, 1, sse, SSE state
220 0xD, 0, EAX, 2, avx, AVX state
221 0xD, 0, EAX, 4:3, mpx, MPX state
222 0xD, 0, EAX, 7:5, avx512, AVX-512 state
223 0xD, 0, EAX, 9, pkru, PKRU state
224 0xD, 0, EBX, 31:0, max_sz_xcr0, Maximum size (bytes) required by enabled features in XCR0
225 0xD, 0, ECX, 31:0, max_sz_xsave, Maximum size (bytes) of the XSAVE/XRSTOR save area
226 0xD, 1, EAX, 0, xsaveopt, XSAVEOPT available
227 0xD, 1, EAX, 1, xsavec, XSAVEC and compacted form supported
228 0xD, 1, EAX, 2, xgetbv, XGETBV supported
229 0xD, 1, EAX, 3, xsaves, XSAVES/XRSTORS and IA32_XSS supported
230 0xD, 1, EBX, 31:0, max_sz_xcr0, Maximum size (bytes) required by enabled features in XCR0
231 0xD, 1, ECX, 8, pt, PT state
232 0xD, 1, ECX, 11, cet_usr, CET user state
233 0xD, 1, ECX, 12, cet_supv, CET supervisor state
234 0xD, 1, ECX, 13, hdc, HDC state
235 0xD, 1, ECX, 16, hwp, HWP state
236# Leaf 0FH
237# Intel RDT Monitoring
238 0xF, 0, EBX, 31:0, rmid_range, Maximum range (zero-based) of RMID within this physical processor of all types
239 0xF, 0, EDX, 1, l3c_rdt_mon, L3 Cache RDT Monitoring supported
240 0xF, 1, ECX, 31:0, rmid_range, Maximum range (zero-based) of RMID of this types
241 0xF, 1, EDX, 0, l3c_ocp_mon, L3 Cache occupancy Monitoring supported
242 0xF, 1, EDX, 1, l3c_tbw_mon, L3 Cache Total Bandwidth Monitoring supported
243 0xF, 1, EDX, 2, l3c_lbw_mon, L3 Cache Local Bandwidth Monitoring supported
244# Leaf 10H
245# Intel RDT Allocation
246 0x10, 0, EBX, 1, l3c_rdt_alloc, L3 Cache Allocation supported
247 0x10, 0, EBX, 2, l2c_rdt_alloc, L2 Cache Allocation supported
248 0x10, 0, EBX, 3, mem_bw_alloc, Memory Bandwidth Allocation supported
249# Leaf 12H
250# SGX Capability
251#
252# Some detailed SGX features not added yet
253 0x12, 0, EAX, 0, sgx1, L3 Cache Allocation supported
254 0x12, 1, EAX, 0, sgx2, L3 Cache Allocation supported
255# Leaf 14H
256# Intel Processor Tracer
257#
258# Leaf 15H
259# Time Stamp Counter and Nominal Core Crystal Clock Information
260 0x15, 0, EAX, 31:0, tsc_denominator, The denominator of the TSC/”core crystal clock” ratio
261 0x15, 0, EBX, 31:0, tsc_numerator, The numerator of the TSC/”core crystal clock” ratio
262 0x15, 0, ECX, 31:0, nom_freq, Nominal frequency of the core crystal clock in Hz
263# Leaf 16H
264# Processor Frequency Information
265 0x16, 0, EAX, 15:0, cpu_base_freq, Processor Base Frequency in MHz
266 0x16, 0, EBX, 15:0, cpu_max_freq, Maximum Frequency in MHz
267 0x16, 0, ECX, 15:0, bus_freq, Bus (Reference) Frequency in MHz
268# Leaf 17H
269# System-On-Chip Vendor Attribute
270 0x17, 0, EAX, 31:0, max_socid, Maximum input value of supported sub-leaf
271 0x17, 0, EBX, 15:0, soc_vid, SOC Vendor ID
272 0x17, 0, EBX, 16, std_vid, SOC Vendor ID is assigned via an industry standard scheme
273 0x17, 0, ECX, 31:0, soc_pid, SOC Project ID assigned by vendor
274 0x17, 0, EDX, 31:0, soc_sid, SOC Stepping ID
275# Leaf 18H
276# Deterministic Address Translation Parameters
277# Leaf 19H
278# Key Locker Leaf
279# Leaf 1AH
280# Hybrid Information
281 0x1A, 0, EAX, 31:24, core_type, 20H-Intel_Atom 40H-Intel_Core
282# Leaf 1FH
283# V2 Extended Topology - A preferred superset to leaf 0BH
284# According to SDM
285# 40000000H - 4FFFFFFFH is invalid range
286# Leaf 80000001H
287# Extended Processor Signature and Feature Bits
2880x80000001, 0, ECX, 0, lahf_lm, LAHF/SAHF available in 64-bit mode
2890x80000001, 0, ECX, 5, lzcnt, LZCNT
2900x80000001, 0, ECX, 8, prefetchw, PREFETCHW
2910x80000001, 0, EDX, 11, sysret, SYSCALL/SYSRET supported
2920x80000001, 0, EDX, 20, exec_dis, Execute Disable Bit available
2930x80000001, 0, EDX, 26, 1gb_page, 1GB page supported
2940x80000001, 0, EDX, 27, rdtscp, RDTSCP and IA32_TSC_AUX are available
295#0x80000001, 0, EDX, 29, 64b, 64b Architecture supported
296# Leaf 80000002H/80000003H/80000004H
297# Processor Brand String
298# Leaf 80000005H
299# Reserved
300# Leaf 80000006H
301# Extended L2 Cache Features
3020x80000006, 0, ECX, 7:0, clsize, Cache Line size in bytes
3030x80000006, 0, ECX, 15:12, l2c_assoc, L2 Associativity
3040x80000006, 0, ECX, 31:16, csize, Cache size in 1K units
305# Leaf 80000007H
3060x80000007, 0, EDX, 8, nonstop_tsc, Invariant TSC available
307# Leaf 80000008H
3080x80000008, 0, EAX, 7:0, phy_adr_bits, Physical Address Bits
3090x80000008, 0, EAX, 15:8, lnr_adr_bits, Linear Address Bits
3100x80000007, 0, EBX, 9, wbnoinvd, WBNOINVD
311# 0x8000001E
312# EAX: Extended APIC ID
3130x8000001E,0, EAX, 31:0, extended_apic_id, Extended APIC ID
314# EBX: Core Identifiers
3150x8000001E,0, EBX, 7:0, core_id, Identifies the logical core ID
3160x8000001E,0, EBX, 15:8, threads_per_core, The number of threads per core is threads_per_core + 1
317# ECX: Node Identifiers
3180x8000001E,0, ECX, 7:0, node_id, Node ID
3190x8000001E,0, ECX, 10:8, nodes_per_processor, Nodes per processor { 0: 1 node, else reserved }
320# 8000001F: AMD Secure Encryption
3210x8000001F,0, EAX, 0, sme,Secure Memory Encryption
3220x8000001F,0, EAX, 1, sev,Secure Encrypted Virtualization
3230x8000001F,0, EAX, 2, vmpgflush, VM Page Flush MSR
3240x8000001F,0, EAX, 3, seves, SEV Encrypted State
3250x8000001F,0, EBX, 5:0, c-bit, Page table bit number used to enable memory encryption
3260x8000001F,0, EBX, 11:6, mem_encrypt_physaddr_width, Reduction of physical address space in bits with SME enabled
3270x8000001F,0, ECX, 31:0, num_encrypted_guests, Maximum ASID value that may be used for an SEV-enabled guest
3280x8000001F,0, EDX, 31:0, minimum_sev_asid, Minimum ASID value that must be used for an SEV-enabled, SEV-ES-disabled guest