1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef IOPI_IOCLOGINFO_H_INCLUDED
14 #define IOPI_IOCLOGINFO_H_INCLUDED
15
16 #define SAS_LOGINFO_NEXUS_LOSS 0x31170000
17 #define SAS_LOGINFO_MASK 0xFFFF0000
18
19
20
21
22
23
24
25
26
27
28
29
30
31 #define IOC_LOGINFO_ORIGINATOR_IOP (0x00000000)
32 #define IOC_LOGINFO_ORIGINATOR_PL (0x01000000)
33 #define IOC_LOGINFO_ORIGINATOR_IR (0x02000000)
34
35 #define IOC_LOGINFO_ORIGINATOR_MASK (0x0F000000)
36
37
38
39
40 #define IOC_LOGINFO_CODE_MASK (0x00FF0000)
41 #define IOC_LOGINFO_CODE_SHIFT (16)
42
43
44
45
46 #define IOP_LOGINFO_CODE_INVALID_SAS_ADDRESS (0x00010000)
47 #define IOP_LOGINFO_CODE_UNUSED2 (0x00020000)
48 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x00030000)
49 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_RT (0x00030100)
50 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PN (0x00030200)
51 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x00030300)
52 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x00030400)
53 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DNM (0x00030500)
54 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PERSIST (0x00030600)
55 #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DEFAULT (0x00030700)
56
57 #define IOP_LOGINFO_CODE_FWUPLOAD_NO_FLASH_AVAILABLE (0x0003E000)
58 #define IOP_LOGINFO_CODE_FWUPLOAD_UNKNOWN_IMAGE_TYPE (0x0003E001)
59 #define IOP_LOGINFO_CODE_FWUPLOAD_WRONG_IMAGE_SIZE (0x0003E002)
60 #define IOP_LOGINFO_CODE_FWUPLOAD_ENTIRE_FLASH_UPLOAD_FAILED (0x0003E003)
61 #define IOP_LOGINFO_CODE_FWUPLOAD_REGION_UPLOAD_FAILED (0x0003E004)
62 #define IOP_LOGINFO_CODE_FWUPLOAD_DMA_FAILURE (0x0003E005)
63
64 #define IOP_LOGINFO_CODE_DIAG_MSG_ERROR (0x00040000)
65
66 #define IOP_LOGINFO_CODE_TASK_TERMINATED (0x00050000)
67
68 #define IOP_LOGINFO_CODE_ENCL_MGMT_READ_ACTION_ERR0R (0x00060001)
69 #define IOP_LOGINFO_CODE_ENCL_MGMT_INVALID_BUS_ID_ERR0R (0x00060002)
70
71 #define IOP_LOGINFO_CODE_TARGET_ASSIST_TERMINATED (0x00070001)
72 #define IOP_LOGINFO_CODE_TARGET_STATUS_SEND_TERMINATED (0x00070002)
73 #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_ALL_IO (0x00070003)
74 #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO (0x00070004)
75 #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO_REQ (0x00070005)
76
77 #define IOP_LOGINFO_CODE_LOG_TIMESTAMP_EVENT (0x00080000)
78
79
80
81
82 #define PL_LOGINFO_CODE_OPEN_FAILURE (0x00010000)
83
84 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_NO_DEST_TIME_OUT (0x00000001)
85 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PATHWAY_BLOCKED (0x00000002)
86 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_CONTINUE0 (0x00000003)
87 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_CONTINUE1 (0x00000004)
88 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_INITIALIZE0 (0x00000005)
89 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_INITIALIZE1 (0x00000006)
90 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_STOP0 (0x00000007)
91 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_STOP1 (0x00000008)
92 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RETRY (0x00000009)
93 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_BREAK (0x0000000A)
94 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_UNUSED_0B (0x0000000B)
95 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_OPEN_TIMEOUT_EXP (0x0000000C)
96 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_UNUSED_0D (0x0000000D)
97 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_DVTBLE_ACCSS_FAIL (0x0000000E)
98 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_BAD_DEST (0x00000011)
99 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RATE_NOT_SUPP (0x00000012)
100 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PROT_NOT_SUPP (0x00000013)
101 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON0 (0x00000014)
102 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON1 (0x00000015)
103 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON2 (0x00000016)
104 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON3 (0x00000017)
105 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_STP_RESOURCES_BSY (0x00000018)
106 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_WRONG_DESTINATION (0x00000019)
107
108 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PATH_BLOCKED (0x0000001B)
109 #define PL_LOGINFO_SUB_CODE_OPEN_FAIL_AWT_MAXED (0x0000001C)
110
111
112
113 #define PL_LOGINFO_CODE_INVALID_SGL (0x00020000)
114 #define PL_LOGINFO_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00030000)
115 #define PL_LOGINFO_CODE_FRAME_XFER_ERROR (0x00040000)
116 #define PL_LOGINFO_CODE_TX_FM_CONNECTED_LOW (0x00050000)
117 #define PL_LOGINFO_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00060000)
118 #define PL_LOGINFO_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00070000)
119 #define PL_LOGINFO_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00080000)
120 #define PL_LOGINFO_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00090000)
121 #define PL_LOGINFO_CODE_RX_FM_INVALID_MESSAGE (0x000A0000)
122 #define PL_LOGINFO_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x000B0000)
123 #define PL_LOGINFO_CODE_RX_FM_CURRENT_FRAME_ERROR (0x000C0000)
124 #define PL_LOGINFO_CODE_SATA_LINK_DOWN (0x000D0000)
125 #define PL_LOGINFO_CODE_DISCOVERY_SATA_INIT_W_IOS (0x000E0000)
126 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x000F0000)
127 #define PL_LOGINFO_CODE_CONFIG_PL_NOT_INITIALIZED (0x000F0001)
128 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x000F0100)
129 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NUM_PHYS (0x000F0200)
130 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NOT_IMP (0x000F0300)
131 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_DEV (0x000F0400)
132 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x000F0500)
133 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PHY (0x000F0600)
134 #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_OWNER (0x000F0700)
135 #define PL_LOGINFO_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00100000)
136 #define PL_LOGINFO_CODE_RESET (0x00110000)
137 #define PL_LOGINFO_CODE_ABORT (0x00120000)
138 #define PL_LOGINFO_CODE_IO_NOT_YET_EXECUTED (0x00130000)
139 #define PL_LOGINFO_CODE_IO_EXECUTED (0x00140000)
140 #define PL_LOGINFO_CODE_PERS_RESV_OUT_NOT_AFFIL_OWNER (0x00150000)
141 #define PL_LOGINFO_CODE_OPEN_TXDMA_ABORT (0x00160000)
142 #define PL_LOGINFO_CODE_IO_DEVICE_MISSING_DELAY_RETRY (0x00170000)
143 #define PL_LOGINFO_CODE_IO_CANCELLED_DUE_TO_R_ERR (0x00180000)
144 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE (0x00000100)
145 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_NO_DEST_TIMEOUT (0x00000101)
146 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_SATA_NEG_RATE_2HI (0x00000102)
147 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_RATE_NOT_SUPPORTED (0x00000103)
148 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_BREAK (0x00000104)
149 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ZONE_VIOLATION (0x00000114)
150 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON0 (0x00000114)
151 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON1 (0x00000115)
152 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON2 (0x00000116)
153 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON3 (0x00000117)
154 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ORR_TIMEOUT (0x0000011A)
155 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_PATH_BLOCKED (0x0000011B)
156 #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_AWT_MAXED (0x0000011C)
157
158 #define PL_LOGINFO_SUB_CODE_TARGET_BUS_RESET (0x00000120)
159 #define PL_LOGINFO_SUB_CODE_TRANSPORT_LAYER (0x00000130)
160 #define PL_LOGINFO_SUB_CODE_PORT_LAYER (0x00000140)
161
162
163 #define PL_LOGINFO_SUB_CODE_INVALID_SGL (0x00000200)
164 #define PL_LOGINFO_SUB_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00000300)
165 #define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400)
166
167
168
169
170
171 #define PL_LOGINFO_SUB_CODE_TX_FM_CONNECTED_LOW (0x00000500)
172 #define PL_LOGINFO_SUB_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00000600)
173 #define PL_LOGINFO_SUB_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00000700)
174 #define PL_LOGINFO_SUB_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00000800)
175 #define PL_LOGINFO_SUB_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00000900)
176 #define PL_LOGINFO_SUB_CODE_RX_FM_INVALID_MESSAGE (0x00000A00)
177 #define PL_LOGINFO_SUB_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x00000B00)
178 #define PL_LOGINFO_SUB_CODE_RX_FM_CURRENT_FRAME_ERROR (0x00000C00)
179 #define PL_LOGINFO_SUB_CODE_SATA_LINK_DOWN (0x00000D00)
180 #define PL_LOGINFO_SUB_CODE_DISCOVERY_SATA_INIT_W_IOS (0x00000E00)
181 #define PL_LOGINFO_SUB_CODE_DISCOVERY_REMOTE_SEP_RESET (0x00000E01)
182 #define PL_LOGINFO_SUB_CODE_SECOND_OPEN (0x00000F00)
183 #define PL_LOGINFO_SUB_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00001000)
184 #define PL_LOGINFO_SUB_CODE_BREAK_ON_SATA_CONNECTION (0x00002000)
185
186 #define PL_LOGINFO_SUB_CODE_BREAK_ON_STUCK_LINK (0x00003000)
187 #define PL_LOGINFO_SUB_CODE_BREAK_ON_STUCK_LINK_AIP (0x00004000)
188 #define PL_LOGINFO_SUB_CODE_BREAK_ON_INCOMPLETE_BREAK_RCVD (0x00005000)
189
190 #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000)
191 #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200010)
192 #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200020)
193 #define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200040)
194 #define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200050)
195 #define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200060)
196 #define PL_LOGINFO_CODE_ENCL_MGMT_SGPIO_NOT_PRESENT (0x00200070)
197 #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_NOT_CONFIGURED (0x00200080)
198 #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_FRAME_ERROR (0x00200090)
199 #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_CONFIG_PAGE_ERROR (0x002000A0)
200 #define PL_LOGINFO_CODE_ENCL_MGMT_SES_FRAME_ALLOC_ERROR (0x002000B0)
201 #define PL_LOGINFO_CODE_ENCL_MGMT_SES_IO_ERROR (0x002000C0)
202 #define PL_LOGINFO_CODE_ENCL_MGMT_SES_RETRIES_EXHAUSTED (0x002000D0)
203 #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_ALLOC_ERROR (0x002000E0)
204
205 #define PL_LOGINFO_DA_SEP_NOT_PRESENT (0x00200100)
206 #define PL_LOGINFO_DA_SEP_SINGLE_THREAD_ERROR (0x00200101)
207 #define PL_LOGINFO_DA_SEP_ISTWI_INTR_IN_IDLE_STATE (0x00200102)
208 #define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103)
209 #define PL_LOGINFO_DA_SEP_DID_NOT_RECEIVE_ACK (0x00200104)
210 #define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200105)
211 #define PL_LOGINFO_DA_SEP_STOP_ON_DATA (0x00200106)
212 #define PL_LOGINFO_DA_SEP_STOP_ON_SENSE_DATA (0x00200107)
213 #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200108)
214 #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200109)
215 #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x0020010A)
216 #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP_GETDATA (0x0020010B)
217 #define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND (0x0020010C)
218 #define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND_2 (0x0020010D)
219 #define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND_3 (0x0020010E)
220
221
222
223
224
225 #define IR_LOGINFO_RAID_ACTION_ERROR (0x00010000)
226 #define IR_LOGINFO_CODE_UNUSED2 (0x00020000)
227
228
229 #define IR_LOGINFO_VOLUME_CREATE_INVALID_LENGTH (0x00010001)
230
231 #define IR_LOGINFO_VOLUME_CREATE_DUPLICATE (0x00010002)
232
233 #define IR_LOGINFO_VOLUME_CREATE_NO_SLOTS (0x00010003)
234
235 #define IR_LOGINFO_VOLUME_CREATE_DMA_ERROR (0x00010004)
236
237 #define IR_LOGINFO_VOLUME_CREATE_INVALID_VOLUME_TYPE (0x00010005)
238
239 #define IR_LOGINFO_VOLUME_MFG_PAGE4_ERROR (0x00010006)
240
241 #define IR_LOGINFO_VOLUME_INTERNAL_CONFIG_STRUCTURE_ERROR (0x00010007)
242
243
244 #define IR_LOGINFO_VOLUME_ACTIVATING_AN_ACTIVE_VOLUME (0x00010010)
245
246 #define IR_LOGINFO_VOLUME_ACTIVATING_INVALID_VOLUME_TYPE (0x00010011)
247
248 #define IR_LOGINFO_VOLUME_ACTIVATING_TOO_MANY_VOLUMES (0x00010012)
249
250 #define IR_LOGINFO_VOLUME_ACTIVATING_VOLUME_ID_IN_USE (0x00010013)
251
252 #define IR_LOGINFO_VOLUME_ACTIVATE_VOLUME_FAILED (0x00010014)
253
254 #define IR_LOGINFO_VOLUME_ACTIVATING_IMPORT_VOLUME_FAILED (0x00010015)
255
256 #define IR_LOGINFO_VOLUME_ACTIVATING_TOO_MANY_PHYS_DISKS (0x00010016)
257
258
259 #define IR_LOGINFO_PHYSDISK_CREATE_TOO_MANY_DISKS (0x00010020)
260
261 #define IR_LOGINFO_PHYSDISK_CREATE_INVALID_LENGTH (0x00010021)
262
263 #define IR_LOGINFO_PHYSDISK_CREATE_DMA_ERROR (0x00010022)
264
265 #define IR_LOGINFO_PHYSDISK_CREATE_BUS_TID_INVALID (0x00010023)
266
267 #define IR_LOGINFO_PHYSDISK_CREATE_CONFIG_PAGE_ERROR (0x00010024)
268
269
270
271 #define IR_LOGINFO_COMPAT_ERROR_RAID_DISABLED (0x00010030)
272
273 #define IR_LOGINFO_COMPAT_ERROR_INQUIRY_FAILED (0x00010031)
274
275 #define IR_LOGINFO_COMPAT_ERROR_NOT_DIRECT_ACCESS (0x00010032)
276
277 #define IR_LOGINFO_COMPAT_ERROR_REMOVABLE_FOUND (0x00010033)
278
279 #define IR_LOGINFO_COMPAT_ERROR_NEED_SCSI_2_OR_HIGHER (0x00010034)
280
281 #define IR_LOGINFO_COMPAT_ERROR_SATA_48BIT_LBA_NOT_SUPPORTED (0x00010035)
282
283 #define IR_LOGINFO_COMPAT_ERROR_DEVICE_NOT_512_BYTE_BLOCK (0x00010036)
284
285 #define IR_LOGINFO_COMPAT_ERROR_VOLUME_TYPE_CHECK_FAILED (0x00010037)
286
287 #define IR_LOGINFO_COMPAT_ERROR_UNSUPPORTED_VOLUME_TYPE (0x00010038)
288
289 #define IR_LOGINFO_COMPAT_ERROR_DISK_TOO_SMALL (0x00010039)
290
291 #define IR_LOGINFO_COMPAT_ERROR_PHYS_DISK_NOT_FOUND (0x0001003A)
292
293 #define IR_LOGINFO_COMPAT_ERROR_MEMBERSHIP_COUNT (0x0001003B)
294
295 #define IR_LOGINFO_COMPAT_ERROR_NON_64K_STRIPE_SIZE (0x0001003C)
296
297 #define IR_LOGINFO_COMPAT_ERROR_IME_VOL_NOT_CURRENTLY_SUPPORTED (0x0001003D)
298
299
300 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_DFU_IN_PROGRESS (0x00010050)
301
302 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_DEVICE_IN_INVALID_STATE (0x00010051)
303
304 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_INVALID_TIMEOUT (0x00010052)
305
306 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_NO_TIMERS (0x00010053)
307
308 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_READING_CFG_PAGE (0x00010054)
309
310 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_PORT_IO_TIMEOUTS_REQUIRED (0x00010055)
311
312 #define IR_LOGINFO_DEV_FW_UPDATE_ERR_ALLOC_CFG_PAGE (0x00010056)
313
314
315
316
317
318 #define IOC_LOGINFO_PREFIX_IOP ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IOP)
319 #define IOC_LOGINFO_PREFIX_PL ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_PL)
320 #define IOC_LOGINFO_PREFIX_IR ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IR)
321
322 #endif
323