33 lines
1,019 B
Diff
33 lines
1,019 B
Diff
From caca31a0eea41c7b051705704c1158fddc02fbd2 Mon Sep 17 00:00:00 2001
|
|
From: Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>
|
|
Date: Tue, 4 Jun 2019 18:24:46 +0200
|
|
Subject: [PATCH] lspci: Add PCIe 5.0 data rate (32 GT/s) support
|
|
|
|
This enables "lspci" to show PCIe 5.0 data rate (32 GT/s) properly
|
|
according to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA
|
|
and PCI_EXP_LNKCTL2.
|
|
|
|
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
|
|
|
|
Index: pciutils-3.5.6/ls-caps.c
|
|
===================================================================
|
|
--- pciutils-3.5.6.orig/ls-caps.c
|
|
+++ pciutils-3.5.6/ls-caps.c
|
|
@@ -728,6 +728,8 @@ static char *link_speed(int speed)
|
|
return "8GT/s";
|
|
case 4:
|
|
return "16GT/s";
|
|
+ case 5:
|
|
+ return "32GT/s";
|
|
default:
|
|
return "unknown";
|
|
}
|
|
@@ -1059,6 +1061,8 @@ static const char *cap_express_link2_spe
|
|
return "8GT/s";
|
|
case 4:
|
|
return "16GT/s";
|
|
+ case 5:
|
|
+ return "32GT/s";
|
|
default:
|
|
return "Unknown";
|
|
}
|