[PATCH 1/1] Add Gen3 PCIe speed (8GT/s) to lspci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patch 1 of 1

Right now lspci shows "Speed unknown" for PCIe Gen3 links. This two liner
adds 8GT/s to fix that. I don't think the next link rate has yet been
decided. So I only go to Gen3.

Tested on PCIe Gen1, Gen2, and Gen3 systems.

From: Mike Miller <mike.miller@xxxxxx>
Signed-off-by: Mike Miller <mike.miller@xxxxxx>

---
 ls-caps.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ls-caps.c b/ls-caps.c
index a4bf713..d8862b4 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -717,6 +717,8 @@ static char *link_speed(int speed)
 	return "2.5GT/s";
       case 2:
 	return "5GT/s";
+      case 3:
+	return "8GT/s";
       default:
 	return "unknown";
     }
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux