Skip to content

Commit

Permalink
debug change
Browse files Browse the repository at this point in the history
Change-Id: Ifdd0f9d93607a4af8fb48603a30d62e0196ab189
  • Loading branch information
rdementi committed Sep 23, 2024
1 parent e72f9b9 commit 58a6801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
33 changes: 1 addition & 32 deletions src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,6 @@ void PCM::initUncoreObjects()
switch (cpu_model)
{
case ICX:
case SNOWRIDGE:
case SPR:
case EMR:
case GNR:
Expand Down Expand Up @@ -2393,27 +2392,7 @@ void PCM::initUncorePMUsDirect()
}
}
break;
case PCM::SNOWRIDGE:
for (uint32 s = 0; s < (uint32)num_sockets; ++s)
{
auto & handle = MSR[socketRefCore[s]];
for (int unit = 0; unit < SNR_IIO_STACK_COUNT; ++unit)
{
iioPMUs[s][unit] = UncorePMU(
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_UNIT_CTL + SNR_IIO_PM_REG_STEP * unit),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTL0 + SNR_IIO_PM_REG_STEP * unit + 0),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTL0 + SNR_IIO_PM_REG_STEP * unit + 1),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTL0 + SNR_IIO_PM_REG_STEP * unit + 2),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTL0 + SNR_IIO_PM_REG_STEP * unit + 3),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTR0 + SNR_IIO_PM_REG_STEP * unit + 0),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTR0 + SNR_IIO_PM_REG_STEP * unit + 1),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTR0 + SNR_IIO_PM_REG_STEP * unit + 2),
std::make_shared<MSRRegister>(handle, SNR_IIO_CBDMA_CTR0 + SNR_IIO_PM_REG_STEP * unit + 3)
);
}
}
break;


case PCM::SPR:
case PCM::EMR:
for (uint32 s = 0; s < (uint32)num_sockets; ++s)
Expand Down Expand Up @@ -2632,12 +2611,6 @@ void PCM::initUncorePMUsDirect()
IRP_CTR_REG_OFFSET = ICX_IRP_CTR_REG_OFFSET;
IRP_UNIT_CTL = ICX_IRP_UNIT_CTL;
break;
case SNOWRIDGE:
irpStacks = SNR_IIO_STACK_COUNT;
IRP_CTL_REG_OFFSET = SNR_IRP_CTL_REG_OFFSET;
IRP_CTR_REG_OFFSET = SNR_IRP_CTR_REG_OFFSET;
IRP_UNIT_CTL = SNR_IRP_UNIT_CTL;
break;
case SPR:
case EMR:
irpStacks = SPR_M2IOSF_NUM;
Expand Down Expand Up @@ -7603,10 +7576,6 @@ void ServerUncorePMUs::initRegisterLocations(const PCM * pcm)
}
else if (cpu_model == PCM::SNOWRIDGE)
{
PCM_PCICFG_M2M_INIT(0, SERVER)
PCM_PCICFG_M2M_INIT(1, SERVER)
PCM_PCICFG_M2M_INIT(2, SERVER)
PCM_PCICFG_M2M_INIT(3, SERVER)
}
else
{
Expand Down
8 changes: 1 addition & 7 deletions src/cpucounters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ class PCM_API PCM
APOLLO_LAKE = 92,
GEMINI_LAKE = 122,
DENVERTON = 95,
SNOWRIDGE = 134,
SNOWRIDGE = 150, // fake Elkhart Lake
CLARKDALE = 37,
WESTMERE_EP = 44,
NEHALEM_EX = 46,
Expand Down Expand Up @@ -2184,7 +2184,6 @@ class PCM_API PCM
case BDX_DE:
case SKX:
case ICX:
case SNOWRIDGE:
case SPR:
case EMR:
case GNR:
Expand Down Expand Up @@ -2574,7 +2573,6 @@ class PCM_API PCM
return (
cpu_model == PCM::SKX
|| cpu_model == PCM::ICX
|| cpu_model == PCM::SNOWRIDGE
|| cpu_model == PCM::SPR
|| cpu_model == PCM::EMR
|| cpu_model == PCM::SRF
Expand Down Expand Up @@ -2621,7 +2619,6 @@ class PCM_API PCM
isCLX()
|| isCPX()
|| cpu_model == PCM::ICX
|| cpu_model == PCM::SNOWRIDGE
|| cpu_model == SPR
|| cpu_model == EMR
);
Expand All @@ -2633,7 +2630,6 @@ class PCM_API PCM
isCLX()
|| isCPX()
|| cpu_model == PCM::ICX
|| cpu_model == PCM::SNOWRIDGE
);
}

Expand All @@ -2657,7 +2653,6 @@ class PCM_API PCM
#endif
|| ICX == cpu_model
|| SPR == cpu_model
|| SNOWRIDGE == cpu_model
);
}

Expand All @@ -2672,7 +2667,6 @@ class PCM_API PCM
{
return (
cpu_model == PCM::JAKETOWN
|| cpu_model == PCM::SNOWRIDGE
|| cpu_model == PCM::IVYTOWN
|| cpu_model == PCM::HASWELLX
|| cpu_model == PCM::BDX_DE
Expand Down

0 comments on commit 58a6801

Please sign in to comment.