-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping
Current version supports a server line starting Intel® Xeon® Processor Scalable Family and introduces mapping for IIO Uncore units only. Other units can be added on demand. IIO stack to PMON mapping is exposed through: /sys/devices/uncore_iio_<pmu_idx>/dieX where dieX is file which holds "Segment:Root Bus" for PCIe root port, which can be monitored by that IIO PMON block. Details are explained in Documentation/ABI/testing/sysfs-devices-mapping Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com> Signed-off-by: Roman Sudarikov <roman.sudarikov@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Reviewed-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Link: https://lkml.kernel.org/r/20200601083543.30011-4-alexander.antonov@linux.intel.com
- Loading branch information
Roman Sudarikov
authored and
Peter Zijlstra
committed
Jun 15, 2020
1 parent
36b533b
commit bb42b3d
Showing
3 changed files
with
233 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
What: /sys/devices/uncore_iio_x/dieX | ||
Date: February 2020 | ||
Contact: Roman Sudarikov <roman.sudarikov@linux.intel.com> | ||
Description: | ||
Each IIO stack (PCIe root port) has its own IIO PMON block, so | ||
each dieX file (where X is die number) holds "Segment:Root Bus" | ||
for PCIe root port, which can be monitored by that IIO PMON | ||
block. | ||
For example, on 4-die Xeon platform with up to 6 IIO stacks per | ||
die and, therefore, 6 IIO PMON blocks per die, the mapping of | ||
IIO PMON block 0 exposes as the following: | ||
|
||
$ ls /sys/devices/uncore_iio_0/die* | ||
-r--r--r-- /sys/devices/uncore_iio_0/die0 | ||
-r--r--r-- /sys/devices/uncore_iio_0/die1 | ||
-r--r--r-- /sys/devices/uncore_iio_0/die2 | ||
-r--r--r-- /sys/devices/uncore_iio_0/die3 | ||
|
||
$ tail /sys/devices/uncore_iio_0/die* | ||
==> /sys/devices/uncore_iio_0/die0 <== | ||
0000:00 | ||
==> /sys/devices/uncore_iio_0/die1 <== | ||
0000:40 | ||
==> /sys/devices/uncore_iio_0/die2 <== | ||
0000:80 | ||
==> /sys/devices/uncore_iio_0/die3 <== | ||
0000:c0 | ||
|
||
Which means: | ||
IIO PMU 0 on die 0 belongs to PCI RP on bus 0x00, domain 0x0000 | ||
IIO PMU 0 on die 1 belongs to PCI RP on bus 0x40, domain 0x0000 | ||
IIO PMU 0 on die 2 belongs to PCI RP on bus 0x80, domain 0x0000 | ||
IIO PMU 0 on die 3 belongs to PCI RP on bus 0xc0, domain 0x0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters