]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: Add decoding for 16 GT/s link speed
authordann frazier <dann.frazier@canonical.com>
Fri, 25 May 2018 19:32:16 +0000 (13:32 -0600)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 20:53:17 +0000 (16:53 -0400)
commitac9246624ab54b7adc65e9fe506d8d8d84a1a475
tree158672537951ca531fc7a9b118f4d29d911916e8
parentc703b6cd4a21b2d1370d9e82de36a7f029f749bc
PCI: Add decoding for 16 GT/s link speed

BugLink: https://bugs.launchpad.net/bugs/1773243
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>
(cherry picked from commit 1acfb9b7ee0b1881bb8e875b6757976e48293ec4)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Kleber Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/pci/pci-sysfs.c
drivers/pci/probe.c
drivers/pci/slot.c
include/linux/pci.h
include/uapi/linux/pci_regs.h