summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2018-04-05 13:05:31 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-04-10 13:46:19 -0400
commit7ee5536ef2a1302676976133c905a3a4c8812c9a (patch)
treeaa2160cc4a467b8420028696e23c4f829e5e93d0 /src/include
parent885dde53dea48b51d1bdd64774000391d2d962fc (diff)
downloadtalos-hostboot-7ee5536ef2a1302676976133c905a3a4c8812c9a.tar.gz
talos-hostboot-7ee5536ef2a1302676976133c905a3a4c8812c9a.zip
Enable OpenPower SBE Vital Attention handler
If PRD notices that a sbe vital attention is set (TP_LFIR 26) then it will call hostboot code to attempt to recover the SBE. If this occurs during IPL time then hostboot will not be able to recover the SBE and we will deconfigure the processor. If this occurs during runtime HBRT will attempt to run the retry_handler. This will result in us calling hreset on the SBE that failed. If we were able to recover the SBE then no error will be returned. If we are unable to recover the SBE then we will return an error with a deconfig record. Change-Id: I3da6ec932ef8e59f7b2a184621a47e88d465e0c5 RTC: 167191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56821 CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/sbeio/sbe_retry_handler.H20
-rw-r--r--src/include/usr/sbeio/sbeioreasoncodes.H2
2 files changed, 1 insertions, 21 deletions
diff --git a/src/include/usr/sbeio/sbe_retry_handler.H b/src/include/usr/sbeio/sbe_retry_handler.H
index ae014d6c5..deef15c32 100644
--- a/src/include/usr/sbeio/sbe_retry_handler.H
+++ b/src/include/usr/sbeio/sbe_retry_handler.H
@@ -36,26 +36,6 @@ namespace SBEIO
class SbeRetryHandler
{
public:
-
- //There are only 2 sides to the seeproms, so we only want to flip sides once
- static constexpr uint8_t MAX_SWITCH_SIDE_COUNT = 1;
- //We only want to attempt to boot with the same side seeprom twice
- static constexpr uint8_t MAX_SIDE_BOOT_ATTEMPTS = 2;
- // Currently we expect a maxiumum of 2 FFDC packets, the one
- // that is useful to HB is the HWP FFDC. It is possible there is
- // a packet that details an internal sbe fail that hostboot will
- // add to an errorlog but otherwise ignores
- static constexpr uint8_t MAX_EXPECTED_FFDC_PACKAGES = 2;
- // action_for_ffdc_rc will figure out what action we should do
- // for each p9_extract_sbe_rc return code. If the RC does not match
- // any return code from p9_extract_sbe_rc then we want to have a
- // known "no action found" value which is defined here
- static constexpr uint32_t NO_ACTION_FOUND_FOR_THIS_RC = 0xFFFF;
-
- static constexpr uint64_t SBE_RETRY_TIMEOUT_HW = 60*NS_PER_SEC; // 60 seconds
- static constexpr uint64_t SBE_RETRY_TIMEOUT_SIMICS = 600*NS_PER_SEC; // 600 seconds
- static constexpr uint32_t SBE_RETRY_NUM_LOOPS = 100;
-
enum SBE_REG_RETURN
{
FAILED_COLLECTING_REG = 0, // Error returned from HWP
diff --git a/src/include/usr/sbeio/sbeioreasoncodes.H b/src/include/usr/sbeio/sbeioreasoncodes.H
index cc93d9004..25822912d 100644
--- a/src/include/usr/sbeio/sbeioreasoncodes.H
+++ b/src/include/usr/sbeio/sbeioreasoncodes.H
@@ -56,7 +56,7 @@ enum sbeioModuleId
SBEIO_HANDLE_SBE_REG_VALUE = 0x0B,
SBEIO_GET_FFDC_HANDLER = 0x0C,
SBEIO_GET_SBE_RC = 0x0D,
- SBEIO_RUNTIME_HANDLE_VITAL_ATTN = 0x0E,
+ SBEIO_HANDLE_VITAL_ATTN = 0x0E,
};
/**
OpenPOWER on IntegriCloud