diff mbox series

[v2] lspci: Add PCIe 5.0 data rate (32 GT/s) support

Message ID ed2a31df07262f5776c92c538da3079bb22aa9bf.1559665071.git.gustavo.pimentel@synopsys.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show
Series [v2] lspci: Add PCIe 5.0 data rate (32 GT/s) support | expand

Commit Message

Gustavo Pimentel June 4, 2019, 4:24 p.m. UTC
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>
---
Changes:
v1 -> v2
 - Rebase patch

ls-caps.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Martin Mareš June 4, 2019, 8:31 p.m. UTC | #1
Hello!

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

Thanks, applied.

				Have a nice fortnight
diff mbox series

Patch

diff --git a/ls-caps.c b/ls-caps.c
index 88964ce..8a00aa4 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -742,6 +742,8 @@  static char *link_speed(int speed)
 	return "8GT/s";
       case 4:
         return "16GT/s";
+      case 5:
+        return "32GT/s";
       default:
 	return "unknown";
     }
@@ -1160,6 +1162,8 @@  static const char *cap_express_link2_speed(int type)
 	return "8GT/s";
       case 4:
         return "16GT/s";
+      case 5:
+        return "32GT/s";
       default:
 	return "Unknown";
     }