From patchwork Sun Dec 13 13:11:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 67027 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBDDrRs9012832 for ; Sun, 13 Dec 2009 13:53:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752704AbZLMNxX (ORCPT ); Sun, 13 Dec 2009 08:53:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753145AbZLMNxX (ORCPT ); Sun, 13 Dec 2009 08:53:23 -0500 Received: from smtp-noauth7.primus.ca ([216.254.180.38]:56151 "HELO mail-07.primus.ca" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1752704AbZLMNxW (ORCPT ); Sun, 13 Dec 2009 08:53:22 -0500 Received: from dsl-173-206-141-177.tor.primus.ca ([173.206.141.177] helo=harry.int.wil.cx) by mail-07.primus.ca with esmtp (Exim 4.69) (envelope-from ) id 1NJoKm-0001Rz-01; Sun, 13 Dec 2009 08:18:00 -0500 Received: by harry.int.wil.cx (Postfix, from userid 1000) id A6BC81E2EB; Sun, 13 Dec 2009 08:11:41 -0500 (EST) From: Matthew Wilcox To: linux-pci@vger.kernel.org, jbarnes@virtuousgeek.org Cc: Matthew Wilcox , Matthew Wilcox Subject: [PATCH 5/5] Add support for reporting PCIe 3.0 speeds Date: Sun, 13 Dec 2009 08:11:35 -0500 Message-Id: <1260709895-9510-5-git-send-email-matthew@wil.cx> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1260709895-9510-4-git-send-email-matthew@wil.cx> References: <1260709895-9510-1-git-send-email-matthew@wil.cx> <1260709895-9510-2-git-send-email-matthew@wil.cx> <1260709895-9510-3-git-send-email-matthew@wil.cx> <1260709895-9510-4-git-send-email-matthew@wil.cx> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 64479e2..11824d7 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -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 */ diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index c7260d4..49c9e6c 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c @@ -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) diff --git a/include/linux/pci.h b/include/linux/pci.h index 55fa471..5176e23 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -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, };