]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/powernv: Move PHB-diag dump functions around
authorGavin Shan <shangw@linux.vnet.ibm.com>
Fri, 22 Nov 2013 08:28:45 +0000 (16:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Mar 2014 17:05:15 +0000 (10:05 -0700)
commitf0aa283bec6968b57f457071a77d04513a8cebab
tree9f8df502d463cba93d6b097e0d69980566f7a716
parent72f38a2c603090b8f7bb44d2d155255ee816ffe1
powerpc/powernv: Move PHB-diag dump functions around

commit 93aef2a789778e7ec787179fc9b34ca4885a5ef3 upstream.

Prior to the completion of PCI enumeration, we actively detects
EEH errors on PCI config cycles and dump PHB diag-data if necessary.
The EEH backend also dumps PHB diag-data in case of frozen PE or
fenced PHB. However, we are using different functions to dump the
PHB diag-data for those 2 cases.

The patch merges the functions for dumping PHB diag-data to one so
that we can avoid duplicate code. Also, we never dump PHB3 diag-data
during PCI config cycles with frozen PE. The patch fixes it as well.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/eeh-ioda.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h