]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/x86/intel: Support hybrid PMU with multiple atom uarchs
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Tue, 20 Aug 2024 07:38:52 +0000 (07:38 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:43 +0000 (09:28 +0200)
commit9f4a39757c81d532f64232702537c53ad4092a5e
tree7c84da60e4e5b7a70e8e31bea575a023fb4580f5
parent2eb2802a41a222bf8d78a88f193ce665071c869e
perf/x86/intel: Support hybrid PMU with multiple atom uarchs

The upcoming ARL-H hybrid processor contains 2 different atom uarchs
which have different PMU capabilities. To distinguish these atom uarchs,
CPUID.1AH.EAX[23:0] defines a native model ID which can be used to
uniquely identify the uarch of the core by combining with core type.

Thus a 3rd hybrid pmu type "hybrid_tiny" is defined to mark the 2nd
atom uarch. The helper find_hybrid_pmu_for_cpu() would compare the
hybrid pmu type and dynamically read core native id from cpu to identify
the corresponding hybrid pmu structure.

Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lkml.kernel.org/r/20240820073853.1974746-4-dapeng1.mi@linux.intel.com
arch/x86/events/intel/core.c
arch/x86/events/perf_event.h