Skip to contentSkip to conversation

lspci: Fully decode ASPM support from Link Capabilities

PATCH Applied Bjorn Helgaas 2 participants 2 messages May 17, 2013 – May 20, 2013 PCI

lore
Share & tools
lore

Bjorn Helgaas

author maintainer
#0 lore raw

PATCH 1/1 lspci: Fully decode ASPM support from Link Capabilities

The ASPM Support field in Link Capabilities is two bits, and all four possible encodings are defined as of PCIe spec r3.0. Previously, lspci only decoded values 1, 2, and 3. This adds 0, so lspci will show "ASPM not supported" instead of "ASPM unknown".

---
 ls-caps.c |    2 ++
 1 file changed, 2 insertions(+)
ls-caps.c +2 -0
index bddb455..752a771 100644
@@ -728,6 +728,8 @@ static char *aspm_support(int code)
 {
   switch (code)
     {
+      case 0:
+        return "not supported";
       case 1:
 	return "L0s";
       case 2:
Applied
#1 lore raw

Hello!

Quoted 4 lines

The ASPM Support field in Link Capabilities is two bits, and all four possible encodings are defined as of PCIe spec r3.0. Previously, lspci only decoded values 1, 2, and 3. This adds 0, so lspci will show "ASPM not supported" instead of "ASPM unknown".

Thanks, applied.

Have a nice fortnight

Signature · 3 lines
Martin `MJ' Mares                          <[email protected]>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
God is real, unless declared integer.