diff options
author | Roland Veloz <rveloz@us.ibm.com> | 2017-12-04 17:37:05 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-12-21 00:12:25 -0500 |
commit | 44d0f070400aabde3a06eb7b836923577a117cc0 (patch) | |
tree | 464a51f429057595436e47e510913a9a7a03f8d2 /src/include/runtime/interface.h | |
parent | a334e5aa3f11fe4f4657ba89139ac0a543845af1 (diff) | |
download | talos-hostboot-44d0f070400aabde3a06eb7b836923577a117cc0.tar.gz talos-hostboot-44d0f070400aabde3a06eb7b836923577a117cc0.zip |
Handles FSP reset-reload in HBRT messages
For every instance where a firmware_request is made, it is possible
to get an error if the FSP is doing a reset/reload. Now, if an
error returned from the firmware_request call indicates that the
FSP is doing a reset/reload, the firmware_request call will be made
again. Also refactored the code. Consolidated the calls to
firmware_request to another file to facilitate the adding/updating
of messages.
Change-Id: I5be440927ab255c55b40a0a0ed26f786d31a9317
RTC:182606
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50505
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/runtime/interface.h')
-rw-r--r-- | src/include/runtime/interface.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 96eb62c2c..3a6ac6b93 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -147,6 +147,15 @@ enum MemoryError_t /* PHYP fixes */ #define HBRT_CAPS_SET2_PHYP 2 +/* FSP failed due to a a reset/reload. Only applicable when + * hostInterfaces::hbrt_fw_msg::io_type is set to + * HBRT_FW_MSG_HBRT_FSP_REQ + */ +#define HBRT_RC_FSPDEAD -8193 //0x2001 + +/* FSP failed due to a a reset/reload */ +#define HBRT_FW_REQUEST_RETRIES 1 + /** @typedef hostInterfaces_t * @brief Interfaces provided by the underlying environment (ex. Sapphire). |