diff options
author | Alexandru Gagniuc | 2019-02-27 21:58:17 +0100 |
---|---|---|
committer | Bjorn Helgaas | 2019-03-05 22:04:13 +0100 |
commit | e8303bb7a75c113388badcc49b2a84b4121c1b3e (patch) | |
tree | 191bc959359be088dc553e69b45d82c3d4a96ff9 /drivers/pci/pcie/portdrv_pci.c | |
parent | PCI/portdrv: Support PCIe services on subtractive decode bridges (diff) | |
download | kernel-qcow2-linux-e8303bb7a75c113388badcc49b2a84b4121c1b3e.tar.gz kernel-qcow2-linux-e8303bb7a75c113388badcc49b2a84b4121c1b3e.tar.xz kernel-qcow2-linux-e8303bb7a75c113388badcc49b2a84b4121c1b3e.zip |
PCI/LINK: Report degraded links via link bandwidth notification
A warning is generated when a PCIe device is probed with a degraded link,
but there was no similar mechanism to warn when the link becomes degraded
after probing. The Link Bandwidth Notification provides this mechanism.
Use the Link Bandwidth Management Interrupt to detect bandwidth changes,
and rescan the bandwidth, looking for the weakest point. This is the same
logic used in probe().
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Diffstat (limited to 'drivers/pci/pcie/portdrv_pci.c')
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 99d2abe88d0b..0a87091a0800 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -240,6 +240,7 @@ static void __init pcie_init_services(void) pcie_pme_init(); pcie_dpc_init(); pcie_hp_init(); + pcie_bandwidth_notification_init(); } static int __init pcie_portdrv_init(void) |