]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit032586af675a104fa6b29000a065bae867edcb49
tree763a371720af25cf16aec333bf1c4bae1de1ff6c
parentbcf838b1cd836137ad702a22211058da8479befa
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