Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/eeh: Output PHB diag-data

When hitting frozen PE or fenced PHB, it's always indicative to
have dumped PHB diag-data for further analysis and diagnosis.
However, we never dump that for the cases. The patch intends to
dump PHB diag-data at the backend of eeh_ops::get_log() for PowerNV
platform.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Gavin Shan and committed by
Benjamin Herrenschmidt
2c77e957 93aef2a7

+2 -5
+2 -5
arch/powerpc/platforms/powernv/eeh-ioda.c
··· 588 588 return -EIO; 589 589 } 590 590 591 - /* 592 - * FIXME: We probably need log the error in somewhere. 593 - * Lets make it up in future. 594 - */ 595 - /* pr_info("%s", phb->diag.blob); */ 591 + /* The PHB diag-data is always indicative */ 592 + pnv_pci_dump_phb_diag_data(hose, phb->diag.blob); 596 593 597 594 spin_unlock_irqrestore(&phb->lock, flags); 598 595