summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh_driver.c
diff options
context:
space:
mode:
authorSam Bobroff2018-05-25 05:11:28 +0200
committerMichael Ellerman2018-06-03 12:43:37 +0200
commit796b9f5b317a46d1b744f661c38a62b1280a6ab7 (patch)
treee0cdbb5daf16906f25e7b1e55735978aa370c5bf /arch/powerpc/kernel/eeh_driver.c
parentpowerpc/perf: Unregister thread-imc if core-imc not supported (diff)
downloadkernel-qcow2-linux-796b9f5b317a46d1b744f661c38a62b1280a6ab7.tar.gz
kernel-qcow2-linux-796b9f5b317a46d1b744f661c38a62b1280a6ab7.tar.xz
kernel-qcow2-linux-796b9f5b317a46d1b744f661c38a62b1280a6ab7.zip
powerpc/eeh: Add final message for successful recovery
Add a single log line at the end of successful EEH recovery, so that it's clear that event processing has finished. Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh_driver.c')
-rw-r--r--arch/powerpc/kernel/eeh_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c
index b8a329f04814..07e0a42035ce 100644
--- a/arch/powerpc/kernel/eeh_driver.c
+++ b/arch/powerpc/kernel/eeh_driver.c
@@ -778,14 +778,13 @@ void eeh_handle_normal_event(struct eeh_pe *pe)
eeh_pe_update_time_stamp(pe);
pe->freeze_count++;
if (pe->freeze_count > eeh_max_freezes) {
- pr_err("EEH: PHB#%x-PE#%x has failed %d times in the\n"
- "last hour and has been permanently disabled.\n",
+ pr_err("EEH: PHB#%x-PE#%x has failed %d times in the last hour and has been permanently disabled.\n",
pe->phb->global_number, pe->addr,
pe->freeze_count);
goto hard_fail;
}
- pr_warn("EEH: This PCI device has failed %d times in the last hour\n",
- pe->freeze_count);
+ pr_warn("EEH: This PCI device has failed %d times in the last hour and will be permanently disabled after %d failures.\n",
+ pe->freeze_count, eeh_max_freezes);
/* Walk the various device drivers attached to this slot through
* a reset sequence, giving each an opportunity to do what it needs
@@ -911,6 +910,7 @@ void eeh_handle_normal_event(struct eeh_pe *pe)
pr_info("EEH: Notify device driver to resume\n");
eeh_pe_dev_traverse(pe, eeh_report_resume, NULL);
+ pr_info("EEH: Recovery successful.\n");
goto final;
hard_fail: