mpt fusion: RESEND [2.6.30-rc6] Module parameters to change queue depth for FC,SPI,SAS
Subsystems (2)
PATCH 21/22 mpt fusion: RESEND [2.6.30-rc6] Module parameters to change queue depth for FC,SPI,SAS
1. Unused mptscsih_timer_expired() function is removed.
2. Module parameter mpt_sdev_queue_depth to support different queue depth for different Buses (FC/SPI/SAS).
3. changed driver versiont to 3.04.11.
---
Signed-off-by Kashyap Desai <[email protected]>
---
drivers/message/fusion/mptbase.h +5 -3
@@ -76,8 +76,8 @@#define COPYRIGHT "Copyright (c) 1999-2008 " MODULEAUTHOR#endif -#define MPT_LINUX_VERSION_COMMON "3.04.10" -#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.04.09" +#define MPT_LINUX_VERSION_COMMON "3.04.11" +#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.04.11"#define WHAT_MAGIC_STRING "@" "(" "#" ")"#define show_mptmod_ver (s,ver) \
@@ -157,8 +157,9 @@/* * Try to keep these at 2^N-1 */ -#define MPT_FC_CAN_QUEUE 127 +#define MPT_FC_CAN_QUEUE 1024#define MPT_SCSI_CAN_QUEUE 127 +#define MPT_SAS_CAN_QUEUE 127/* * Set the MAX_SGE value based on user input.
@@ -757,6 +758,7 @@ typedef struct _MPT_ADAPTERstruct scsi_cmnd **ScsiLookup;spinlock_t scsi_lookup_lock; +int sdev_queue_depth;/* sdev queue depth */ u64 dma_mask;u32 broadcast_aen_busy;char reset_work_q_name[MPT_KOBJ_NAME_LEN ];
drivers/message/fusion/mptfc.c +38 -19
81 lines not on this page · raw message
drivers/message/fusion/mptsas.c +40 -21
93 lines not on this page · raw message
drivers/message/fusion/mptscsih.c +16 -52
101 lines not on this page · raw message
drivers/message/fusion/mptscsih.h +0 -1
@@ -128,7 +128,6 @@ extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAextern int mptscsih_event_process (MPT_ADAPTER *ioc,EventNotificationReply_t *pEvReply);extern int mptscsih_ioc_reset (MPT_ADAPTER *ioc,int post_reset);extern int mptscsih_change_queue_depth (struct scsi_device *sdev,int qdepth); -extern void mptscsih_timer_expired (unsigned long data);extern int mptscsih_TMHandler (MPT_SCSI_HOST *hd,u8 type,u8 channel,u8 id,int lun,int ctx2abort,ulong timeout);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);
drivers/message/fusion/mptspi.c +1 -19
@@ -1472,26 +1472,8 @@ mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)dprintk (ioc,printk (MYIOC_s_DEBUG_FMT"ScsiLookup @ %p\n" , ioc->name, ioc->ScsiLookup)); -/* Clear the TM flags -*/ - hd->abortSCpnt =NULL ; - -/* Clear the pointer used to store -* single-threaded commands, i.e., those -* issued during a bus scan, dv and -* configuration pages. -*/ - hd->cmdPtr =NULL ; - -/* Initialize this SCSI Hosts' timers -* To use, set the timer expires field -* and add_timer -*/ -init_timer (&hd->timer); - hd->timer.data = (unsigned long ) hd; - hd->timer.function = mptscsih_timer_expired; - ioc->spi_data.Saf_Te = mpt_saf_te; + ioc->sdev_queue_depth =MPT_SCSI_CMD_PER_DEV_HIGH ; hd->negoNvram =MPT_SCSICFG_USE_NVRAM ; ddvprintk(ioc, printk(MYIOC_s_DEBUG_FMT