diff options
author | nagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com> | 2011-11-30 21:22:08 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-15 01:57:33 -0500 |
commit | 9ac49d3a510c2686545d4e0520fdc79b341b5794 (patch) | |
tree | 309bcf9ccacefbb283bb96f5ca9f217408097270 /drivers/scsi/mpt2sas/mpt2sas_scsih.c | |
parent | ba96bd0b1d4a4e11f23671e1f375a5c8f46b0fe7 (diff) |
[SCSI] mpt2sas: Increase max transfer support from 4MB to 16MB
Increase max transfer support from 4MB to 16MB.
This is done by changing the shost->max_sector from 8192 to 32767
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index ba8171fe17ef..06117207f601 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -99,7 +99,7 @@ MODULE_PARM_DESC(logging_level, " bits for enabling additional logging info " | |||
99 | 99 | ||
100 | static ushort max_sectors = 0xFFFF; | 100 | static ushort max_sectors = 0xFFFF; |
101 | module_param(max_sectors, ushort, 0); | 101 | module_param(max_sectors, ushort, 0); |
102 | MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 8192 default=8192"); | 102 | MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767"); |
103 | 103 | ||
104 | /* scsi-mid layer global parmeter is max_report_luns, which is 511 */ | 104 | /* scsi-mid layer global parmeter is max_report_luns, which is 511 */ |
105 | #define MPT2SAS_MAX_LUN (16895) | 105 | #define MPT2SAS_MAX_LUN (16895) |
@@ -7453,7 +7453,7 @@ static struct scsi_host_template scsih_driver_template = { | |||
7453 | .can_queue = 1, | 7453 | .can_queue = 1, |
7454 | .this_id = -1, | 7454 | .this_id = -1, |
7455 | .sg_tablesize = MPT2SAS_SG_DEPTH, | 7455 | .sg_tablesize = MPT2SAS_SG_DEPTH, |
7456 | .max_sectors = 8192, | 7456 | .max_sectors = 32767, |
7457 | .cmd_per_lun = 7, | 7457 | .cmd_per_lun = 7, |
7458 | .use_clustering = ENABLE_CLUSTERING, | 7458 | .use_clustering = ENABLE_CLUSTERING, |
7459 | .shost_attrs = mpt2sas_host_attrs, | 7459 | .shost_attrs = mpt2sas_host_attrs, |
@@ -7994,11 +7994,11 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
7994 | printk(MPT2SAS_WARN_FMT "Invalid value %d passed " | 7994 | printk(MPT2SAS_WARN_FMT "Invalid value %d passed " |
7995 | "for max_sectors, range is 64 to 8192. Assigning " | 7995 | "for max_sectors, range is 64 to 8192. Assigning " |
7996 | "value of 64.\n", ioc->name, max_sectors); | 7996 | "value of 64.\n", ioc->name, max_sectors); |
7997 | } else if (max_sectors > 8192) { | 7997 | } else if (max_sectors > 32767) { |
7998 | shost->max_sectors = 8192; | 7998 | shost->max_sectors = 32767; |
7999 | printk(MPT2SAS_WARN_FMT "Invalid value %d passed " | 7999 | printk(MPT2SAS_WARN_FMT "Invalid value %d passed " |
8000 | "for max_sectors, range is 64 to 8192. Assigning " | 8000 | "for max_sectors, range is 64 to 8192. Assigning " |
8001 | "default value of 8192.\n", ioc->name, | 8001 | "default value of 32767.\n", ioc->name, |
8002 | max_sectors); | 8002 | max_sectors); |
8003 | } else { | 8003 | } else { |
8004 | shost->max_sectors = max_sectors & 0xFFFE; | 8004 | shost->max_sectors = max_sectors & 0xFFFE; |