在 Linux 中获取 CPU 步进

Ang*_*gel 6 linux cpu hardware hardware-compatibility

正如您从主题中注意到的那样,它需要能够正确获取 cpu 的步进代码。正如维基百科所说,有像A0A2B0等步进代码。所以,linux (ubuntu 16.04) 中的命令给出:

# dmidecode -t 4 | grep Stepping | awk '{ printf $8": "$9"\n" }'
# Stepping: 2

# lscpu | grep Stepping
# Stepping: 2

# cpuid | grep stepping
# stepping id = 0x2 (2)

# cat /proc/cpuinfo | grep stepping
# stepping: 2
Run Code Online (Sandbox Code Playgroud)

整个输出: cat /proc/cpuinfo (一个核心):

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
stepping        : 2
microcode       : 0x13
cpu MHz         : 2400.208
cache size      : 12288 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt lahf_lm epb kaiser tpr_shadow vnmi flexpriority ept vpid dtherm ida arat
bugs            :
bogomips        : 4800.41
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
...
Run Code Online (Sandbox Code Playgroud)

cpuid(部分):

...
family          = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
...
(simple synth)  = Intel Core i7-900 (Gulftown B1) / Core i7-980X (Gulftown B1) / Xeon Processor 3600 (Westmere-EP B1) / Xeon Processor 5600 (Westmere-EP B1), 32nm
...
Run Code Online (Sandbox Code Playgroud)

dmidecode -t 4(部分):

...
Signature: Type 0, Family 6, Model 44, Stepping 2
...
Run Code Online (Sandbox Code Playgroud)

来自CPU-Z程序互联网的一些截图:

修订版 E0 ?

CPU-G程序互联网截图:

步进 4 ?

那么0x22 是什么?为什么不像维基百科提到的 A0 或 B1 ?如何在步进号码之前获得这封信?

最好的问候,V7

Ste*_*itt 5

无法仅使用来自 CPU 的信息将步进编号映射到步进名称。您需要查看英特尔的规范更新;这些包含对 CPU 的各种修订中修复的勘误表的描述,还包含允许识别各种步进的标识信息(在适当的情况下)。

例如,对于您的 E8500,规格更新列出了两个修订版本,C0 和 E0;C0 对应于处理器签名 10676h,E0 对应于处理器签名 1067Ah(参见第 16 页上的表 1)。在这些签名的最后四位是在给定的步进值/proc/cpuinfolscpu等等,而在CPU-Z的“步进”领域; 如您所见,数值和步进名称之间没有明显的相关性(E8500 步进 C0 为 6,E8500 步进 E0 为 A)。CPU-Z 等工具包含所有这些标识信息,并使用它在其 GUI 中提供步进名称。