]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Add PCIe 6.0 data rate (64 GT/s) support
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Wed, 18 Nov 2020 22:56:52 +0000 (23:56 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 6 Dec 2020 18:45:17 +0000 (19:45 +0100)
This enables "lspci" to show PCIe 6.0 data rate (64 GT/s) properly
according to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA
and PCI_EXP_LNKCTL2.

Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
ls-caps.c

index b616a4be66c663aea348d5df0022afab8f4147c0..db56556971cb04c8459d82d9043231ece969743b 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -751,6 +751,8 @@ static char *link_speed(int speed)
         return "16GT/s";
       case 5:
         return "32GT/s";
+      case 6:
+        return "64GT/s";
       default:
        return "unknown";
     }
@@ -1197,6 +1199,8 @@ static const char *cap_express_link2_speed(int type)
         return "16GT/s";
       case 5:
         return "32GT/s";
+      case 6:
+        return "64GT/s";
       default:
        return "Unknown";
     }