summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-12-12 12:04:46 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-12-14 16:55:23 -0600
commit0a2247cec574fc6c8b33ade659b336282324ddc5 (patch)
treedc24db0b567c5b75d69c360d574730237509d6c6 /src/usr
parent3e7277d17bdfa91ba4a1ce86f5b206ebe3ee2630 (diff)
downloadtalos-hostboot-0a2247cec574fc6c8b33ade659b336282324ddc5.tar.gz
talos-hostboot-0a2247cec574fc6c8b33ade659b336282324ddc5.zip
Update Proc chips from useXscom to useFSIScom after proc_fabric_iovalid
Change-Id: I23b5deb565f9c0accd644996b43c00bb7eb053d9 RTC: 34064 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2658 Reviewed-by: Melissa J. Connell <missyc@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C36
-rw-r--r--src/usr/targeting/common/xmltohb/attribute_types.xml1
2 files changed, 37 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C b/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
index a7c38f477..2f6154c00 100644
--- a/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
+++ b/src/usr/hwpf/hwp/edi_ei_initialization/edi_ei_initialization.C
@@ -579,7 +579,43 @@ void* call_proc_fab_iovalid( void *io_pArgs )
errlCommit( l_errl, HWPF_COMP_ID );
}
+ // no errors during the proc_fabric_iovalid so switch to XSCOM
+ else
+ {
+ // At the point where we can now change the proc chips to use
+ // XSCOM rather than FSISCOM which is the default.
+
+ TARGETING::TargetHandleList procChips;
+ getAllChips(procChips, TYPE_PROC);
+
+ TARGETING::TargetHandleList::iterator curproc = procChips.begin();
+
+ // Loop through all proc chips
+ while(curproc != procChips.end())
+ {
+ TARGETING::Target* l_proc_target = *curproc;
+ // If the proc chip supports xscom..
+ if (l_proc_target->getAttr<ATTR_PRIMARY_CAPABILITIES>()
+ .supportsXscom)
+ {
+ ScomSwitches l_switches =
+ l_proc_target->getAttr<ATTR_SCOM_SWITCHES>();
+
+ // If Xscom is not already enabled.
+ if ((l_switches.useXscom != 1) || (l_switches.useFsiScom != 0))
+ {
+ l_switches.useFsiScom = 0;
+ l_switches.useXscom = 1;
+
+ // Turn off FSI scom and turn on Xscom.
+ l_proc_target->setAttr<ATTR_SCOM_SWITCHES>(l_switches);
+ }
+ }
+
+ ++curproc;
+ }
+ }
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
"call_proc_fab_iovalid exit" );
diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml
index 5ca1756e6..2e876e046 100644
--- a/src/usr/targeting/common/xmltohb/attribute_types.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types.xml
@@ -653,6 +653,7 @@
</complexType>
<persistency>volatile</persistency>
<readable/>
+ <writeable/>
</attribute>
<attribute>
OpenPOWER on IntegriCloud