summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-02-18 13:54:02 +0100
committerBjorn Helgaas <bhelgaas@google.com>2016-03-08 22:52:13 +0100
commit8e47e15e917fca36945c2f03de28cfda0c8499f0 (patch)
tree57f38021b8b6e6c30d0a78c659d6f47331037a06 /drivers
parentPCI/AER: Log actual error causes in aer_inject (diff)
downloadlinux-8e47e15e917fca36945c2f03de28cfda0c8499f0.tar.xz
linux-8e47e15e917fca36945c2f03de28cfda0c8499f0.zip
PCI/AER: Log aer_inject error injections
Log successful error injections so that injected errors can be differentiated from real errors. Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index 44ed4ded3846..db553dc22c8e 100644
--- a/drivers/pci/pcie/aer/aer_inject.c
+++ b/drivers/pci/pcie/aer/aer_inject.c
@@ -492,6 +492,9 @@ static int aer_inject(struct aer_error_inj *einj)
ret = -EPROTONOSUPPORT;
goto out_put;
}
+ dev_info(&edev->device,
+ "aer_inject: Injecting errors %08x/%08x into device %s\n",
+ einj->cor_status, einj->uncor_status, pci_name(dev));
aer_irq(-1, edev);
} else {
dev_err(&rpdev->dev, "aer_inject: AER device not found\n");