Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RAS testscenarios for POWER9 #551

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions testcases/OpTestPrdDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,24 @@ def runTest(self):
# TP.TPCHIP.PIB.PCBMS.COMP.INTR_COMP.HOST_MASK_REG
self.IPOLL_MASK_REGISTER = "0xF0033"
self.IPOLL_MASK_REGISTER_CONTENT = "a400000000000000"
L2_FAULT_ISOLATION_REGISTER = "0x10010800"
L2_FAULT_ISOLATION_MASK_REGISTER = "0x10010803"
L2FIR_CE_STUCKBIT_ERR = '0040000000000000'
L2FIR_RC_POWERBUS_TIMEOUT = '0008000000000000'
L2FIR_HARDWARE_CNTRL_ERR = '0002000000000000'
faults_to_inject = [
ErrorToInject("PRD: Test for L2FIR_CE_STUCKBIT_ERR-->L2 directory stuck bit CE repair",
L2_FAULT_ISOLATION_REGISTER,
L2_FAULT_ISOLATION_MASK_REGISTER,
L2FIR_CE_STUCKBIT_ERR),
ErrorToInject("PRD: Test for L2FIR_RC_POWERBUS_TIMEOUT-->RC Powerbus data timeout",
L2_FAULT_ISOLATION_REGISTER,
L2_FAULT_ISOLATION_MASK_REGISTER,
L2FIR_RC_POWERBUS_TIMEOUT),
ErrorToInject("PRD: Test for L2FIR_HARDWARE_CNTRL_ERR-->Hardware control error",
L2_FAULT_ISOLATION_REGISTER,
L2_FAULT_ISOLATION_MASK_REGISTER,
L2FIR_HARDWARE_CNTRL_ERR)]

try:
l_con.run_command("opal-prd --pnor /dev/mtd0 --debug --stdio")
Expand Down