Re: AIC7XXXX bug in 2.0.34

Russell Berry (russ@berrex.com)
Sat, 06 Jun 1998 14:23:11 -0400 (EDT)


This message is in MIME format
--_=XFMail.1.3.p0.Linux:980606142311:303=_
Content-Type: text/plain; charset=us-ascii

Just so you all know, Doug has been really busy, but he has indeed put out new
drivers. As of right now the *official* version is 5.0.18, which you can
retrieve from:

ftp://ftp.dialnet.net:/pub/linux/aic7xxx/2.0.33/

However, I was having problems with a non-ultra controller, it wouldn't see one
of my drives, so there is an *unofficial* 5.0.19 patch that he hasn't added to
his site yet. I've attached it to this mailing, it's a small patch. The
driver package still applies against 2.0.34, but the easiest thing to do is to
grab the 5.0.18.tar.gz and then apply this .19 patch. In versions .15-.19 he
has addressed many problems.

Hope this helps you out...

---russ

On 06-Jun-98 Mike Bennett wrote:
>
>
> On Sat, 6 Jun 1998, Alan Cox wrote:
>
>> > Is it safe/advisable to simply use the aic7xxx driver from 2.0.33 since it
>> > works fine? If so, is there anything special that I should be aware of
>> > using a different driver than what comes with the kernel?
>>
>> That is intentionally true for all .33 and .34 drivers. Also check with
>> Doug if he has a yet newer driver. Finally on the Adaptec front there is
>> one piece of good news. Adaptec joined Linux International and will also
>> be providing documentation and assistance to people working on the driver
>> -finally-. Hopefully that will signifcantly improve the driver
>
> Thank you for the info Alan.
>
> FYI - to those having the problem:
>
> I've now gotten 9 consecutive successful boots with 2.0.34 by using the
> 'no_reset' parameter for the aic7xxx driver. No guarantees, but it's
> working for me. :)
>
> I never would have known about it, but I went snooping around in the
> driver source (not that I would have a clue how to fix it...) and I found
> that parameter. I've since included it in lilo.conf and all is well.
>
> append="aic7xxx=no_reset"
>
> ....Mike
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu

Immortality -- a fate worse than death.
-- Edgar A. Shoaff

russ@berrex.com

--_=XFMail.1.3.p0.Linux:980606142311:303=_
Content-Disposition: attachment; filename="aic7xxx-5.0.18-to-19.patch"
Content-Transfer-Encoding: 7bit
Content-Description: aic7xxx-5.0.18-to-19.patch
Content-Type: text/plain;
charset=us-ascii; name=aic7xxx-5.0.18-to-19.patch; SizeOnDisk=1118

--- linux/drivers/scsi/aic7xxx.c-5.0.18 Tue Jun 2 19:36:46 1998
+++ linux/drivers/scsi/aic7xxx.c Thu Jun 4 17:17:52 1998
@@ -209,7 +209,7 @@
0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};

-#define AIC7XXX_C_VERSION "5.0.18"
+#define AIC7XXX_C_VERSION "5.0.19"

#define NUMBER(arr) (sizeof(arr) / sizeof(arr[0]))
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
@@ -2301,7 +2301,9 @@
}
#define WIDE_INQUIRY_BITS 0x60
#define SYNC_INQUIRY_BITS 0x10
- if (buffer[7] & WIDE_INQUIRY_BITS)
+ if ( (buffer[7] & WIDE_INQUIRY_BITS) &&
+ (p->needwdtr_copy & (1<<tindex)) &&
+ (p->type & AHC_WIDE) )
{
p->needwdtr |= (1<<tindex);
p->needwdtr_copy |= (1<<tindex);
@@ -3175,7 +3177,7 @@
scsiseq = aic_inb(p, SCSISEQ);
aic_outb(p, scsiseq | SCSIRSTO, SCSISEQ);

- udelay(1000);
+ udelay(5000);

/* Turn off the bus reset. */
aic_outb(p, scsiseq & ~SCSIRSTO, SCSISEQ);
@@ -3185,7 +3187,7 @@
/* Re-enable reset interrupts. */
aic_outb(p, aic_inb(p, SIMODE1) | ENSCSIRST, SIMODE1);

- udelay(1000);
+ udelay(2000);
}

--_=XFMail.1.3.p0.Linux:980606142311:303=_--
End of MIME message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu