PCI: Add decoding for 16 GT/s link speed
authorJay Fang <f.fangjian@huawei.com>
Mon, 12 Mar 2018 09:13:32 +0000 (17:13 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 21 Mar 2018 21:23:55 +0000 (16:23 -0500)
commit1acfb9b7ee0b1881bb8e875b6757976e48293ec4
treed23a90908da7413d67775edb40d452c7e2913007
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
PCI: Add decoding for 16 GT/s link speed

PCIe 4.0 defines the 16.0 GT/s link speed.  Links can run at that speed
without any Linux changes, but previously their sysfs "max_link_speed" and
"current_link_speed" files contained "Unknown speed", not the expected
"16.0 GT/s".

Add decoding for the new 16 GT/s link speed.

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
[bhelgaas: add PCI_EXP_LNKCAP2_SLS_16_0GB]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Dongdong Liu <liudongdong3@huawei.com>
drivers/pci/pci-sysfs.c
drivers/pci/probe.c
drivers/pci/slot.c
include/linux/pci.h
include/uapi/linux/pci_regs.h