Skip to content

Commit

Permalink
HTMGT: Check for OCC elog action bit to force sending an error log to…
Browse files Browse the repository at this point in the history
… BMC

Change-Id: Iaff005603b816ce7fbecb489325007fa82a69fb9
RTC:199365
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67219
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@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: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
baileysh authored and dcrowell77 committed Oct 16, 2018
1 parent 0482f91 commit 8fb031b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/usr/htmgt/occError.C
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@ namespace HTMGT
}
}

// Process force error log to be sent to BMC.
if( (l_occElog->actions & TMGT_ERRL_ACTIONS_FORCE_ERROR_POSTED ) ||
(l_occSrc == (OCCC_COMP_ID | 0x01 ) ) ) //GEN_CALLHOME_LOG
{
l_errlHndl->setEselCallhomeInfoEvent(true);
}

#ifdef CONFIG_CONSOLE_OUTPUT_OCC_COMM
char header[64];
sprintf(header, "OCC%d ELOG: (0x%04X bytes)", iv_instance, i_length);
Expand Down
3 changes: 2 additions & 1 deletion src/usr/htmgt/occError.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* Contributors Listed Below - COPYRIGHT 2014,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -41,6 +41,7 @@ namespace HTMGT
// Error Actions
enum tmgtErrlActionsType
{
TMGT_ERRL_ACTIONS_FORCE_ERROR_POSTED = 0x10,
TMGT_ERRL_ACTIONS_WOF_RESET_REQUIRED = 0x20,
TMGT_ERRL_ACTIONS_SAFE_MODE_REQUIRED = 0x40,
TMGT_ERRL_ACTIONS_RESET_REQUIRED = 0x80,
Expand Down

0 comments on commit 8fb031b

Please sign in to comment.