Skip to contentSkip to conversation

lspci: Add PCIe 6.0 data rate (64 GT/s) also to LnkCap2

PATCH Applied Ilpo Järvinen 3 participants 3 messages Dec 8, 2023 PCI

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lspci: Add PCIe 6.0 data rate (64 GT/s) also to LnkCap2

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().

---

v2:
- Corrected the commit hash in the changelog

 ls-caps.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
ls-caps.c +3 -1
index fce9502bd29a..2c99812c4ed2 100644
@@ -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)
Signature · 1 line
2.30.2
#1 lore raw

Hello!

Quoted 8 lines

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().

Thanks, applied.

Have a nice fortnight

Signature · 2 lines
Martin `MJ' Mareš                        <[email protected]>   http://mj.ucw.cz/
United Computer Wizards, Prague, Czech Republic, Europe, Earth, Universe
#2 lore raw
In reply to Ilpo Järvinen

[+cc Gustavo (author of 5bdf63b6b1bc), just FYI in case you're interested in picking up this change for your use]

Quoted 35 lines · Ilpo Järvinen

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().

---

v2:
- Corrected the commit hash in the changelog

 ls-caps.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
ls-caps.c +3 -1
index fce9502bd29a..2c99812c4ed2 100644
@@ -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)
Signature · 1 line
2.30.2