1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

Fix issue #104: Intel Coffee Lake and Kaby Lake

Add support for detecting Coffee Lake i[357]s. Test included.
Thanks to @X0rg for reporting and to @exdeus for the raw cpu data.

The detection here relies on Kaby and Coffee lakes having different
number of cores for the equivalent brand:

i3: 2 cores in Kaby, 4 in Coffee
i5 and i7: 4 cores in Kaby, 6 in Coffee.
This commit is contained in:
Veselin Georgiev 2018-02-04 13:37:36 +02:00
parent 2f4c21e3a7
commit f178de98f3
2 changed files with 105 additions and 0 deletions

View file

@ -339,6 +339,11 @@ const struct match_entry_t cpudb_intel[] = {
{ 6, 14, -1, -1, 158, 2, -1, -1, NC, CELERON_ , 0, "Kaby Lake (Celeron)" },
{ 6, 14, -1, -1, 158, 2, -1, -1, NC, CORE_|_M_|_3 , 0, "Kaby Lake (Core m3)" },
/* Coffee Lake CPUs (14nm): */
{ 6, 14, -1, -1, 158, 6, -1, -1, NC, CORE_|_I_|_7 , 0, "Coffee Lake (Core i7)" },
{ 6, 14, -1, -1, 158, 6, -1, -1, NC, CORE_|_I_|_5 , 0, "Coffee Lake (Core i5)" },
{ 6, 14, -1, -1, 158, 4, -1, -1, NC, CORE_|_I_|_3 , 0, "Coffee Lake (Core i3)" },
/* Itaniums */
{ 7, -1, -1, -1, -1, 1, -1, -1, NC, 0 , 0, "Itanium" },
{ 15, -1, -1, 16, -1, 1, -1, -1, NC, 0 , 0, "Itanium 2" },

View file

@ -0,0 +1,100 @@
basic_cpuid[0]=00000016 756e6547 6c65746e 49656e69
basic_cpuid[1]=000906ea 04100800 7ffafbff bfebfbff
basic_cpuid[2]=76036301 00f0b5ff 00000000 00c30000
basic_cpuid[3]=00000000 00000000 00000000 00000000
basic_cpuid[4]=1c004121 01c0003f 0000003f 00000000
basic_cpuid[5]=00000040 00000040 00000003 11142120
basic_cpuid[6]=000027f7 00000002 00000009 00000000
basic_cpuid[7]=00000000 029c6fbf 40000000 0c000000
basic_cpuid[8]=00000000 00000000 00000000 00000000
basic_cpuid[9]=00000000 00000000 00000000 00000000
basic_cpuid[10]=07300404 00000000 00000000 00000603
basic_cpuid[11]=00000001 00000002 00000100 00000004
basic_cpuid[12]=00000000 00000000 00000000 00000000
basic_cpuid[13]=0000001f 00000440 00000440 00000000
basic_cpuid[14]=00000000 00000000 00000000 00000000
basic_cpuid[15]=00000000 00000000 00000000 00000000
basic_cpuid[16]=00000000 00000000 00000000 00000000
basic_cpuid[17]=00000000 00000000 00000000 00000000
basic_cpuid[18]=00000000 00000000 00000000 00000000
basic_cpuid[19]=00000000 00000000 00000000 00000000
basic_cpuid[20]=00000001 0000000f 00000007 00000000
basic_cpuid[21]=00000002 00000134 00000000 00000000
basic_cpuid[22]=00000e74 0000125c 00000064 00000000
basic_cpuid[23]=00000e74 0000125c 00000064 00000000
basic_cpuid[24]=00000e74 0000125c 00000064 00000000
basic_cpuid[25]=00000e74 0000125c 00000064 00000000
basic_cpuid[26]=00000e74 0000125c 00000064 00000000
basic_cpuid[27]=00000e74 0000125c 00000064 00000000
basic_cpuid[28]=00000e74 0000125c 00000064 00000000
basic_cpuid[29]=00000e74 0000125c 00000064 00000000
basic_cpuid[30]=00000e74 0000125c 00000064 00000000
basic_cpuid[31]=00000e74 0000125c 00000064 00000000
ext_cpuid[0]=80000008 00000000 00000000 00000000
ext_cpuid[1]=00000000 00000000 00000121 2c100800
ext_cpuid[2]=65746e49 2952286c 726f4320 4d542865
ext_cpuid[3]=37692029 3037382d 43204b30 40205550
ext_cpuid[4]=372e3320 7a484730 00000000 00000000
ext_cpuid[5]=00000000 00000000 00000000 00000000
ext_cpuid[6]=00000000 00000000 01006040 00000000
ext_cpuid[7]=00000000 00000000 00000000 00000100
ext_cpuid[8]=00003027 00000000 00000000 00000000
ext_cpuid[9]=00000e74 0000125c 00000064 00000000
ext_cpuid[10]=00000e74 0000125c 00000064 00000000
ext_cpuid[11]=00000e74 0000125c 00000064 00000000
ext_cpuid[12]=00000e74 0000125c 00000064 00000000
ext_cpuid[13]=00000e74 0000125c 00000064 00000000
ext_cpuid[14]=00000e74 0000125c 00000064 00000000
ext_cpuid[15]=00000e74 0000125c 00000064 00000000
ext_cpuid[16]=00000e74 0000125c 00000064 00000000
ext_cpuid[17]=00000e74 0000125c 00000064 00000000
ext_cpuid[18]=00000e74 0000125c 00000064 00000000
ext_cpuid[19]=00000e74 0000125c 00000064 00000000
ext_cpuid[20]=00000e74 0000125c 00000064 00000000
ext_cpuid[21]=00000e74 0000125c 00000064 00000000
ext_cpuid[22]=00000e74 0000125c 00000064 00000000
ext_cpuid[23]=00000e74 0000125c 00000064 00000000
ext_cpuid[24]=00000e74 0000125c 00000064 00000000
ext_cpuid[25]=00000e74 0000125c 00000064 00000000
ext_cpuid[26]=00000e74 0000125c 00000064 00000000
ext_cpuid[27]=00000e74 0000125c 00000064 00000000
ext_cpuid[28]=00000e74 0000125c 00000064 00000000
ext_cpuid[29]=00000e74 0000125c 00000064 00000000
ext_cpuid[30]=00000e74 0000125c 00000064 00000000
ext_cpuid[31]=00000e74 0000125c 00000064 00000000
intel_fn4[0]=1c004121 01c0003f 0000003f 00000000
intel_fn4[1]=1c004122 01c0003f 0000003f 00000000
intel_fn4[2]=1c004143 00c0003f 000003ff 00000000
intel_fn4[3]=1c03c163 03c0003f 00002fff 00000006
intel_fn4[4]=00000000 00000000 00000000 00000000
intel_fn4[5]=00000000 00000000 00000000 00000000
intel_fn4[6]=00000000 00000000 00000000 00000000
intel_fn4[7]=00000000 00000000 00000000 00000000
intel_fn11[0]=00000001 00000002 00000100 00000004
intel_fn11[1]=00000004 0000000c 00000201 00000004
intel_fn11[2]=00000000 00000000 00000002 00000004
intel_fn11[3]=00000000 00000000 00000003 00000004
--------------------------------------------------------------------------------
6
14
10
6
158
6
12
32
32
256
12288
-1
8
4
16
-1
64
64
64
-1
128 (non-authoritative)
Coffee Lake (Core i7)
fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni pclmul dts64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 syscall xd movbe popcnt aes xsave osxsave avx rdtscp lm lahf_lm constant_tsc fma3 f16c rdrand x2apic avx2 bmi1 bmi2 hle rtm sgx rdseed adx