Skip to contentSkip to conversation

Fusion-MPT slowness workaround

PATCH Martin Devera 1 participant 1 message Nov 1, 2005 LSI Logic MPT fusion drivers (FC/SAS/SPI)

lore
Share & tools
lore
#0 lore raw

Hello,

because I ran into problem with fusion mpt scsi with 2.6.14 yesterday I tried to find a workaround.
Because it seems that there is bug in DV code I patched driver to skip DV and use firmware negotiation data.
It "works for me" both compiled-in and as module.

I tried to Cc all ppl who were working on the issue in past.

Martin Devera aka devik

message/fusion/mptscsih.c renamed from drivers/message/fusion/mptscsih.c +3 -2
diff -urpb linux-2.6.14/drivers/message/fusion/mptscsih.c drivers/message/fusion/mptscsih.c
@@ -163,10 +163,10 @@ static int	mptscsih_synchronize_cache(MP
 
 static struct work_struct   mptscsih_persistTask;
 
+static int	mptscsih_is_phys_disk(MPT_ADAPTER *ioc, int id);
 #ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION
 static int	mptscsih_do_raid(MPT_SCSI_HOST *hd, u8 action, INTERNAL_CMD *io);
 static void	mptscsih_domainValidation(void *hd);
-static int	mptscsih_is_phys_disk(MPT_ADAPTER *ioc, int id);
 static void	mptscsih_qas_check(MPT_SCSI_HOST *hd, int id);
 static int	mptscsih_doDv(MPT_SCSI_HOST *hd, int channel, int target);
 static void	mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage);
@@ -4196,7 +4196,7 @@ mptscsih_domainValidation(void *arg)
 
 	return;
 }
-
+#endif
 /* Search IOC page 3 to determine if this is hidden physical disk
  */
 /* Search IOC page 3 to determine if this is hidden physical disk
@@ -4216,6 +4216,7 @@ mptscsih_is_phys_disk(MPT_ADAPTER *ioc, 
 
 	return 0;
 }
+#ifdef MPTSCSIH_ENABLE_DOMAIN_VALIDATION
 
 /* Write SDP1 if no QAS has been enabled
  */
message/fusion/mptscsih.h renamed from drivers/message/fusion/mptscsih.h +1 -1
diff -urpb linux-2.6.14/drivers/message/fusion/mptscsih.h drivers/message/fusion/mptscsih.h
@@ -67,7 +67,7 @@
  * capabilities.
  */
 
-#define MPTSCSIH_ENABLE_DOMAIN_VALIDATION
+//#define MPTSCSIH_ENABLE_DOMAIN_VALIDATION
 
 
 /* SCSI driver setup structure. Settings can be overridden