From 90d270fa720862ee357735b494a0b58643a27061 Mon Sep 17 00:00:00 2001 From: Ilpo Järvinen Date: Fri, 8 Dec 2023 12:13:07 +0200 Subject: lspci: Add PCIe 6.0 data rate (64 GT/s) also to LnkCap2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ls-caps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ls-caps.c b/ls-caps.c index fce9502..2c99812 100644 --- 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) -- cgit 1.2.3-korg