]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Make DevCtl, DevSta, and AER decoding more consistent
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 31 Jan 2018 21:19:13 +0000 (15:19 -0600)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Mar 2018 11:30:22 +0000 (12:30 +0100)
commitaca48104492b5bfc16eba29dce8f9134ac7641c9
tree8d40e9f49cbef62a183f44893d1bf4a2b3b9415e
parent6d2d713d840c9dd29fb2f570c884848fac8edc73
lspci: Make DevCtl, DevSta, and AER decoding more consistent

Change DevCtl error reporting enables so they match the corresponding
DevSta bits:

-  DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
+  DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-

PCIe r4.0, sec 6.2.2, classifies errors as Correctable or Uncorrectable.
Uncorrectable includes both Non-Fatal and Fatal errors.  Decode the DevSta
"Non-Fatal Error Detected" bit as "NonFatalErr", not "UncorrErr":

-  DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
+  DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-

Change the "Unsupported" and "UnsuppReq" labels in DevCtl and DevSta to
match the "UnsupReq" used in AER.

The Correctable error category doesn't include Non-Fatal errors, so change
the AER Correctable Error Status "Advisory Non-Fatal Error Status" from
"NonFatalErr" to "AdvNonFatalErr":

-  CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
+  CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
ls-caps.c
ls-ecaps.c