From 0a2247cec574fc6c8b33ade659b336282324ddc5 Mon Sep 17 00:00:00 2001 From: Missy Connell Date: Wed, 12 Dec 2012 12:04:46 -0600 Subject: 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 Reviewed-by: Daniel M. Crowell Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert Reviewed-by: A. Patrick Williams III --- .../edi_ei_initialization/edi_ei_initialization.C | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/usr/hwpf') 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() + .supportsXscom) + { + ScomSwitches l_switches = + l_proc_target->getAttr(); + + // 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(l_switches); + } + } + + ++curproc; + } + } TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_proc_fab_iovalid exit" ); -- cgit v1.2.1