diff options
author | Sunil.Kumar <skumar8j@in.ibm.com> | 2016-07-26 08:36:33 -0500 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2016-09-13 06:45:28 -0400 |
commit | ae6df59506b64974d5fb330d2800370a3e93c0b0 (patch) | |
tree | fbdd477663a94491cfc59be19e5e29eae6ca0413 /src/test/testcases/testSbeDump.py | |
parent | 618c1dd87d43f3e516dfb0dd50583febec8b95c8 (diff) | |
download | talos-sbe-ae6df59506b64974d5fb330d2800370a3e93c0b0.tar.gz talos-sbe-ae6df59506b64974d5fb330d2800370a3e93c0b0.zip |
RTC 128326 SBE : SBE ChipOps : Generic Messages : Get SBE FFDC
Change-Id: I034a43f67244a6f5e50c54b10f8bd4e013c6076a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27610
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/test/testcases/testSbeDump.py')
-rw-r--r-- | src/test/testcases/testSbeDump.py | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/test/testcases/testSbeDump.py b/src/test/testcases/testSbeDump.py index 7d7a7d77..184a70e8 100644 --- a/src/test/testcases/testSbeDump.py +++ b/src/test/testcases/testSbeDump.py @@ -6,6 +6,7 @@ # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2016 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,11 +28,12 @@ import testUtil err = False #from testWrite import * -TESTDATA = [0, 0, 0, 3, - 0, 0, 0xA1, 0x01, - 0, 0x02, 0x00, 0x2] +TESTDATA = [0, 0, 0, 2, + 0, 0, 0xA8, 0x01] -EXPDATA = [0xc0, 0xde, 0xa1, 0x01] +EXPDATA = [0xc0, 0xde, 0xa8, 0x01, + 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x3] # MAIN Test Run Starts Here... #------------------------------------------------- @@ -39,15 +41,7 @@ def main(): testUtil.runCycles(10000000) testUtil.writeUsFifo(TESTDATA) testUtil.writeEot() - testUtil.readDsFifo(EXPDATA) - #flush out primary and secondary status - data = testUtil.readDsEntryReturnVal() - - #flush hwp ffdc - data = testUtil.readDsEntryReturnVal() - data = testUtil.readDsEntryReturnVal() - #start processing sbe ffdc data = testUtil.readDsEntryReturnVal() magicBytes = ((data[0] << 8) | data[1]) if (magicBytes == 0xFFDC) : @@ -94,8 +88,12 @@ def main(): myBin.write(bytearray(data)) print("write to a file Done") myBin.close() - #flush out distance - data = testUtil.readDsEntryReturnVal() + + #Read the Exp data + print ("Read the Expected data") + testUtil.readDsFifo( EXPDATA ) + testUtil.readEot( ) + #------------------------------------------------- # Calling all test code #------------------------------------------------- |