perf/x86/intel/uncore: Add Meteor Lake support
authorKan Liang <kan.liang@linux.intel.com>
Fri, 10 Feb 2023 19:02:38 +0000 (11:02 -0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 11 Feb 2023 11:39:03 +0000 (12:39 +0100)
commitc828441f21ddc819a28b5723a72e3c840e9de1c6
tree723a9b0653a6b98702ae11b6426096ee35cfe048
parentfd636b6a9bc6034f2e5bb869658898a2b472c037
perf/x86/intel/uncore: Add Meteor Lake support

The uncore subsystem for Meteor Lake is similar to the previous Alder
Lake. The main difference is that MTL provides PMU support for different
tiles, while ADL only provides PMU support for the whole package. On
ADL, there are CBOX, ARB, and clockbox uncore PMON units. On MTL, they
are split into CBOX/HAC_CBOX, ARB/HAC_ARB, and cncu/sncu which provides
a fixed counter for clockticks. Also, new MSR addresses are introduced
on MTL.

The IMC uncore PMON is the same as Alder Lake. Add new PCIIDs of IMC for
Meteor Lake.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230210190238.1726237-1-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c
arch/x86/events/intel/uncore.h
arch/x86/events/intel/uncore_snb.c