diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-01-23 05:19:54 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-03-06 10:38:27 -0500 |
commit | 8e9d92bf3c8fc86ad2885db215ac9e87dcb6dceb (patch) | |
tree | 3b57400140a90d1bb3a323bfbf8af7c462b7fcca /src/test/testcases/testSecurity.py | |
parent | 160637c9e837f942480db4db7809123e91b2912a (diff) | |
download | talos-sbe-8e9d92bf3c8fc86ad2885db215ac9e87dcb6dceb.tar.gz talos-sbe-8e9d92bf3c8fc86ad2885db215ac9e87dcb6dceb.zip |
Check for disable scom filtering bit
Disable scom filtering if the scom filtering disable bit is set
Change-Id: I866275da3b05d340636e5e847eb63e14b3a67937
cmvc-prereq: 1046050
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53854
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-on: http://ralgit01.raleigh.ibm.com/gerrit1/52428
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/test/testcases/testSecurity.py')
-rw-r--r-- | src/test/testcases/testSecurity.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/testcases/testSecurity.py b/src/test/testcases/testSecurity.py index 2157cadb..1efda516 100644 --- a/src/test/testcases/testSecurity.py +++ b/src/test/testcases/testSecurity.py @@ -5,7 +5,7 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2017 +# Contributors Listed Below - COPYRIGHT 2017,2018 # [+] International Business Machines Corp. # # @@ -94,7 +94,7 @@ def main(): testScomUtil.getscom(0x0204001A) print "getscom success testcase - passed" # getscom failure - testScomUtil.getscom(eval(BLACKLISTED_REG_FOR_READ_TEST), [0x00, 0x05, 0x00, 0x0B]) + testScomUtil.getscom(eval(BLACKLISTED_REG_FOR_READ_TEST), [0x00, 0x05, 0x00, 0x23]) print "getscom failure testcase - passed" # putscom success testScomUtil.putscom(eval(WHITELISTED_REG_FOR_WRITE_TEST), testScomUtil.getscom(eval(WHITELISTED_REG_FOR_WRITE_TEST))) @@ -103,8 +103,9 @@ def main(): while(True): random_addr = struct.unpack('>L', os.urandom(4))[0] if random_addr not in [eval(a) for a in whitelist]: - testScomUtil.putscom(random_addr, 0, [0x00, 0x05, 0x00, 0x0B]) - break + if not ((random_addr & 0x80000000) or (random_addr & 0x00F00000)): + testScomUtil.putscom(random_addr, 0, [0x00, 0x05, 0x00, 0x23]) + break print "putscom failure testcase - passed" # modify scom success dataWritten = testScomUtil.getscom(0x00040006) |