From 6ce46ff0903d0c7c1b3bb29ccdf55ecdd72f4840 Mon Sep 17 00:00:00 2001 From: Priti Bavaria Date: Tue, 25 Feb 2014 10:36:49 -0600 Subject: 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 Tested-by: Jenkins Server --- src/build/debug/fsp-memdump.sh | 17 ++++++++++++++--- 1 file 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 [STATE|discover|limit]" + echo "fsp-memdump.sh [STATE|discover|limit] [Node #]" echo echo " STATE should be a two nibble hex value corresponding to the" echo " MemSize enumeration in 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. -- cgit v1.2.3