13e2a3bdfSSridevi Ramesh*** Settings ***
23e2a3bdfSSridevi RameshDocumentation       This suite tests checkstop operations through BMC using
3*0d947d6cSGeorge Keishing...                 pdbg utility during HOST Boot path.
43e2a3bdfSSridevi Ramesh
53e2a3bdfSSridevi RameshResource            ../../lib/openbmc_ffdc.robot
63e2a3bdfSSridevi RameshResource            ../../lib/openbmc_ffdc_utils.robot
73e2a3bdfSSridevi RameshResource            ../../lib/openbmc_ffdc_methods.robot
83e2a3bdfSSridevi RameshResource            ../../openpower/ras/ras_utils.robot
93e2a3bdfSSridevi RameshVariables           ../../lib/ras/variables.py
103e2a3bdfSSridevi RameshVariables           ../../data/variables.py
113e2a3bdfSSridevi Ramesh
123e2a3bdfSSridevi RameshLibrary             DateTime
133e2a3bdfSSridevi RameshLibrary             OperatingSystem
143e2a3bdfSSridevi RameshLibrary             random
153e2a3bdfSSridevi RameshLibrary             Collections
163e2a3bdfSSridevi Ramesh
173e2a3bdfSSridevi RameshSuite Setup         RAS Suite Setup
183e2a3bdfSSridevi RameshTest Setup          RAS Test Setup
193e2a3bdfSSridevi RameshTest Teardown       FFDC On Test Case Fail
203e2a3bdfSSridevi RameshSuite Teardown      RAS Suite Cleanup
213e2a3bdfSSridevi Ramesh
223e2a3bdfSSridevi RameshForce Tags          Host_boot_RAS
233e2a3bdfSSridevi Ramesh
243e2a3bdfSSridevi Ramesh*** Variables ***
253e2a3bdfSSridevi Ramesh${stack_mode}       normal
263e2a3bdfSSridevi Ramesh
273e2a3bdfSSridevi Ramesh*** Test Cases ***
283e2a3bdfSSridevi RameshVerify Recoverable Callout Handling For MCA At Host Boot
293e2a3bdfSSridevi Ramesh
303e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for MCACALIFIR
313e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
323e2a3bdfSSridevi Ramesh    [Tags]  Verify_Recoverable_Callout_Handling_For_MCA_At_Host_Boot
333e2a3bdfSSridevi Ramesh
343e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCACALIFIR_RECV1
353e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}mcacalfir_th1
363e2a3bdfSSridevi Ramesh
373e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${value[0]}  ${value[1]}
383e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
393e2a3bdfSSridevi Ramesh
403e2a3bdfSSridevi Ramesh*** Comments ***
413e2a3bdfSSridevi Ramesh#  Memory buffer (MCIFIR) related error injection.
423e2a3bdfSSridevi Ramesh
433e2a3bdfSSridevi RameshVerify Recoverable Callout Handling For MCI At Host Boot
443e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for MCI
453e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
463e2a3bdfSSridevi Ramesh    [Tags]  Verify_Recoverable_Callout_Handling_For_MCI_At_Host_Boot
473e2a3bdfSSridevi Ramesh
483e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCI_RECV1
493e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}mcifir_th1
503e2a3bdfSSridevi Ramesh
513e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${value[0]}  ${value[1]}
523e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
533e2a3bdfSSridevi Ramesh
543e2a3bdfSSridevi Ramesh
553e2a3bdfSSridevi RameshVerify Recoverable Callout Handling For NXDMAENG At Host Boot
563e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for  NXDMAENG with
573e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
583e2a3bdfSSridevi Ramesh    [Tags]  Verify_Recoverable_Callout_Handling_For_NXDMAENG_At_Host_Boot
593e2a3bdfSSridevi Ramesh
603e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  NX_RECV1
613e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}nxfir_th1
623e2a3bdfSSridevi Ramesh
633e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${value[0]}  ${value[1]}
643e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
653e2a3bdfSSridevi Ramesh
663e2a3bdfSSridevi Ramesh
673e2a3bdfSSridevi Ramesh#  L2FIR related error injection.
683e2a3bdfSSridevi Ramesh
693e2a3bdfSSridevi RameshVerify Recoverable Callout Handling For L2FIR At Host Boot
703e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for L2FIR with
713e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
723e2a3bdfSSridevi Ramesh    [Tags]  Verify_Recoverable_Callout_Handling_For_L2FIR_At_Host_Boot
733e2a3bdfSSridevi Ramesh
743e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  L2FIR_RECV1
753e2a3bdfSSridevi Ramesh    ${translated_fir}=  Fetch FIR Address Translation Value  ${value[0]}  EX
763e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}l2fir_th1
773e2a3bdfSSridevi Ramesh
783e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${translated_fir}  ${value[1]}
793e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
803e2a3bdfSSridevi Ramesh
813e2a3bdfSSridevi Ramesh
823e2a3bdfSSridevi Ramesh# On chip controller (OCCFIR) related error injection.
833e2a3bdfSSridevi Ramesh
843e2a3bdfSSridevi RameshVerify Recoverable Callout Handling For OCC At Host Boot
853e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for OCCFIR with
863e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
873e2a3bdfSSridevi Ramesh    [Tags]  Verify_Recoverable_Callout_Handling_For_OCC_At_Host_Boot
883e2a3bdfSSridevi Ramesh
893e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  OCCFIR_RECV1
903e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}occfir_th1
913e2a3bdfSSridevi Ramesh
923e2a3bdfSSridevi Ramesh
933e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${value[0]}  ${value[1]}
943e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
953e2a3bdfSSridevi Ramesh
963e2a3bdfSSridevi Ramesh# Nest control vunit (NCUFIR) related error injection.
973e2a3bdfSSridevi Ramesh
983e2a3bdfSSridevi RameshVerify Pdbg Recoverable Callout Handling For NCUFIR At Host Boot
993e2a3bdfSSridevi Ramesh    [Documentation]  Verify recoverable callout handling for NCUFIR
1003e2a3bdfSSridevi Ramesh    ...              using pdbg tool during Host Boot path.
1013e2a3bdfSSridevi Ramesh    [Tags]  Verify_Pdbg_Recoverable_Callout_Handling_For_NCUFIR_At_Host_Boot
1023e2a3bdfSSridevi Ramesh
1033e2a3bdfSSridevi Ramesh    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  NCUFIR_RECV1
1043e2a3bdfSSridevi Ramesh    ${translated_fir}=  Fetch FIR Address Translation Value  ${value[0]}  EX
1053e2a3bdfSSridevi Ramesh    ${err_log_path}=  Catenate  ${RAS_LOG_DIR_PATH}ncufir_th1
1063e2a3bdfSSridevi Ramesh
1073e2a3bdfSSridevi Ramesh    Inject Error At HOST Boot Path  ${translated_fir}  ${value[1]}
1083e2a3bdfSSridevi Ramesh    ...  ${value[2]}  ${err_log_path}
109