Skip to content

Commit

Permalink
Increase timeout for slave SBE in Simics
Browse files Browse the repository at this point in the history
Increasing the timeout for the slave SBE to be ready by 10x for
Simics.

Change-Id: I9d10372d060f6fa83063330e22110bad88a8272a
CQ: SW378197
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35615
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
dcrowell77 committed Feb 1, 2017
1 parent 917f945 commit 885c605
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -45,6 +45,7 @@
#include <devicefw/userif.H>
#include <i2c/i2cif.H>
#include <sbe/sbeif.H>
#include <util/misc.H>

// targeting support
#include <targeting/common/commontargeting.H>
Expand Down Expand Up @@ -118,9 +119,15 @@ void* call_proc_check_slave_sbe_seeprom_complete( void *io_pArgs )

// Each slave sbe gets 60s to respond with the fact that it's
// booted and at runtime (stable state)
const uint64_t SBE_TIMEOUT_NSEC = 60*NS_PER_SEC; //60sec
uint64_t SBE_TIMEOUT_NSEC = 60*NS_PER_SEC; //60sec
// Bump this up really high for Simics, things are slow there
if( Util::isSimicsRunning() )
{
SBE_TIMEOUT_NSEC *= 10;
}
const uint64_t SBE_NUM_LOOPS = 100;
const uint64_t SBE_WAIT_SLEEP = (SBE_TIMEOUT_NSEC/SBE_NUM_LOOPS);

sbeMsgReg_t l_sbeReg;

TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
Expand Down

0 comments on commit 885c605

Please sign in to comment.