Commit 9f4a397
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Tested-by: Yongwei Ma <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]1 parent 2eb2802 commit 9f4a397
2 files changed
+36
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4924 | 4924 | | |
4925 | 4925 | | |
4926 | 4926 | | |
4927 | | - | |
| 4927 | + | |
| 4928 | + | |
| 4929 | + | |
4928 | 4930 | | |
4929 | 4931 | | |
4930 | 4932 | | |
| 4933 | + | |
4931 | 4934 | | |
4932 | | - | |
4933 | | - | |
4934 | | - | |
4935 | | - | |
4936 | | - | |
| 4935 | + | |
4937 | 4936 | | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
4938 | 4947 | | |
4939 | 4948 | | |
4940 | 4949 | | |
| |||
6238 | 6247 | | |
6239 | 6248 | | |
6240 | 6249 | | |
6241 | | - | |
6242 | | - | |
| 6250 | + | |
| 6251 | + | |
| 6252 | + | |
6243 | 6253 | | |
6244 | 6254 | | |
6245 | 6255 | | |
| |||
6272 | 6282 | | |
6273 | 6283 | | |
6274 | 6284 | | |
6275 | | - | |
| 6285 | + | |
6276 | 6286 | | |
6277 | 6287 | | |
6278 | 6288 | | |
| |||
| 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