diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index 681ae16..b13fa4f 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -298,6 +298,10 @@ const struct match_entry_t cpudb_amd[] = { { 15, -1, -1, 25, 33, -1, -1, -1, NC, RYZEN_|_7 , 0, "Ryzen 7 (Vermeer)" }, { 15, -1, -1, 25, 33, -1, -1, -1, NC, RYZEN_|_5 , 0, "Ryzen 5 (Vermeer)" }, { 15, -1, -1, 25, 33, -1, -1, -1, NC, RYZEN_|_3 , 0, "Ryzen 3 (Vermeer)" }, + { 15, -1, -1, 25, 80, -1, -1, -1, NC, RYZEN_|_9 , 0, "Ryzen 9 (Cezanne)" }, + { 15, -1, -1, 25, 80, -1, -1, -1, NC, RYZEN_|_7 , 0, "Ryzen 7 (Cezanne)" }, + { 15, -1, -1, 25, 80, -1, -1, -1, NC, RYZEN_|_5 , 0, "Ryzen 5 (Cezanne)" }, + { 15, -1, -1, 25, 80, -1, -1, -1, NC, RYZEN_|_3 , 0, "Ryzen 3 (Cezanne)" }, /* F M S EF EM #cores L2$ L3$ BC ModelBits ModelCode Name */ { 15, -1, -1, 24, 0, -1, -1, -1, NC, C86_|_7 , 0, "C86 7 (Dhyana)" }, diff --git a/tests/amd/zen3/ryzen7-cezanne.test b/tests/amd/zen3/ryzen7-cezanne.test new file mode 100644 index 0000000..e806c96 --- /dev/null +++ b/tests/amd/zen3/ryzen7-cezanne.test @@ -0,0 +1,106 @@ +basic_cpuid[0]=00000010 68747541 444d4163 69746e65 +basic_cpuid[1]=00a50f00 00100800 7ed8320b 178bfbff +basic_cpuid[2]=00000000 00000000 00000000 00000000 +basic_cpuid[3]=00000000 00000000 00000000 00000000 +basic_cpuid[4]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[5]=00000040 00000040 00000003 00000011 +basic_cpuid[6]=00000004 00000000 00000001 00000000 +basic_cpuid[7]=00000000 219c97a9 0040068c 00000010 +basic_cpuid[8]=00000000 00000000 00000000 00000000 +basic_cpuid[9]=00000000 00000000 00000000 00000000 +basic_cpuid[10]=00000000 00000000 00000000 00000000 +basic_cpuid[11]=00000001 00000002 00000100 00000000 +basic_cpuid[12]=00000000 00000000 00000000 00000000 +basic_cpuid[13]=00000207 00000340 00000988 00000000 +basic_cpuid[14]=00000000 00000000 00000000 00000000 +basic_cpuid[15]=00000000 000000ff 00000000 00000002 +basic_cpuid[16]=00000000 00000002 00000000 00000000 +basic_cpuid[17]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[18]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[19]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[20]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[21]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[22]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[23]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[24]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[25]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[26]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[27]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[28]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[29]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[30]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[31]=ffffffff ffffffff ffffffff ffffffff +ext_cpuid[0]=80000023 68747541 444d4163 69746e65 +ext_cpuid[1]=00a50f00 00000000 75c237ff 2fd3fbff +ext_cpuid[2]=20444d41 657a7952 2037206e 30303835 +ext_cpuid[3]=69772048 52206874 6f656461 7247206e +ext_cpuid[4]=69687061 20207363 20202020 00202020 +ext_cpuid[5]=ff40ff40 ff40ff40 20080140 20080140 +ext_cpuid[6]=48002200 68004200 02006140 00809140 +ext_cpuid[7]=00000000 0000003b 00000000 00006799 +ext_cpuid[8]=00003030 191ef657 0000400f 00010000 +ext_cpuid[9]=00000000 00000000 00000000 00000000 +ext_cpuid[10]=00000001 00008000 00000000 101bbcff +ext_cpuid[11]=00000000 00000000 00000000 00000000 +ext_cpuid[12]=00000000 00000000 00000000 00000000 +ext_cpuid[13]=00000000 00000000 00000000 00000000 +ext_cpuid[14]=00000000 00000000 00000000 00000000 +ext_cpuid[15]=00000000 00000000 00000000 00000000 +ext_cpuid[16]=00000000 00000000 00000000 00000000 +ext_cpuid[17]=00000000 00000000 00000000 00000000 +ext_cpuid[18]=00000000 00000000 00000000 00000000 +ext_cpuid[19]=00000000 00000000 00000000 00000000 +ext_cpuid[20]=00000000 00000000 00000000 00000000 +ext_cpuid[21]=00000000 00000000 00000000 00000000 +ext_cpuid[22]=00000000 00000000 00000000 00000000 +ext_cpuid[23]=00000000 00000000 00000000 00000000 +ext_cpuid[24]=00000000 00000000 00000000 00000000 +ext_cpuid[25]=f040f040 f0400000 00000000 00000000 +ext_cpuid[26]=00000006 00000000 00000000 00000000 +ext_cpuid[27]=000003ff 00000000 00000000 00000000 +ext_cpuid[28]=00000000 00000000 00000000 00000000 +ext_cpuid[29]=00004121 01c0003f 0000003f 00000000 +ext_cpuid[30]=00000000 00000100 00000000 00000000 +ext_cpuid[31]=0001780f 00000000 00000000 00000001 +intel_fn4[0]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[1]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[2]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[3]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[4]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[5]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[6]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[7]=ffffffff ffffffff ffffffff ffffffff +intel_fn11[0]=00000001 00000002 00000100 00000000 +intel_fn11[1]=00000004 00000010 00000201 00000000 +intel_fn11[2]=ffffffff ffffffff ffffffff ffffffff +intel_fn11[3]=ffffffff ffffffff ffffffff ffffffff +amd_fn8000001dh[0]=00004121 01c0003f 0000003f 00000000 +amd_fn8000001dh[1]=00004122 01c0003f 0000003f 00000000 +amd_fn8000001dh[2]=00004143 01c0003f 000003ff 00000002 +amd_fn8000001dh[3]=0003c163 03c0003f 00003fff 00000001 +-------------------------------------------------------------------------------- +15 +0 +0 +25 +80 +8 +16 +32 +32 +512 +16384 +-1 +8 +8 +8 +16 +-1 +64 +64 +64 +64 +-1 +256 (authoritative) +Ryzen 7 (Cezanne) +fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht pni pclmul monitor ssse3 cx16 sse4_1 sse4_2 syscall movbe popcnt aes xsave osxsave avx mmxext nx fxsr_opt rdtscp lm lahf_lm cmp_legacy svm abm misalignsse sse4a 3dnowprefetch osvw ibs skinit wdt ts ttp tm_amd hwpstate constant_tsc fma3 f16c rdrand cpb aperfmperf avx2 bmi1 bmi2 sha_ni rdseed adx diff --git a/tests/amd/zen3/ryzen9-cezanne.test b/tests/amd/zen3/ryzen9-cezanne.test new file mode 100644 index 0000000..865118c --- /dev/null +++ b/tests/amd/zen3/ryzen9-cezanne.test @@ -0,0 +1,106 @@ +basic_cpuid[0]=00000010 68747541 444d4163 69746e65 +basic_cpuid[1]=00a50f00 00100800 7ed8320b 178bfbff +basic_cpuid[2]=00000000 00000000 00000000 00000000 +basic_cpuid[3]=00000000 00000000 00000000 00000000 +basic_cpuid[4]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[5]=00000040 00000040 00000003 00000011 +basic_cpuid[6]=00000004 00000000 00000001 00000000 +basic_cpuid[7]=00000000 219c97a9 0040068c 00000010 +basic_cpuid[8]=00000000 00000000 00000000 00000000 +basic_cpuid[9]=00000000 00000000 00000000 00000000 +basic_cpuid[10]=00000000 00000000 00000000 00000000 +basic_cpuid[11]=00000001 00000002 00000100 00000000 +basic_cpuid[12]=00000000 00000000 00000000 00000000 +basic_cpuid[13]=00000207 00000340 00000988 00000000 +basic_cpuid[14]=00000000 00000000 00000000 00000000 +basic_cpuid[15]=00000000 000000ff 00000000 00000002 +basic_cpuid[16]=00000000 00000002 00000000 00000000 +basic_cpuid[17]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[18]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[19]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[20]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[21]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[22]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[23]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[24]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[25]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[26]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[27]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[28]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[29]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[30]=ffffffff ffffffff ffffffff ffffffff +basic_cpuid[31]=ffffffff ffffffff ffffffff ffffffff +ext_cpuid[0]=80000023 68747541 444d4163 69746e65 +ext_cpuid[1]=00a50f00 00000000 75c237ff 2fd3fbff +ext_cpuid[2]=20444d41 657a7952 2039206e 30303935 +ext_cpuid[3]=77205348 20687469 65646152 47206e6f +ext_cpuid[4]=68706172 20736369 20202020 00202020 +ext_cpuid[5]=ff40ff40 ff40ff40 20080140 20080140 +ext_cpuid[6]=48002200 68004200 02006140 00809140 +ext_cpuid[7]=00000000 0000003b 00000000 00006799 +ext_cpuid[8]=00003030 191ef657 0000400f 00010000 +ext_cpuid[9]=00000000 00000000 00000000 00000000 +ext_cpuid[10]=00000001 00008000 00000000 001bbcff +ext_cpuid[11]=00000000 00000000 00000000 00000000 +ext_cpuid[12]=00000000 00000000 00000000 00000000 +ext_cpuid[13]=00000000 00000000 00000000 00000000 +ext_cpuid[14]=00000000 00000000 00000000 00000000 +ext_cpuid[15]=00000000 00000000 00000000 00000000 +ext_cpuid[16]=00000000 00000000 00000000 00000000 +ext_cpuid[17]=00000000 00000000 00000000 00000000 +ext_cpuid[18]=00000000 00000000 00000000 00000000 +ext_cpuid[19]=00000000 00000000 00000000 00000000 +ext_cpuid[20]=00000000 00000000 00000000 00000000 +ext_cpuid[21]=00000000 00000000 00000000 00000000 +ext_cpuid[22]=00000000 00000000 00000000 00000000 +ext_cpuid[23]=00000000 00000000 00000000 00000000 +ext_cpuid[24]=00000000 00000000 00000000 00000000 +ext_cpuid[25]=f040f040 f0400000 00000000 00000000 +ext_cpuid[26]=00000006 00000000 00000000 00000000 +ext_cpuid[27]=000003ff 00000000 00000000 00000000 +ext_cpuid[28]=00000000 00000000 00000000 00000000 +ext_cpuid[29]=00004121 01c0003f 0000003f 00000000 +ext_cpuid[30]=00000000 00000100 00000000 00000000 +ext_cpuid[31]=0001780f 00000000 00000000 00000001 +intel_fn4[0]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[1]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[2]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[3]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[4]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[5]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[6]=ffffffff ffffffff ffffffff ffffffff +intel_fn4[7]=ffffffff ffffffff ffffffff ffffffff +intel_fn11[0]=00000001 00000002 00000100 00000000 +intel_fn11[1]=00000004 00000010 00000201 00000000 +intel_fn11[2]=ffffffff ffffffff ffffffff ffffffff +intel_fn11[3]=ffffffff ffffffff ffffffff ffffffff +amd_fn8000001dh[0]=00004121 01c0003f 0000003f 00000000 +amd_fn8000001dh[1]=00004122 01c0003f 0000003f 00000000 +amd_fn8000001dh[2]=00004143 01c0003f 000003ff 00000002 +amd_fn8000001dh[3]=0003c163 03c0003f 00003fff 00000001 +-------------------------------------------------------------------------------- +15 +0 +0 +25 +80 +8 +16 +32 +32 +512 +16384 +-1 +8 +8 +8 +16 +-1 +64 +64 +64 +64 +-1 +256 (authoritative) +Ryzen 9 (Cezanne) +fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht pni pclmul monitor ssse3 cx16 sse4_1 sse4_2 syscall movbe popcnt aes xsave osxsave avx mmxext nx fxsr_opt rdtscp lm lahf_lm cmp_legacy svm abm misalignsse sse4a 3dnowprefetch osvw ibs skinit wdt ts ttp tm_amd hwpstate constant_tsc fma3 f16c rdrand cpb aperfmperf avx2 bmi1 bmi2 sha_ni rdseed adx