]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add pcie_print_link_status() to log link speed and whether it's limited
authorTal Gilboa <talgi@mellanox.com>
Fri, 30 Mar 2018 13:56:47 +0000 (08:56 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 3 Apr 2018 13:58:30 +0000 (08:58 -0500)
commit86d7812191ea725f76f3af2097b30d764d4c63f8
tree95063571274cdd55ff08841a6dcbbdc5c20bc045
parent19adc4dad525c4ff5f0b416fe4e5e26dada1e310
PCI: Add pcie_print_link_status() to log link speed and whether it's limited

Add pcie_print_link_status().  This logs the current settings of the link
(speed, width, and total available bandwidth).

If the device is capable of more bandwidth but is limited by a slower
upstream link, we include information about the link that limits the
device's performance.

The user may be able to move the device to a different slot for better
performance.

This provides a unified method for all PCI devices to report status and
issues, instead of each device reporting in a different way, using
different code.

Signed-off-by: Tal Gilboa <talgi@mellanox.com>
[bhelgaas: changelog, reword log messages, print device capabilities when
not limited, print bandwidth in Gb/s]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
include/linux/pci.h