Re: Problem with snapscan, aha1505, linux kernel 2.2.9

Douglas Gilbert (dgilbert@interlog.com)
Sat, 03 Jul 1999 23:47:17 -0400

Wolfgang Denk wrote:
>
> Francois Desarmenien (desar@club-internet.fr) wrote:
>
> > The problem seems to lie in the sg driver, not specifically in aha1505 as I
> > mentionned in another post, with an aha2940 (aic7xxx driver) it worked fine with
> > 2.2.3 but *not* in 2.2.9 nor 2.2.10.
>
> I verified this with a 2.2.10 kernel; I'm using it with the
> AVA-1505AE ISA card that came with a SnapScan 1236. I could not get
> it working with the 2.2.10 kernel, but replacing the `sg' driver
> (include/scsi/sg.h and drivers/scsi/sg.c) with the files form 2.2.5
> got it working.
>

Hmmm. Perhaps you could send me debug from my
driver:
- put back the sg.[hc] found in 2.2.10
- select CONFIG_SCSI_LOGGING in the config
- rebuild the kernel

Then before running your scan execute:
$ echo "scsi log timeout 7" > /proc/scsi/scsi

This should send lots of stuff to your console
and your log (ie /var/log/messages). If you capture
something perhaps you could email to me.

To turn off logging execute:
$ echo "scsi log timeout 0" > /proc/scsi/scsi

This debugging will (almost) only be active on
apps that use sg. [The mid level will output
debug if there is a timeout.] I chose "timeout"
because the obvious ones are used by sd which
produces a ridiculous amount if your root
file system is on a SCSI disk.

Doug Gilbert

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com