summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep12/call_dmi_io_run_training.C
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2019-04-26 09:33:19 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-05-07 09:12:27 -0500
commitdf8f6df13fa6a7c4be88f5cf2d1070a4bee7711e (patch)
tree26891391e2443f6ade9ed0e4a3944277dcf17ba0 /src/usr/isteps/istep12/call_dmi_io_run_training.C
parent8c70b5902d51e8184d8eb5272dda914e9387061b (diff)
downloadtalos-hostboot-df8f6df13fa6a7c4be88f5cf2d1070a4bee7711e.tar.gz
talos-hostboot-df8f6df13fa6a7c4be88f5cf2d1070a4bee7711e.zip
Add gemini HWP calling into hostboot
Added gem_getecid call in istep12. Adding NOOP calls for omi_setup, scominit, draminit_mc, and thermal_init if chip is Gemini. Change-Id: I677dd4dea0b39095c73d8b0769592ce68373ee6d RTC:204647 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76602 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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Glenn Miles <milesg@ibm.com> Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep12/call_dmi_io_run_training.C')
-rw-r--r--src/usr/isteps/istep12/call_dmi_io_run_training.C29
1 files changed, 21 insertions, 8 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 064a63a94..034683811 100644
--- a/src/usr/isteps/istep12/call_dmi_io_run_training.C
+++ b/src/usr/isteps/istep12/call_dmi_io_run_training.C
@@ -49,6 +49,7 @@
#ifdef CONFIG_AXONE
#include <exp_omi_setup.H>
#include <exp_omi_train.H>
+#include <chipids.H> // for EXPLORER ID
#endif
using namespace ISTEP;
@@ -114,15 +115,27 @@ void* call_dmi_io_run_training (void *io_pArgs)
for (const auto & l_ocmb_target : l_ocmbTargetList)
{
- TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
- "exp_omi_setup HWP target HUID 0x%.08x",
- TARGETING::get_huid(l_ocmb_target));
-
// call the HWP with each target
fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP> l_fapi_ocmb_target
- (l_ocmb_target);
+ (l_ocmb_target);
- FAPI_INVOKE_HWP(l_err, exp_omi_setup, l_fapi_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 );
+ }
// process return code.
if ( l_err )
@@ -143,8 +156,8 @@ void* call_dmi_io_run_training (void *io_pArgs)
else
{
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
- "SUCCESS : exp_omi_setup HWP on target 0x%.08X, starting training", TARGETING::get_huid(l_ocmb_target));
-
+ "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.
OpenPOWER on IntegriCloud