Loading
perf/x86/uncore: Apply the unit control RB tree to MSR uncore units
mainline inclusion from mainline-v6.11-rc1 commit b1d9ea2e1ca44987c8409cc628dfb0c84e93dce9 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=b1d9ea2e1ca44987c8409cc628dfb0c84e93dce9 ------------------------------------- The unit control RB tree has the unit control and unit ID information for all the MSR units. Use them to replace the box_ctl and uncore_msr_box_ctl() to get an accurate unit control address for MSR uncore units. Add intel_generic_uncore_assign_hw_event(), which utilizes the accurate unit control address from the unit control RB tree to calculate the config_base and event_base. The unit id related information should be retrieved from the unit control RB tree as well. Intel-SIG: commit b1d9ea2e1ca4 perf/x86/uncore: Apply the unit control RB tree to MSR uncore units 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-6-kan.liang@linux.intel.com Signed-off-by:
Yunying Sun <yunying.sun@intel.com>