Skip to contentSkip to conversation

mpt fusion: updated mpt drivers from lsi upstream "4.00.43.00"

PATCH In review [email protected] 3 participants 6 messages Dec 5, 2008 – Dec 9, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mpt fusion: updated mpt drivers from lsi upstream "4.00.43.00"

From: Cheng Renquan <[email protected]>

Occasionally I'm working with LSI SAS 1068E controllers on 2.6.26.2 kernel, it has a nasty bug that some hotplugged disks cannot be auto discovered, the detailed description is on bugzilla.kernel:

http://bugzilla.kernel.org/show_bug.cgi?id=12163

After some inspecting the vendor's website, I found there are "4.00.43.00" drivers for RHEL5.1, but the drivers in main stream kernel are still "3.04.07", and the changelogs of "4.00.43.00" have records on solving that BUG,

but the default "4.00.43.00" downloaded from lsi.com cannot even build on kernel-2.6.26.2, and after some work, I get it run on 2.6.26.2, then can build with mainstream git kernel (the HEAD currently),

http://www.lsi.com/storage_home/products_home/standard_product_ics/sas_ics/lsisas1068e/index.html

-#define MPT_LINUX_VERSION_COMMON "3.04.07"
+#define MPT_LINUX_VERSION_COMMON "4.00.43.00"

This patch is just the upstream "4.00.43.00", it's very big, about 130K after bzip2'ed, so I upload it to bugzilla.kernel, can now be downloaded from

http://bugzilla.kernel.org/attachment.cgi?id=19155

You can also download the tarball from the vendor's website and extract them into drivers/, instead of applying this patch.

the next one is the adjusting for mainstream git kernel.

#1 lore raw

PATCH 2/2 mpt fusion: port "4.00.43.00" to mainstream git kernel

From: Cheng Renquan <[email protected]>

this one just can build with mainstream git kernel, I did not even test it.

I just have tested it with kernel 2.6.26.2, that patch is very similar to this, and it did work well with 2.6.26.2.

---
 drivers/message/fusion/linux_compat.h |    3 +-
 drivers/message/fusion/mptbase.c      |   10 +-
 drivers/message/fusion/mptbase.h      |    6 +-
 drivers/message/fusion/mptfc.c        |    4 +-
 drivers/message/fusion/mptsas.c       |   14 +---
 drivers/message/fusion/mptscsih.c     |  169 +++++++++++++--------------------
 drivers/message/fusion/mptscsih.h     |    2 +-
 7 files changed, 79 insertions(+), 129 deletions(-)
drivers/message/fusion/linux_compat.h +1 -2
index 24ad3f1..92e9797 100644
@@ -31,7 +31,6 @@ static inline void *shost_private(struct Scsi_Host *shost)
 #define spi_dv_pending(x) (((struct spi_transport_attrs *)&(x)->starget_data)->dv_pending)
 #endif
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
 /**
  * mpt_scsilun_to_int: convert a scsi_lun to an int
  * @scsilun:    struct scsi_lun to be converted.
@@ -62,7 +61,7 @@ static inline int mpt_scsilun_to_int(struct scsi_lun *scsilun)
                               scsilun->scsi_lun[i + 1]) << (i * 8));
         return lun;
 }
-#endif
+
 #if (defined(CONFIG_SUSE_KERNEL) && !defined(scsi_is_sas_phy_local))
 #define SUSE_KERNEL_BASE	1
 #endif
drivers/message/fusion/mptbase.c +6 -4
index 2979b63..36dd62a 100644
@@ -1618,7 +1618,7 @@ mpt_mapresources(MPT_ADAPTER *ioc)
 	}
 #else
 	ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM);
-	if (pci_enable_device_bars(pdev, ioc->bars)) {
+	if (pci_enable_device(pdev)) {
 		printk(MYIOC_s_ERR_FMT "pci_enable_device_bars() with MEM "
 		    "failed\n",ioc->name);
 		return r;
@@ -1826,7 +1826,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 #endif
 
 	/* Initialize workqueue */
-	snprintf(ioc->reset_work_q_name, KOBJ_NAME_LEN, "mpt_poll_%d", ioc->id);
+	snprintf(ioc->reset_work_q_name, sizeof(ioc->reset_work_q_name),
+			"mpt_poll_%d", ioc->id);
 	ioc->reset_work_q =
 		create_singlethread_workqueue(ioc->reset_work_q_name);
 	if (!ioc->reset_work_q) {
@@ -1949,7 +1950,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	INIT_LIST_HEAD(&ioc->fw_event_list);
 	spin_lock_init(&ioc->fw_event_lock);
-	snprintf(ioc->fw_event_q_name, KOBJ_NAME_LEN, "mpt/%d", ioc->id);
+	snprintf(ioc->fw_event_q_name, sizeof(ioc->fw_event_q_name),
+			"mpt/%d", ioc->id);
 	ioc->fw_event_q = create_singlethread_workqueue(ioc->fw_event_q_name);
 
 	if ((r = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_BRINGUP,
@@ -2303,7 +2305,7 @@ mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
 		pci_release_selected_regions(ioc->pcidev, ioc->bars);
 		ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM |
 		    IORESOURCE_IO);
-		if (pci_enable_device_bars(ioc->pcidev, ioc->bars))
+		if (pci_enable_device(ioc->pcidev))
 			return -5;
 		if (pci_request_selected_regions(ioc->pcidev, ioc->bars,
 			"mpt"))
drivers/message/fusion/mptbase.h +3 -3
index 73b326d..63f74be 100644
@@ -711,7 +711,7 @@ typedef struct _MPT_ADAPTER
 	struct list_head	 fw_event_list;
 	spinlock_t		 fw_event_lock;
 	u8			 fw_events_off; /* if '1', then ignore events */
-	char fw_event_q_name[KOBJ_NAME_LEN];
+	char fw_event_q_name[20];
 
 	struct mptsas_portinfo	*hba_port_info; /* port_info object for the host */
 	u64			 hba_port_sas_addr;
@@ -734,7 +734,7 @@ typedef struct _MPT_ADAPTER
 	u8			 num_ports;
 #endif
 
-	char			 reset_work_q_name[KOBJ_NAME_LEN];
+	char			 reset_work_q_name[20];
 	struct workqueue_struct *reset_work_q;
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19))
 	struct delayed_work	 fault_reset_work;
@@ -747,7 +747,7 @@ typedef struct _MPT_ADAPTER
 	u8			 fc_link_speed[2];
 	spinlock_t		 fc_rescan_work_lock;
 	struct work_struct	 fc_rescan_work;
-	char			 fc_rescan_work_q_name[KOBJ_NAME_LEN];
+	char			 fc_rescan_work_q_name[20];
 	struct workqueue_struct *fc_rescan_work_q;
 	unsigned long		  hard_resets;		/* driver forced bus resets count */
 	unsigned long		  soft_resets;		/* fw/external bus resets count */
drivers/message/fusion/mptfc.c +2 -2
index 0e943ba..bfb18c8 100644
@@ -1398,8 +1398,8 @@ mptfc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	/* initialize workqueue */
 
-	snprintf(ioc->fc_rescan_work_q_name, KOBJ_NAME_LEN, "mptfc_wq_%d",
-		sh->host_no);
+	snprintf(ioc->fc_rescan_work_q_name, sizeof(ioc->fc_rescan_work_q_name),
+			"mptfc_wq_%d", sh->host_no);
 	ioc->fc_rescan_work_q =
 		create_singlethread_workqueue(ioc->fc_rescan_work_q_name);
 	if (!ioc->fc_rescan_work_q)
drivers/message/fusion/mptsas.c +2 -12
index ee1edaf..4218686 100644
@@ -147,11 +147,7 @@ static int mptsas_sas_expander_pg0(MPT_ADAPTER *ioc, struct mptsas_portinfo *por
 static void mptsas_scan_sas_topology(MPT_ADAPTER *ioc);
 static void mptsas_not_responding_devices(MPT_ADAPTER *ioc);
 
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19))
 static void mptsas_firmware_event_work(struct work_struct *work);
-#else
-static void mptsas_firmware_event_work(void *arg);
-#endif
 
 /**
  *	mptsas_set_sdev_queue_depth - global setting of the mpt_sdev_queue_depth
@@ -4847,16 +4843,10 @@ mptsas_handle_queue_full_event(struct fw_event_work *fw_event)
  *
  */
 static void
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19))
 mptsas_firmware_event_work(struct work_struct *work)
 {
-	struct mptsas_hotplug_event *ev =
-		container_of(work, struct fw_event_work, fw_event.work);
-#else
-mptsas_firmware_event_work(void *arg)
-{
-	struct fw_event_work *fw_event = (struct fw_event_work *)arg;
-#endif
+	struct fw_event_work *fw_event =
+		container_of(work, struct fw_event_work, work.work);
 	MPT_ADAPTER *ioc = fw_event->ioc;
 
 	/* special rescan topology handling */
drivers/message/fusion/mptscsih.c +64 -105

405 lines not on this page · raw message

drivers/message/fusion/mptscsih.h +1 -1
index 9b0b0b0..c199843 100644
@@ -133,7 +133,7 @@ extern int mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id,
 extern u8 mptscsih_raid_id_to_num(MPT_ADAPTER *ioc, u8 channel, u8 id);
 extern int mptscsih_is_phys_disk(MPT_ADAPTER *ioc, u8 channel, u8 id);
 extern int mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *iocmd);
-extern struct class_device_attribute *mptscsih_host_attrs[];
+extern struct device_attribute *mptscsih_host_attrs[];
 extern int mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id);
 extern struct scsi_cmnd * mptscsih_get_scsi_lookup(MPT_ADAPTER *ioc, int i);
 extern void mptscsih_taskmgmt_response_code(MPT_ADAPTER *ioc, u8 response_code);
Signature · 1 line
1.6.0.3
author Tested-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] mpt fusion: port "4.00.43.00" to mainstream git kernel

Hi, all,

I have tested and verified that these two patches can let my LSI-SAS-1068E controllers work well with 2.6.26.2 kernels, perfect,

but the latest git kernel has not yet been tested. just buildable. I personally suggest these patches integrated into Greg KH's staging tree. It seems meet staging's purpose well?

The bugzilla page has been updated,

http://bugzilla.kernel.org/show_bug.cgi?id=12163

And the first patch, it's just integrating the vendor driver "4.00.43.00":

Subject: [PATCH 1/2] mpt fusion: updated mpt drivers from lsi
upstream "4.00.43.00"

http://marc.info/?l=linux-scsi&m=122848357611653&w=2

To LSI staff:
Please test it as soon, you have the resources. Please maintain your
driver update in latest git kernel besides and not only major distrition kernels,
We customers need to run your mpt controllers not only on major
distribution kernels but also the latest git kernel, you should at least maintain an updated driver for some major later kernels, like one for 2.6.24, one for 2.6.27, and one for the latest git tree. At least the driver in the git tree should be always updated, this would always keep your driver current.
I'm your customer located in Shenzhen, China. Please know it and
keep co-operative with your customers and the Linux Kernel Development Community. Thank you.

Quoted 18 lines · On Fri, Dec 5, 2008 at 9:26 PM, <[email protected]> wrote:

From: Cheng Renquan <[email protected]>

this one just can build with mainstream git kernel, I did not even test it.

I just have tested it with kernel 2.6.26.2, that patch is very similar to this, and it did work well with 2.6.26.2.

---
 drivers/message/fusion/linux_compat.h |    3 +-
 drivers/message/fusion/mptbase.c      |   10 +-
 drivers/message/fusion/mptbase.h      |    6 +-
 drivers/message/fusion/mptfc.c        |    4 +-
 drivers/message/fusion/mptsas.c       |   14 +---
 drivers/message/fusion/mptscsih.c     |  169 +++++++++++++--------------------
 drivers/message/fusion/mptscsih.h     |    2 +-
 7 files changed, 79 insertions(+), 129 deletions(-)

[...]

Quoted 2 lines

--
1.6.0.3

Signature · 3 lines
Cheng Renquan, Shenzhen, China
Steve Martin  - "I've got to keep breathing. It'll be my worst
business mistake if I don't."
#3 lore raw

Re: [PATCH 2/2] mpt fusion: port "4.00.43.00" to mainstream git kernel

Quoted 10 lines · Cheng Renquan

Hi, all,

I have tested and verified that these two patches can let my LSI-SAS-1068E controllers work well with 2.6.26.2 kernels, perfect,

but the latest git kernel has not yet been tested. just buildable. I personally suggest these patches integrated into Greg KH's staging tree. It seems meet staging's purpose well?

The staging tree is for new drivers that are not already included in the kernel tree. Not for patches to existing drivers, that wouldn't really work out.

thanks,

greg k-h

maintainer
#4 lore raw

Re: [PATCH 2/2] mpt fusion: port "4.00.43.00" to mainstream git kernel

In reply to [email protected]
Quoted 10 lines · On Fri, 2008-12-05 at 21:26 +0800, [email protected] wrote:

From: Cheng Renquan <[email protected]>

this one just can build with mainstream git kernel, I did not even test it.

I just have tested it with kernel 2.6.26.2, that patch is very similar to this, and it did work well with 2.6.26.2.

---
 drivers/message/fusion/linux_compat.h |    3 +-

I don't quite understand what this patch is about. This file isn't in the upstream and hasn't been for a while if I recall, so what is this patch actually patching?

Quoted 34 lines
 drivers/message/fusion/mptbase.c      |   10 +-
 drivers/message/fusion/mptbase.h      |    6 +-
 drivers/message/fusion/mptfc.c        |    4 +-
 drivers/message/fusion/mptsas.c       |   14 +---
 drivers/message/fusion/mptscsih.c     |  169 +++++++++++++--------------------
 drivers/message/fusion/mptscsih.h     |    2 +-
 7 files changed, 79 insertions(+), 129 deletions(-)
drivers/message/fusion/linux_compat.h +1 -2
index 24ad3f1..92e9797 100644
@@ -31,7 +31,6 @@ static inline void *shost_private(struct Scsi_Host *shost)
 #define spi_dv_pending(x) (((struct spi_transport_attrs *)&(x)->starget_data)->dv_pending)
 #endif
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
 /**
  * mpt_scsilun_to_int: convert a scsi_lun to an int
  * @scsilun:    struct scsi_lun to be converted.
@@ -62,7 +61,7 @@ static inline int mpt_scsilun_to_int(struct scsi_lun *scsilun)
                               scsilun->scsi_lun[i + 1]) << (i * 8));
         return lun;
 }
-#endif
+
 #if (defined(CONFIG_SUSE_KERNEL) && !defined(scsi_is_sas_phy_local))
 #define SUSE_KERNEL_BASE	1
 #endif
drivers/message/fusion/mptbase.c +0 -0
index 2979b63..36dd62a 100644

drivers/message/fusion/mptbase.c mpt_mapresources(MPT_ADAPTER *ioc) · line 1621

Quoted 5 lines
drivers/message/fusion/mptbase.c +1 -1
@@ -1618,7 +1618,7 @@ mpt_mapresources(MPT_ADAPTER *ioc)
 	}
 #else
 	ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM);
-	if (pci_enable_device_bars(pdev, ioc->bars)) {
+	if (pci_enable_device(pdev)) {

API reversal.

Quoted 24 lines
drivers/message/fusion/mptbase.c +4 -2
 		printk(MYIOC_s_ERR_FMT "pci_enable_device_bars() with MEM "
 		    "failed\n",ioc->name);
 		return r;
@@ -1826,7 +1826,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 #endif
 
 	/* Initialize workqueue */
-	snprintf(ioc->reset_work_q_name, KOBJ_NAME_LEN, "mpt_poll_%d", ioc->id);
+	snprintf(ioc->reset_work_q_name, sizeof(ioc->reset_work_q_name),
+			"mpt_poll_%d", ioc->id);
 	ioc->reset_work_q =
 		create_singlethread_workqueue(ioc->reset_work_q_name);
 	if (!ioc->reset_work_q) {
@@ -1949,7 +1950,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	INIT_LIST_HEAD(&ioc->fw_event_list);
 	spin_lock_init(&ioc->fw_event_lock);
-	snprintf(ioc->fw_event_q_name, KOBJ_NAME_LEN, "mpt/%d", ioc->id);
+	snprintf(ioc->fw_event_q_name, sizeof(ioc->fw_event_q_name),
+			"mpt/%d", ioc->id);
 	ioc->fw_event_q = create_singlethread_workqueue(ioc->fw_event_q_name);
 
 	if ((r = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_BRINGUP,

drivers/message/fusion/mptbase.c mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) · line 2308

Quoted 5 lines
drivers/message/fusion/mptbase.c +1 -1
@@ -2303,7 +2305,7 @@ mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
 		pci_release_selected_regions(ioc->pcidev, ioc->bars);
 		ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM |
 		    IORESOURCE_IO);
-		if (pci_enable_device_bars(ioc->pcidev, ioc->bars))
+		if (pci_enable_device(ioc->pcidev))

Things like this are reversing kernel API changes and can't go in.

What you need to do is isolate the necessary changes to current git head (or scsi-misc) and then send it to the LSI maintainers. The route to inclusion is via them.

Alternatively, we can just continue on with debugging the actual problem you have rather than trying to upport some vendor driver.

James

#6 lore raw
In reply to a message not in the archive
Quoted 8 lines · James Bottomley
Quoted 7 lines · On Fri, 2008-12-05 at 21:26 +0800, [email protected] wrote:

From: Cheng Renquan <[email protected]>

this one just can build with mainstream git kernel, I did not even test it.

I just have tested it with kernel 2.6.26.2, that patch is very similar to this, and it did work well with 2.6.26.2.

Quoted 7 lines
Quoted 3 lines
---
 drivers/message/fusion/linux_compat.h |    3 +-

I don't quite understand what this patch is about. This file isn't in the upstream and hasn't been for a while if I recall, so what is this patch actually patching?

James, please notice the first patch, it's about the mpt vendor driver, the upstream device vendor maintained three series of mpt drivers, specially for RHEL3,4,5/SLES8,9,10
but they didn't maintain one for the latest mainstream git kernel,

the first patch (130KB after bzip2'ed) is just replace drivers/message/fusion/ with code "4.00.43.00" from vendor. You can extracting the source from vendor into drivers/message/fusion/ instead of applying this patch.

Quoted 64 lines
Quoted 34 lines
 drivers/message/fusion/mptbase.c      |   10 +-
 drivers/message/fusion/mptbase.h      |    6 +-
 drivers/message/fusion/mptfc.c        |    4 +-
 drivers/message/fusion/mptsas.c       |   14 +---
 drivers/message/fusion/mptscsih.c     |  169 +++++++++++++--------------------
 drivers/message/fusion/mptscsih.h     |    2 +-
 7 files changed, 79 insertions(+), 129 deletions(-)
drivers/message/fusion/linux_compat.h +1 -2
index 24ad3f1..92e9797 100644
@@ -31,7 +31,6 @@ static inline void *shost_private(struct Scsi_Host *shost)
 #define spi_dv_pending(x) (((struct spi_transport_attrs *)&(x)->starget_data)->dv_pending)
 #endif
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
 /**
  * mpt_scsilun_to_int: convert a scsi_lun to an int
  * @scsilun:    struct scsi_lun to be converted.
@@ -62,7 +61,7 @@ static inline int mpt_scsilun_to_int(struct scsi_lun *scsilun)
                               scsilun->scsi_lun[i + 1]) << (i * 8));
         return lun;
 }
-#endif
+
 #if (defined(CONFIG_SUSE_KERNEL) && !defined(scsi_is_sas_phy_local))
 #define SUSE_KERNEL_BASE     1
 #endif
drivers/message/fusion/mptbase.c +0 -0
index 2979b63..36dd62a 100644

drivers/message/fusion/mptbase.c mpt_mapresources(MPT_ADAPTER *ioc) · line 1621

Quoted 5 lines
drivers/message/fusion/mptbase.c +1 -1
@@ -1618,7 +1618,7 @@ mpt_mapresources(MPT_ADAPTER *ioc)
      }
 #else
      ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM);
-     if (pci_enable_device_bars(pdev, ioc->bars)) {
+     if (pci_enable_device(pdev)) {

API reversal.

Quoted 22 lines
drivers/message/fusion/mptbase.c +4 -2
              printk(MYIOC_s_ERR_FMT "pci_enable_device_bars() with MEM "
                  "failed\n",ioc->name);
              return r;
@@ -1826,7 +1826,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 #endif
 
      /* Initialize workqueue */
-     snprintf(ioc->reset_work_q_name, KOBJ_NAME_LEN, "mpt_poll_%d", ioc->id);
+     snprintf(ioc->reset_work_q_name, sizeof(ioc->reset_work_q_name),
+                     "mpt_poll_%d", ioc->id);
      ioc->reset_work_q =
              create_singlethread_workqueue(ioc->reset_work_q_name);
      if (!ioc->reset_work_q) {
@@ -1949,7 +1950,8 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
 
      INIT_LIST_HEAD(&ioc->fw_event_list);
      spin_lock_init(&ioc->fw_event_lock);
-     snprintf(ioc->fw_event_q_name, KOBJ_NAME_LEN, "mpt/%d", ioc->id);
+     snprintf(ioc->fw_event_q_name, sizeof(ioc->fw_event_q_name),
+                     "mpt/%d", ioc->id);
      ioc->fw_event_q = create_singlethread_workqueue(ioc->fw_event_q_name);
 
Quoted 9 lines

drivers/message/fusion/mptbase.c mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) · line 2308

Quoted 7 lines
drivers/message/fusion/mptbase.c +1 -1
      if ((r = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_BRINGUP,
@@ -2303,7 +2305,7 @@ mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
              pci_release_selected_regions(ioc->pcidev, ioc->bars);
              ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM |
                  IORESOURCE_IO);
-             if (pci_enable_device_bars(ioc->pcidev, ioc->bars))
+             if (pci_enable_device(ioc->pcidev))

Things like this are reversing kernel API changes and can't go in.

All the work in the second patch is just let it can build.

The vendor driver "4.00.43.00" is for RHEL5.1 (2.6.18-53.el5), and cannot build on 2.6.26 and latest git kernel,

with applying the second patch, it can build. I have tested it, and verified that it fixed the bug described on:

http://bugzilla.kernel.org/show_bug.cgi?id=12163

Quoted 4 lines

What you need to do is isolate the necessary changes to current git head (or scsi-misc) and then send it to the LSI maintainers. The route to inclusion is via them.

Yes, I have tried, but the vendor LSI people just ignored, they were not co-operative, then how we can deal?

Again, I hope LSI people in the Cc'ed list can read this mail and give replies.

Quoted 3 lines

Alternatively, we can just continue on with debugging the actual problem you have rather than trying to upport some vendor driver.

That approach almost cannot solve the bug, we don't have the card/firmware specification, the debugging will be very hard.

Quoted 2 lines

James

Quoted 24 lines · Andrew Morton

(off-list)

Quoted 19 lines · On Fri, 5 Dec 2008 21:26:49 +0800 [email protected] wrote:
drivers/message/fusion/mptbase.c +0 -0
 Occasionally I'm working with LSI SAS 1068E controllers on 2.6.26.2 kernel,
 it has a nasty bug that some hotplugged disks cannot be auto discovered,

the detailed description is on bugzilla.kernel:

http://bugzilla.kernel.org/show_bug.cgi?id=12163

After some inspecting the vendor's website, I found there are "4.00.43.00" drivers for RHEL5.1, but the drivers in main stream kernel are still "3.04.07", and the changelogs of "4.00.43.00" have records on solving that BUG,

but the default "4.00.43.00" downloaded from lsi.com cannot even build on kernel-2.6.26.2, and after some work, I get it run on 2.6.26.2, then can build with mainstream git kernel (the HEAD currently),

http://www.lsi.com/storage_home/products_home/standard_product_ics/sas_ics/lsisas1068e/index.html

   -#define MPT_LINUX_VERSION_COMMON  "3.04.07"
   +#define MPT_LINUX_VERSION_COMMON  "4.00.43.00"

Please James notice this, the major version difference, but the mpt in the mainstream is "3.04.07", outdated.

Quoted 9 lines
Quoted 2 lines

This patch is just the upstream "4.00.43.00", it's very big, about 130K after bzip2'ed

Eric, is this as bad as it looks? LSI's driver is 130kbytes and a major version increment ahead of the mainline driver?

If so, is there anything we can do to bring the mainline driver more up-to-date and to keep it there? Should we (ie: me, James, distros, etc) be seeking additional developers to help make all this happen?

Cool, if Eric can read this, I'm willing to help make all this happen.

Quoted 3 lines

Thanks.

Thanks.

Signature · 2 lines
Cheng Renquan, Shenzhen, China
Marie von Ebner-Eschenbach  - "Even a stopped clock is right twice a day."