aboutsummaryrefslogtreecommitdiff
path: root/include/phb4-regs.h
diff options
context:
space:
mode:
authorVaibhav Jain <vaibhav@linux.vnet.ibm.com>2018-01-08 17:23:05 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-14 21:05:51 -0600
commit7b613693d537859acfa13968ecfa28082ec8f72f (patch)
tree65194c78e601f8ebf691b6a1c349a5ed86010b91 /include/phb4-regs.h
parent4e23b42d2ad76da21422a1d2de471df29f76b8df (diff)
downloadskiboot-7b613693d537859acfa13968ecfa28082ec8f72f.zip
skiboot-7b613693d537859acfa13968ecfa28082ec8f72f.tar.gz
skiboot-7b613693d537859acfa13968ecfa28082ec8f72f.tar.bz2
phb4: Dump CAPP error registers when it asserts link down
This patch introduces a new function phb4_dump_app_err_regs() that dumps CAPP error registers in case the PEC nestfir register indicates that the fence was due to a CAPP error (BIT-24). Contents of these registers are helpful in diagnosing CAPP issues. Registers that are dumped in phb4_dump_app_err_regs() are: * CAPP FIR Register * CAPP APC Master Error Report Register * CAPP Snoop Error Report Register * CAPP Transport Error Report Register * CAPP TLBI Error Report Register * CAPP Error Status and Control Register Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Christophe Lombard<clombard@linux.vnet.ibm.com> Acked-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phb4-regs.h')
-rw-r--r--include/phb4-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb4-regs.h b/include/phb4-regs.h
index 0d8aa48..2dc64fe 100644
--- a/include/phb4-regs.h
+++ b/include/phb4-regs.h
@@ -343,6 +343,7 @@
/* Nest base per-stack registers */
#define XPEC_NEST_STK_PCI_NFIR 0x0
+#define XPEC_NEST_STK_PCI_NFIR_CXA_PE_CAPP PPC_BIT(24)
#define XPEC_NEST_STK_PCI_NFIR_CLR 0x1
#define XPEC_NEST_STK_PCI_NFIR_SET 0x2
#define XPEC_NEST_STK_PCI_NFIR_MSK 0x3