diff options
author | Rajat Jain <rajatja@google.com> | 2018-06-21 16:48:28 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-07-19 16:19:51 -0500 |
commit | 81aa5206f9a7c9793e2f7971400351664e40b04f (patch) | |
tree | 972f1ff3c75b02752f0f78f412f0bd113709db3b /drivers/pci/pci-sysfs.c | |
parent | db89ccbe52c7885644ba578c7771e57620f879b1 (diff) | |
download | op-kernel-dev-81aa5206f9a7c9793e2f7971400351664e40b04f.zip op-kernel-dev-81aa5206f9a7c9793e2f7971400351664e40b04f.tar.gz |
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>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 0c4653c..9f1cb90 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -1746,6 +1746,9 @@ static const struct attribute_group *pci_dev_attr_groups[] = { #endif &pci_bridge_attr_group, &pcie_dev_attr_group, +#ifdef CONFIG_PCIEAER + &aer_stats_attr_group, +#endif NULL, }; |