perf/x86/intel/uncore: Support MSR portal for discovery tables
authorKan Liang <kan.liang@linux.intel.com>
Mon, 7 Jul 2025 20:17:47 +0000 (13:17 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:19 +0000 (13:40 +0200)
commitcf002dafedd06241175e4dbce39ba90a4b75822c
treec8512d40cf88c8d214abe31645e84f1579642253
parentd7b8f8e20813f0179d8ef519541a3527e7661d3a
perf/x86/intel/uncore: Support MSR portal for discovery tables

Starting from the Panther Lake, the discovery table mechanism is also
supported in client platforms. The difference is that the portal of the
global discovery table is retrieved from an MSR.

The layout of discovery tables are the same as the server platforms.
Factor out __parse_discovery_table() to parse discover tables.

The uncore PMON is Die scope. Need to parse the discovery tables for
each die.

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-2-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_discovery.c
arch/x86/events/intel/uncore_discovery.h