powerpc/eeh: Add eeh_force_recover to debugfs
authorOliver O'Halloran <oohall@gmail.com>
Fri, 15 Feb 2019 00:48:17 +0000 (11:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:15 +0000 (00:10 +1100)
commit954bd99435b8ba99e86665d6a2ec1baa1d128325
tree27e3156fee9ccaa8162b462c198ec20ad425aae1
parent6b493f6079a430fd41f66933b68d1bb1ad37ca8c
powerpc/eeh: Add eeh_force_recover to debugfs

This patch adds a debugfs interface to force scheduling a recovery event.
This can be used to recover a specific PE or schedule a "special" recovery
even that checks for errors at the PHB level.
To force a recovery of a normal PE, use:

 echo '<#pe>:<#phb>' > /sys/kernel/debug/powerpc/eeh_force_recover

To force a scan for broken PHBs:

 echo 'hwcheck' > /sys/kernel/debug/powerpc/eeh_force_recover

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh_event.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_event.c