From: Gavin Shan Date: Tue, 14 Feb 2017 23:53:45 +0000 (+1100) Subject: lspci: Support GEN4 speed (16GT/s) X-Git-Tag: v3.5.3~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9628600bbbeffc4ec6dc48943ee091a5d3eca18b;p=pciutils.git lspci: Support GEN4 speed (16GT/s) This enables "lspci" to show GEN4 speed (16GT/s) properly according to the contents in register PCI_EXP_LNKCAP, PCI_EXP_LNKSTA and PCI_EXP_LNKCTL2. Reported-by: Carol Soto Signed-off-by: Gavin Shan --- diff --git a/ls-caps.c b/ls-caps.c index 7ff6c67..d365324 100644 --- a/ls-caps.c +++ b/ls-caps.c @@ -726,6 +726,8 @@ static char *link_speed(int speed) return "5GT/s"; case 3: return "8GT/s"; + case 4: + return "16GT/s"; default: return "unknown"; } @@ -1000,6 +1002,8 @@ static const char *cap_express_link2_speed(int type) return "5GT/s"; case 3: return "8GT/s"; + case 4: + return "16GT/s"; default: return "Unknown"; }