OpenCloudOS-Kernel/drivers/pci/pcie
Lukas Wunner 0fa635aec9 PCI/LINK: Deduplicate bandwidth reports for multi-function devices
If a multi-function device's bandwidth is already limited when it is
enumerated, a message is logged only for function 0.  By contrast, when
downtraining occurs after enumeration, a message is logged for all
functions.  That's because the former uses pcie_report_downtraining(),
whereas the latter uses __pcie_print_link_status() (which doesn't filter
functions != 0).  I am seeing this happen on a MacBookPro9,1 with a GPU
(function 0) and an integrated HDA controller (function 1).

Avoid this incongruence by calling pcie_report_downtraining() in both
cases.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alexandru Gagniuc <alex.gagniuc@dellteam.com>
2019-03-25 17:59:07 -05:00
..
Kconfig PCI: Update PCIEPORTBUS Kconfig help text 2019-03-06 15:00:09 -06:00
Makefile PCI/LINK: Report degraded links via link bandwidth notification 2019-03-05 15:04:13 -06:00
aer.c PCI/AER: Use match_string() helper to simplify the code 2019-01-29 16:32:17 -06:00
aer_inject.c PCI/AER: Refactor error injection fallbacks 2018-10-18 19:43:19 -05:00
aspm.c pci-v4.21-changes 2019-01-05 17:57:34 -08:00
bw_notification.c PCI/LINK: Deduplicate bandwidth reports for multi-function devices 2019-03-25 17:59:07 -05:00
dpc.c PCI/DPC: Fix print AER status in DPC event handling 2019-02-21 17:07:20 -06:00
err.c PCI/ERR: Remove duplicated include from err.c 2018-10-02 16:04:40 -05:00
pme.c PCI/PME: Fix possible use-after-free on remove 2019-03-01 17:45:27 -06:00
portdrv.h PCI/LINK: Report degraded links via link bandwidth notification 2019-03-05 15:04:13 -06:00
portdrv_core.c PCI/LINK: Report degraded links via link bandwidth notification 2019-03-05 15:04:13 -06:00
portdrv_pci.c PCI/LINK: Report degraded links via link bandwidth notification 2019-03-05 15:04:13 -06:00
ptm.c Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00