PCI: Add support for reporting PCIe 3.0 speeds
authorMatthew Wilcox <matthew@wil.cx>
Sun, 13 Dec 2009 13:11:35 +0000 (08:11 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:15:19 +0000 (16:15 -0800)
Add the 8.0 GT/s speed.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c
drivers/pci/slot.c
include/linux/pci.h

index 2803ab96a98c69a27b56df8e063d32369ec7a138..9672760c7ade3233ab8656f3b5eb45fe0e50d389 100644 (file)
@@ -416,7 +416,7 @@ static unsigned char pcie_link_speed[] = {
        PCI_SPEED_UNKNOWN,              /* 0 */
        PCIE_SPEED_2_5GT,               /* 1 */
        PCIE_SPEED_5_0GT,               /* 2 */
-       PCI_SPEED_UNKNOWN,              /* 3 */
+       PCIE_SPEED_8_0GT,               /* 3 */
        PCI_SPEED_UNKNOWN,              /* 4 */
        PCI_SPEED_UNKNOWN,              /* 5 */
        PCI_SPEED_UNKNOWN,              /* 6 */
index c7260d4e339b565e3800c7217f2f474225f9b6e1..49c9e6c9779a1e5ef1209cdfc2b45821799d9c06 100644 (file)
@@ -71,6 +71,7 @@ static char *pci_bus_speed_strings[] = {
        "133 MHz PCI-X 533",    /* 0x13 */
        "2.5 GT/s PCIe",        /* 0x14 */
        "5.0 GT/s PCIe",        /* 0x15 */
+       "8.0 GT/s PCIe",        /* 0x16 */
 };
 
 static ssize_t bus_speed_read(enum pci_bus_speed speed, char *buf)
index 842adaad312e5e2394416793b8bf2bf853f44159..0c3a29444f89ffc8c5976b7785523bd52cee0fa6 100644 (file)
@@ -210,6 +210,7 @@ enum pci_bus_speed {
        PCI_SPEED_133MHz_PCIX_533       = 0x13,
        PCIE_SPEED_2_5GT                = 0x14,
        PCIE_SPEED_5_0GT                = 0x15,
+       PCIE_SPEED_8_0GT                = 0x16,
        PCI_SPEED_UNKNOWN               = 0xff,
 };