]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Add PCIe 6.0 data rate (64 GT/s) also to LnkCap2
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 8 Dec 2023 10:13:07 +0000 (12:13 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 8 Dec 2023 15:08:07 +0000 (16:08 +0100)
While commit 5bdf63b6b1bc ("lspci: Add PCIe 6.0 data rate (64 GT/s)
support") added 64 GT/s support to some registers, LnkCap2 Supported
Link Speeds Vector was not included.

Add PCIe 6.0 data rate bit check also into
cap_express_link2_speed_cap().

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
ls-caps.c

index fce9502bd29a8c1cfe1438323c5cb6c84414370a..2c99812c4ed25cdb72c7c71054b53365ec78675c 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1191,8 +1191,10 @@ static const char *cap_express_link2_speed_cap(int vector)
    * permitted to skip support for any data rates between 2.5GT/s and the
    * highest supported rate.
    */
-  if (vector & 0x60)
+  if (vector & 0x40)
     return "RsvdP";
+  if (vector & 0x20)
+    return "2.5-64GT/s";
   if (vector & 0x10)
     return "2.5-32GT/s";
   if (vector & 0x08)