Skip to contentSkip to conversation

Add Gen3 PCIe speed (8GT/s) to lspci

PATCH New Mike Miller 1 participant 1 message Dec 2, 2011 PCI

lore
Share & tools
lore
#0 lore raw

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

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 <[email protected]>

---
 ls-caps.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
ls-caps.c +2 -0
index a4bf713..d8862b4 100644
@@ -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";
     }