diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2016-10-17 09:24:57 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-10-17 20:13:03 -0400 |
commit | e9130e2e06fb212e540e3b187b07a5d4542b6931 (patch) | |
tree | 65ce796d5216e47b6b975b7479b8d4a3ec78fc0a /src/build | |
parent | b39c4f06ced1273000f183b17230fa7e1204000e (diff) | |
download | talos-hostboot-e9130e2e06fb212e540e3b187b07a5d4542b6931.tar.gz talos-hostboot-e9130e2e06fb212e540e3b187b07a5d4542b6931.zip |
Update ecmd-debug-framework for P9
- P9 always uses pba mode for memory access
Change-Id: I7a2455c8244e58ce283ce51ea37a9979b2798d48
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31374
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-x | src/build/debug/ecmd-debug-framework.pl | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/build/debug/ecmd-debug-framework.pl b/src/build/debug/ecmd-debug-framework.pl index 19370dcc0..7cb574f46 100755 --- a/src/build/debug/ecmd-debug-framework.pl +++ b/src/build/debug/ecmd-debug-framework.pl @@ -169,7 +169,7 @@ sub readData my (undef, $debugfile) = tempfile(OPEN => 0); my (undef, $filename) = tempfile(OPEN => 0); - my $getmemcmd = "cipgetmempba"; + my $getmemcmd = "getmempba"; if( $memMode =~ /adu/ ) { $getmemcmd = "getmemproc"; } my $command = sprintf("%s -n%d -p%d -fb %s %x %d -quiet > %s", $getmemcmd, @@ -218,7 +218,7 @@ sub writeData print $file $value; close $file; - my $putmemcmd = "cipputmempba"; + my $putmemcmd = "putmempba"; if( $memMode =~ /adu/ ) { $putmemcmd = "putmemproc"; } my $command = sprintf( "$putmemcmd -n%d -p%d -cft -fb %s %x -quiet -mode inj > %s", @@ -368,17 +368,8 @@ sub determineMemMode { if( $memMode =~ /check/ ) { - # Cannot use pba access if the OCC is active - $bar0 = readScom( 0x02013F00, 64 ); #PBABAR0 - if( $bar0 == 0 ) - { - # BAR0 is zero so OCC is not in use - $memMode = "pba"; #use the PBA - } - else - { - $memMode = "adu"; #use the ADU - } + # for P9 we can always use PBA + $memMode = "pba"; #use the PBA } elsif( $memMode =~ /proc/ ) { |