]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Add PCIe 5.0 data rate (32 GT/s) support
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Tue, 4 Jun 2019 16:24:46 +0000 (18:24 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 4 Jun 2019 20:31:10 +0000 (22:31 +0200)
This enables "lspci" to show PCIe 5.0 data rate (32 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 88964ce50247d87074c04e274e19c7d6dae2a309..8a00aa424db6e63655de5deb5aee6ae38a7dd741 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -742,6 +742,8 @@ static char *link_speed(int speed)
        return "8GT/s";
       case 4:
         return "16GT/s";
+      case 5:
+        return "32GT/s";
       default:
        return "unknown";
     }
@@ -1160,6 +1162,8 @@ static const char *cap_express_link2_speed(int type)
        return "8GT/s";
       case 4:
         return "16GT/s";
+      case 5:
+        return "32GT/s";
       default:
        return "Unknown";
     }