Kan Liang f76a842044 perf/x86/uncore: Apply the unit control RB tree to PCI uncore units
The unit control RB tree has the unit control and unit ID information
for all the PCI units. Use them to replace the box_ctls/pci_offsets to
get an accurate unit control address for PCI uncore units.

The UPI/M3UPI units in the discovery table are ignored. Please see the
commit 65248a9a9ee1 ("perf/x86/uncore: Add a quirk for UPI on SPR").
Manually allocate a unit control RB tree for UPI/M3UPI.
Add cleanup_extra_boxes to release such manual allocation.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Yunying Sun <yunying.sun@intel.com>
Link: https://lore.kernel.org/r/20240614134631.1092359-7-kan.liang@linux.intel.com
2024-06-17 17:57:58 +02:00
..
2024-03-21 14:41:00 -07:00
2024-05-02 13:12:31 +02:00
2024-05-02 13:12:31 +02:00
2024-03-21 12:44:10 -07:00
2024-03-14 15:53:10 -07:00
2024-04-20 11:06:42 -07:00
2024-04-27 12:02:55 -07:00
2024-03-21 10:13:47 -07:00
2024-03-15 12:37:59 -07:00