From 0ab063c088f59890c409b7d00e0bf6afcf07dc16 Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Wed, 30 Aug 2017 17:32:48 -0500 Subject: Added code to send an Error Log to FSP via the firmware_request Change-Id: I6ce94d9cbf62fa7d2afe53b83b6bc5588a39a5d6 RTC:178947 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45442 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: ILYA SMIRNOV Reviewed-by: Daniel M. Crowell --- src/include/runtime/interface.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/include/runtime/interface.h') diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index f3d67f69a..7fa1e86fb 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -502,6 +502,8 @@ typedef struct hostInterfaces HBRT_FW_MSG_TYPE_RESP_NOP = 1, HBRT_FW_MSG_TYPE_RESP_GENERIC = 2, HBRT_FW_MSG_TYPE_REQ_HCODE_UPDATE = 3, + HBRT_FW_MSG_HBRT_FSP = 4, + HBRT_FW_MSG_TYPE_ERROR_LOG = 5, }; struct hbrt_fw_msg // define struct hbrt_fw_msg @@ -524,14 +526,26 @@ typedef struct hostInterfaces struct { uint64_t i_chipId; // processor chip ID plus ID type, - // always proc (0x0) + // always proc (0x0) uint32_t i_section; // runtime section to update - // (passthru to pore_gen_scom) + // (passthru to pore_gen_scom) uint32_t i_operation; // type of operation to perform - // (passthru to pore_gen_scom) + // (passthru to pore_gen_scom) uint64_t i_scomAddr; // fully qualified scom address uint64_t i_scomData; // data for operation } req_hcode_update; + + // This struct is sent from HBRT with + // io_type set to HBRT_FW_MSG_TYPE_ERR_LOG + // Send an error log to FSP + struct + { + uint32_t i_plid; // platform log identifier + uint32_t i_errlSize; // data size in bytes + uint8_t i_data; // the error log data + // uint8_t *myData = + // (uint8_t*)&l_req_fw_msg->error_log.i_data; + } __attribute__ ((packed)) error_log; }; }; -- cgit v1.2.1