From 44d0f070400aabde3a06eb7b836923577a117cc0 Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Mon, 4 Dec 2017 17:37:05 -0600 Subject: 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 Tested-by: Jenkins OP Build CI Reviewed-by: Daniel M. Crowell --- src/include/runtime/interface.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/runtime/interface.h') 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). -- cgit v1.2.1