]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
ls-caps: Add support to decode Gen7 speed master
authorPrabu Thangamuthu <Prabu.T@synopsys.com>
Tue, 1 Jul 2025 00:05:09 +0000 (00:05 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 7 Jul 2025 10:04:41 +0000 (12:04 +0200)
Updated Link capabilities, Link status and Link capabilities 2 registers decode logic to support PCIe Gen7 speed.

Signed-off-by: Prabu Thangamuthu <prabut@synopsys.com>
ls-caps.c

index d0b0c1fcdcdb4b74252deb7751318af3edd0a447..f9d35674d6033a06bc82d8b3df0d9d5c7b37c2f6 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -768,6 +768,8 @@ static char *link_speed(int speed)
         return "32GT/s";
       case 6:
         return "64GT/s";
+      case 8:
+        return "128GT/s";
       default:
        return "unknown";
     }
@@ -1195,7 +1197,7 @@ static const char *cap_express_link2_speed_cap(int vector)
    * highest supported rate.
    */
   if (vector & 0x40)
-    return "RsvdP";
+    return "2.5-128GT/s";
   if (vector & 0x20)
     return "2.5-64GT/s";
   if (vector & 0x10)
@@ -1229,6 +1231,8 @@ static const char *cap_express_link2_speed(int type)
         return "32GT/s";
       case 6:
         return "64GT/s";
+      case 8:
+        return "128GT/s";
       default:
        return "Unknown";
     }