17 May 2013 21:48
[PATCH] lspci: Fully decode ASPM support from Link Capabilities
Bjorn Helgaas <bhelgaas <at> google.com>
2013-05-17 19:48:19 GMT
2013-05-17 19:48:19 GMT
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".
Signed-off-by: Bjorn Helgaas <bhelgaas <at> google.com>
---
ls-caps.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ls-caps.c b/ls-caps.c
index bddb455..752a771 100644
--- a/ls-caps.c
+++ b/ls-caps.c
<at> <at> -728,6 +728,8 <at> <at> static char *aspm_support(int code)
{
switch (code)
{
+ case 0:
+ return "not supported";
case 1:
return "L0s";
case 2:
RSS Feed