Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite tests checkstop operations through HOST. |
| 3 | Resource ../lib/utils.robot |
| 4 | Resource ../lib/openbmc_ffdc.robot |
| 5 | Resource ../lib/ras/host_utils.robot |
| 6 | Resource ../lib/resource.txt |
| 7 | Resource ../lib/state_manager.robot |
| 8 | Resource ../lib/openbmc_ffdc_methods.robot |
| 9 | Resource ../lib/boot_utils.robot |
| 10 | Variables ../lib/ras/variables.py |
| 11 | |
| 12 | Library DateTime |
| 13 | Library OperatingSystem |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 14 | Library random |
| 15 | Library Collections |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 16 | |
| 17 | Suite Setup RAS Suite Setup |
| 18 | Test Setup RAS Test Setup |
| 19 | Test Teardown FFDC On Test Case Fail |
| 20 | Suite Teardown RAS Suite Cleanup |
| 21 | |
Sweta Potthuri | 18753a7 | 2017-10-30 06:01:03 -0500 | [diff] [blame] | 22 | Force Tags Host_RAS |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 23 | *** Variables *** |
| 24 | ${stack_mode} normal |
| 25 | |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 26 | *** Test Cases *** |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 27 | # Memory channel (MCACALIFIR) related error injection. |
| 28 | |
| 29 | Verify Recoverable Callout Handling For MCA With Threshold 1 |
| 30 | [Documentation] Verify recoverable callout handling for MCACALIFIR with |
| 31 | ... threshold 1. |
| 32 | [Tags] Verify_Recoverable_Callout_Handling_For_MCA_With_Threshold_1 |
| 33 | |
| 34 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} MCACALIFIR_RECV1 |
| 35 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}mcacalfir_th1 |
| 36 | Inject Recoverable Error With Threshold Limit Through Host |
| 37 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 38 | |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 39 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 40 | Verify Recoverable Callout Handling For MCA With Threshold 32 |
| 41 | [Documentation] Verify recoverable callout handling for MCACALIFIR with |
| 42 | ... threshold 32. |
| 43 | [Tags] Verify_Recoverable_Callout_Handling_For_MCA_With_Threshold_32 |
| 44 | |
| 45 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} MCACALIFIR_RECV32 |
| 46 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}mcacalfir_th32 |
| 47 | Inject Recoverable Error With Threshold Limit Through Host |
| 48 | ... ${value[0]} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 49 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 50 | Verify Unrecoverable Callout Handling For MCA |
| 51 | [Documentation] Verify unrecoverable callout handling for MCACALIFIR. |
| 52 | [Tags] Verify_Unrecoverable_Callout_Handling_For_MCA |
| 53 | |
| 54 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} MCACALIFIR_UE |
| 55 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}mcacalfir |
| 56 | Inject Unrecoverable Error Through Host |
| 57 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 58 | |
| 59 | # Memory buffer (MCIFIR) related error injection. |
| 60 | |
| 61 | Verify Recoverable Callout Handling For MCI With Threshold 1 |
| 62 | [Documentation] Verify recoverable callout handling for mci with |
| 63 | ... threshold 1. |
| 64 | [Tags] Verify_Recoverable_Callout_Handling_For_MCI_With_Threshold_1 |
| 65 | |
| 66 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} MCS_RECV1 |
| 67 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}mcifir_th1 |
| 68 | Inject Recoverable Error With Threshold Limit Through Host |
| 69 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 70 | |
| 71 | Verify Unrecoverable Callout Handling For MCI |
| 72 | [Documentation] Verify unrecoverable callout handling for mci. |
| 73 | [Tags] Verify_Unrecoverable_Callout_Handling_For_MCI |
| 74 | |
| 75 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} MCS_UE |
| 76 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}mcifir |
| 77 | Inject Unrecoverable Error Through Host |
| 78 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 79 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 80 | # CAPP accelerator (CXAFIR) related error injection. |
| 81 | |
| 82 | Verify Recoverable Callout Handling For CXA With Threshold 5 |
| 83 | [Documentation] Verify recoverable callout handling for CXA with |
| 84 | ... threshold 5. |
| 85 | [Tags] Verify_Recoverable_Callout_Handling_For_CXA_With_Threshold_5 |
| 86 | |
| 87 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} CXA_RECV5 |
| 88 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}cxafir_th5 |
| 89 | Inject Recoverable Error With Threshold Limit Through Host |
| 90 | ... ${value[0]} ${value[1]} 5 ${value[2]} ${err_log_path} |
| 91 | |
| 92 | Verify Recoverable Callout Handling For CXA With Threshold 32 |
| 93 | [Documentation] Verify recoverable callout handling for CXA with |
| 94 | ... threshold 32. |
| 95 | [Tags] Verify_Recoverable_Callout_Handling_For_CXA_With_Threshold_32 |
| 96 | |
| 97 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} CXA_RECV32 |
| 98 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}cxafir_th32 |
| 99 | Inject Recoverable Error With Threshold Limit Through Host |
| 100 | ... ${value[0]} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 101 | |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 102 | Verify Unrecoverable Callout Handling For CXA |
| 103 | [Documentation] Verify unrecoverable callout handling for CXAFIR. |
| 104 | [Tags] Verify_Unrecoverable_Callout_Handling_For_CXA |
| 105 | |
| 106 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} CXA_UE |
| 107 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}cxafir_ue |
| 108 | Inject Unrecoverable Error Through Host |
| 109 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 110 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 111 | # OBUSFIR related error injection. |
| 112 | |
| 113 | Verify Recoverable Callout Handling For OBUS With Threshold 32 |
| 114 | [Documentation] Verify recoverable callout handling for OBUS with |
| 115 | ... threshold 32. |
| 116 | [Tags] Verify_Recoverable_Callout_Handling_For_OBUS_With_Threshold_32 |
| 117 | |
| 118 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} OBUS_RECV32 |
| 119 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}obusfir_th32 |
| 120 | Inject Recoverable Error With Threshold Limit Through Host |
| 121 | ... ${value[0]} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 122 | |
| 123 | # Nvidia graphics processing units (NPU0FIR) related error injection. |
| 124 | |
| 125 | Verify Recoverable Callout Handling For NPU0 With Threshold 32 |
| 126 | [Documentation] Verify recoverable callout handling for NPU0 with |
| 127 | ... threshold 32. |
| 128 | [Tags] Verify_Recoverable_Callout_Handling_For_NPU0_With_Threshold_32 |
| 129 | |
| 130 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} NPU0_RECV32 |
| 131 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}npu0fir_th32 |
| 132 | Inject Recoverable Error With Threshold Limit Through Host |
| 133 | ... ${value[0]} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 134 | |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 135 | # Nest accelerator NXDMAENGFIR related error injection. |
| 136 | |
| 137 | Verify Recoverable Callout Handling For NXDMAENG With Threshold 1 |
| 138 | [Documentation] Verify recoverable callout handling for NXDMAENG with |
| 139 | ... threshold 1. |
| 140 | [Tags] Verify_Recoverable_Callout_Handling_For_NXDMAENG_With_Threshold_1 |
| 141 | |
| 142 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} NX_RECV1 |
| 143 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}nxfir_th1 |
| 144 | Inject Recoverable Error With Threshold Limit Through Host |
| 145 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 146 | |
| 147 | |
| 148 | Verify Recoverable Callout Handling For NXDMAENG With Threshold 32 |
| 149 | [Documentation] Verify recoverable callout handling for NXDMAENG with |
| 150 | ... threshold 32. |
| 151 | [Tags] Verify_Recoverable_Callout_Handling_For_NXDMAENG_With_Threshold_32 |
| 152 | |
| 153 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} NX_RECV32 |
| 154 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}nxfir_th32 |
| 155 | Inject Recoverable Error With Threshold Limit Through Host |
| 156 | ... ${value[0]} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 157 | |
| 158 | Verify Unrecoverable Callout Handling For NXDMAENG |
| 159 | [Documentation] Verify unrecoverable callout handling for NXDMAENG. |
| 160 | [Tags] Verify_Unrecoverable_Callout_Handling_For_NXDMAENG |
| 161 | |
| 162 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} NX_UE |
| 163 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}nxfir_ue |
| 164 | Inject Unrecoverable Error Through Host |
| 165 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 166 | |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 167 | |
| 168 | # L2FIR related error injection. |
| 169 | |
| 170 | Verify Recoverable Callout Handling For L2FIR With Threshold 1 |
| 171 | [Documentation] Verify recoverable callout handling for L2FIR with |
| 172 | ... threshold 1. |
| 173 | [Tags] Verify_Recoverable_Callout_Handling_For_L2FIR_With_Threshold_1 |
| 174 | |
| 175 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L2FIR_RECV1 |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 176 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 177 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l2fir_th1 |
| 178 | Inject Recoverable Error With Threshold Limit Through Host |
| 179 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 180 | |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 181 | Verify Recoverable Callout Handling For L2FIR With Threshold 32 |
| 182 | [Documentation] Verify recoverable callout handling for L2FIR with |
| 183 | ... threshold 32. |
| 184 | [Tags] Verify_Recoverable_Callout_Handling_For_L2FIR_With_Threshold_32 |
| 185 | |
| 186 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L2FIR_RECV32 |
| 187 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
| 188 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l2fir_th32 |
| 189 | Inject Recoverable Error With Threshold Limit Through Host |
| 190 | ... ${translated_fir} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 191 | |
| 192 | Verify Unrecoverable Callout Handling For L2FIR |
| 193 | [Documentation] Verify unrecoverable callout handling for L2FIR. |
| 194 | [Tags] Verify_Unrecoverable_Callout_Handling_For_L2FIR |
| 195 | |
| 196 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L2FIR_UE |
| 197 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
| 198 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l2fir_ue |
| 199 | Inject Unrecoverable Error Through Host |
| 200 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 201 | |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 202 | # L3FIR related error injection. |
| 203 | |
| 204 | Verify Recoverable Callout Handling For L3FIR With Threshold 1 |
| 205 | [Documentation] Verify recoverable callout handling for L3FIR with |
| 206 | ... threshold 1. |
| 207 | [Tags] Verify_Recoverable_Callout_Handling_For_L3FIR_With_Threshold_1 |
| 208 | |
| 209 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L3FIR_RECV1 |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 210 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 211 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l3fir_th1 |
| 212 | Inject Recoverable Error With Threshold Limit Through Host |
| 213 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 214 | |
| 215 | Verify Recoverable Callout Handling For L3FIR With Threshold 32 |
| 216 | [Documentation] Verify recoverable callout handling for L3FIR with |
| 217 | ... threshold 32. |
| 218 | [Tags] Verify_Recoverable_Callout_Handling_For_L3FIR_With_Threshold_32 |
| 219 | |
| 220 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L3FIR_RECV32 |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 221 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 222 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l3fir_th32 |
| 223 | Inject Recoverable Error With Threshold Limit Through Host |
| 224 | ... ${translated_fir} ${value[1]} 32 ${value[2]} ${err_log_path} |
| 225 | |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 226 | Verify Unrecoverable Callout Handling For L3FIR |
| 227 | [Documentation] Verify unrecoverable callout handling for L3FIR. |
| 228 | [Tags] Verify_Unrecoverable_Callout_Handling_For_L3FIR |
| 229 | |
| 230 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} L3FIR_UE |
| 231 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
| 232 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}l3fir_ue |
| 233 | Inject Unrecoverable Error Through Host |
| 234 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 235 | |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 236 | # On chip controller (OCCFIR) related error injection. |
| 237 | |
| 238 | Verify Recoverable Callout Handling For OCC With Threshold 1 |
| 239 | [Documentation] Verify recoverable callout handling for OCCFIR with |
| 240 | ... threshold 1. |
| 241 | [Tags] Verify_Recoverable_Callout_Handling_For_OCC_With_Threshold_1 |
| 242 | |
| 243 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} OCCFIR_RECV1 |
| 244 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}occfir_th1 |
| 245 | Inject Recoverable Error With Threshold Limit Through Host |
| 246 | ... ${value[0]} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 247 | |
| 248 | # Core management engine (CMEFIR) related error injection. |
| 249 | |
| 250 | Verify Recoverable Callout Handling For CMEFIR With Threshold 1 |
| 251 | [Documentation] Verify recoverable callout handling for CMEFIR with |
| 252 | ... threshold 1. |
| 253 | [Tags] Verify_Recoverable_Callout_Handling_For_CMEFIR_With_Threshold_1 |
| 254 | |
| 255 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} CMEFIR_RECV1 |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 256 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
Sridevi Ramesh | 151fcf0 | 2017-10-24 02:08:27 -0500 | [diff] [blame] | 257 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}cmefir_th1 |
| 258 | Inject Recoverable Error With Threshold Limit Through Host |
| 259 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
| 260 | |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 261 | Verify Recoverable Callout Handling For NCUFIR With Threshold 1 |
| 262 | [Documentation] Verify recoverable callout handling for NCUFIR with |
| 263 | ... threshold 1. |
| 264 | [Tags] Verify_Recoverable_Callout_Handling_For_NCUFIR_With_Threshold_1 |
| 265 | |
| 266 | ${value}= Get From Dictionary ${ERROR_INJECT_DICT} NCUFIR_RECV1 |
| 267 | ${translated_fir}= Fetch FIR Address Translation Value ${value[0]} EX |
| 268 | ${err_log_path}= Catenate ${RAS_LOG_DIR_PATH}ncufir_th1 |
| 269 | Inject Recoverable Error With Threshold Limit Through Host |
| 270 | ... ${translated_fir} ${value[1]} 1 ${value[2]} ${err_log_path} |
Sridevi Ramesh | 4436af1 | 2017-10-30 04:19:41 -0500 | [diff] [blame] | 271 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 272 | *** Keywords *** |
| 273 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 274 | Verify And Clear Gard Records On HOST |
| 275 | [Documentation] Verify And Clear gard records on HOST. |
| 276 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 277 | ${output}= Gard Operations On OS list |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 278 | Should Not Contain ${output} No GARD |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 279 | Gard Operations On OS clear all |
| 280 | |
| 281 | Verify Error Log Entry |
| 282 | [Documentation] Verify error log entry & signature description. |
| 283 | [Arguments] ${signature_desc} ${log_prefix} |
| 284 | # Description of argument(s): |
| 285 | # signature_desc Error log signature description. |
| 286 | # log_prefix Log path prefix. |
| 287 | |
| 288 | ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}/list |
| 289 | Should Not Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND} |
| 290 | |
| 291 | Collect eSEL Log ${log_prefix} |
| 292 | ${error_log_file_path}= Catenate ${log_prefix}esel.txt |
| 293 | ${rc} ${output} = Run and Return RC and Output |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 294 | ... grep -i ${signature_desc} ${error_log_file_path} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 295 | Should Not Be Empty ${output} |
| 296 | |
| 297 | Inject Recoverable Error With Threshold Limit Through Host |
| 298 | [Documentation] Inject and verify recoverable error on processor through |
| 299 | ... host. |
| 300 | ... Test sequence: |
| 301 | ... 1. Enable Auto Reboot Setting |
| 302 | ... 2. Inject Error on processor/centaur |
| 303 | ... 3. Check If HOST is running. |
| 304 | ... 4. Verify error log entry & signature description. |
| 305 | ... 4. Verify & clear gard records. |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 306 | [Arguments] ${fir} ${chip_address} ${threshold_limit} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 307 | ... ${signature_desc} ${log_prefix} |
| 308 | # Description of argument(s): |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 309 | # fir FIR (Fault isolation register) value (e.g. 2011400). |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 310 | # chip_address Chip address (e.g 2000000000000000). |
| 311 | # threshold_limit Threshold limit (e.g 1, 5, 32). |
| 312 | # signature_desc Error log signature description. |
| 313 | # log_prefix Log path prefix. |
| 314 | |
| 315 | Set Auto Reboot 1 |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 316 | Inject Error Through HOST ${fir} ${chip_address} ${threshold_limit} |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 317 | ... ${master_proc_chip} |
| 318 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 319 | Is Host Running |
| 320 | ${output}= Gard Operations On OS list |
| 321 | Should Contain ${output} No GARD |
| 322 | Verify Error Log Entry ${signature_desc} ${log_prefix} |
| 323 | |
| 324 | |
| 325 | Inject Unrecoverable Error Through Host |
| 326 | [Documentation] Inject and verify recoverable error on processor through |
| 327 | ... host. |
| 328 | ... Test sequence: |
| 329 | ... 1. Enable Auto Reboot Setting |
| 330 | ... 2. Inject Error on processor/centaur |
| 331 | ... 3. Check If HOST is rebooted. |
| 332 | ... 4. Verify error log entry & signature description. |
| 333 | ... 4. Verify & clear gard records. |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 334 | [Arguments] ${fir} ${chip_address} ${threshold_limit} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 335 | ... ${signature_desc} ${log_prefix} |
| 336 | # Description of argument(s): |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 337 | # fir FIR (Fault isolation register) value (e.g. 2011400). |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 338 | # chip_address Chip address (e.g 2000000000000000). |
| 339 | # threshold_limit Threshold limit (e.g 1, 5, 32). |
| 340 | # signature_desc Error Log signature description. |
| 341 | # (e.g 'mcs(n0p0c0) (MCFIR[0]) mc internal recoverable') |
| 342 | # log_prefix Log path prefix. |
| 343 | |
| 344 | Set Auto Reboot 1 |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 345 | Inject Error Through HOST ${fir} ${chip_address} ${threshold_limit} |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 346 | ... ${master_proc_chip} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 347 | Wait Until Keyword Succeeds 500 sec 20 sec Is Host Rebooted |
| 348 | Wait for OS |
| 349 | Verify And Clear Gard Records On HOST |
| 350 | Verify Error Log Entry ${signature_desc} ${log_prefix} |
| 351 | |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 352 | Fetch FIR Address Translation Value |
| 353 | [Documentation] Fetch FIR address translation value through HOST. |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 354 | [Arguments] ${fir} ${target_type} |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 355 | # Description of argument(s): |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 356 | # fir FIR (Fault isolation register) value (e.g. 2011400). |
| 357 | # core_id Core ID (e.g. 9). |
| 358 | # target_type Target type (e.g. 'EX', 'EQ', 'C'). |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 359 | |
| 360 | Login To OS Host |
| 361 | Copy Address Translation Utils To HOST OS |
| 362 | |
Sridevi Ramesh | cf4507c | 2017-10-26 04:13:50 -0500 | [diff] [blame] | 363 | # Fetch processor chip IDs. |
| 364 | ${proc_chip_id}= Get ProcChipId From OS Processor ${master_proc_chip} |
| 365 | # Example output: |
| 366 | # 00000000 |
| 367 | |
| 368 | ${core_ids}= Get Core IDs From OS ${proc_chip_id[-1]} |
| 369 | # Example output: |
| 370 | #./probe_cpus.sh | grep 'CHIP ID: 0' | cut -c21-22 |
| 371 | # ['14', '15', '16', '17'] |
| 372 | |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 373 | # Ignoring master core ID. |
| 374 | ${output}= Get Slice From List ${core_ids} 1 |
| 375 | # Feth random non-master core ID. |
| 376 | ${core_ids_sub_list}= Evaluate random.sample(${core_ids}, 1) random |
| 377 | ${core_id}= Get From List ${core_ids_sub_list} 0 |
| 378 | ${translated_fir_addr}= FIR Address Translation Through HOST |
| 379 | ... ${fir} ${core_id} ${target_type} |
| 380 | |
| 381 | [Return] ${translated_fir_addr} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 382 | |
| 383 | RAS Test SetUp |
| 384 | [Documentation] Validates input parameters. |
| 385 | |
| 386 | Should Not Be Empty |
| 387 | ... ${OS_HOST} msg=You must provide DNS name/IP of the OS host. |
| 388 | Should Not Be Empty |
| 389 | ... ${OS_USERNAME} msg=You must provide OS host user name. |
| 390 | Should Not Be Empty |
| 391 | ... ${OS_PASSWORD} msg=You must provide OS host user password. |
| 392 | |
| 393 | # Boot to OS. |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 394 | REST Power On quiet=${1} |
Sridevi Ramesh | 4436af1 | 2017-10-30 04:19:41 -0500 | [diff] [blame] | 395 | # Adding delay after host bring up. |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 396 | Sleep 60s |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 397 | |
| 398 | RAS Suite Setup |
| 399 | [Documentation] Create RAS log directory to store all RAS test logs. |
| 400 | |
| 401 | ${RAS_LOG_DIR_PATH}= Catenate ${EXECDIR}/RAS_logs/ |
| 402 | Set Suite Variable ${RAS_LOG_DIR_PATH} |
Sridevi Ramesh | b6d7b7e | 2017-11-07 03:49:52 -0600 | [diff] [blame] | 403 | Set Suite Variable ${master_proc_chip} False |
| 404 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 405 | Create Directory ${RAS_LOG_DIR_PATH} |
| 406 | OperatingSystem.Directory Should Exist ${RAS_LOG_DIR_PATH} |
| 407 | Empty Directory ${RAS_LOG_DIR_PATH} |
| 408 | |
Sridevi Ramesh | 4436af1 | 2017-10-30 04:19:41 -0500 | [diff] [blame] | 409 | # Boot to Os. |
| 410 | REST Power On quiet=${1} |
| 411 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 412 | RAS Suite Cleanup |
| 413 | [Documentation] Perform RAS suite cleanup and verify that host |
| 414 | ... boots after test suite run. |
| 415 | |
| 416 | # Boot to OS. |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 417 | REST Power On quiet=${1} |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 418 | Delete Error Logs |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 419 | Gard Operations On OS clear all |