Commit 059d9a1
committed
perf/x86/intel: Support hybrid PMU with multiple atom uarchs
JIRA: https://issues.redhat.com/browse/RHEL-20094
upstream
========
commit 9f4a397
Author: Dapeng Mi <dapeng1.mi@linux.intel.com>
Date: Tue Aug 20 07:38:52 2024 +0000
description
===========
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
Signed-off-by: Michael Petlan <mpetlan@redhat.com>1 parent 511af16 commit 059d9a1
2 files changed
+36
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4923 | 4923 | | |
4924 | 4924 | | |
4925 | 4925 | | |
4926 | | - | |
| 4926 | + | |
| 4927 | + | |
| 4928 | + | |
4927 | 4929 | | |
4928 | 4930 | | |
4929 | 4931 | | |
| 4932 | + | |
4930 | 4933 | | |
4931 | | - | |
4932 | | - | |
4933 | | - | |
4934 | | - | |
4935 | | - | |
| 4934 | + | |
4936 | 4935 | | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
4937 | 4946 | | |
4938 | 4947 | | |
4939 | 4948 | | |
| |||
6244 | 6253 | | |
6245 | 6254 | | |
6246 | 6255 | | |
6247 | | - | |
6248 | | - | |
| 6256 | + | |
| 6257 | + | |
| 6258 | + | |
6249 | 6259 | | |
6250 | 6260 | | |
6251 | 6261 | | |
| |||
6278 | 6288 | | |
6279 | 6289 | | |
6280 | 6290 | | |
6281 | | - | |
| 6291 | + | |
6282 | 6292 | | |
6283 | 6293 | | |
6284 | 6294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
671 | 677 | | |
672 | 678 | | |
673 | 679 | | |
| |||
676 | 682 | | |
677 | 683 | | |
678 | 684 | | |
| 685 | + | |
679 | 686 | | |
680 | 687 | | |
681 | 688 | | |
682 | 689 | | |
683 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
684 | 698 | | |
685 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
686 | 702 | | |
687 | 703 | | |
688 | 704 | | |
| |||
0 commit comments