Loading
perf/x86/uncore: Support per PMU cpumask
mainline inclusion from mainline-v6.11-rc1 commit c74443d92f68f07c03ae242ced554b749e6c6736 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/IAGJQ7 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c74443d92f68f07c03ae242ced554b749e6c6736 ------------------------------------- The cpumask of some uncore units, e.g., CXL uncore units, may be wrong under some configurations. Perf may access an uncore counter of a non-existent uncore unit. The uncore driver assumes that all uncore units are symmetric among dies. A global cpumask is shared among all uncore PMUs. However, some CXL uncore units may only be available on some dies. A per PMU cpumask is introduced to track the CPU mask of this PMU. The driver searches the unit control RB tree to check whether the PMU is available on a given die, and updates the per PMU cpumask accordingly. Intel-SIG: commit c74443d92f68 perf/x86/uncore: Support per PMU cpumask Backport SPR/EMR CXL and HBM perfmon support to kernel v5.10 Signed-off-by:Kan Liang <kan.liang@linux.intel.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by:
Yunying Sun <yunying.sun@intel.com> Link: https://lore.kernel.org/r/20240614134631.1092359-3-kan.liang@linux.intel.com Signed-off-by:
Yunying Sun <yunying.sun@intel.com>