diff options
author | Thi Tran <thi@us.ibm.com> | 2011-11-11 11:01:41 -0600 |
---|---|---|
committer | Thi N. Tran <thi@us.ibm.com> | 2011-11-11 12:13:28 -0600 |
commit | 1595ed5f5602346579dba1f8714d3092f50e928f (patch) | |
tree | 2d58a72a8936ff6eb87eab8e3418b76a536f9b32 /src/usr/hwas | |
parent | c4c52d57c809bc9b6c8a94a8d9fb66489f246a18 (diff) | |
download | talos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.tar.gz talos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.zip |
Modifications to run Sprint 6 code on VBU
Change-Id: I28b4c114bdfb00a8f252bc4ce12a725f292c266b
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/495
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/hwas')
-rw-r--r-- | src/usr/hwas/hwas.C | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/usr/hwas/hwas.C b/src/usr/hwas/hwas.C index c7872d033..f5948e859 100644 --- a/src/usr/hwas/hwas.C +++ b/src/usr/hwas/hwas.C @@ -39,8 +39,7 @@ #include <trace/interface.H> #include <initservice/taskargs.H> #include <errl/errlentry.H> -#include <targeting/target.H> // targeting - +#include <targeting/targetservice.H> #include <fsi/fsiif.H> #include <hwas/hwas.H> @@ -71,6 +70,23 @@ namespace HWAS TRACDCOMP( g_trac_hwas, "init_fsi entry" ); // printkd("init_fsi\n"); + //@todo + //@VBU workaround - Disable init_fsi + //Temporarily disable the FSI initialization in VBU because of + //an MFSI/CFSI XSCOM hardware bug. + TARGETING::EntityPath syspath(TARGETING::EntityPath::PATH_PHYSICAL); + syspath.addLast(TARGETING::TYPE_SYS,0); + TARGETING::Target* sys = TARGETING::targetService().toTarget(syspath); + uint8_t vpo_mode = 0; + if( sys + && sys->tryGetAttr<TARGETING::ATTR_VPO_MODE>(vpo_mode) + && (vpo_mode == 1) ) + { + TASKARGS_WAIT_AND_ENDTASK(); + TRACFCOMP( g_trac_hwas, "HWBUG Workaround - No FSI initialization"); + return; + } + l_errl = FSI::initializeHardware( ); if ( l_errl ) { |