From 3ec74c71c01878f92e751f15bb8febe720c3ab40 Mon Sep 17 00:00:00 2001 From: Prabu Thangamuthu Date: Tue, 1 Jul 2025 00:05:09 +0000 Subject: [PATCH] ls-caps: Add support to decode Gen7 speed Updated Link capabilities, Link status and Link capabilities 2 registers decode logic to support PCIe Gen7 speed. Signed-off-by: Prabu Thangamuthu --- ls-caps.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ls-caps.c b/ls-caps.c index d0b0c1f..f9d3567 100644 --- 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"; } -- 2.39.5