Re: aic7xxx driver v6.2.5 freezes the kernel

Andrey Slepuhin (pooh@msu.ru)
Wed, 17 Apr 2002 15:15:15 +0400


On Tue, Mar 19, 2002 at 02:33:47PM -0700, Justin T. Gibbs wrote:
> >lspci output attached. BTW, I tried new driver on another computer with
> >the same hardware configuration - effect is repeatable, so the problem is
> >unlikely a hardware bug.
>
> No, but it is certainly hardware dependent. As soon as I get a break here
> at work, I'll see what I can dig out from your lspci output.

Hi Justin,
I tracked the problem down and I find that the following change between
versions 6.2.4 and 6.2.5 causes system freeze:

--- aic7xxx/aic7xxx_core.c Wed Apr 17 14:36:21 2002
+++ aic7xxx.new/aic7xxx_core.c Mon Mar 18 12:54:23 2002
@@ -3770,9 +3770,8 @@
* Ensure that the reset has finished
*/
wait = 1000;
- do {
+ while (--wait && !(ahc_inb(ahc, HCNTRL) & CHIPRSTACK))
ahc_delay(1000);
- } while (--wait && !(ahc_inb(ahc, HCNTRL) & CHIPRSTACK));

if (wait == 0) {
printf("%s: WARNING - Failed chip reset! "

All other changes were successfully merged without any problems.
BTW, version 6.2.6 of the driver from 2.4.19-pre7 freezes the system too.

Regards,
Andrey.

-- 
A right thing should be simple (tm)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/