From f23a2e3a4120f1f6e082d403ca540eac7e4e1667 Mon Sep 17 00:00:00 2001 From: Xorg Date: Thu, 22 Sep 2022 20:45:41 +0200 Subject: [PATCH] DB: add AMD Steppe Eagle --- libcpuid/amd_code_t.h | 1 + libcpuid/recog_amd.c | 3 + tests/amd/jaguar/steppe-eagle-x2.test | 131 ++++++++++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 tests/amd/jaguar/steppe-eagle-x2.test diff --git a/libcpuid/amd_code_t.h b/libcpuid/amd_code_t.h index f100140..106471b 100644 --- a/libcpuid/amd_code_t.h +++ b/libcpuid/amd_code_t.h @@ -37,3 +37,4 @@ CODE(FUSION_Z), CODE(FUSION_A), CODE(FUSION_RX), + CODE(FUSION_GX), diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index 5e2634e..ce33585 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -270,6 +270,8 @@ const struct match_entry_t cpudb_amd[] = { { 15, 0, -1, 22, 48, 4, -1, -1, FUSION_A, 0 , 0, "Mullins X4" }, { 15, 0, 1, 22, 48, 2, -1, -1, FUSION_A, 0 , 0, "Beema X2" }, { 15, 0, 1, 22, 48, 4, -1, -1, FUSION_A, 0 , 0, "Beema X4" }, + { 15, 0, 1, 22, 48, 2, -1, -1, FUSION_GX, 0 , 0, "Steppe Eagle X2" }, + { 15, 0, 1, 22, 48, 4, -1, -1, FUSION_GX, 0 , 0, "Steppe Eagle X4" }, /* Family 17h: Zen Architecture (2017) => https://en.wikichip.org/wiki/amd/microarchitectures/zen */ { 15, -1, -1, 23, 1, -1, -1, -1, NC, EPYC_ , 0, "EPYC (Naples)" }, @@ -499,6 +501,7 @@ static struct amd_code_and_bits_t decode_amd_codename_part1(const char *bs) { FUSION_Z, "Z-##" }, { FUSION_EA, "[EA]#-####" }, { FUSION_RX, "RX-###" }, + { FUSION_GX, "GX-###" }, }; const struct { uint64_t bit; const char *search; } bit_matchtable[] = { diff --git a/tests/amd/jaguar/steppe-eagle-x2.test b/tests/amd/jaguar/steppe-eagle-x2.test new file mode 100644 index 0000000..51999a6 --- /dev/null +++ b/tests/amd/jaguar/steppe-eagle-x2.test @@ -0,0 +1,131 @@ +------[ Logical CPU #0 ]------ +CPUID 00000000: 0000000D-68747541-444D4163-69746E65 [AuthenticAMD] +CPUID 00000001: 00730F01-00020800-7ED8220B-178BFBFF +CPUID 00000002: 00000000-00000000-00000000-00000000 +CPUID 00000003: 00000000-00000000-00000000-00000000 +CPUID 00000005: 00000040-00000040-00000003-00000000 +CPUID 00000006: 00000000-00000000-00000001-00000000 +CPUID 00000007: 00000000-00000008-00000000-00000000 +CPUID 00000008: 00000000-00000000-00000000-00000000 +CPUID 00000009: 00000000-00000000-00000000-00000000 +CPUID 0000000A: 00000000-00000000-00000000-00000000 +CPUID 0000000C: 00000000-00000000-00000000-00000000 +CPUID 0000000D: 00000007-00000340-00000340-00000000 [SL 00] [x87] +CPUID 0000000D: 00000001-00000000-00000000-00000000 [SL 01] [SSE] +CPUID 0000000D: 00000100-00000240-00000000-00000000 [SL 02] [AVX] +CPUID 80000000: 8000001E-68747541-444D4163-69746E65 [AuthenticAMD] +CPUID 80000001: 00730F01-00000000-1D4037FF-2FD3FBFF +CPUID 80000002: 20444D41-322D5847-4C473831-434F5320 [AMD GX-218GL SOC] +CPUID 80000003: 74697720-61522068-6E6F6564-294D5428 [ with Radeon(TM)] +CPUID 80000004: 45315220-61724720-63696870-00202073 [ R1E Graphics ] +CPUID 80000005: FF08FF08-FF28FF20-20080140-20020140 +CPUID 80000006: 21000000-42004200-04008140-00000000 +CPUID 80000007: 00000000-00000001-00002800-000031D9 +CPUID 80000008: 00003028-00000000-00003001-00000000 +CPUID 80000009: 00000000-00000000-00000000-00000000 +CPUID 8000000A: 00000001-00000008-00000000-00001CDF +CPUID 8000000B: 00000000-00000000-00000000-00000000 +CPUID 8000000C: 00000000-00000000-00000000-00000000 +CPUID 8000000D: 00000000-00000000-00000000-00000000 +CPUID 8000000E: 00000000-00000000-00000000-00000000 +CPUID 8000000F: 00000000-00000000-00000000-00000000 +CPUID 80000010: 00000000-00000000-00000000-00000000 +CPUID 80000011: 00000000-00000000-00000000-00000000 +CPUID 80000012: 00000000-00000000-00000000-00000000 +CPUID 80000013: 00000000-00000000-00000000-00000000 +CPUID 80000014: 00000000-00000000-00000000-00000000 +CPUID 80000015: 00000000-00000000-00000000-00000000 +CPUID 80000016: 00000000-00000000-00000000-00000000 +CPUID 80000017: 00000000-00000000-00000000-00000000 +CPUID 80000018: 00000000-00000000-00000000-00000000 +CPUID 80000019: 00000000-00000000-00000000-00000000 +CPUID 8000001A: 00000003-00000000-00000000-00000000 +CPUID 8000001B: 000000FF-00000000-00000000-00000000 +CPUID 8000001C: 00000000-00000000-00000000-00000000 +CPUID 8000001D: 00000121-01C0003F-0000003F-00000000 [SL 00] +CPUID 8000001D: 00000122-0040003F-000000FF-00000000 [SL 01] +CPUID 8000001D: 00004143-03C0003F-000003FF-00000002 [SL 02] +CPUID 8000001E: 00000000-00000000-00000000-00000000 +CPUID 8FFFFFFF: 4C4C4548-494B204F-21595454-5E2D5E20 [HELLO KITTY! ^-^] +------[ Logical CPU #1 ]------ +CPUID 00000000: 0000000D-68747541-444D4163-69746E65 [AuthenticAMD] +CPUID 00000001: 00730F01-01020800-7ED8220B-178BFBFF +CPUID 00000002: 00000000-00000000-00000000-00000000 +CPUID 00000003: 00000000-00000000-00000000-00000000 +CPUID 00000005: 00000040-00000040-00000003-00000000 +CPUID 00000006: 00000000-00000000-00000001-00000000 +CPUID 00000007: 00000000-00000008-00000000-00000000 +CPUID 00000008: 00000000-00000000-00000000-00000000 +CPUID 00000009: 00000000-00000000-00000000-00000000 +CPUID 0000000A: 00000000-00000000-00000000-00000000 +CPUID 0000000C: 00000000-00000000-00000000-00000000 +CPUID 0000000D: 00000007-00000340-00000340-00000000 [SL 00] [x87] +CPUID 0000000D: 00000001-00000000-00000000-00000000 [SL 01] [SSE] +CPUID 0000000D: 00000100-00000240-00000000-00000000 [SL 02] [AVX] +CPUID 80000000: 8000001E-68747541-444D4163-69746E65 [AuthenticAMD] +CPUID 80000001: 00730F01-00000000-1D4037FF-2FD3FBFF +CPUID 80000002: 20444D41-322D5847-4C473831-434F5320 [AMD GX-218GL SOC] +CPUID 80000003: 74697720-61522068-6E6F6564-294D5428 [ with Radeon(TM)] +CPUID 80000004: 45315220-61724720-63696870-00202073 [ R1E Graphics ] +CPUID 80000005: FF08FF08-FF28FF20-20080140-20020140 +CPUID 80000006: 21000000-42004200-04008140-00000000 +CPUID 80000007: 00000000-00000001-00002800-000031D9 +CPUID 80000008: 00003028-00000000-00003001-00000000 +CPUID 80000009: 00000000-00000000-00000000-00000000 +CPUID 8000000A: 00000001-00000008-00000000-00001CDF +CPUID 8000000B: 00000000-00000000-00000000-00000000 +CPUID 8000000C: 00000000-00000000-00000000-00000000 +CPUID 8000000D: 00000000-00000000-00000000-00000000 +CPUID 8000000E: 00000000-00000000-00000000-00000000 +CPUID 8000000F: 00000000-00000000-00000000-00000000 +CPUID 80000010: 00000000-00000000-00000000-00000000 +CPUID 80000011: 00000000-00000000-00000000-00000000 +CPUID 80000012: 00000000-00000000-00000000-00000000 +CPUID 80000013: 00000000-00000000-00000000-00000000 +CPUID 80000014: 00000000-00000000-00000000-00000000 +CPUID 80000015: 00000000-00000000-00000000-00000000 +CPUID 80000016: 00000000-00000000-00000000-00000000 +CPUID 80000017: 00000000-00000000-00000000-00000000 +CPUID 80000018: 00000000-00000000-00000000-00000000 +CPUID 80000019: 00000000-00000000-00000000-00000000 +CPUID 8000001A: 00000003-00000000-00000000-00000000 +CPUID 8000001B: 000000FF-00000000-00000000-00000000 +CPUID 8000001C: 00000000-00000000-00000000-00000000 +CPUID 8000001D: 00000121-01C0003F-0000003F-00000000 [SL 00] +CPUID 8000001D: 00000122-0040003F-000000FF-00000000 [SL 01] +CPUID 8000001D: 00004143-03C0003F-000003FF-00000002 [SL 02] +CPUID 8000001E: 00000001-00000001-00000000-00000000 +CPUID 8FFFFFFF: 4C4C4548-494B204F-21595454-5E2D5E20 [HELLO KITTY! ^-^] +-------------------------------------------------------------------------------- +x86 +general +15 +0 +1 +22 +48 +2 +2 +32 +32 +1024 +-1 +-1 +8 +2 +16 +-1 +-1 +64 +64 +64 +-1 +-1 +-1 +-1 +-1 +-1 +-1 +128 (authoritative) +Steppe Eagle X2 +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 100mhzsteps hwpstate constant_tsc f16c rdrand pa bmi1