summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/mdia/mdiasm.C
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2016-06-10 15:53:04 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-28 15:10:30 -0400
commit9dda16f4e7a4f3765227d1226adaff26ec72d313 (patch)
treed3f40ef4a012e43b53e264daca4dc1746619c386 /src/usr/diag/mdia/mdiasm.C
parent075f05fb73aa990f9f4040c5f3219df991fce228 (diff)
downloadtalos-hostboot-9dda16f4e7a4f3765227d1226adaff26ec72d313.tar.gz
talos-hostboot-9dda16f4e7a4f3765227d1226adaff26ec72d313.zip
MDIA: Updated supported command events in MDIA.
Change-Id: I27e3c31602f869d705c1efef8ad74cc442b932ae RTC: 155877 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25679 Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/diag/mdia/mdiasm.C')
-rw-r--r--src/usr/diag/mdia/mdiasm.C24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/usr/diag/mdia/mdiasm.C b/src/usr/diag/mdia/mdiasm.C
index 0b108a3a5..f93b29e29 100644
--- a/src/usr/diag/mdia/mdiasm.C
+++ b/src/usr/diag/mdia/mdiasm.C
@@ -34,7 +34,6 @@
#include "mdiamonitor.H"
#include <errl/errlmanager.H>
#include <stdio.h>
-#include <mdia/mdiamevent.H>
#include <hbotcompid.H>
//#include <fapi.H> TODO RTC 145132
//#include <fapiPlatHwpInvoker.H> TODO RTC 145132
@@ -1129,8 +1128,7 @@ bool StateMachine::processMaintCommandEvent(const MaintCommandEvent & i_event)
// If shutdown is requested and we're not in MNFG mode
// skip testing on all MBAs
if(( INITSERVICE::isShutdownRequested() ) &&
- (( COMMAND_COMPLETE == eventType ) ||
- ( COMMAND_STOPPED == eventType )) &&
+ ( COMMAND_COMPLETE == eventType ) &&
! (( MNFG_FLAG_ENABLE_EXHAUSTIVE_PATTERN_TEST
& iv_globals.mfgPolicy) ||
( MNFG_FLAG_ENABLE_STANDARD_PATTERN_TEST
@@ -1143,7 +1141,7 @@ bool StateMachine::processMaintCommandEvent(const MaintCommandEvent & i_event)
get_huid(getTarget(wfp)), cmd,
i_event.type, iv_globals.mfgPolicy);
- eventType = SKIP_MBA;
+ eventType = STOP_TESTING;
}
#ifdef CONFIG_BMC_IPMI
@@ -1160,8 +1158,9 @@ bool StateMachine::processMaintCommandEvent(const MaintCommandEvent & i_event)
#endif
switch(eventType)
+ {
case COMMAND_COMPLETE:
- {
+
// command stopped or complete at end of last rank
wfp.restartCommand = false;
@@ -1177,26 +1176,17 @@ bool StateMachine::processMaintCommandEvent(const MaintCommandEvent & i_event)
wfp.data = NULL;
break;
- case COMMAND_STOPPED:
- // command stopped at end of some other rank
+ case STOP_TESTING:
- flags = START_NEXT_CMD;
- wfp.restartCommand = true;
-
- break;
-
- case SKIP_MBA:
-
- // stop testing on this mba
+ // stop testing on this target
wfp.status = COMPLETE;
- // done with this maint command
+ // done with this command
flags = DELETE_CMD | STOP_CMD | START_NEXT_CMD;
wfp.data = NULL;
-
break;
case RESET_TIMER:
OpenPOWER on IntegriCloud