diff options
author | Ryan Grimm <grimm@linux.vnet.ibm.com> | 2014-09-29 23:51:36 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-09-30 14:45:54 +1000 |
commit | 5aa2331ff59049be5410e69be3ee989672a15693 (patch) | |
tree | 8de6392558d8147f28eee2afddd04e9d69245453 /include/phb3.h | |
parent | f68bd30f5bc58a21533d834b315f880bfb54e0db (diff) | |
download | skiboot-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/phb3.h')
-rw-r--r-- | include/phb3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb3.h b/include/phb3.h index 6305a1c..c004056 100644 --- a/include/phb3.h +++ b/include/phb3.h @@ -258,6 +258,7 @@ struct phb3_err { #define PHB3_CFG_USE_ASB 0x00000002 #define PHB3_CFG_BLOCKED 0x00000004 #define PHB3_RESTORE_BUS_NUM 0x00000008 +#define PHB3_CAPP_RECOVERY 0x00000010 struct phb3 { unsigned int index; /* 0..2 index inside P8 */ |