diff --git a/SOURCES/pciutils-3.5.1-gen4speed.patch b/SOURCES/pciutils-3.5.1-gen4speed.patch new file mode 100644 index 0000000..83af0e9 --- /dev/null +++ b/SOURCES/pciutils-3.5.1-gen4speed.patch @@ -0,0 +1,40 @@ +From 9628600bbbeffc4ec6dc48943ee091a5d3eca18b Mon Sep 17 00:00:00 2001 +From: Gavin Shan +Date: Wed, 15 Feb 2017 10:53:45 +1100 +Subject: lspci: Support GEN4 speed (16GT/s) + +This enables "lspci" to show GEN4 speed (16GT/s) properly according +to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA and +PCI_EXP_LNKCTL2. + +Reported-by: Carol Soto +Signed-off-by: Gavin Shan +--- + ls-caps.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ls-caps.c b/ls-caps.c +index 7ff6c67..d365324 100644 +--- a/ls-caps.c ++++ b/ls-caps.c +@@ -726,6 +726,8 @@ static char *link_speed(int speed) + return "5GT/s"; + case 3: + return "8GT/s"; ++ case 4: ++ return "16GT/s"; + default: + return "unknown"; + } +@@ -1000,6 +1002,8 @@ static const char *cap_express_link2_speed(int type) + return "5GT/s"; + case 3: + return "8GT/s"; ++ case 4: ++ return "16GT/s"; + default: + return "Unknown"; + } +-- +cgit v1.1 + diff --git a/SPECS/pciutils.spec b/SPECS/pciutils.spec index 80deee1..3e3ac81 100644 --- a/SPECS/pciutils.spec +++ b/SPECS/pciutils.spec @@ -1,6 +1,6 @@ Name: pciutils Version: 3.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Source1: multilibconfigh @@ -9,6 +9,7 @@ Patch1: pciutils-2.2.1-idpath.patch #add support for directory with another pci.ids, rejected by upstream, rhbz#195327 Patch2: pciutils-dir-d.patch +Patch3: pciutils-3.5.1-gen4speed.patch License: GPLv2+ URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml @@ -56,6 +57,7 @@ devices connected to the PCI bus. %setup -q -n pciutils-%{version} %patch1 -p1 -b .idpath %patch2 -p1 -b .dird +%patch3 -p1 -b .gen4speed sed -i -e 's|^SRC=.*|SRC="http://pciids.sourceforge.net/pci.ids"|' update-pciids.sh @@ -123,6 +125,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig rm -rf $RPM_BUILD_ROOT %changelog +* Mon Apr 03 2017 Michal Hlavinka - 3.5.1-2 +- show speed of gen4 pci cards (#1425167) + * Tue Jun 28 2016 Michal Hlavinka - 3.5.1-1 - updated to 3.5.1 - adds support for 32-bit PCI domains (#1337658)