• Bjorn Helgaas's avatar
    PCI: Remove unused pcie_get_minimum_link() · e5b1db01
    Bjorn Helgaas authored
    In some cases pcie_get_minimum_link() returned misleading information
    because it found the slowest link and the narrowest link without
    considering the total bandwidth of the link.
    
    For example, consider a path with these two links:
    
      - 16.0 GT/s  x1 link  (16.0 * 10^9 * 128 / 130) *  1 / 8 = 1969 MB/s
      -  2.5 GT/s x16 link  ( 2.5 * 10^9 *   8 /  10) * 16 / 8 = 4000 MB/s
    
    The available bandwidth of the path is limited by the 16 GT/s link to about
    1969 MB/s, but pcie_get_minimum_link() returned 2.5 GT/s x1, which
    corresponds to only 250 MB/s.
    
    Callers should use pcie_print_link_status() instead, or
    pcie_bandwidth_available() if they need more detailed information.
    
    Remove pcie_get_minimum_link() since there are no callers left.
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    e5b1db01
pci.c 151 KB