Skip to contentSkip to conversation

aic7xxx: Adjust .max_sectors

PATCH Hannes Reinecke 1 participant 1 message Oct 6, 2006

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

Hi James,

the aic7xxx drivers do not set .max_sectors, and hence defaults to 512kB. The adaptec sources indicate that it in realiter can handle up to 4MB, so there is no reason not to adjust it.

Please apply,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke			[email protected]
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de

aic7xxx: Adjust .max_sectors

According to the adaptec sources aic7xxx / aic79xx really can do 4MB transfers. So we should adjust .max_sectors.

drivers/scsi/aic7xxx/aic79xx_osm.c +1 -0
index c7eeace..7c05de2 100644
@@ -773,6 +773,7 @@ #if defined(__i386__)
 #endif
 	.can_queue		= AHD_MAX_QUEUE,
 	.this_id		= -1,
+	.max_sectors		= 8192,
 	.cmd_per_lun		= 2,
 	.use_clustering		= ENABLE_CLUSTERING,
 	.slave_alloc		= ahd_linux_slave_alloc,
drivers/scsi/aic7xxx/aic7xxx_osm.c +1 -0
index 64c8b88..4cda337 100644
@@ -777,6 +777,7 @@ #if defined(__i386__)
 #endif
 	.can_queue		= AHC_MAX_QUEUE,
 	.this_id		= -1,
+	.max_sectors		= 8192,
 	.cmd_per_lun		= 2,
 	.use_clustering		= ENABLE_CLUSTERING,
 	.slave_alloc		= ahc_linux_slave_alloc,