PCI/AER: Log correctable errors as warning, not error
authorMatt Jolly <Kangie@footclan.ninja>
Thu, 18 Jun 2020 15:55:11 +0000 (01:55 +1000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Jul 2020 00:00:04 +0000 (19:00 -0500)
commite83e2ca3c39553a9d0fd497d9c839b341e38c742
tree4287d40696d0586f07bb6c14dae1350dfc7a7133
parent0678e3109a3cf438a8d1c8e3c3e58a45a59df262
PCI/AER: Log correctable errors as warning, not error

PCIe correctable errors are recovered by hardware with no need for software
intervention (PCIe r5.0, sec 6.2.2.1).

Reduce the log level of correctable errors from KERN_ERR to KERN_WARNING.

The bug reports below are for correctable error logging.  This doesn't fix
the cause of those reports, but it may make the messages less alarming.

[bhelgaas: commit log, use pci_printk() to avoid code duplication]
Link: https://bugzilla.kernel.org/show_bug.cgi?id=201517
Link: https://bugzilla.kernel.org/show_bug.cgi?id=196183
Link: https://lore.kernel.org/r/20200618155511.16009-1-Kangie@footclan.ninja
Signed-off-by: Matt Jolly <Kangie@footclan.ninja>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c