]> 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)
commit3cb2b68fa67d3dfc20cd63f238e9bcac8d77615f
tree763a371720af25cf16aec333bf1c4bae1de1ff6c
parent1db982d5dc65b4e4b397a5020f457b2a1ae3cd47
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