aboutsummaryrefslogtreecommitdiff
path: root/include/capp.h
diff options
context:
space:
mode:
authorRyan Grimm <grimm@linux.vnet.ibm.com>2014-09-29 23:51:36 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-09-30 14:45:54 +1000
commit5aa2331ff59049be5410e69be3ee989672a15693 (patch)
tree8de6392558d8147f28eee2afddd04e9d69245453 /include/capp.h
parentf68bd30f5bc58a21533d834b315f880bfb54e0db (diff)
downloadskiboot-5aa2331ff59049be5410e69be3ee989672a15693.zip
skiboot-5aa2331ff59049be5410e69be3ee989672a15693.tar.gz
skiboot-5aa2331ff59049be5410e69be3ee989672a15693.tar.bz2
phb3/capi: Add capp recovery to phb3
Add a flag indicating the CAPP unit is in recovery. When a capp recoverable malfunction HMI comes in, the HMI handler will call into phb3_set_capp_recovery, which will put set the flag and send the event to Linux. EEH will call phb3_next_error which will tell it the phb is fenced. EEH will then call into sapphire to reinitialize the phb which contains steps 3-5 of capp recovery procedure. The code increases wait time of PERST to 1s to ensure fpga download is complete before polling linkup. EEH will then rebind the cxl driver and it will complete recovery once it initializes and turns snoops on, steps 7-8, completing capp recovery procedure. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/capp.h')
-rw-r--r--include/capp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/capp.h b/include/capp.h
index c0b67e1..ef052b8 100644
--- a/include/capp.h
+++ b/include/capp.h
@@ -57,6 +57,8 @@ enum capp_reg {
#define CAPP_SNP_ARRAY_WRITE_REG 0x2013801
#define CAPP_APC_MASTER_ARRAY_WRITE_REG 0x2013802
+#define CAPP_FIR 0x2013000
+#define CAPP_ERR_RPT_CLR 0x2013013
#define APC_MASTER_PB_CTRL 0x2013018
#define APC_MASTER_CAPI_CTRL 0x2013019
#define TRANSPORT_CONTROL 0x201301C