summaryrefslogtreecommitdiffstats
path: root/src/build/citest/autocitest
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2013-09-12 13:46:07 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-10-11 11:03:38 -0500
commitd5adce60c0cc910171c2938e581f187a2083cba7 (patch)
tree4f7e0470c1d8fd3808f1e47746c8732184b221f3 /src/build/citest/autocitest
parent6d19bd7f6660d4a0f739e883e2f5d0434419a135 (diff)
downloadtalos-hostboot-d5adce60c0cc910171c2938e581f187a2083cba7.tar.gz
talos-hostboot-d5adce60c0cc910171c2938e581f187a2083cba7.zip
PNOR ECC Support
Adding ECC support to the PNOR Resource Provider as well as the makefiles that create the images. Also fixed a bug in the PNOR DD for writes across erase blocks. Change-Id: I31ff6817cd35728badcd23a48fa73e51727142b9 RTC: 66213 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6203 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Diffstat (limited to 'src/build/citest/autocitest')
-rwxr-xr-xsrc/build/citest/autocitest16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/build/citest/autocitest b/src/build/citest/autocitest
index a4f083893..d79737637 100755
--- a/src/build/citest/autocitest
+++ b/src/build/citest/autocitest
@@ -319,6 +319,8 @@ mods_started_addr=`grep "CxxTest::g_ModulesStarted" \
${SBXHOME}/${HBICORE_TEST_SYMS} | awk '{split($0,a,","); print a[2]}'`
mods_completed_addr=`grep "CxxTest::g_ModulesCompleted" \
${SBXHOME}/${HBICORE_TEST_SYMS} | awk '{split($0,a,","); print a[2]}'`
+shutdown_status=`grep "CpuManager::cv_shutdown_status" \
+ ${SBXHOME}/${HBICORE_TEST_SYMS} | awk '{split($0,a,","); print a[2]}'`
#Adjust addresses for HRMOR
HRMOR=`autosim $NOWIN --simcmd "python \"getHRMOR()\""| tr -d '\n\r'`
@@ -344,6 +346,9 @@ mods_started_addr=`echo "obase=16; $temp" | bc`
temp=$(($HRMOR + 0x$mods_completed_addr))
mods_completed_addr=`echo "obase=16; $temp" | bc`
+temp=$(($HRMOR + 0x$shutdown_status))
+shutdown_status=`echo "obase=16; $temp" | bc`
+
## note, don't use $VERBOSE here or you get all sorts of extra junk in the output file.
echo "Wait for unit test completion."
declare -i timeout=0
@@ -368,6 +373,17 @@ while [ $(($modsstarted)) -lt 1 -o $(($modsstarted)) -ne $(($modscompleted)) ];
fi
done
+echo "====> waiting for shutdown..."
+loopcount=0
+while [ "$loopcount" -lt 6 ]; do
+ autosim $NOWIN --simcmd "print ((system_cmp0.phys_mem).read 0x$shutdown_status 0x08)" 1> $SBXHOME/shutdown_status.log 2> /dev/null
+ shutdown_yet=`cat $SBXHOME/shutdown_status.log | awk '/0x/ {print strtonum($1)}'`
+ if [ "$shutdown_yet" -ne 0 ]; then
+ break
+ fi
+ sleep 5
+ ((loopcount++)) # increment loopcount
+done
echo "====> dump totaltests..."
autosim $NOWIN --simcmd "print ((system_cmp0.phys_mem).read 0x$totaltests_addr 0x08)" 1> $SBXHOME/totaltests.log 2> /dev/null
OpenPOWER on IntegriCloud