Skip to content

Commit

Permalink
Support Intel MeteorLake
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Jun 4, 2024
1 parent fa1f15d commit de2229b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ enum CpuMicroarch {
IntelRaptorlake,
IntelSapphireRapid,
IntelEmeraldRapid,
LastIntel = IntelEmeraldRapid,
IntelMeteorLake,
LastIntel = IntelMeteorLake,
FirstAMD,
AMDF15R30 = FirstAMD,
AMDZen,
Expand Down Expand Up @@ -174,6 +175,7 @@ struct PmuConfig {
static const PmuConfig pmu_configs[] = {
{ IntelEmeraldRapid, "Intel EmeraldRapid", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelSapphireRapid, "Intel SapphireRapid", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelMeteorLake, "Intel Meteorlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelRaptorlake, "Intel Raptorlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelAlderlake, "Intel Alderlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelRocketlake, "Intel Rocketlake", 0x5111c4, 0, 0, 100, PMU_TICKS_RCB },
Expand Down
4 changes: 3 additions & 1 deletion src/PerfCounters_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ static CpuMicroarch compute_cpu_microarch() {
return IntelSapphireRapid;
case 0xc06f0:
return IntelEmeraldRapid;
case 0xa06a0:
return IntelMeteorLake;
case 0x30f00:
return AMDF15R30;
case 0x00f10: // A8-3530MX, Naples, Whitehaven, Summit Ridge, Snowy Owl (Zen), Milan (Zen 3) (UNTESTED)
Expand All @@ -113,7 +115,7 @@ static CpuMicroarch compute_cpu_microarch() {
}
break;
case 0x10f10: // Raven Ridge, Great Horned Owl (Zen) (UNTESTED)
case 0x10f80: // Banded Kestrel (Zen), Picasso (Zen+), 7975WX
case 0x10f80: // Banded Kestrel (Zen), Picasso (Zen+), 7975WX (Zen2)
case 0x20f00: // Dali (Zen) (UNTESTED)
if (ext_family == 8) {
return AMDZen;
Expand Down

0 comments on commit de2229b

Please sign in to comment.