summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffa <wghoffa@us.ibm.com>2017-03-22 11:18:54 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-06 17:30:46 -0400
commita2d9c147dc8f166588fc85d6066f8df0c56e5fbf (patch)
tree37b2bc5699505c1eaa26298f9b39c2e359315118
parenta37daa7eab139979f822e8af1b1509245a095377 (diff)
downloadtalos-hostboot-a2d9c147dc8f166588fc85d6066f8df0c56e5fbf.tar.gz
talos-hostboot-a2d9c147dc8f166588fc85d6066f8df0c56e5fbf.zip
Add hook to skip VPD preload in sim
Change-Id: I56af37509cbdb616121f367087c7408d0b1170a7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38299 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rwxr-xr-xsrc/build/simics/standalone.simics13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/build/simics/standalone.simics b/src/build/simics/standalone.simics
index d86ace7bc..01880a3b6 100755
--- a/src/build/simics/standalone.simics
+++ b/src/build/simics/standalone.simics
@@ -4,19 +4,26 @@
($hb_masterproc).proc_fsi2host_mbox->responder_enable=1
-# Preload VPD in PNOR
-# Pass processor chip type. All proc chip types should be the same.
+# Default value is to preload VPD into PNOR image
+if not defined hb_skip_vpd_preload {$hb_skip_vpd_preload = 0}
+
+# Preload VPD in PNOR unless told not to
+if ($hb_skip_vpd_preload == 0) {
+
+ # Pass processor chip type. All proc chip types should be the same.
if (get-object-list p9_proc) {
$procChipType=(get-object-list p9_proc)[0]->chip_type
python "os.environ['HB_PROC_CHIP_TYPE'] = \""+$procChipType+"\""
}
try {
+ echo "Preload VPD into PNOR"
+
run-python-file (lookup-file hbfw/hb-pnor-vpd-preload.py)
($hb_pnor).sfc_master_mem.load-file ./sysmvpd.dat.ecc 0x229000
($hb_pnor).sfc_master_mem.load-file ./sysspd.dat.ecc 0x1E1000
($hb_pnor).sfc_master_mem.load-file ./sysmemvpd.dat.ecc 0x2B9000
} except { echo "ERROR: Failed to preload VPD into PNOR." }
-
+}
# Loop through every processor chip
foreach $cc in (get-object-list p9_proc) {
OpenPOWER on IntegriCloud