diff options
| author | Matt Derksen <mderkse1@us.ibm.com> | 2017-10-23 15:17:24 -0500 |
|---|---|---|
| committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-11-09 17:47:52 -0500 |
| commit | 2b4e2315094efa8eb3e5b45480418bd86806a25f (patch) | |
| tree | ed2223d8cb9e5323e337c9c97c2f8bafcb98041f /src/include/usr/ipmi | |
| parent | 9fec69bc023ce50d718f4430e5dd7c6f7b2cd810 (diff) | |
| download | blackbird-hostboot-2b4e2315094efa8eb3e5b45480418bd86806a25f.tar.gz blackbird-hostboot-2b4e2315094efa8eb3e5b45480418bd86806a25f.zip | |
Send down OCC info logs to BMC for call-home
This creates a new eSEL type (dd) to display
informational callhome logs. The OCC will send
down telemetry information to track the general health
of the system using this new log.
Change-Id: I0319798554c4e48c287953bd2d0de8352bfc4909
RTC:180324
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48776
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: Brian E. Bakke <bbakke@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/ipmi')
| -rw-r--r-- | src/include/usr/ipmi/ipmisel.H | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/include/usr/ipmi/ipmisel.H b/src/include/usr/ipmi/ipmisel.H index caf62f6e4..961f56f5f 100644 --- a/src/include/usr/ipmi/ipmisel.H +++ b/src/include/usr/ipmi/ipmisel.H @@ -76,15 +76,28 @@ namespace IPMISEL * @param[in] size of eSEL data * @param[in] eid of errorlog for this eSEL (for ack) * @param[in] callout list,which has sel event details + * @param[in] is eSEL for informational call home error */ void sendESEL(uint8_t* i_eselData, uint32_t i_dataSize, - uint32_t i_eid,std::vector<sel_info_t*>&i_calloutList); + uint32_t i_eid,std::vector<sel_info_t*>&i_calloutList, + bool i_infoCallHome); // per IPMI Spec, section 32.1 SEL Event Records enum sel_record_type { record_type_system_event = 0x02, + + // Used to send callhome informational eSEL to BMC + // currently used to send OCC telemetry information to the BMC + record_type_oem_call_home_info_event = 0xDD, + + // This is a procedure callout + // byte 0 = procedure ID + // bytes 4,5 = record ID of associated eSEL record_type_oem_sel_for_procedure_callout = 0xDE, + + // Normal flattened PEL, often just called the eSEL + // bytes 4-6 = 040020 record_type_ami_esel = 0xDF, }; @@ -301,17 +314,19 @@ namespace IPMISEL * @brief parse the msg and call send_esel to send the esel (handles if * the SEL reservation is lost) * @param[in] i_msg + * @param[in] i_infoCallHome - informational call-home log */ - void process_esel(msg_t *i_msg); + void process_esel(msg_t *i_msg, bool i_infoCallHome); /** * @brief do the actual ipmi calls to send the esel data to the bmc * @param[in] i_data esel data * @param[in] o_err any error generated during the send * @param[in] o_cc ipmi completion code from last sendrecv + * @param[in] i_infoCallHome - informational call-home log */ - void send_esel(IPMISEL::eselInitData * i_data, - errlHndl_t &o_err, IPMI::completion_code &o_cc); + void send_esel(IPMISEL::eselInitData * i_data, errlHndl_t &o_err, + IPMI::completion_code &o_cc, bool i_infoCallHome); /** * @brief read the SEL time |

