summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2014-12-12 15:14:14 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-09 14:43:19 -0600
commit3a7aae4e91f6c19dd42315f7904e50fa7b75e431 (patch)
tree219010d7866ab63a6ebf8928a4404ca435878b7b /src/usr/hwas
parentc9613b312be0600491ffb367aa71a97cb0216949 (diff)
downloadtalos-hostboot-3a7aae4e91f6c19dd42315f7904e50fa7b75e431.tar.gz
talos-hostboot-3a7aae4e91f6c19dd42315f7904e50fa7b75e431.zip
Add some very useful traces to show what parts we have
Change-Id: Iaca8b2024579df607802d8d2d435d3cd336d2cac Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14896 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/hostbootIstep.C31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/usr/hwas/hostbootIstep.C b/src/usr/hwas/hostbootIstep.C
index 2687c53ec..f7b3f822d 100644
--- a/src/usr/hwas/hostbootIstep.C
+++ b/src/usr/hwas/hostbootIstep.C
@@ -59,6 +59,7 @@
// targeting support.
#include <targeting/common/utilFilter.H>
#include <targeting/common/commontargeting.H>
+#include <targeting/common/entitypath.H>
#include <errl/errludtarget.H>
@@ -153,6 +154,36 @@ void* host_discover_targets( void *io_pArgs )
errl = discoverTargets();
}
+ // Put out some helpful messages that show which targets we actually found
+ std::map<TARGETING::TYPE,uint64_t> l_presData;
+ for (TargetIterator target = targetService().begin();
+ target != targetService().end();
+ ++target)
+ {
+ if (!(target->getAttr<ATTR_HWAS_STATE>().present))
+ {
+ continue;
+ }
+ TARGETING::TYPE l_type = target->getAttr<TARGETING::ATTR_TYPE>();
+ TARGETING::ATTR_POSITION_type l_pos = 0;
+ if( target->tryGetAttr<TARGETING::ATTR_POSITION>(l_pos) )
+ {
+ l_presData[l_type] |= (0x8000000000000000 >> l_pos);
+ }
+ }
+ TARGETING::EntityPath l_epath; //use EntityPath's translation functions
+ for( std::map<TARGETING::TYPE,uint64_t>::iterator itr = l_presData.begin();
+ itr != l_presData.end();
+ ++itr )
+ {
+ uint8_t l_type = itr->first;
+ uint64_t l_val = itr->second;
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,"PRESENT> %s[%.2X]=%.8X%.8X", l_epath.pathElementTypeAsString(itr->first), l_type, l_val>>32, l_val&0xFFFFFFFF);
+#if (!defined(CONFIG_CONSOLE_OUTPUT_TRACE) && defined(CONFIG_CONSOLE))
+ CONSOLE::displayf( "PRESENT> %s[%.2X]=%.8X%.8X", l_epath.pathElementTypeAsString(itr->first), l_type, l_val>>32, l_val&0xFFFFFFFF );
+#endif
+ }
+
#ifdef CONFIG_BMC_IPMI
// send DIMM/CORE/PROC sensor status to the BMC
SENSOR::updateBMCSensorStatus();
OpenPOWER on IntegriCloud