-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run simics intially till SBE is booted
Change-Id: Iab0eb98231bb1f66944cbb5f990f80ab9e827e49 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56297 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# IBM_PROLOG_BEGIN_TAG | ||
# This is an automatically generated prolog. | ||
# | ||
# $Source: src/test/testcases/testRunTillSbeBooted.py $ | ||
# | ||
# OpenPOWER sbe Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2018 | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing | ||
# permissions and limitations under the License. | ||
# | ||
# IBM_PROLOG_END_TAG | ||
import os | ||
import sys | ||
sys.path.append("targets/p9_nimbus/sbeTest" ) | ||
import testUtil | ||
err = False | ||
|
||
import testScomUtil | ||
|
||
from sim_commands import * | ||
lbus = conf.p9Proc0.proc_lbus_map | ||
|
||
while True: | ||
try: | ||
if testUtil.read(lbus, 0x2824, 4)[0] & 0x80 : | ||
print "SBE is booted, continue" | ||
break | ||
else: | ||
print "SBE is still not booted" | ||
|
||
except: | ||
print "." | ||
testUtil.runCycles( 10000000 ) |