diff options
author | Moore, Eric <Eric.Moore@lsil.com> | 2006-03-14 11:14:01 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-14 15:27:21 -0500 |
commit | 5bf52c4fda97325976ffaf338d2e81b73b3db446 (patch) | |
tree | 8f04d0c5e504571d1aaacfbd2d337d9dd9c1aae4 /drivers/message | |
parent | e28482c5b24006e9e4a867f9995baf358cbc1059 (diff) |
[SCSI] fusion - loginfo header update
This header is provided to better understand
loginfo codes returned by the mpt fusion firmware.
Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/lsi/mpi_log_sas.h | 105 | ||||
-rw-r--r-- | drivers/message/fusion/mptbase.c | 4 |
2 files changed, 63 insertions, 46 deletions
diff --git a/drivers/message/fusion/lsi/mpi_log_sas.h b/drivers/message/fusion/lsi/mpi_log_sas.h index 9259d1ad6e6e..a9c14ad132ce 100644 --- a/drivers/message/fusion/lsi/mpi_log_sas.h +++ b/drivers/message/fusion/lsi/mpi_log_sas.h | |||
@@ -3,38 +3,11 @@ | |||
3 | * * | 3 | * * |
4 | * Copyright 2003 LSI Logic Corporation. All rights reserved. * | 4 | * Copyright 2003 LSI Logic Corporation. All rights reserved. * |
5 | * * | 5 | * * |
6 | * This file is confidential and a trade secret of LSI Logic. The * | 6 | * Description * |
7 | * receipt of or possession of this file does not convey any rights to * | 7 | * ------------ * |
8 | * reproduce or disclose its contents or to manufacture, use, or sell * | 8 | * This include file contains SAS firmware interface IOC Log Info codes * |
9 | * anything it may describe, in whole, or in part, without the specific * | ||
10 | * written consent of LSI Logic Corporation. * | ||
11 | * * | 9 | * * |
12 | *************************************************************************** | 10 | *-------------------------------------------------------------------------* |
13 | * | ||
14 | * Name: iopiIocLogInfo.h | ||
15 | * Title: SAS Firmware IOP Interface IOC Log Info Definitions | ||
16 | * Programmer: Guy Kendall | ||
17 | * Creation Date: September 24, 2003 | ||
18 | * | ||
19 | * Version History | ||
20 | * --------------- | ||
21 | * | ||
22 | * Last Updated | ||
23 | * ------------- | ||
24 | * Version %version: 22 % | ||
25 | * Date Updated %date_modified: % | ||
26 | * Programmer %created_by: nperucca % | ||
27 | * | ||
28 | * Date Who Description | ||
29 | * -------- --- ------------------------------------------------------- | ||
30 | * 09/24/03 GWK Initial version | ||
31 | * | ||
32 | * | ||
33 | * Description | ||
34 | * ------------ | ||
35 | * This include file contains SAS firmware interface IOC Log Info codes | ||
36 | * | ||
37 | *------------------------------------------------------------------------- | ||
38 | */ | 11 | */ |
39 | 12 | ||
40 | #ifndef IOPI_IOCLOGINFO_H_INCLUDED | 13 | #ifndef IOPI_IOCLOGINFO_H_INCLUDED |
@@ -57,6 +30,8 @@ | |||
57 | #define IOC_LOGINFO_ORIGINATOR_PL (0x01000000) | 30 | #define IOC_LOGINFO_ORIGINATOR_PL (0x01000000) |
58 | #define IOC_LOGINFO_ORIGINATOR_IR (0x02000000) | 31 | #define IOC_LOGINFO_ORIGINATOR_IR (0x02000000) |
59 | 32 | ||
33 | #define IOC_LOGINFO_ORIGINATOR_MASK (0x0F000000) | ||
34 | |||
60 | /****************************************************************************/ | 35 | /****************************************************************************/ |
61 | /* LOGINFO_CODE defines */ | 36 | /* LOGINFO_CODE defines */ |
62 | /****************************************************************************/ | 37 | /****************************************************************************/ |
@@ -78,11 +53,27 @@ | |||
78 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DEFAULT (0x00030700) /* Default Page not found */ | 53 | #define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DEFAULT (0x00030700) /* Default Page not found */ |
79 | #define IOP_LOGINFO_CODE_TASK_TERMINATED (0x00050000) | 54 | #define IOP_LOGINFO_CODE_TASK_TERMINATED (0x00050000) |
80 | 55 | ||
56 | #define IOP_LOGINFO_CODE_ENCL_MGMT_READ_ACTION_ERR0R (0x00060001) /* Read Action not supported for SEP msg */ | ||
57 | #define IOP_LOGINFO_CODE_ENCL_MGMT_INVALID_BUS_ID_ERR0R (0x00060002) /* Invalid Bus/ID in SEP msg */ | ||
58 | |||
59 | #define IOP_LOGINFO_CODE_TARGET_ASSIST_TERMINATED (0x00070001) | ||
60 | #define IOP_LOGINFO_CODE_TARGET_STATUS_SEND_TERMINATED (0x00070002) | ||
61 | #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_ALL_IO (0x00070003) | ||
62 | #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO (0x00070004) | ||
63 | #define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO_REQ (0x00070005) | ||
81 | 64 | ||
82 | /****************************************************************************/ | 65 | /****************************************************************************/ |
83 | /* PL LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = PL */ | 66 | /* PL LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = PL */ |
84 | /****************************************************************************/ | 67 | /****************************************************************************/ |
85 | #define PL_LOGINFO_CODE_OPEN_FAILURE (0x00010000) | 68 | #define PL_LOGINFO_CODE_OPEN_FAILURE (0x00010000) |
69 | #define PL_LOG_INFO_CODE_OPEN_FAILURE_NO_DEST_TIME_OUT (0x00010001) | ||
70 | #define PL_LOGINFO_CODE_OPEN_FAILURE_BAD_DESTINATION (0x00010011) | ||
71 | #define PL_LOGINFO_CODE_OPEN_FAILURE_PROTOCOL_NOT_SUPPORTED (0x00010013) | ||
72 | #define PL_LOGINFO_CODE_OPEN_FAILURE_STP_RESOURCES_BSY (0x00010018) | ||
73 | #define PL_LOGINFO_CODE_OPEN_FAILURE_WRONG_DESTINATION (0x00010019) | ||
74 | #define PL_LOGINFO_CODE_OPEN_FAILURE_ORR_TIMEOUT (0X0001001A) | ||
75 | #define PL_LOGINFO_CODE_OPEN_FAILURE_PATHWAY_BLOCKED (0x0001001B) | ||
76 | #define PL_LOGINFO_CODE_OPEN_FAILURE_AWT_MAXED (0x0001001C) | ||
86 | #define PL_LOGINFO_CODE_INVALID_SGL (0x00020000) | 77 | #define PL_LOGINFO_CODE_INVALID_SGL (0x00020000) |
87 | #define PL_LOGINFO_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00030000) | 78 | #define PL_LOGINFO_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00030000) |
88 | #define PL_LOGINFO_CODE_FRAME_XFER_ERROR (0x00040000) | 79 | #define PL_LOGINFO_CODE_FRAME_XFER_ERROR (0x00040000) |
@@ -97,6 +88,7 @@ | |||
97 | #define PL_LOGINFO_CODE_SATA_LINK_DOWN (0x000D0000) | 88 | #define PL_LOGINFO_CODE_SATA_LINK_DOWN (0x000D0000) |
98 | #define PL_LOGINFO_CODE_DISCOVERY_SATA_INIT_W_IOS (0x000E0000) | 89 | #define PL_LOGINFO_CODE_DISCOVERY_SATA_INIT_W_IOS (0x000E0000) |
99 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x000F0000) | 90 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x000F0000) |
91 | #define PL_LOGINFO_CODE_CONFIG_PL_NOT_INITIALIZED (0x000F0001) /* PL not yet initialized, can't do config page req. */ | ||
100 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x000F0100) /* Invalid Page Type */ | 92 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x000F0100) /* Invalid Page Type */ |
101 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NUM_PHYS (0x000F0200) /* Invalid Number of Phys */ | 93 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NUM_PHYS (0x000F0200) /* Invalid Number of Phys */ |
102 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NOT_IMP (0x000F0300) /* Case Not Handled */ | 94 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NOT_IMP (0x000F0300) /* Case Not Handled */ |
@@ -105,11 +97,23 @@ | |||
105 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PHY (0x000F0600) /* Invalid Phy */ | 97 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PHY (0x000F0600) /* Invalid Phy */ |
106 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_OWNER (0x000F0700) /* No Owner Found */ | 98 | #define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_OWNER (0x000F0700) /* No Owner Found */ |
107 | #define PL_LOGINFO_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00100000) | 99 | #define PL_LOGINFO_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00100000) |
108 | #define PL_LOGINFO_CODE_RESET (0x00110000) | 100 | #define PL_LOGINFO_CODE_RESET (0x00110000) /* See Sub-Codes below */ |
109 | #define PL_LOGINFO_CODE_ABORT (0x00120000) | 101 | #define PL_LOGINFO_CODE_ABORT (0x00120000) /* See Sub-Codes below */ |
110 | #define PL_LOGINFO_CODE_IO_NOT_YET_EXECUTED (0x00130000) | 102 | #define PL_LOGINFO_CODE_IO_NOT_YET_EXECUTED (0x00130000) |
111 | #define PL_LOGINFO_CODE_IO_EXECUTED (0x00140000) | 103 | #define PL_LOGINFO_CODE_IO_EXECUTED (0x00140000) |
104 | #define PL_LOGINFO_CODE_PERS_RESV_OUT_NOT_AFFIL_OWNER (0x00150000) | ||
105 | #define PL_LOGINFO_CODE_OPEN_TXDMA_ABORT (0x00160000) | ||
112 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE (0x00000100) | 106 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE (0x00000100) |
107 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_NO_DEST_TIMEOUT (0x00000101) | ||
108 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ORR_TIMEOUT (0x0000011A) /* Open Reject (Retry) Timeout */ | ||
109 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_PATHWAY_BLOCKED (0x0000011B) | ||
110 | #define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_AWT_MAXED (0x0000011C) /* Arbitration Wait Timer Maxed */ | ||
111 | |||
112 | #define PL_LOGINFO_SUB_CODE_TARGET_BUS_RESET (0x00000120) | ||
113 | #define PL_LOGINFO_SUB_CODE_TRANSPORT_LAYER (0x00000130) /* Leave lower nibble (1-f) reserved. */ | ||
114 | #define PL_LOGINFO_SUB_CODE_PORT_LAYER (0x00000140) /* Leave lower nibble (1-f) reserved. */ | ||
115 | |||
116 | |||
113 | #define PL_LOGINFO_SUB_CODE_INVALID_SGL (0x00000200) | 117 | #define PL_LOGINFO_SUB_CODE_INVALID_SGL (0x00000200) |
114 | #define PL_LOGINFO_SUB_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00000300) | 118 | #define PL_LOGINFO_SUB_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00000300) |
115 | #define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400) | 119 | #define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400) |
@@ -123,26 +127,39 @@ | |||
123 | #define PL_LOGINFO_SUB_CODE_RX_FM_CURRENT_FRAME_ERROR (0x00000C00) | 127 | #define PL_LOGINFO_SUB_CODE_RX_FM_CURRENT_FRAME_ERROR (0x00000C00) |
124 | #define PL_LOGINFO_SUB_CODE_SATA_LINK_DOWN (0x00000D00) | 128 | #define PL_LOGINFO_SUB_CODE_SATA_LINK_DOWN (0x00000D00) |
125 | #define PL_LOGINFO_SUB_CODE_DISCOVERY_SATA_INIT_W_IOS (0x00000E00) | 129 | #define PL_LOGINFO_SUB_CODE_DISCOVERY_SATA_INIT_W_IOS (0x00000E00) |
130 | #define PL_LOGINFO_SUB_CODE_DISCOVERY_REMOTE_SEP_RESET (0x00000E01) | ||
131 | #define PL_LOGINFO_SUB_CODE_SECOND_OPEN (0x00000F00) | ||
126 | #define PL_LOGINFO_SUB_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00001000) | 132 | #define PL_LOGINFO_SUB_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00001000) |
127 | 133 | ||
128 | 134 | ||
129 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000) /* Can't get SMP Frame */ | 135 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000) /* Can't get SMP Frame */ |
130 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200001) /* Error occured on SMP Read */ | 136 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200010) /* Error occured on SMP Read */ |
131 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200002) /* Error occured on SMP Write */ | 137 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200020) /* Error occured on SMP Write */ |
132 | #define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200004) /* Encl Mgmt services not available for this WWID */ | 138 | #define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200040) /* Encl Mgmt services not available for this WWID */ |
133 | #define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200005) /* Address Mode not suppored */ | 139 | #define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200050) /* Address Mode not suppored */ |
134 | #define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200006) /* Invalid Slot Number in SEP Msg */ | 140 | #define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200060) /* Invalid Slot Number in SEP Msg */ |
135 | #define PL_LOGINFO_CODE_ENCL_MGMT_SGPIO_NOT_PRESENT (0x00200007) /* SGPIO not present/enabled */ | 141 | #define PL_LOGINFO_CODE_ENCL_MGMT_SGPIO_NOT_PRESENT (0x00200070) /* SGPIO not present/enabled */ |
142 | #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_NOT_CONFIGURED (0x00200080) /* GPIO not configured */ | ||
143 | #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_FRAME_ERROR (0x00200090) /* GPIO can't allocate a frame */ | ||
144 | #define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_CONFIG_PAGE_ERROR (0x002000A0) /* GPIO failed config page request */ | ||
145 | #define PL_LOGINFO_CODE_ENCL_MGMT_SES_FRAME_ALLOC_ERROR (0x002000B0) /* Can't get frame for SES command */ | ||
146 | #define PL_LOGINFO_CODE_ENCL_MGMT_SES_IO_ERROR (0x002000C0) /* I/O execution error */ | ||
147 | #define PL_LOGINFO_CODE_ENCL_MGMT_SES_RETRIES_EXHAUSTED (0x002000D0) /* SEP I/O retries exhausted */ | ||
148 | #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_ALLOC_ERROR (0x002000E0) /* Can't get frame for SMP command */ | ||
136 | 149 | ||
137 | #define PL_LOGINFO_DA_SEP_NOT_PRESENT (0x00200100) /* SEP not present when msg received */ | 150 | #define PL_LOGINFO_DA_SEP_NOT_PRESENT (0x00200100) /* SEP not present when msg received */ |
138 | #define PL_LOGINFO_DA_SEP_SINGLE_THREAD_ERROR (0x00200101) /* Can only accept 1 msg at a time */ | 151 | #define PL_LOGINFO_DA_SEP_SINGLE_THREAD_ERROR (0x00200101) /* Can only accept 1 msg at a time */ |
139 | #define PL_LOGINFO_DA_SEP_ISTWI_INTR_IN_IDLE_STATE (0x00200102) /* ISTWI interrupt recvd. while IDLE */ | 152 | #define PL_LOGINFO_DA_SEP_ISTWI_INTR_IN_IDLE_STATE (0x00200102) /* ISTWI interrupt recvd. while IDLE */ |
140 | #define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103) /* SEP NACK'd, it is busy */ | 153 | #define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103) /* SEP NACK'd, it is busy */ |
141 | #define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200104) /* SEP stopped or sent bad chksum in Hdr */ | 154 | #define PL_LOGINFO_DA_SEP_DID_NOT_RECEIVE_ACK (0x00200104) /* SEP didn't rcv. ACK (Last Rcvd Bit = 1) */ |
142 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200105) /* SEP returned unknown scsi status */ | 155 | #define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200105) /* SEP stopped or sent bad chksum in Hdr */ |
143 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200106) /* SEP returned unknown scsi status */ | 156 | #define PL_LOGINFO_DA_SEP_STOP_ON_DATA (0x00200106) /* SEP stopped while transfering data */ |
144 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x00200107) /* SEP returned bad chksum after STOP */ | 157 | #define PL_LOGINFO_DA_SEP_STOP_ON_SENSE_DATA (0x00200107) /* SEP stopped while transfering sense data */ |
145 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP_GETDATA (0x00200108) /* SEP returned bad chksum after STOP while gettin data*/ | 158 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200108) /* SEP returned unknown scsi status */ |
159 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200109) /* SEP returned unknown scsi status */ | ||
160 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x0020010A) /* SEP returned bad chksum after STOP */ | ||
161 | #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP_GETDATA (0x0020010B) /* SEP returned bad chksum after STOP while gettin data*/ | ||
162 | #define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND (0x0020010C) /* SEP doesn't support CDB opcode */ | ||
146 | 163 | ||
147 | 164 | ||
148 | /****************************************************************************/ | 165 | /****************************************************************************/ |
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index f2721ea30aa7..39c0b16d8d04 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -6138,8 +6138,8 @@ mpt_spi_log_info(MPT_ADAPTER *ioc, u32 log_info) | |||
6138 | "Abort", /* 12h */ | 6138 | "Abort", /* 12h */ |
6139 | "IO Not Yet Executed", /* 13h */ | 6139 | "IO Not Yet Executed", /* 13h */ |
6140 | "IO Executed", /* 14h */ | 6140 | "IO Executed", /* 14h */ |
6141 | NULL, /* 15h */ | 6141 | "Persistant Reservation Out Not Affiliation Owner", /* 15h */ |
6142 | NULL, /* 16h */ | 6142 | "Open Transmit DMA Abort", /* 16h */ |
6143 | NULL, /* 17h */ | 6143 | NULL, /* 17h */ |
6144 | NULL, /* 18h */ | 6144 | NULL, /* 18h */ |
6145 | NULL, /* 19h */ | 6145 | NULL, /* 19h */ |