diff options
author | Sreekanth Reddy <sreekanth.reddy@avagotech.com> | 2014-09-12 06:05:25 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-16 12:14:17 -0400 |
commit | 861ff736c8d8ae574dcc1ef81e5da84ff85e70c9 (patch) | |
tree | 378c27ad0de70e80d3bb85af61ba21a96178ac3f | |
parent | 9b2dcba3aa2287cbd08d1b987fec7a0fd8a0ecb1 (diff) |
mpt3sas: MPI2.5 Rev G (2.5.2) specifications
Below is the change set in MPI2.5 Rev G specification and 2.00.31 header files
1) Added SCSIStatusQualifier to SCSI IO Error Reply message.
2) Added ATA Security Freeze Lock to IO Unit Page 1 Flags field.
3) Added Allow Protection Information bit for IR Volume Create.
Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/mpt3sas/mpi/mpi2.h | 6 | ||||
-rw-r--r-- | drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 8 | ||||
-rw-r--r-- | drivers/scsi/mpt3sas/mpi/mpi2_init.h | 6 | ||||
-rw-r--r-- | drivers/scsi/mpt3sas/mpi/mpi2_raid.h | 6 |
4 files changed, 19 insertions, 7 deletions
diff --git a/drivers/scsi/mpt3sas/mpi/mpi2.h b/drivers/scsi/mpt3sas/mpi/mpi2.h index 20da8f907c00..dc143dda422a 100644 --- a/drivers/scsi/mpt3sas/mpi/mpi2.h +++ b/drivers/scsi/mpt3sas/mpi/mpi2.h | |||
@@ -8,7 +8,7 @@ | |||
8 | * scatter/gather formats. | 8 | * scatter/gather formats. |
9 | * Creation Date: June 21, 2006 | 9 | * Creation Date: June 21, 2006 |
10 | * | 10 | * |
11 | * mpi2.h Version: 02.00.29 | 11 | * mpi2.h Version: 02.00.31 |
12 | * | 12 | * |
13 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 | 13 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 |
14 | * prefix are for use only on MPI v2.5 products, and must not be used | 14 | * prefix are for use only on MPI v2.5 products, and must not be used |
@@ -86,6 +86,8 @@ | |||
86 | * 11-27-12 02.00.28 Bumped MPI2_HEADER_VERSION_UNIT. | 86 | * 11-27-12 02.00.28 Bumped MPI2_HEADER_VERSION_UNIT. |
87 | * 12-20-12 02.00.29 Bumped MPI2_HEADER_VERSION_UNIT. | 87 | * 12-20-12 02.00.29 Bumped MPI2_HEADER_VERSION_UNIT. |
88 | * Added MPI25_SUP_REPLY_POST_HOST_INDEX_OFFSET. | 88 | * Added MPI25_SUP_REPLY_POST_HOST_INDEX_OFFSET. |
89 | * 04-09-13 02.00.30 Bumped MPI2_HEADER_VERSION_UNIT. | ||
90 | * 04-17-13 02.00.31 Bumped MPI2_HEADER_VERSION_UNIT. | ||
89 | * -------------------------------------------------------------------------- | 91 | * -------------------------------------------------------------------------- |
90 | */ | 92 | */ |
91 | 93 | ||
@@ -119,7 +121,7 @@ | |||
119 | #define MPI2_VERSION_02_05 (0x0205) | 121 | #define MPI2_VERSION_02_05 (0x0205) |
120 | 122 | ||
121 | /*Unit and Dev versioning for this MPI header set */ | 123 | /*Unit and Dev versioning for this MPI header set */ |
122 | #define MPI2_HEADER_VERSION_UNIT (0x1D) | 124 | #define MPI2_HEADER_VERSION_UNIT (0x1F) |
123 | #define MPI2_HEADER_VERSION_DEV (0x00) | 125 | #define MPI2_HEADER_VERSION_DEV (0x00) |
124 | #define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00) | 126 | #define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00) |
125 | #define MPI2_HEADER_VERSION_UNIT_SHIFT (8) | 127 | #define MPI2_HEADER_VERSION_UNIT_SHIFT (8) |
diff --git a/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h b/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h index 889aa7067899..5b0e5c1778fb 100644 --- a/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h +++ b/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * Title: MPI Configuration messages and pages | 6 | * Title: MPI Configuration messages and pages |
7 | * Creation Date: November 10, 2006 | 7 | * Creation Date: November 10, 2006 |
8 | * | 8 | * |
9 | * mpi2_cnfg.h Version: 02.00.24 | 9 | * mpi2_cnfg.h Version: 02.00.25 |
10 | * | 10 | * |
11 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 | 11 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 |
12 | * prefix are for use only on MPI v2.5 products, and must not be used | 12 | * prefix are for use only on MPI v2.5 products, and must not be used |
@@ -160,6 +160,9 @@ | |||
160 | * 12-20-12 02.00.24 Marked MPI2_SASIOUNIT1_CONTROL_CLEAR_AFFILIATION as | 160 | * 12-20-12 02.00.24 Marked MPI2_SASIOUNIT1_CONTROL_CLEAR_AFFILIATION as |
161 | * obsolete for MPI v2.5 and later. | 161 | * obsolete for MPI v2.5 and later. |
162 | * Added some defines for 12G SAS speeds. | 162 | * Added some defines for 12G SAS speeds. |
163 | * 04-09-13 02.00.25 Added MPI2_IOUNITPAGE1_ATA_SECURITY_FREEZE_LOCK. | ||
164 | * Fixed MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS to | ||
165 | * match the specification. | ||
163 | * -------------------------------------------------------------------------- | 166 | * -------------------------------------------------------------------------- |
164 | */ | 167 | */ |
165 | 168 | ||
@@ -792,6 +795,7 @@ typedef struct _MPI2_CONFIG_PAGE_IO_UNIT_1 { | |||
792 | #define MPI2_IOUNITPAGE1_PAGEVERSION (0x04) | 795 | #define MPI2_IOUNITPAGE1_PAGEVERSION (0x04) |
793 | 796 | ||
794 | /*IO Unit Page 1 Flags defines */ | 797 | /*IO Unit Page 1 Flags defines */ |
798 | #define MPI2_IOUNITPAGE1_ATA_SECURITY_FREEZE_LOCK (0x00004000) | ||
795 | #define MPI25_IOUNITPAGE1_NEW_DEVICE_FAST_PATH_DISABLE (0x00002000) | 799 | #define MPI25_IOUNITPAGE1_NEW_DEVICE_FAST_PATH_DISABLE (0x00002000) |
796 | #define MPI25_IOUNITPAGE1_DISABLE_FAST_PATH (0x00001000) | 800 | #define MPI25_IOUNITPAGE1_DISABLE_FAST_PATH (0x00001000) |
797 | #define MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY (0x00000800) | 801 | #define MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY (0x00000800) |
@@ -870,7 +874,7 @@ typedef struct _MPI2_CONFIG_PAGE_IO_UNIT_5 { | |||
870 | #define MPI2_IOUNITPAGE5_PAGEVERSION (0x00) | 874 | #define MPI2_IOUNITPAGE5_PAGEVERSION (0x00) |
871 | 875 | ||
872 | /*defines for IO Unit Page 5 DmaEngineCapabilities field */ | 876 | /*defines for IO Unit Page 5 DmaEngineCapabilities field */ |
873 | #define MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS (0xFF00) | 877 | #define MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS (0xFFFF0000) |
874 | #define MPI2_IOUNITPAGE5_DMA_CAP_SHIFT_MAX_REQUESTS (16) | 878 | #define MPI2_IOUNITPAGE5_DMA_CAP_SHIFT_MAX_REQUESTS (16) |
875 | 879 | ||
876 | #define MPI2_IOUNITPAGE5_DMA_CAP_EEDP (0x0008) | 880 | #define MPI2_IOUNITPAGE5_DMA_CAP_EEDP (0x0008) |
diff --git a/drivers/scsi/mpt3sas/mpi/mpi2_init.h b/drivers/scsi/mpt3sas/mpi/mpi2_init.h index f7928bf66478..b3e33313d7a3 100644 --- a/drivers/scsi/mpt3sas/mpi/mpi2_init.h +++ b/drivers/scsi/mpt3sas/mpi/mpi2_init.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * Title: MPI SCSI initiator mode messages and structures | 6 | * Title: MPI SCSI initiator mode messages and structures |
7 | * Creation Date: June 23, 2006 | 7 | * Creation Date: June 23, 2006 |
8 | * | 8 | * |
9 | * mpi2_init.h Version: 02.00.14 | 9 | * mpi2_init.h Version: 02.00.15 |
10 | * | 10 | * |
11 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 | 11 | * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25 |
12 | * prefix are for use only on MPI v2.5 products, and must not be used | 12 | * prefix are for use only on MPI v2.5 products, and must not be used |
@@ -44,6 +44,8 @@ | |||
44 | * Priority to match SAM-4. | 44 | * Priority to match SAM-4. |
45 | * Added EEDPErrorOffset to MPI2_SCSI_IO_REPLY. | 45 | * Added EEDPErrorOffset to MPI2_SCSI_IO_REPLY. |
46 | * 07-10-12 02.00.14 Added MPI2_SCSIIO_CONTROL_SHIFT_DATADIRECTION. | 46 | * 07-10-12 02.00.14 Added MPI2_SCSIIO_CONTROL_SHIFT_DATADIRECTION. |
47 | * 04-09-13 02.00.15 Added SCSIStatusQualifier field to MPI2_SCSI_IO_REPLY, | ||
48 | * replacing the Reserved4 field. | ||
47 | * -------------------------------------------------------------------------- | 49 | * -------------------------------------------------------------------------- |
48 | */ | 50 | */ |
49 | 51 | ||
@@ -347,7 +349,7 @@ typedef struct _MPI2_SCSI_IO_REPLY { | |||
347 | U32 SenseCount; /*0x18 */ | 349 | U32 SenseCount; /*0x18 */ |
348 | U32 ResponseInfo; /*0x1C */ | 350 | U32 ResponseInfo; /*0x1C */ |
349 | U16 TaskTag; /*0x20 */ | 351 | U16 TaskTag; /*0x20 */ |
350 | U16 Reserved4; /*0x22 */ | 352 | U16 SCSIStatusQualifier; /* 0x22 */ |
351 | U32 BidirectionalTransferCount; /*0x24 */ | 353 | U32 BidirectionalTransferCount; /*0x24 */ |
352 | U32 EEDPErrorOffset; /*0x28 *//*MPI 2.5 only; Reserved in MPI 2.0*/ | 354 | U32 EEDPErrorOffset; /*0x28 *//*MPI 2.5 only; Reserved in MPI 2.0*/ |
353 | U32 Reserved6; /*0x2C */ | 355 | U32 Reserved6; /*0x2C */ |
diff --git a/drivers/scsi/mpt3sas/mpi/mpi2_raid.h b/drivers/scsi/mpt3sas/mpi/mpi2_raid.h index 71765236afef..fbe3aae102b0 100644 --- a/drivers/scsi/mpt3sas/mpi/mpi2_raid.h +++ b/drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * Title: MPI Integrated RAID messages and structures | 6 | * Title: MPI Integrated RAID messages and structures |
7 | * Creation Date: April 26, 2007 | 7 | * Creation Date: April 26, 2007 |
8 | * | 8 | * |
9 | * mpi2_raid.h Version: 02.00.09 | 9 | * mpi2_raid.h Version: 02.00.10 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -30,6 +30,7 @@ | |||
30 | * 02-06-12 02.00.08 Added MPI2_RAID_ACTION_PHYSDISK_HIDDEN. | 30 | * 02-06-12 02.00.08 Added MPI2_RAID_ACTION_PHYSDISK_HIDDEN. |
31 | * 07-26-12 02.00.09 Added ElapsedSeconds field to MPI2_RAID_VOL_INDICATOR. | 31 | * 07-26-12 02.00.09 Added ElapsedSeconds field to MPI2_RAID_VOL_INDICATOR. |
32 | * Added MPI2_RAID_VOL_FLAGS_ELAPSED_SECONDS_VALID define. | 32 | * Added MPI2_RAID_VOL_FLAGS_ELAPSED_SECONDS_VALID define. |
33 | * 04-17-13 02.00.10 Added MPI25_RAID_ACTION_ADATA_ALLOW_PI. | ||
33 | * -------------------------------------------------------------------------- | 34 | * -------------------------------------------------------------------------- |
34 | */ | 35 | */ |
35 | 36 | ||
@@ -46,6 +47,9 @@ | |||
46 | * RAID Action messages | 47 | * RAID Action messages |
47 | ****************************************************************************/ | 48 | ****************************************************************************/ |
48 | 49 | ||
50 | /* ActionDataWord defines for use with MPI2_RAID_ACTION_CREATE_VOLUME action */ | ||
51 | #define MPI25_RAID_ACTION_ADATA_ALLOW_PI (0x80000000) | ||
52 | |||
49 | /*ActionDataWord defines for use with MPI2_RAID_ACTION_DELETE_VOLUME action */ | 53 | /*ActionDataWord defines for use with MPI2_RAID_ACTION_DELETE_VOLUME action */ |
50 | #define MPI2_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000) | 54 | #define MPI2_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000) |
51 | #define MPI2_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000001) | 55 | #define MPI2_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000001) |