Skip to content

Commit 829f5a6

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
perf/x86/intel/uncore: Add iMC freerunning for Panther Lake
PTL uncore imc freerunning counters are the same as the previous HW. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Dapeng Mi <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 64ad6d6 commit 829f5a6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

arch/x86/events/intel/uncore_snb.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,9 +1906,17 @@ static struct intel_uncore_type *ptl_uncores[UNCORE_PTL_MAX_NUM_UNCORE_TYPES] =
19061906
[UNCORE_PTL_TYPE_HBO] = &ptl_uncore_hbo,
19071907
};
19081908

1909+
#define UNCORE_PTL_MMIO_EXTRA_UNCORES 1
1910+
1911+
static struct intel_uncore_type *ptl_mmio_extra_uncores[UNCORE_PTL_MMIO_EXTRA_UNCORES] = {
1912+
&adl_uncore_imc_free_running,
1913+
};
1914+
19091915
void ptl_uncore_mmio_init(void)
19101916
{
1911-
uncore_mmio_uncores = uncore_get_uncores(UNCORE_ACCESS_MMIO, 0, NULL,
1917+
uncore_mmio_uncores = uncore_get_uncores(UNCORE_ACCESS_MMIO,
1918+
UNCORE_PTL_MMIO_EXTRA_UNCORES,
1919+
ptl_mmio_extra_uncores,
19121920
UNCORE_PTL_MAX_NUM_UNCORE_TYPES,
19131921
ptl_uncores);
19141922
}

0 commit comments

Comments
 (0)