public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Making sym-2 do 160 MB/sec
@ 2003-02-19 20:06 Andrew Morton
  2003-02-19 23:12 ` Mike Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Morton @ 2003-02-19 20:06 UTC (permalink / raw)
  To: linux-scsi


I have a machine here in which both the controller (53c1010) and the disk
(IBM IC35L036UCD210-0) can do FAST-80, but the sym2 driver only does FAST-40.

The below patch fixes it up, and has been fearsomely tested.

Can anyone tell me whether it is right, and what is generally going on in
there?


diff -puN drivers/scsi/sym53c8xx_2/sym_hipd.c~sym-do-160 drivers/scsi/sym53c8xx_2/sym_hipd.c
--- 25-power4/drivers/scsi/sym53c8xx_2/sym_hipd.c~sym-do-160	2003-02-19 01:04:59.000000000 -0800
+++ 25-power4-akpm/drivers/scsi/sym53c8xx_2/sym_hipd.c	2003-02-19 01:05:13.000000000 -0800
@@ -800,7 +800,8 @@ static int sym_prepare_setting(hcb_p np,
 	 * Btw, 'period' is in tenths of nanoseconds.
 	 */
 	period = (4 * div_10M[0] + np->clock_khz - 1) / np->clock_khz;
-	if	(period <= 250)		np->minsync = 10;
+	if	(period == 250)		np->minsync = 9;
+	else if	(period <= 250)		np->minsync = 10;
 	else if	(period <= 303)		np->minsync = 11;
 	else if	(period <= 500)		np->minsync = 12;
 	else				np->minsync = (period + 40 - 1) / 40;

_
  

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-02  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19 20:06 Making sym-2 do 160 MB/sec Andrew Morton
2003-02-19 23:12 ` Mike Anderson
2003-02-19 23:22   ` Andrew Morton
2003-02-20  7:43 ` Douglas Gilbert
2003-03-02  9:35 ` Gérard Roudier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox