powerpc/powernv: Pull all HMI events before panic.
commit1852ae276ba6d5d481c3fb193054ebb67068be5c
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Tue, 5 May 2015 08:05:43 +0000 (5 13:35 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Aug 2015 05:10:18 +0000 (6 15:10 +1000)
tree95d0010b50bc0f41c0a9be4198e7ea387b702d5d
parentc33e11d0dd2ebd2cd528aa8e9ef46afdd4d766b0
powerpc/powernv: Pull all HMI events before panic.

In the event of unrecovered HMI the existing code panics as soon as
it receives the first unrecovered HMI event. This makes host to report
partial information about HMIs before panic. There may be more errors
which would have caused the HMI and hence more HMI event would have been
generated waiting to be pulled by host. This patch implements a logic to
pull and display all the HMI event before going down panic path.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-hmi.c