summaryrefslogtreecommitdiffstats
path: root/src/usr/intr
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2014-11-13 12:47:31 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-16 10:10:54 -0600
commita59dccb2db8eabad2b756b9207e28a0e72aa7cbc (patch)
treede09149cbedd5e57fef42a21beab6a67f44eea4f /src/usr/intr
parentf2f75404fafd6d6e7e52a5b901665165ab61b625 (diff)
downloadtalos-hostboot-a59dccb2db8eabad2b756b9207e28a0e72aa7cbc.tar.gz
talos-hostboot-a59dccb2db8eabad2b756b9207e28a0e72aa7cbc.zip
P8+ VPO - HB supports to istep 7 for NVLINK test
Change-Id: I79ec79e1601ae51bf759b80a07c5b4cf2d97fc5c RTC: 95236 Depends-On: I19823ac32a963d7072d21140b828c30ab326a19f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14468 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/intr')
-rw-r--r--src/usr/intr/intrrp.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/intr/intrrp.C b/src/usr/intr/intrrp.C
index 828afe3cf..7095d9bd5 100644
--- a/src/usr/intr/intrrp.C
+++ b/src/usr/intr/intrrp.C
@@ -50,6 +50,7 @@
#include <hwas/common/hwasCallout.H>
#include <fsi/fsiif.H>
#include <arch/ppc.H>
+#include <config.h>
#define INTR_TRACE_NAME INTR_COMP_NAME
@@ -98,6 +99,15 @@ uint64_t get_enabled_threads( void )
uint64_t en_threads = sys->getAttr<TARGETING::ATTR_ENABLED_THREADS>();
if( en_threads == 0 )
{
+
+// Set max thread for VPO, nanosleep() here takes too long in VPO environment
+#ifdef CONFIG_VPO_COMPILE
+ en_threads = 0xFF00000000000000;
+ sys->setAttr<TARGETING::ATTR_ENABLED_THREADS>(en_threads);
+ TRACFCOMP( g_trac_intr, "Enabled Threads for VPO = %.16X", en_threads );
+ return en_threads;
+#endif
+
// Read the scratch reg that the SBE setup
// Enabled threads are listed as a bitstring in bits 16:23
// A value of zero means the SBE hasn't set them up yet
OpenPOWER on IntegriCloud