diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-01-14 23:41:54 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-01-22 03:32:56 -0500 |
commit | 3f49215b05faad977abce306fc607f06c1d8c528 (patch) | |
tree | bec19a8948a5baefe9506545370eed25caa33d0c /src/test | |
parent | 93aa36ba8134af8a1d7ccd16bb6b6f85644c9219 (diff) | |
download | talos-sbe-3f49215b05faad977abce306fc607f06c1d8c528.tar.gz talos-sbe-3f49215b05faad977abce306fc607f06c1d8c528.zip |
Update timer chipop support
Send response on PSU chipops everytime
Increase resolution of timer to us
Implement support for update timer
Change-Id: I497265010d346fc65d14680e356473c019864194
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51933
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>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/testcases/testExecutorCntrlTimer.py | 7 | ||||
-rw-r--r-- | src/test/testcases/testExecutorStopTimer.py | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/test/testcases/testExecutorCntrlTimer.py b/src/test/testcases/testExecutorCntrlTimer.py index 9bdd68c3..fae474d7 100644 --- a/src/test/testcases/testExecutorCntrlTimer.py +++ b/src/test/testcases/testExecutorCntrlTimer.py @@ -6,7 +6,8 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2016,2017 +# Contributors Listed Below - COPYRIGHT 2016,2018 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,7 +35,7 @@ This data are the values or strings that needs to be validated for the test. ''' ''' #------------------------------------------------------------------------------------------------------------------------------ -# SBE side test data - 20 ms timer +# SBE side test data - 32000us timer #------------------------------------------------------------------------------------------------------------------------------ ''' sbe_test_startTimer = ( @@ -42,7 +43,7 @@ sbe_test_startTimer = ( # OP Reg ValueToWrite size Test Expected Data Description #----------------------------------------------------------------------------------------------------- ["write", reg.REG_MBOX0, "0000010100F0D401", 8, "None", "Writing to MBOX0 address"], - ["write", reg.REG_MBOX1, "0000000000000020", 8, "None", "Writing to MBOX1 address"], + ["write", reg.REG_MBOX1, "0000000000007D00", 8, "None", "Writing to MBOX1 address"], ["write", reg.PSU_SBE_DOORBELL_REG_WO_OR, "8000000000000000", 8, "None", "Update SBE Doorbell register to interrupt SBE"], ) ''' diff --git a/src/test/testcases/testExecutorStopTimer.py b/src/test/testcases/testExecutorStopTimer.py index 6305d443..9d0b1384 100644 --- a/src/test/testcases/testExecutorStopTimer.py +++ b/src/test/testcases/testExecutorStopTimer.py @@ -6,7 +6,8 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2016,2017 +# Contributors Listed Below - COPYRIGHT 2016,2018 +# [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,7 +35,7 @@ This data are the values or strings that needs to be validated for the test. ''' ''' #------------------------------------------------------------------------------------------------------------------------------ -# SBE side test data - 200 ms timer +# SBE side test data - 512000us timer #------------------------------------------------------------------------------------------------------------------------------ ''' sbe_test_startTimer = ( @@ -42,7 +43,7 @@ sbe_test_startTimer = ( # OP Reg ValueToWrite size Test Expected Data Description #----------------------------------------------------------------------------------------------------- ["write", reg.REG_MBOX0, "0000010100F0D401", 8, "None", "Writing to MBOX0 address"], - ["write", reg.REG_MBOX1, "0000000000000200", 8, "None", "Writing to MBOX1 address"], + ["write", reg.REG_MBOX1, "000000000007D000", 8, "None", "Writing to MBOX1 address"], ["write", reg.PSU_SBE_DOORBELL_REG_WO_OR, "8000000000000000", 8, "None", "Update SBE Doorbell register to interrupt SBE"], ) ''' @@ -129,7 +130,7 @@ def main(): regObj.pollingOn( testPSUUtil.simSbeObj, timer_polling_data, 20 ) except: isTimerFired = False - + if isTimerFired: print "\n Problem. Timer not cancelled\n" raise Exception('Timer Not cancelled '); |