blob: e0369e74e6886ec58fc5fac94c9a0e29771c1a06 [file] [log] [blame]
Sridevi Rameshb180c9f2017-08-06 10:27:41 -05001r"""
2Signature description in error log corresponding to error injection.
3"""
4
Sridevi Rameshcf4507c2017-10-26 04:13:50 -05005DES_MCA_RECV1 = "'MCACALFIR[^0].*A MBA recoverable error'"
6DES_MCA_RECV32 = "'MCACALFIR[^2].*Excessive refreshes'"
7DES_MCA_UE = "'MCACALFIR[^10].*State machine'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -05008
9
Sridevi Ramesh4adb3f22019-03-12 03:31:35 -050010DES_MCI_RECV1 = "'MCFIR[^0].*mc internal recoverable'"
11DES_MCI_UE = "'MCFIR[^1].*mc internal non recovervabl'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050012
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050013DES_NX_RECV1 = "'NXDMAENGFIR[^13].*Channel 4 GZIP ECC PE'"
14DES_NX_RECV32 = "'NXDMAENGFIR[^4].*Channel 0 842 engine ECC'"
15DES_NX_UE = "'NXDMAENGFIR[^5].*Channel 0 842 engine ECC'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050016
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050017DES_OBUS_RECV32 = "'OB_LFIR[^0].*CFIR internal parity error'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050018
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050019DES_CXA_RECV5 = "'CXAFIR[^34].*CXA CE on data received'"
20DES_CXA_RECV32 = "'CXAFIR[^2].*CXA CE on Master array'"
21DES_CXA_UE = "'CXAFIR[^1].*CXA System Xstop PE'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050022
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050023DES_NPU0_RECV32 = "'NPU0FIR[^13].*CQ CTL/SM ASBE Array single'"
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050024
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050025DES_L2_RECV1 = "'L2FIR[^8].*L2 directory CE'"
26DES_L2_RECV32 = "'L2FIR[^6].*L2 directory read CE'"
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050027DES_L2_UE = "'L2FIR[^9].*L2 directory stuck bit CE'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050028
29DES_L3_RECV1 = "'L3FIR[^17].*Received addr_error cresp'"
30DES_L3_RECV32 = "'L3FIR[^7].*L3 cache write data CE'"
Sridevi Rameshb6d7b7e2017-11-07 03:49:52 -060031DES_L3_UE = "'L3FIR[^16].*addr_error cresp for mem'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050032
33DES_OCC_RECV1 = "'OCCFIR[^45].*C405_ECC_CE'"
34DES_CME_RECV1 = "'CMEFIR[^7].*PPE SRAM Uncorrectable Err'"
Sridevi Rameshcf4507c2017-10-26 04:13:50 -050035DES_EQ_RECV32 = "'EQ_LFIR[^1].*CFIR internal parity'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050036DES_NCU_RECV1 = "'NCUFIR[^8].*NCU Store Queue Data'"
Sridevi Ramesh70978ed2017-11-22 23:56:50 -060037DES_NCU_UE = "'NCUFIR[^0].*NCU store queue control'"
38
39DES_CORE_RECV5 = "'COREFIR[^0].*IFU SRAM Recoverable err'"
40DES_CORE_RECV1 = "'COREFIR[^30].*LSU Set Delete Err'"
41DES_CORE_UE = "'COREFIR[^1].*TC Checkstop'"
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050042
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050043# The following is an error injection dictionary with each entry consisting of:
44# - field_name: Targettype_threshold_limit .
45# - A list consisting of the following fields:
46# - field1: FIR (Fault isolation register) value.
47# - field2: chip address.
48# - field3: Error log signature description.
49
Patrick Williams20f38712022-12-08 06:18:26 -060050ERROR_INJECT_DICT = {
51 "MCACALIFIR_RECV1": ["07010900", "8000000000000000", DES_MCA_RECV1],
52 "MCACALIFIR_RECV32": ["07010900", "2000000000000000", DES_MCA_RECV32],
53 "MCACALIFIR_UE": ["07010900", "0020000000000000", DES_MCA_UE],
54 "MCI_RECV1": ["05010800", "8000000000000000", DES_MCI_RECV1],
55 "MCI_UE": ["05010800", "4000000000000000", DES_MCI_UE],
56 "NX_RECV1": ["02011100", "0004000000000000", DES_NX_RECV1],
57 "NX_UE": ["02011100", "0400000000000000", DES_NX_UE],
58 "NX_RECV32": ["02011100", "0800000000000000", DES_NX_RECV32],
59 "CXA_RECV5": ["02010800", "0000000020000000", DES_CXA_RECV5],
60 "CXA_RECV32": ["02010800", "2000000000000000", DES_CXA_RECV32],
61 "CXA_UE": ["02010800", "4000000000000000", DES_CXA_UE],
62 "OBUS_RECV32": ["0904000a", "8000000000000000", DES_OBUS_RECV32],
63 "NPU0_RECV32": ["05013C00", "0004000000000000", DES_NPU0_RECV32],
64 "L2FIR_RECV1": ["10010800", "0080000000000000", DES_L2_RECV1],
65 "L2FIR_RECV32": ["10010800", "0200000000000000", DES_L2_RECV32],
66 "L2FIR_UE": ["10010800", "0040000000000000", DES_L2_UE],
67 "L3FIR_RECV1": ["10011800", "0000400000000000", DES_L3_RECV1],
68 "L3FIR_RECV32": ["10011800", "0100000000000000", DES_L3_RECV32],
69 "L3FIR_UE": ["10011800", "0000800000000000", DES_L3_UE],
70 "OCCFIR_RECV1": ["01010800", "0000000000040000", DES_OCC_RECV1],
71 "CMEFIR_RECV1": ["10012000", "0100000000000000", DES_CME_RECV1],
72 "EQFIR_RECV32": ["1004000A", "8000000000000000", DES_EQ_RECV32],
73 "NCUFIR_RECV1": ["10011400", "0080000000000000", DES_NCU_RECV1],
74 "NCUFIR_UE": ["10011400", "8000000000000000", DES_NCU_UE],
75 "COREFIR_RECV5": ["20010A40", "8000000000000000", DES_CORE_RECV5],
76 "COREFIR_RECV1": ["20010A40", "0000000200000000", DES_CORE_RECV1],
77 "COREFIR_UE": ["20010A40", "4000000000000000", DES_CORE_UE],
78}
Sridevi Rameshb180c9f2017-08-06 10:27:41 -050079
Sridevi Ramesh0d88ab32017-09-21 11:07:28 -050080# Address translation files
Patrick Williams20f38712022-12-08 06:18:26 -060081probe_cpu_file_path = "/root/probe_cpus.sh"
82addr_translation_file_path = "/root/scom_addr_p9.sh"
Sridevi Ramesh9617ebd2019-11-25 10:57:21 -060083
84cfam_address = "2801"
85mem_address = "8208000"