perf/x86/intel/uncore: Support IIO free-running counters on GNR
authorKan Liang <kan.liang@linux.intel.com>
Fri, 17 Nov 2023 16:39:38 +0000 (08:39 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 24 Nov 2023 19:25:02 +0000 (20:25 +0100)
commit388d76175bd9bbad52bbff25c88361d9e5c6615e
tree8356be53d283a9f02b5be559d24b8a7db612db91
parent632c4bf6d007862307440b177d9fee829857e8bb
perf/x86/intel/uncore: Support IIO free-running counters on GNR

The free-running counters for IIO uncore blocks on Granite Rapids are
similar to Sapphire Rapids. The key difference is the offset of the
registers. The number of the IIO uncore blocks can also be retrieved
from the discovery table.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Ammy Yi <ammy.yi@intel.com>
Link: https://lore.kernel.org/r/20231117163939.2468007-4-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c