+111
−51
Loading
mainline inclusion from mainline-v6.10-rc1 commit 97588df87b56e27fd2b5d928d61c7a53e38afbb0 category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/IAGLFT CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97588df87b56e27fd2b5d928d61c7a53e38afbb0 ------------------------------------- The current hybrid initialization codes aren't well organized and are hard to read. Factor out intel_pmu_init_hybrid() to do a common setup for each hybrid PMU. The PMU-specific capability will be updated later via either hard code (ADL) or CPUID hybrid enumeration (MTL). Splitting the ADL and MTL initialization codes, since they have different uarches. The hard code PMU capabilities are not required for MTL either. They can be enumerated by the new leaf 0x23 and IA32_PERF_CAPABILITIES MSR. The hybrid enumeration of the IA32_PERF_CAPABILITIES MSR is broken on MTL. Using the default value. Intel-SIG: commit 97588df87b56 perf/x86/intel: Add common intel_pmu_init_hybrid() Backport as a dependency needed by the GNR distinct pmu name fix Signed-off-by:Kan Liang <kan.liang@linux.intel.com> Signed-off-by:
Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230829125806.3016082-7-kan.liang@linux.intel.com Signed-off-by:
Yunying Sun <yunying.sun@intel.com>