Skip to content

Commit 58e1ca3

Browse files
committed
perf/x86/intel/uncore: Add iMC freerunning for Panther Lake
JIRA: https://issues.redhat.com/browse/RHEL-47456 upstream ======== commit 829f5a6 Author: Kan Liang <kan.liang@linux.intel.com> Date: Mon Jul 7 13:17:50 2025 -0700 description =========== PTL uncore imc freerunning counters are the same as the previous HW. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20250707201750.616527-5-kan.liang@linux.intel.com Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent a556974 commit 58e1ca3

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
@@ -1905,9 +1905,17 @@ static struct intel_uncore_type *ptl_uncores[UNCORE_PTL_MAX_NUM_UNCORE_TYPES] =
19051905
[UNCORE_PTL_TYPE_HBO] = &ptl_uncore_hbo,
19061906
};
19071907

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

0 commit comments

Comments
 (0)