diff options
Diffstat (limited to 'src/usr/hwpf/hwp/dram_initialization')
-rw-r--r-- | src/usr/hwpf/hwp/dram_initialization/dram_initialization.C | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/usr/hwpf/hwp/dram_initialization/dram_initialization.C b/src/usr/hwpf/hwp/dram_initialization/dram_initialization.C index c097fab30..824e63265 100644 --- a/src/usr/hwpf/hwp/dram_initialization/dram_initialization.C +++ b/src/usr/hwpf/hwp/dram_initialization/dram_initialization.C @@ -758,8 +758,25 @@ void* call_host_mpipl_service( void *io_pArgs ) } } + //Determine if we should perform dump ops + //Note that this is only called in MPIPL context, so don't + //have to check MPIPL + bool collect_dump = false; + TARGETING::Target * sys = NULL; + TARGETING::targetService().getTopLevelTarget( sys ); + TARGETING::CecIplType type; + if(sys && + sys->tryGetAttr<TARGETING::ATTR_CEC_IPL_TYPE>(type) && + type.PostDump) + { + collect_dump = true; + } + + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "Ready to collect dump -- yes/no [%d]", collect_dump); + // No error on the procedure.. proceed to collect the dump. - if (!l_err) + if (!l_err && collect_dump) { TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, |