Skip to contentSkip to conversation

mpt2sas: Added raid transport support

PATCH In review Kashyap, Desai 1 participant 1 message Dec 16, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 6/10 mpt2sas: Added raid transport support

Adding support for raid transport layer. This will provide sysfs attributes containing raid level, state, and resync rate.

MPT2SAS module will select RAID_ATTRS.

---

drivers/scsi/mpt2sas/Kconfig +1 -0
index 70c4c24..ba8e128 100644
@@ -44,6 +44,7 @@ config SCSI_MPT2SAS
 	tristate "LSI MPT Fusion SAS 2.0 Device Driver"
 	depends on PCI && SCSI
 	select SCSI_SAS_ATTRS
+	select RAID_ATTRS
 	---help---
 	This driver supports PCI-Express SAS 6Gb/s Host Adapters.
 
drivers/scsi/mpt2sas/mpt2sas_base.h +2 -0
index 12fa18b..014318f 100644
@@ -323,6 +323,7 @@ struct _sas_device {
  * @device_info: bitfield provides detailed info about the hidden components
  * @num_pds: number of hidden raid components
  * @responding: used in _scsih_raid_device_mark_responding
+ * @percent_complete: resync percent complete
  */
 struct _raid_device {
 	struct list_head list;
@@ -336,6 +337,7 @@ struct _raid_device {
 	u32	device_info;
 	u8	num_pds;
 	u8	responding;
+	u8	percent_complete;
 };
 
 /**
drivers/scsi/mpt2sas/mpt2sas_scsih.c +186 -4

255 lines not on this page · raw message

include/linux/raid_class.h +1 -0
index 6b537f1..31e1ff6 100644
@@ -32,6 +32,7 @@ enum raid_level {
 	RAID_LEVEL_0,
 	RAID_LEVEL_1,
 	RAID_LEVEL_10,
+	RAID_LEVEL_1E,
 	RAID_LEVEL_3,
 	RAID_LEVEL_4,
 	RAID_LEVEL_5,