summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2012-02-27 13:12:03 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-02-29 17:09:41 -0600
commit2e6867c1170ada1c07d38e4facbf10c619d03e48 (patch)
tree023c6a02661805aca3d56957dac79daca375ad73
parent94dd36baefb33d78d4923867fbe986782b33ea53 (diff)
downloadtalos-hostboot-2e6867c1170ada1c07d38e4facbf10c619d03e48.tar.gz
talos-hostboot-2e6867c1170ada1c07d38e4facbf10c619d03e48.zip
Add code to set MBA's under Centaurs functional
- branch thi_enable_mbas Change-Id: Ib83227b1a1da09d558de433d565a02975ba9506b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/698 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rw-r--r--src/include/usr/targeting/predicates/predicates.H40
-rw-r--r--src/usr/hwas/hwas.C23
2 files changed, 62 insertions, 1 deletions
diff --git a/src/include/usr/targeting/predicates/predicates.H b/src/include/usr/targeting/predicates/predicates.H
new file mode 100644
index 000000000..2c615852c
--- /dev/null
+++ b/src/include/usr/targeting/predicates/predicates.H
@@ -0,0 +1,40 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/include/usr/targeting/predicates/predicates.H $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2012
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef TARG_PREDICATES_H
+#define TARG_PREDICATES_H
+
+/**
+ * @file predicateall.H
+ *
+ * @brief Shortcut file to pull in all the predicate include files.
+ *
+ */
+#include <targeting/predicates/predicatebase.H>
+#include <targeting/predicates/predicatectm.H>
+#include <targeting/predicates/predicatepostfixexpr.H>
+#include <targeting/predicates/predicateisfunctional.H>
+
+// please keep up to date...
+
+#endif
+
diff --git a/src/usr/hwas/hwas.C b/src/usr/hwas/hwas.C
index a310a28ba..2c73b0c21 100644
--- a/src/usr/hwas/hwas.C
+++ b/src/usr/hwas/hwas.C
@@ -41,7 +41,7 @@
#include <errl/errlentry.H>
#include <targeting/targetservice.H>
#include <targeting/iterators/rangefilter.H>
-#include <targeting/predicates/predicatectm.H>
+#include <targeting/predicates/predicates.H>
#include <fsi/fsiif.H>
#include <hwas/hwas.H>
@@ -184,6 +184,27 @@ void init_target_states( void *io_pArgs )
enableHwasState( l_hwasState );
l_memTargetList[ii]->setAttr<ATTR_HWAS_STATE>( l_hwasState );
+
+ // enable MBA's for each centaur
+ TARGETING::PredicateCTM l_mbaFilter(CLASS_UNIT, TYPE_MBA);
+ TARGETING::TargetHandleList l_mbaTargetList;
+ TARGETING::targetService().getAssociated(l_mbaTargetList,
+ l_memTargetList[ii],
+ TARGETING::TargetService::CHILD_BY_AFFINITY,
+ TARGETING::TargetService::ALL, &l_mbaFilter);
+ TRACDCOMP( g_trac_hwas,
+ "%d MBA's with MEMBUF %d",
+ l_mbaTargetList.size(),
+ ii );
+
+ for ( uint8_t ij=0; ij < l_mbaTargetList.size(); ij++ )
+ {
+ l_hwasState = l_mbaTargetList[ij]->getAttr<ATTR_HWAS_STATE>();
+ enableHwasState( l_hwasState );
+ l_mbaTargetList[ij]->setAttr<ATTR_HWAS_STATE>( l_hwasState );
+ }
+
+
// look for the dimms on each centaur
TARGETING::PredicateCTM l_dimms(CLASS_LOGICAL_CARD, TYPE_DIMM);
TARGETING::TargetHandleList l_dimmTargetList;
OpenPOWER on IntegriCloud