Skip to content

Commit

Permalink
Set ATTR_HDAT_EC based on ATTR_MINI_EC
Browse files Browse the repository at this point in the history
After we collect the ECID from the processor we will apply the
MINI_EC value that was computed to HDAT_EC so that PHYP can
see it later.

Change-Id: I771d2ba8e2e6b521b50e8ac7e824651d126b3c83
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37912
Reviewed-by: Martin Gloff <mgloff@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: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
dcrowell77 committed Mar 29, 2017
1 parent c93fdde commit d3a8c44
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -325,6 +325,18 @@ void* call_proc_check_slave_sbe_seeprom_complete( void *io_pArgs )
"SUCCESS : proc_getecid"
" completed ok");

// Update HDAT_EC to account for anything lower than the minor EC
auto l_miniEC = l_cpu_target->getAttr<TARGETING::ATTR_MINI_EC>();
if( l_miniEC != 0 )
{
auto l_hdatEC = l_cpu_target->getAttr<TARGETING::ATTR_HDAT_EC>();
auto l_EC = l_cpu_target->getAttr<TARGETING::ATTR_EC>();
auto l_newHdatEC = l_EC + l_miniEC;
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
"MINI_EC=%d, HDAT_EC changing from %d->%d",
l_miniEC, l_hdatEC, l_newHdatEC );
l_cpu_target->setAttr<TARGETING::ATTR_HDAT_EC>(l_newHdatEC);
}
}
} // end of going through all processors

Expand Down

0 comments on commit d3a8c44

Please sign in to comment.