1bb42b3d3SRoman SudarikovWhat: /sys/devices/uncore_iio_x/dieX 2bb42b3d3SRoman SudarikovDate: February 2020 3bb42b3d3SRoman SudarikovContact: Roman Sudarikov <roman.sudarikov@linux.intel.com> 4bb42b3d3SRoman SudarikovDescription: 5bb42b3d3SRoman Sudarikov Each IIO stack (PCIe root port) has its own IIO PMON block, so 6bb42b3d3SRoman Sudarikov each dieX file (where X is die number) holds "Segment:Root Bus" 7bb42b3d3SRoman Sudarikov for PCIe root port, which can be monitored by that IIO PMON 8bb42b3d3SRoman Sudarikov block. 9bb42b3d3SRoman Sudarikov For example, on 4-die Xeon platform with up to 6 IIO stacks per 10bb42b3d3SRoman Sudarikov die and, therefore, 6 IIO PMON blocks per die, the mapping of 11bb42b3d3SRoman Sudarikov IIO PMON block 0 exposes as the following: 12bb42b3d3SRoman Sudarikov 13bb42b3d3SRoman Sudarikov $ ls /sys/devices/uncore_iio_0/die* 14bb42b3d3SRoman Sudarikov -r--r--r-- /sys/devices/uncore_iio_0/die0 15bb42b3d3SRoman Sudarikov -r--r--r-- /sys/devices/uncore_iio_0/die1 16bb42b3d3SRoman Sudarikov -r--r--r-- /sys/devices/uncore_iio_0/die2 17bb42b3d3SRoman Sudarikov -r--r--r-- /sys/devices/uncore_iio_0/die3 18bb42b3d3SRoman Sudarikov 19bb42b3d3SRoman Sudarikov $ tail /sys/devices/uncore_iio_0/die* 20bb42b3d3SRoman Sudarikov ==> /sys/devices/uncore_iio_0/die0 <== 21bb42b3d3SRoman Sudarikov 0000:00 22bb42b3d3SRoman Sudarikov ==> /sys/devices/uncore_iio_0/die1 <== 23bb42b3d3SRoman Sudarikov 0000:40 24bb42b3d3SRoman Sudarikov ==> /sys/devices/uncore_iio_0/die2 <== 25bb42b3d3SRoman Sudarikov 0000:80 26bb42b3d3SRoman Sudarikov ==> /sys/devices/uncore_iio_0/die3 <== 27bb42b3d3SRoman Sudarikov 0000:c0 28bb42b3d3SRoman Sudarikov 29bb42b3d3SRoman Sudarikov Which means: 30bb42b3d3SRoman Sudarikov IIO PMU 0 on die 0 belongs to PCI RP on bus 0x00, domain 0x0000 31bb42b3d3SRoman Sudarikov IIO PMU 0 on die 1 belongs to PCI RP on bus 0x40, domain 0x0000 32bb42b3d3SRoman Sudarikov IIO PMU 0 on die 2 belongs to PCI RP on bus 0x80, domain 0x0000 33bb42b3d3SRoman Sudarikov IIO PMU 0 on die 3 belongs to PCI RP on bus 0xc0, domain 0x0000 34