PCI/AER: Add sysfs attributes to provide AER stats and breakdown
authorRajat Jain <rajatja@google.com>
Thu, 21 Jun 2018 23:48:28 +0000 (16:48 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Jul 2018 21:19:51 +0000 (16:19 -0500)
commit81aa5206f9a7c9793e2f7971400351664e40b04f
tree972f1ff3c75b02752f0f78f412f0bd113709db3b
parentdb89ccbe52c7885644ba578c7771e57620f879b1
PCI/AER: Add sysfs attributes to provide AER stats and breakdown

Add sysfs attributes to provide total and breakdown of the AERs seen,
into different type of correctable, fatal and nonfatal errors:

  /sys/bus/pci/devices/<dev>/aer_dev_correctable
  /sys/bus/pci/devices/<dev>/aer_dev_fatal
  /sys/bus/pci/devices/<dev>/aer_dev_nonfatal

Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats [new file with mode: 0644]
Documentation/PCI/pcieaer-howto.txt
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
drivers/pci/pcie/aer.c