mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 07:46:46 +07:00
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>
This commit is contained in:
parent
25af86b2ae
commit
796b9f5b31
@ -778,14 +778,13 @@ void eeh_handle_normal_event(struct eeh_pe *pe)
|
|||||||
eeh_pe_update_time_stamp(pe);
|
eeh_pe_update_time_stamp(pe);
|
||||||
pe->freeze_count++;
|
pe->freeze_count++;
|
||||||
if (pe->freeze_count > eeh_max_freezes) {
|
if (pe->freeze_count > eeh_max_freezes) {
|
||||||
pr_err("EEH: PHB#%x-PE#%x has failed %d times in the\n"
|
pr_err("EEH: PHB#%x-PE#%x has failed %d times in the last hour and has been permanently disabled.\n",
|
||||||
"last hour and has been permanently disabled.\n",
|
|
||||||
pe->phb->global_number, pe->addr,
|
pe->phb->global_number, pe->addr,
|
||||||
pe->freeze_count);
|
pe->freeze_count);
|
||||||
goto hard_fail;
|
goto hard_fail;
|
||||||
}
|
}
|
||||||
pr_warn("EEH: This PCI device has failed %d times in the last hour\n",
|
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);
|
pe->freeze_count, eeh_max_freezes);
|
||||||
|
|
||||||
/* Walk the various device drivers attached to this slot through
|
/* Walk the various device drivers attached to this slot through
|
||||||
* a reset sequence, giving each an opportunity to do what it needs
|
* 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");
|
pr_info("EEH: Notify device driver to resume\n");
|
||||||
eeh_pe_dev_traverse(pe, eeh_report_resume, NULL);
|
eeh_pe_dev_traverse(pe, eeh_report_resume, NULL);
|
||||||
|
|
||||||
|
pr_info("EEH: Recovery successful.\n");
|
||||||
goto final;
|
goto final;
|
||||||
|
|
||||||
hard_fail:
|
hard_fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user