diff mbox series

lspci: Add PCIe 6.0 data rate (64 GT/s) support

Message ID ad286025549e42030bc75ef9f99af9c92071a205.1605740212.git.gustavo.pimentel@synopsys.com (mailing list archive)
State Not Applicable, archived
Headers show
Series lspci: Add PCIe 6.0 data rate (64 GT/s) support | expand

Commit Message

Gustavo Pimentel Nov. 18, 2020, 10:56 p.m. UTC
This enables "lspci" to show PCIe 6.0 data rate (64 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>
---
 ls-caps.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Krzysztof Wilczyński Nov. 19, 2020, 9:10 a.m. UTC | #1
Hi Gustavo,

> This enables "lspci" to show PCIe 6.0 data rate (64 GT/s) properly
> according to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA
> and PCI_EXP_LNKCTL2.
[...]

Looks good!  Thank you for adding this.

Reviewed-by: Krzysztof Wilczyński <kw@linux.com>

Krzysztof
Martin Mareš Dec. 6, 2020, 6:45 p.m. UTC | #2
Hello!

> This enables "lspci" to show PCIe 6.0 data rate (64 GT/s) properly
> according to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA
> and PCI_EXP_LNKCTL2.

Thanks, applied.

				Martin
diff mbox series

Patch

diff --git a/ls-caps.c b/ls-caps.c
index a09b0cf..c4d27d5 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -751,6 +751,8 @@  static char *link_speed(int speed)
         return "16GT/s";
       case 5:
         return "32GT/s";
+      case 6:
+        return "64GT/s";
       default:
 	return "unknown";
     }
@@ -1196,6 +1198,8 @@  static const char *cap_express_link2_speed(int type)
         return "16GT/s";
       case 5:
         return "32GT/s";
+      case 6:
+        return "64GT/s";
       default:
 	return "Unknown";
     }