2.2.18pre22: ppa_fail(3) from ppa_wait at line 319

From: Oleg Makarenko (omakarenko@cyberplat.ru)
Date: Mon Nov 20 2000 - 09:01:32 EST


With 2.2.18pre22 I get a lot of scsidisk I/O errors on my parallel port
zip.

All pervious versions of 2.2.18pre worked fine. The problem is 100%
reproducible and occurs
after a long period of inactivity (10 or more minutes)

compiled with #define PPA_DEBUG 1 I get:

ppa_fail(3) from ppa_wait at line 319

if you need more information please contact me directly as I am not on
the list

the following partial reversal patch seems to help (but I am not sure it
is correct):

--- ppa.c.2.2.18pre22 Mon Nov 20 16:54:36 2000
+++ ppa.c Mon Nov 20 16:54:54 2000
@@ -690,7 +690,7 @@
            }
        }
        /* Now check to see if the drive is ready to comunicate */
- r = ppa_wait(host_no); /* need ppa_wait() - PJC */
+ r = (r_str(ppb) & 0xf0);
        /* If not, drop back down to the scheduler and wait a timer tick
*/
        if (!(r & 0x80))
            return 0;

Oleg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:19 EST