powerpc/eeh: Allow disabling recovery
Currently when we detect an error we automatically invoke the EEH recovery handler. This can be annoying when debugging EEH problems, or when working on EEH itself so this patch adds a debugfs knob that will prevent a recovery event from being queued up when an issue is detected. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
67060cb1ff
commit
6b493f6079
@@ -126,6 +126,15 @@ int eeh_send_failure_event(struct eeh_pe *pe)
|
||||
unsigned long flags;
|
||||
struct eeh_event *event;
|
||||
|
||||
/*
|
||||
* If we've manually supressed recovery events via debugfs
|
||||
* then just drop it on the floor.
|
||||
*/
|
||||
if (eeh_debugfs_no_recover) {
|
||||
pr_err("EEH: Event dropped due to no_recover setting\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
event = kzalloc(sizeof(*event), GFP_ATOMIC);
|
||||
if (!event) {
|
||||
pr_err("EEH: out of memory, event not handled\n");
|
||||
|
Reference in New Issue
Block a user