linux_dsm_epyc7002/drivers/net/ethernet/broadcom/bnxt
Bjorn Helgaas af125b754e bnxt_en: Report PCIe link properties with pcie_print_link_status()
Previously the driver used pcie_get_minimum_link() to warn when the NIC
is in a slot that can't supply as much bandwidth as the NIC could use.

pcie_get_minimum_link() can be misleading because it finds the slowest link
and the narrowest link (which may be different links) without considering
the total bandwidth of each link.  For a path with a 16 GT/s x1 link and a
2.5 GT/s x16 link, it returns 2.5 GT/s x1, which corresponds to 250 MB/s of
bandwidth, not the true available bandwidth of about 1969 MB/s for a
16 GT/s x1 link.

Use pcie_print_link_status() to report PCIe link speed and possible
limitations instead of implementing this in the driver itself.  This finds
the slowest link in the path to the device by computing the total bandwidth
of each link and compares that with the capabilities of the device.

The dmesg change is:

  - PCIe: Speed %s Width x%d
  + %u.%03u Gb/s available PCIe bandwidth (%s x%d link)

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2018-05-25 17:29:49 -05:00
..
bnxt_dcb.c ethernet/broadcom: Use zeroing memory allocator than allocator/memset 2018-01-02 21:56:40 -05:00
bnxt_dcb.h bnxt_en: Update firmware interface to 1.9.1.15. 2018-03-31 23:24:19 -04:00
bnxt_devlink.c bnxt_en: add support for Flower based vxlan encap/decap offload 2017-10-28 00:02:45 +09:00
bnxt_devlink.h bnxt: Move generic devlink code to new file 2017-10-21 12:28:39 +01:00
bnxt_dim.c bnxt_en: add support for software dynamic interrupt moderation 2018-01-10 15:27:45 -05:00
bnxt_ethtool.c bnxt_en: Fix ethtool -x crash when device is down. 2018-04-11 14:41:59 -04:00
bnxt_ethtool.h bnxt_en: Add ETH_RESET_AP support 2017-12-01 15:29:40 -05:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update firmware interface to 1.9.1.15. 2018-03-31 23:24:19 -04:00
bnxt_nvm_defs.h bnxt_en: Add support for updating flash more securely 2016-07-02 14:52:35 -04:00
bnxt_sriov.c bnxt_en: Improve valid bit checking in firmware response message. 2018-03-31 23:24:19 -04:00
bnxt_sriov.h bnxt_en: Add support for ndo_set_vf_trust 2018-03-31 23:24:19 -04:00
bnxt_tc.c bnxt_en: Ignore src port field in decap filter nodes 2018-04-11 14:41:59 -04:00
bnxt_tc.h bnxt_en: alloc tc_info{} struct only when tc flower is enabled 2017-10-28 00:02:45 +09:00
bnxt_ulp.c bnxt_en: Add ULP calls to stop and restart IRQs. 2018-03-31 23:24:20 -04:00
bnxt_ulp.h bnxt_en: Add ULP calls to stop and restart IRQs. 2018-03-31 23:24:20 -04:00
bnxt_vfr.c bnxt_en: Support max-mtu with VF-reps 2018-04-11 14:42:00 -04:00
bnxt_vfr.h bnxt_en: export a common switchdev PARENT_ID for all reps of an adapter 2018-01-17 14:48:27 -05:00
bnxt_xdp.c bnxt_en: setup xdp_rxq_info 2018-01-05 15:21:21 -08:00
bnxt_xdp.h net: bpf: rename ndo_xdp to ndo_bpf 2017-11-05 22:26:18 +09:00
bnxt.c bnxt_en: Report PCIe link properties with pcie_print_link_status() 2018-05-25 17:29:49 -05:00
bnxt.h bnxt_en: Reserve completion rings and MSIX for bnxt_re RDMA driver. 2018-03-31 23:24:20 -04:00
Makefile bnxt_en: add support for software dynamic interrupt moderation 2018-01-10 15:27:45 -05:00