Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 1 | |
| 2 | r""" |
| 3 | Signature description in error log corresponding to error injection. |
| 4 | """ |
| 5 | |
| 6 | DES_MCA_RECV1 = "'mca.n0p0c0.*MCACALFIR[^0].*A MBA recoverable error'" |
| 7 | DES_MCA_RECV32 = "'mca.n0p0c0.*MCACALFIR[^2].*Excessive refreshes'" |
| 8 | DES_MCA_UE = "'mca.n0p0c0.*MCACALFIR[^10].*State machine'" |
| 9 | |
| 10 | |
| 11 | DES_MCS_RECV1 = "'mcs.n0p0c0.*MCFIR[^0].*mc internal recoverable'" |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 12 | DES_MCS_UE = "'mcs.n0p0c0.*MCFIR[^1].*mc internal non recovervabl'" |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 13 | |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 14 | DES_NX_RECV1 = "'pu.n0p0.*NXDMAENGFIR[^13].*Channel 4 GZIP ECC PE'" |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 15 | DES_NX_RECV32 = "'pu.n0p0.*NXDMAENGFIR[^4].*Channel 0 842 engine ECC'" |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 16 | DES_NX_UE = "'pu.n0p0.*NXDMAENGFIR[^5].*Channel 0 842 engine ECC'" |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 17 | |
| 18 | DES_OBUS_RECV32 = "'ob.n0p0c0.*OB_LFIR[^0].*CFIR internal parity error'" |
| 19 | |
| 20 | DES_CXA_RECV5 = "'capp.n0p0c0.*CXAFIR[^34].*CXA CE on data received'" |
| 21 | DES_CXA_RECV32 = "'capp.n0p0c0.*CXAFIR[^2].*CXA CE on Master array'" |
| 22 | |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 23 | DES_NPU0_RECV32 = "'pu.n0p0.*NPU0FIR[^13].*CQ CTL/SM ASBE Array single'" |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 24 | |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 25 | DES_L2_RECV1 = "'L2FIR[^8].*L2 directory CE'" |
| 26 | DES_L2_RECV32 = "'L2FIR[^6].*L2 directory read CE'" |
| 27 | |
| 28 | DES_L3_RECV1 = "'L3FIR[^17].*Received addr_error cresp'" |
| 29 | DES_L3_RECV32 = "'L3FIR[^7].*L3 cache write data CE'" |
| 30 | |
| 31 | DES_OCC_RECV1 = "'OCCFIR[^45].*C405_ECC_CE'" |
| 32 | DES_CME_RECV1 = "'CMEFIR[^7].*PPE SRAM Uncorrectable Err'" |
| 33 | DES_EQ_RECV32 = "'EQ_LFIR[^0].*CFIR internal parity'" |
| 34 | DES_NCU_RECV1 = "'NCUFIR[^8].*NCU Store Queue Data'" |
| 35 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 36 | # The following is an error injection dictionary with each entry consisting of: |
| 37 | # - field_name: Targettype_threshold_limit . |
| 38 | # - A list consisting of the following fields: |
| 39 | # - field1: FIR (Fault isolation register) value. |
| 40 | # - field2: chip address. |
| 41 | # - field3: Error log signature description. |
| 42 | |
| 43 | ERROR_INJECT_DICT = {'MCACALIFIR_RECV1': ['07010900', '8000000000000000',\ |
| 44 | DES_MCA_RECV1], |
| 45 | 'MCACALIFIR_RECV32': ['07010900', '2000000000000000', \ |
| 46 | DES_MCA_RECV32], |
| 47 | 'MCACALIFIR_UE': ['07010900', '0020000000000000', DES_MCA_UE], |
| 48 | 'MCS_RECV1': ['05010800', '8000000000000000', DES_MCS_RECV1], |
| 49 | 'MCS_UE': ['05010800', '4000000000000000', DES_MCS_UE], |
Sridevi Ramesh | 6bd6b4c | 2017-10-10 04:38:30 -0500 | [diff] [blame] | 50 | 'NX_RECV1': ['02011100','0004000000000000', DES_NX_RECV1], |
| 51 | 'NX_UE': ['02011100','0400000000000000', DES_NX_UE], |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 52 | 'NX_RECV32': ['02011100', '0800000000000000', DES_NX_RECV32], |
| 53 | 'CXA_RECV5': ['02010800', '0000000020000000', DES_CXA_RECV5], |
| 54 | 'CXA_RECV32': ['02010800', '2000000000000000', DES_CXA_RECV32], |
| 55 | 'OBUS_RECV32': ['0904000a', '8000000000000000', DES_OBUS_RECV32], |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 56 | 'NPU0_RECV32': ['05013C00', '0004000000000000', DES_NPU0_RECV32], |
| 57 | 'L2FIR_RECV1': ['10010800', '0080000000000000', DES_L2_RECV1], |
| 58 | 'L2FIR_RECV32': ['10010800', '0200000000000000', DES_L2_RECV32], |
| 59 | 'L2FIR_UE': ['10010800', '4000000000000000', ''], |
| 60 | 'L3FIR_RECV1': ['10011800','0000400000000000', DES_L3_RECV1], |
| 61 | 'L3FIR_RECV32': ['10011800', '0100000000000000', DES_L3_RECV32], |
| 62 | 'L3FIR_UE': ['10011800', '0100000000000000', ''], |
| 63 | 'OCCFIR_RECV1': ['01010800', '0000000000040000', DES_OCC_RECV1], |
| 64 | 'CMEFIR_RECV1': ['10012000', '0100000000000000', DES_CME_RECV1], |
| 65 | 'EQFIR_RECV32': ['1004000A', '4000000000000000', DES_EQ_RECV32], |
| 66 | 'NCUFIR_RECV1': ['10011400', '0080000000000000', DES_NCU_RECV1], |
| 67 | |
Sridevi Ramesh | b180c9f | 2017-08-06 10:27:41 -0500 | [diff] [blame] | 68 | } |
| 69 | |
Sridevi Ramesh | 0d88ab3 | 2017-09-21 11:07:28 -0500 | [diff] [blame] | 70 | # Address translation files |
| 71 | probe_cpu_file_path = '/root/probe_cpus.sh' |
| 72 | addr_translation_file_path = '/root/scom_addr_p9.sh' |