powerpc/powernv: Dump PHB diag-data immediately
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 25 Feb 2014 07:28:37 +0000 (15:28 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Feb 2014 07:43:10 +0000 (18:43 +1100)
commit947166043732b69878123bf31f51933ad0316080
tree763a371720af25cf16aec333bf1c4bae1de1ff6c
parent573ebfa6601fa58b439e7f15828762839ccd306a
powerpc/powernv: Dump PHB diag-data immediately

The PHB diag-data is important to help locating the root cause for
EEH errors such as frozen PE or fenced PHB. However, the EEH core
enables IO path by clearing part of HW registers before collecting
this data causing it to be corrupted.

This patch fixes this by dumping the PHB diag-data immediately when
frozen/fenced state on PE or PHB is detected for the first time in
eeh_ops::get_state() or next_error() backend.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/eeh-ioda.c