Commit 8d72eba
perf/x86/rapl: Fix the energy-pkg event for AMD CPUs
After commit:
63edbaa ("x86/cpu/topology: Add support for the AMD 0x80000026 leaf")
... on AMD processors that support extended CPUID leaf 0x80000026, the
topology_die_cpumask() and topology_logical_die_id() macros no longer
return the package cpumask and package ID, instead they return the CCD
(Core Complex Die) mask and ID respectively.
This leads to the energy-pkg event scope to be modified to CCD instead of package.
So, change the PMU scope for AMD and Hygon back to package.
On a 12 CCD 1 Package AMD Zen4 Genoa machine:
Before:
$ cat /sys/devices/power/cpumask
0,8,16,24,32,40,48,56,64,72,80,88.
The expected cpumask here is supposed to be just "0", as it is a package
scope event, only one CPU will be collecting the event for all the CPUs in
the package.
After:
$ cat /sys/devices/power/cpumask
0
[ mingo: Cleaned up the changelog ]
Signed-off-by: Dhananjay Ugwekar <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 2ab9d83 commit 8d72eba
1 file changed
+42
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
106 | 119 | | |
107 | 120 | | |
108 | 121 | | |
| |||
140 | 153 | | |
141 | 154 | | |
142 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
143 | 172 | | |
144 | 173 | | |
145 | | - | |
| 174 | + | |
146 | 175 | | |
147 | 176 | | |
148 | 177 | | |
| |||
552 | 581 | | |
553 | 582 | | |
554 | 583 | | |
555 | | - | |
| 584 | + | |
556 | 585 | | |
557 | 586 | | |
558 | 587 | | |
| |||
565 | 594 | | |
566 | 595 | | |
567 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
568 | 602 | | |
569 | 603 | | |
570 | 604 | | |
| |||
579 | 613 | | |
580 | 614 | | |
581 | 615 | | |
582 | | - | |
| 616 | + | |
583 | 617 | | |
584 | 618 | | |
585 | 619 | | |
586 | 620 | | |
587 | 621 | | |
588 | 622 | | |
589 | | - | |
| 623 | + | |
590 | 624 | | |
591 | 625 | | |
592 | 626 | | |
| |||
675 | 709 | | |
676 | 710 | | |
677 | 711 | | |
678 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
679 | 716 | | |
680 | 717 | | |
681 | 718 | | |
| |||
0 commit comments