blob: 0964259361ad699c51a9e962076a5ebc8959ac5b [file] [log] [blame]
Sridevi Rameshb180c9f2017-08-06 10:27:41 -05001
2r"""
3Signature description in error log corresponding to error injection.
4"""
5
Sridevi Rameshcf4507c2017-10-26 04:13:50 -05006DES_MCA_RECV1 = "'MCACALFIR[^0].*A MBA recoverable error'"
7DES_MCA_RECV32 = "'MCACALFIR[^2].*Excessive refreshes'"
8DES_MCA_UE = "'MCACALFIR[^10].*State machine'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -05009
10
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050011DES_MCS_RECV1 = "'MCFIR[^0].*mc internal recoverable'"
12DES_MCS_UE = "'MCFIR[^1].*mc internal non recovervabl'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050013
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050014DES_NX_RECV1 = "'NXDMAENGFIR[^13].*Channel 4 GZIP ECC PE'"
15DES_NX_RECV32 = "'NXDMAENGFIR[^4].*Channel 0 842 engine ECC'"
16DES_NX_UE = "'NXDMAENGFIR[^5].*Channel 0 842 engine ECC'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050017
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050018DES_OBUS_RECV32 = "'OB_LFIR[^0].*CFIR internal parity error'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050019
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050020DES_CXA_RECV5 = "'CXAFIR[^34].*CXA CE on data received'"
21DES_CXA_RECV32 = "'CXAFIR[^2].*CXA CE on Master array'"
22DES_CXA_UE = "'CXAFIR[^1].*CXA System Xstop PE'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050023
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050024DES_NPU0_RECV32 = "'NPU0FIR[^13].*CQ CTL/SM ASBE Array single'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050025
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050026DES_L2_RECV1 = "'L2FIR[^8].*L2 directory CE'"
27DES_L2_RECV32 = "'L2FIR[^6].*L2 directory read CE'"
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050028DES_L2_UE = "'L2FIR[^9].*L2 directory stuck bit CE'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050029
30DES_L3_RECV1 = "'L3FIR[^17].*Received addr_error cresp'"
31DES_L3_RECV32 = "'L3FIR[^7].*L3 cache write data CE'"
Sridevi Rameshb6d7b7e2017-11-07 03:49:52 -060032DES_L3_UE = "'L3FIR[^16].*addr_error cresp for mem'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050033
34DES_OCC_RECV1 = "'OCCFIR[^45].*C405_ECC_CE'"
35DES_CME_RECV1 = "'CMEFIR[^7].*PPE SRAM Uncorrectable Err'"
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050036DES_EQ_RECV32 = "'EQ_LFIR[^1].*CFIR internal parity'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050037DES_NCU_RECV1 = "'NCUFIR[^8].*NCU Store Queue Data'"
38
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050039# The following is an error injection dictionary with each entry consisting of:
40# - field_name: Targettype_threshold_limit .
41# - A list consisting of the following fields:
42# - field1: FIR (Fault isolation register) value.
43# - field2: chip address.
44# - field3: Error log signature description.
45
46ERROR_INJECT_DICT = {'MCACALIFIR_RECV1': ['07010900', '8000000000000000',\
47 DES_MCA_RECV1],
48 'MCACALIFIR_RECV32': ['07010900', '2000000000000000', \
49 DES_MCA_RECV32],
50 'MCACALIFIR_UE': ['07010900', '0020000000000000', DES_MCA_UE],
51 'MCS_RECV1': ['05010800', '8000000000000000', DES_MCS_RECV1],
52 'MCS_UE': ['05010800', '4000000000000000', DES_MCS_UE],
Sridevi Ramesh6bd6b4c2017-10-10 04:38:30 -050053 'NX_RECV1': ['02011100','0004000000000000', DES_NX_RECV1],
54 'NX_UE': ['02011100','0400000000000000', DES_NX_UE],
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050055 'NX_RECV32': ['02011100', '0800000000000000', DES_NX_RECV32],
56 'CXA_RECV5': ['02010800', '0000000020000000', DES_CXA_RECV5],
57 'CXA_RECV32': ['02010800', '2000000000000000', DES_CXA_RECV32],
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050058 'CXA_UE': ['02010800', '4000000000000000', DES_CXA_UE],
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050059 'OBUS_RECV32': ['0904000a', '8000000000000000', DES_OBUS_RECV32],
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050060 'NPU0_RECV32': ['05013C00', '0004000000000000', DES_NPU0_RECV32],
61 'L2FIR_RECV1': ['10010800', '0080000000000000', DES_L2_RECV1],
62 'L2FIR_RECV32': ['10010800', '0200000000000000', DES_L2_RECV32],
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050063 'L2FIR_UE': ['10010800', '0040000000000000', DES_L2_UE],
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050064 'L3FIR_RECV1': ['10011800','0000400000000000', DES_L3_RECV1],
65 'L3FIR_RECV32': ['10011800', '0100000000000000', DES_L3_RECV32],
Sridevi Rameshb6d7b7e2017-11-07 03:49:52 -060066 'L3FIR_UE': ['10011800', '0000800000000000', DES_L3_UE],
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050067 'OCCFIR_RECV1': ['01010800', '0000000000040000', DES_OCC_RECV1],
68 'CMEFIR_RECV1': ['10012000', '0100000000000000', DES_CME_RECV1],
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050069 'EQFIR_RECV32': ['1004000A', '8000000000000000', DES_EQ_RECV32],
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050070 'NCUFIR_RECV1': ['10011400', '0080000000000000', DES_NCU_RECV1],
71
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050072 }
73
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050074# Address translation files
75probe_cpu_file_path = '/root/probe_cpus.sh'
76addr_translation_file_path = '/root/scom_addr_p9.sh'