summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-04-16 13:38:20 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-05-30 17:08:28 -0400
commit3ecd7cf99fb44f88a24daca97874e512181ec8f1 (patch)
tree3ab24d83889006bed3bbef25dd32c833094d50da /src/usr/targeting
parent7983214c3e76cca384d104cd07e9294a5ad81dca (diff)
downloadtalos-hostboot-3ecd7cf99fb44f88a24daca97874e512181ec8f1.tar.gz
talos-hostboot-3ecd7cf99fb44f88a24daca97874e512181ec8f1.zip
Add some MAGIC instructions to aid Simics optimization
8001 - Tell Simics we are waiting on the FSP 8006 - Tell Simics we shutdown 8020 - Tell Simics which istep we're running CQ: SW423959 Change-Id: Icea13d2ed7ff73de04400c46b9b1855e94db7c84 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58104 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Hieu C. Nguyen <hieu.nguyen@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/targeting')
-rw-r--r--src/usr/targeting/attrsync.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/targeting/attrsync.C b/src/usr/targeting/attrsync.C
index fbc8db4b9..aadb06849 100644
--- a/src/usr/targeting/attrsync.C
+++ b/src/usr/targeting/attrsync.C
@@ -28,6 +28,7 @@
#include <initservice/initserviceif.H>
#include <errl/hberrltypes.H>
#include <secureboot/service.H>
+#include <arch/ppc.H>
using namespace ERRORLOG;
@@ -143,6 +144,11 @@ namespace TARGETING
}
+ // Tell Simics we are waiting for the FSP to do something
+ // simce the vast majority of the processing time is
+ // on the FSP side of things
+ MAGIC_WAITING_FOR_FSP();
+
if(( l_errl == NULL ) && ( iv_total_pages != 0 ))
{
// tell fsp to commit the last section of data we sent
@@ -154,6 +160,9 @@ namespace TARGETING
}
}
+ // Tell Simics we are done waiting
+ MAGIC_DONE_WAITING_FOR_FSP();
+
}while(0);
return l_errl;
OpenPOWER on IntegriCloud