diff options
| author | Christian Geddes <crgeddes@us.ibm.com> | 2019-08-07 09:10:41 -0500 |
|---|---|---|
| committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-08-08 09:48:30 -0500 |
| commit | 650345ffb1238670ec27ebb0444e1664ab4089d1 (patch) | |
| tree | dd5620af6ba887f921abfd527c02e6f373d6193d /src | |
| parent | 103d85c965173bbaf5aae610d77c40b40d64d42b (diff) | |
| download | talos-hostboot-650345ffb1238670ec27ebb0444e1664ab4089d1.tar.gz talos-hostboot-650345ffb1238670ec27ebb0444e1664ab4089d1.zip | |
Switch which OMI init hwp we call for GEMINI ocmb targets
Recent changes to the HWPs has made it so we must call exp_omi_setup
instead of exp_omi_train on Gemini OCMB targets.
Change-Id: I7eaa7b4f364071ecdb21a11439b40c845382bc6d
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81896
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Glenn Miles <milesg@ibm.com>
Reviewed-by: Mark Pizzutillo <mark.pizzutillo@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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr/isteps/istep12/call_dmi_io_run_training.C | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/src/usr/isteps/istep12/call_dmi_io_run_training.C b/src/usr/isteps/istep12/call_dmi_io_run_training.C index 034683811..9e93e816c 100644 --- a/src/usr/isteps/istep12/call_dmi_io_run_training.C +++ b/src/usr/isteps/istep12/call_dmi_io_run_training.C @@ -119,23 +119,12 @@ void* call_dmi_io_run_training (void *io_pArgs) fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP> l_fapi_ocmb_target (l_ocmb_target); - // check EXPLORER first as this is most likely the configuration - uint32_t chipId = l_ocmb_target->getAttr< TARGETING::ATTR_CHIP_ID>(); - if (chipId == POWER_CHIPID::EXPLORER_16) - { - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "exp_omi_setup HWP target HUID 0x%.08x", - TARGETING::get_huid(l_ocmb_target)); - FAPI_INVOKE_HWP(l_err, exp_omi_setup, l_fapi_ocmb_target); - } - else - { - // Gemini, just skip omi_setup call - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "Skipping omi_setup HWP on target HUID 0x%.8X, chipId 0x%.4X", - TARGETING::get_huid(l_ocmb_target), chipId ); - } + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "exp_omi_setup HWP target HUID 0x%.08x", + TARGETING::get_huid(l_ocmb_target)); + + FAPI_INVOKE_HWP(l_err, exp_omi_setup, l_fapi_ocmb_target); // process return code. if ( l_err ) @@ -155,31 +144,44 @@ void* call_dmi_io_run_training (void *io_pArgs) } else { - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "Start omi training on target HUID 0x%.8X", - TARGETING::get_huid(l_ocmb_target) ); - FAPI_INVOKE_HWP(l_err, exp_omi_train, l_fapi_ocmb_target); - - // process return code. - if ( l_err ) + // Only run exp_omi_train on EXPLORER OCMB targets. This step + // cannot run on GEMINI targets. + uint32_t chipId = l_ocmb_target->getAttr< TARGETING::ATTR_CHIP_ID>(); + if (chipId == POWER_CHIPID::EXPLORER_16) { TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "ERROR 0x%.8X: exp_omi_train HWP on target HUID 0x%.08x", - l_err->reasonCode(), TARGETING::get_huid(l_ocmb_target) ); - - // capture the target data in the elog - ErrlUserDetailsTarget(l_ocmb_target).addToLog( l_err ); - - // Create IStep error log and cross reference to error that occurred - l_StepError.addErrorDetails( l_err ); - - // Commit Error , continue on to next OCMB - errlCommit( l_err, ISTEP_COMP_ID ); + "Start omi training on target HUID 0x%.8X", + TARGETING::get_huid(l_ocmb_target) ); + FAPI_INVOKE_HWP(l_err, exp_omi_train, l_fapi_ocmb_target); + + // process return code. + if ( l_err ) + { + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "ERROR 0x%.8X: exp_omi_train HWP on target HUID 0x%.08x", + l_err->reasonCode(), TARGETING::get_huid(l_ocmb_target) ); + + // capture the target data in the elog + ErrlUserDetailsTarget(l_ocmb_target).addToLog( l_err ); + + // Create IStep error log and cross reference to error that occurred + l_StepError.addErrorDetails( l_err ); + + // Commit Error , continue on to next OCMB + errlCommit( l_err, ISTEP_COMP_ID ); + } + else + { + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "SUCCESS : exp_omi_train HWP on target 0x%.08X", TARGETING::get_huid(l_ocmb_target)); + } } else { + // Gemini, just skip omi_setup call TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "SUCCESS : exp_omi_train HWP on target 0x%.08X", TARGETING::get_huid(l_ocmb_target)); + "Skipping exp_omi_train HWP on because target HUID 0x%.8X, chipId 0x%.4X is a Gemini OCMB", + TARGETING::get_huid(l_ocmb_target), chipId ); } } |

