]> mj.ucw.cz Git - pciutils.git/commit
lspci: Decode AER Root Error Command, Root Error Status, Error Source
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Apr 2017 19:31:50 +0000 (14:31 -0500)
committerMartin Mares <mj@ucw.cz>
Sat, 29 Apr 2017 18:05:07 +0000 (20:05 +0200)
commita1492b88709ee5a1565d82eee0387a42625caeac
tree7d879fb7ab8e5fa67a1822a03a1e5eb14650ce60
parenta662543285001bc75f60e4957b4e505af82db0b4
lspci: Decode AER Root Error Command, Root Error Status, Error Source

Decode the AER Root Error Command, Root Error Status, and Error Source
Identification registers.

Per PCIe r3.1, sec 7.10, these registers are only available for Root Ports
and Root Complex Event Collectors, so we have to check the Device/Port Type
from the PCIe capability.

The difference in the "lspci -vv" output looks like this (for a Root Port):

+       RootCmd: CERptEn- NFERptEn- FERptEn-
+       RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
+                FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
+       ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
lib/header.h
ls-caps.c
ls-ecaps.c
lspci.h
tests/cap-aer-root [new file with mode: 0644]