[PATCH] powerpc/eeh: Dump PHB3 diag-data on frozen PE

Gavin Shan shangw at linux.vnet.ibm.com
Wed Nov 20 20:36:36 EST 2013


While we detect frozen PE on PHB3, it's always meaningful to have
the dumped diag-data for further diagnosis and analysis.

Signed-off-by: Gavin Shan <shangw at linux.vnet.ibm.com>
---
 arch/powerpc/platforms/powernv/eeh-ioda.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c
index 02245ce..481528d 100644
--- a/arch/powerpc/platforms/powernv/eeh-ioda.c
+++ b/arch/powerpc/platforms/powernv/eeh-ioda.c
@@ -994,8 +994,11 @@ static int ioda_eeh_next_error(struct eeh_pe **pe)
 			if (ioda_eeh_get_pe(hose, frozen_pe_no, pe))
 				break;
 
+			/* It would be always indicative to have PHB diag-data */
 			pr_err("EEH: Frozen PE#%x on PHB#%x detected\n",
 				(*pe)->addr, (*pe)->phb->global_number);
+			ioda_eeh_phb_diag(hose);
+
 			ret = 1;
 			goto out;
 		}
-- 
1.7.9.5



More information about the Linuxppc-dev mailing list