diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2014-09-22 11:04:11 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-09-26 13:30:13 -0500 |
commit | 8f526d154b379761cdd0b2dd6656532e46d89a11 (patch) | |
tree | 94031c382536c2e76906abfcda1931beeeceeb39 /src/usr/mbox | |
parent | ab3cc781a04392bb89f68f857b9797f485a23ca0 (diff) | |
download | talos-hostboot-8f526d154b379761cdd0b2dd6656532e46d89a11.tar.gz talos-hostboot-8f526d154b379761cdd0b2dd6656532e46d89a11.zip |
Stop IPLing in IpcSp::messageHandler if there is an error
CQ: SW278972
Backport: release-fips820
Change-Id: I1c93de796b9ae953b7060b6efdb33c7dea10554b
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13526
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/mbox')
-rw-r--r-- | src/usr/mbox/ipcSp.C | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/mbox/ipcSp.C b/src/usr/mbox/ipcSp.C index 26fad96a8..9b431e898 100644 --- a/src/usr/mbox/ipcSp.C +++ b/src/usr/mbox/ipcSp.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -29,6 +31,7 @@ #include <errl/errlmanager.H> #include <mbox/mbox_reasoncodes.H> #include <intr/interrupt.H> +#include <initservice/initserviceif.H> namespace START_PAYLOAD { @@ -117,7 +120,10 @@ void IpcSp::msgHandler() if (err) { + TRACFCOMP( g_trac_ipc, "In ipcSp: populate_node_attribute errored - must shutdown now!!!"); + uint32_t l_errPlid = err->plid(); errlCommit(err, IPC_COMP_ID); + INITSERVICE::doShutdown(l_errPlid, true); } if(mod_loaded) @@ -135,9 +141,10 @@ void IpcSp::msgHandler() err = MBOX::send(MBOX::HB_POP_ATTR_MSGQ, msg, msg->data[1] ); if (err) { + uint32_t l_errPlid = err->plid(); errlCommit(err,IPC_COMP_ID); + INITSERVICE::doShutdown(l_errPlid, true); } - break; case IPC_TEST_CONNECTION: @@ -188,7 +195,9 @@ void IpcSp::msgHandler() if(err) { + uint32_t l_errPlid = err->plid(); errlCommit(err, IPC_COMP_ID); + INITSERVICE::doShutdown(l_errPlid, true); } if(mod_loaded) |