summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriti Bavaria <pbavari@us.ibm.com>2014-02-25 10:36:49 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-27 17:41:59 -0600
commit6ce46ff0903d0c7c1b3bb29ccdf55ecdd72f4840 (patch)
treee88222beac6b6cfe894094d39293af3cf0df6f3d
parent2d294d9aa3a703d2cb42a2b48eaee54e1d620d7d (diff)
downloadblackbird-hostboot-6ce46ff0903d0c7c1b3bb29ccdf55ecdd72f4840.tar.gz
blackbird-hostboot-6ce46ff0903d0c7c1b3bb29ccdf55ecdd72f4840.zip
fsp-memdump multi-node support
Added support for multi-node Change-Id: I3ef9bdb1d38f8825c326cfd61900ab60700e834b CQ: SW242920 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9139 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
-rwxr-xr-xsrc/build/debug/fsp-memdump.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/build/debug/fsp-memdump.sh b/src/build/debug/fsp-memdump.sh
index ce951384c..429848be6 100755
--- a/src/build/debug/fsp-memdump.sh
+++ b/src/build/debug/fsp-memdump.sh
@@ -6,7 +6,7 @@
#
# IBM CONFIDENTIAL
#
-# COPYRIGHT International Business Machines Corp. 2013
+# COPYRIGHT International Business Machines Corp. 2013,2014
#
# p1
#
@@ -27,11 +27,12 @@
# Print usage statement.
usage()
{
- echo "fsp-memdump.sh <filename> [STATE|discover|limit]"
+ echo "fsp-memdump.sh <filename> [STATE|discover|limit] [Node #]"
echo
echo " STATE should be a two nibble hex value corresponding to the"
echo " MemSize enumeration in <kernel/memstate.H> or the ASCII strings"
echo " 'discover', 'limit'."
+ echo " Node # (0,1,2,3) "
exit 0
}
@@ -93,6 +94,7 @@ limit_memory()
# Read filename and state.
FILE=$1
STATE=$2
+NODE=$3
if [[ -z ${FILE} ]]; then
usage
fi
@@ -101,8 +103,17 @@ if [[ -z ${STATE} ]]; then
STATE=discover
fi
+if [[ -z ${NODE} ]]; then
+ NODE=0
+fi
+
+HB_OFFSET=`expr 128 \* 1024 \* 1024`
+#(32TB - 0x200000000000 OR 35184372088832)
+HB_BASE_HRMOR=`expr 32 \* 1024 \* 1024 \* 1024 \* 1024`
+
# Calculate HRMOR (in decimal).
-HRMOR=`expr 128 \* 1024 \* 1024`
+HRMOR=`expr ${HB_BASE_HRMOR} \* ${NODE} + ${HB_OFFSET}`
+echo "NODE: ${NODE} - HRMOR is: ${HRMOR}"
# Using initial STATE, iterate through all the included states dumping each's
# appropriate memory sections.
OpenPOWER on IntegriCloud