summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2019-07-31 14:33:40 -0500
committerDaniel M Crowell <dcrowell@us.ibm.com>2019-08-02 08:42:59 -0500
commit3a146159cff78f77566b80d632bc18a7a6941124 (patch)
treec319af3be8a483d8999dc6a2b7f7c98755175c83 /src/build
parent15b0afe89c9109c0008a576e5bf74ca8222b6cc4 (diff)
downloadtalos-hostboot-3a146159cff78f77566b80d632bc18a7a6941124.tar.gz
talos-hostboot-3a146159cff78f77566b80d632bc18a7a6941124.zip
Enable secure boot in Axone simics
SECUREBOOT::enabled() was returning 0. secure_jumper access was changed in Axone. Updating startup.simics to use new method. Change-Id: I55baac73172dd43257b14850575b61241e9d8083 RTC:201738 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81456 Reviewed-by: Hieu C Nguyen <hieu.nguyen@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/simics/startup.simics23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/build/simics/startup.simics b/src/build/simics/startup.simics
index 5cdc719f6..5f2a21352 100755
--- a/src/build/simics/startup.simics
+++ b/src/build/simics/startup.simics
@@ -112,6 +112,7 @@ try {
run-python-file (lookup-file hbfw/hb-simdebug.py)
} except { echo "ERROR: Failed to load Hostboot debug tools (hb-simdebug.py)" }
+
# Determine security state
$hw_security=(shell "echo $SECURITY_HW_POLICY")
if($hw_security == "") {
@@ -133,13 +134,27 @@ if($hw_security == "1") {
$jumperApplied=FALSE
}
-# Load jumper state to each processor
-foreach $procX in (get-object-list p9_proc) {
-
+if ($hb_machine == "AXONE") {
# Set logical jumper state in SIMICS based on HW policy
# "TRUE"=jumper applied(security disabled, default)
# "FALSE"=jumper removed(security enabled)
- (($procX)->secure_jumper=$jumperApplied)
+
+ # Load jumper state to the master processor
+ $hb_masterproc.set-secure-jumper value = $jumperApplied
+
+ # Load jumper state to all slave processors
+ foreach $procS in ($hb_masterproc.get-slave-procs) {
+ $procS.set-secure-jumper value = $jumperApplied
+ }
+} else {
+ # Load jumper state to each processor
+ foreach $procX in (get-object-list p9_proc) {
+
+ # Set logical jumper state in SIMICS based on HW policy
+ # "TRUE"=jumper applied(security disabled, default)
+ # "FALSE"=jumper removed(security enabled)
+ (($procX)->secure_jumper=$jumperApplied)
+ }
}
if ($hb_mode == 0) {
OpenPOWER on IntegriCloud