From f60b3727eb2af1217b6dd32a5828db4819a94dc2 Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Fri, 1 Nov 2013 09:22:18 -0500 Subject: Differentiate between MPIPL and Post dump IPLs Change-Id: I51baeec83dd0a7dc070a101cd62a9e52b242aa91 CMVC-Coreq:899042 CQ:SW224634 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7000 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- .../hwp/dram_initialization/dram_initialization.C | 19 ++++++++++++- .../targeting/common/xmltohb/attribute_types.xml | 33 ++++++++++++++++++++++ src/usr/targeting/common/xmltohb/target_types.xml | 1 + 3 files changed, 52 insertions(+), 1 deletion(-) 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(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, diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml index 42942dd1c..a42601258 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types.xml @@ -1998,6 +1998,39 @@ + + CEC_IPL_TYPE + + Attribute which describes optional IPL flavors + + + Structure which defines a they IPL types + Applicable for System target only. + + + PostDump + + Perform mainstore dump collection. Only valid for MPIPL + 0b0: Do not collect mainstore dump + 0b1: Perform mainstore dump collection + + uint8_t + 1 + 0 + + + reserved + Reserved for future use + uint8_t + 7 + 0 + + + volatile + + + + diff --git a/src/usr/targeting/common/xmltohb/target_types.xml b/src/usr/targeting/common/xmltohb/target_types.xml index 8b3d80da6..5c78cfc72 100644 --- a/src/usr/targeting/common/xmltohb/target_types.xml +++ b/src/usr/targeting/common/xmltohb/target_types.xml @@ -95,6 +95,7 @@ FREQ_X SP_FUNCTIONS HB_SETTINGS + CEC_IPL_TYPE PAYLOAD_KIND PAYLOAD_BASE PAYLOAD_ENTRY -- cgit v1.2.1