intel / S0ixSelftestTool

S0ix Selftest Tool is designed to do the initial debugging for the S2idle path CPU Package C-state and S0ix failures in Linux OS for Intel® Client platforms, it also supports the basic runtime PC10 status check.
GNU General Public License v2.0
135 stars 18 forks source link

Check all PCIe bridge Link Power Management state #19

Closed starnight closed 9 months ago

starnight commented 10 months ago

This tool only checks the PCIe bridge Link Power Management state whose domain and bus is 0000:00. However, the bridges on some other domain and bus will be missed, such as the PCIe bridge 10000:e0:06.0 created by VMD driver.

This patch changes the PCI_SYSFS to "/sys/bus/pci/devices", which lists all PCI devices flatly.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=218394#c8