Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ void PCM::initCStateSupportTables()
case LNL:
case ARL:
case PTL:
case WCL:
PCM_CSTATE_ARRAY(pkgCStateMsr, PCM_PARAM_PROTECT({0, 0, 0x60D, 0x3F8, 0, 0, 0x3F9, 0x3FA, 0x630, 0x631, 0x632}) );

default:
Expand Down Expand Up @@ -911,6 +912,7 @@ void PCM::initCStateSupportTables()
case LNL:
case ARL:
case PTL:
case WCL:
case CWF:
case SNOWRIDGE:
case ELKHART_LAKE:
Expand Down Expand Up @@ -1468,6 +1470,7 @@ bool PCM::detectNominalFrequency()
|| cpu_family_model == LNL
|| cpu_family_model == ARL
|| cpu_family_model == PTL
|| cpu_family_model == WCL
|| cpu_family_model == SKX
|| cpu_family_model == ICX
|| cpu_family_model == SPR
Expand Down Expand Up @@ -2026,6 +2029,7 @@ void PCM::initUncoreObjects()
case LNL: // TGLClientBW works fine for LNL
case ARL: // TGLClientBW works fine for ARL
case PTL: // TGLClientBW works fine for PTL
case WCL: // TGLClientBW works fine for WCL
clientBW = std::make_shared<TGLClientBW>();
break;
/* Disabled since ADLClientBW requires 2x multiplier for BW on top
Expand Down Expand Up @@ -3527,6 +3531,7 @@ bool PCM::isCPUModelSupported(const int model_)
|| model_ == LNL
|| model_ == ARL
|| model_ == PTL
|| model_ == WCL
|| model_ == SKX
|| model_ == ICX
|| model_ == SPR
Expand Down Expand Up @@ -3710,6 +3715,7 @@ PCM::ErrorCode PCM::program(const PCM::ProgramMode mode_, const void * parameter
|| cpu_family_model == LNL
|| cpu_family_model == ARL
|| cpu_family_model == PTL
|| cpu_family_model == WCL
))
{
canUsePerf = false;
Expand Down Expand Up @@ -3800,6 +3806,7 @@ PCM::ErrorCode PCM::program(const PCM::ProgramMode mode_, const void * parameter
case LNL:
case ARL:
case PTL:
case WCL:
LLCArchEventInit(hybridAtomEventDesc);
hybridAtomEventDesc[2].event_number = SKL_MEM_LOAD_RETIRED_L2_MISS_EVTNR;
hybridAtomEventDesc[2].umask_value = SKL_MEM_LOAD_RETIRED_L2_MISS_UMASK;
Expand Down Expand Up @@ -5181,6 +5188,8 @@ const char * PCM::cpuFamilyModelToUArchCodename(const int32 cpu_family_model_, c
return "Arrow Lake";
case PTL:
return "Panther Lake";
case WCL:
return "Wildcat Lake";
case SKX:
if (cpu_stepping_ < 0)
{
Expand Down
9 changes: 9 additions & 0 deletions src/cpucounters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,7 @@ class PCM_API PCM
case LNL:
case ARL:
case PTL:
case WCL:
if (topology[coreID].core_type == TopologyEntry::Atom)
{
return eCoreOCREvent;
Expand All @@ -1858,6 +1859,7 @@ class PCM_API PCM
case LNL:
case ARL:
case PTL:
case WCL:
useGLCOCREvent = true;
break;

Expand Down Expand Up @@ -2120,6 +2122,7 @@ class PCM_API PCM
ARL = PCM_CPU_FAMILY_MODEL(6, 197),
ARL_1 = PCM_CPU_FAMILY_MODEL(6, 198),
PTL = PCM_CPU_FAMILY_MODEL(6, 204),
WCL = PCM_CPU_FAMILY_MODEL(6, 213),
BDX = PCM_CPU_FAMILY_MODEL(6, 79),
KNL = PCM_CPU_FAMILY_MODEL(6, 87),
SKL = PCM_CPU_FAMILY_MODEL(6, 94),
Expand Down Expand Up @@ -2378,6 +2381,7 @@ class PCM_API PCM
case LNL:
case ARL:
case PTL:
case WCL:
return 12;
case CWF:
return 8;
Expand Down Expand Up @@ -2764,6 +2768,7 @@ class PCM_API PCM
|| cpu_family_model == PCM::LNL
|| cpu_family_model == PCM::ARL
|| cpu_family_model == PCM::PTL
|| cpu_family_model == PCM::WCL
|| cpu_family_model == PCM::SPR
|| cpu_family_model == PCM::EMR
|| cpu_family_model == PCM::GNR
Expand Down Expand Up @@ -2806,6 +2811,7 @@ class PCM_API PCM
|| cpu_family_model == PCM::LNL
|| cpu_family_model == PCM::ARL
|| cpu_family_model == PCM::PTL
|| cpu_family_model == PCM::WCL
|| cpu_family_model == PCM::SPR
|| cpu_family_model == PCM::EMR
|| cpu_family_model == PCM::GNR
Expand Down Expand Up @@ -3126,6 +3132,7 @@ class PCM_API PCM
|| cpu_family_model == LNL
|| cpu_family_model == ARL
|| cpu_family_model == PTL
|| cpu_family_model == WCL
|| useSKLPath()
;
}
Expand Down Expand Up @@ -4804,6 +4811,7 @@ uint64 getL2CacheMisses(const CounterStateType & before, const CounterStateType
|| cpu_family_model == PCM::LNL
|| cpu_family_model == PCM::ARL
|| cpu_family_model == PCM::PTL
|| cpu_family_model == PCM::WCL
|| cpu_family_model == PCM::CWF
) {
return after.Event[BasicCounterState::SKLL2MissPos] - before.Event[BasicCounterState::SKLL2MissPos];
Expand Down Expand Up @@ -4922,6 +4930,7 @@ uint64 getL3CacheHitsSnoop(const CounterStateType & before, const CounterStateTy
|| cpu_family_model == PCM::LNL
|| cpu_family_model == PCM::ARL
|| cpu_family_model == PCM::PTL
|| cpu_family_model == PCM::WCL
|| cpu_family_model == PCM::CWF
)
{
Expand Down
Loading