Skip to content

Commit

Permalink
[AMD][Zen4] Dump SMBE and BMEC sub-leaves of CPUID 0x80000020
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed Jun 4, 2023
1 parent ddbe97b commit a0eeeda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,11 @@ static const CPUID_STRUCT CpuIDforVendor[CPUID_MAX_FUNC] = {
= {.func = 0x80000020, .sub = 0x00000000},
[CPUID_80000020_00000001_MBE_SUB_LEAF]
= {.func = 0x80000020, .sub = 0x00000001},
/* AMD Family 19h Model 11h, Revision B1 */
[CPUID_80000020_00000002_SMBE_SUB_LEAF]
= {.func = 0x80000020, .sub = 0x00000002},
[CPUID_80000020_00000003_BMEC_SUB_LEAF]
= {.func = 0x80000020, .sub = 0x00000003},
/* AMD Family 19h */
[CPUID_80000021_00000000_EXTENDED_FEATURE_2]
= {.func = 0x80000021, .sub = 0x00000000},
Expand Down
5 changes: 4 additions & 1 deletion coretypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define COREFREQ_MAJOR 1
#define COREFREQ_MINOR 96
#define COREFREQ_REV 2
#define COREFREQ_REV 3

#if !defined(CORE_COUNT)
#define CORE_COUNT 256
Expand Down Expand Up @@ -1006,6 +1006,9 @@ enum CPUID_ENUM {
CPUID_8000001F_00000000_SECURE_ENCRYPTION,
CPUID_80000020_00000000_MBE_SUB_LEAF,
CPUID_80000020_00000001_MBE_SUB_LEAF,
/* AMD Family 19h Model 11h, Revision B1 */
CPUID_80000020_00000002_SMBE_SUB_LEAF,
CPUID_80000020_00000003_BMEC_SUB_LEAF,
/* AMD Family 19h */
CPUID_80000021_00000000_EXTENDED_FEATURE_2,
CPUID_80000022_00000000_EXT_PERF_MON_DEBUG,
Expand Down

0 comments on commit a0eeeda

Please sign in to comment.