aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorAlexandru Gagniuc <[email protected]>2018-08-06 23:25:35 +0000
committerBjorn Helgaas <[email protected]>2018-08-10 17:29:04 +0000
commit2d1ce5ec2117d16047334a1aa4b62e0cfb5a0605 (patch)
tree61d71cf43436d8929699cb9032daa7ae623e87d0 /tools/perf/scripts/python/sctop.py
parentPCI: Workaround IDT switch ACS Source Validation erratum (diff)
downloadkernel-2d1ce5ec2117d16047334a1aa4b62e0cfb5a0605.tar.gz
kernel-2d1ce5ec2117d16047334a1aa4b62e0cfb5a0605.zip
PCI: Check for PCIe Link downtraining
When both ends of a PCIe Link are capable of a higher bandwidth than is currently in use, the Link is said to be "downtrained". A downtrained Link may indicate hardware or configuration problems in the system, but it's hard to identify such Links from userspace. Refactor pcie_print_link_status() so it continues to always print PCIe bandwidth information, as several NIC drivers desire. Add a new internal __pcie_print_link_status() to emit a message only when a device's bandwidth is constrained by the fabric and call it from the PCI core for all devices, which identifies all downtrained Links. It also emits messages for a few cases that are technically not downtrained, such as a x4 device in an open-ended x1 slot. Signed-off-by: Alexandru Gagniuc <[email protected]> [bhelgaas: changelog, move __pcie_print_link_status() declaration to drivers/pci/, rename pcie_check_upstream_link() to pcie_report_downtraining()] Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions