sane-project-website/old-archive/2001-06/0298.html

599 wiersze
16 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: SCSI (?) trouble, still.</TITLE>
<META NAME="Author" CONTENT="Frederik Ramm (sane@mail.remote.org)">
<META NAME="Subject" CONTENT="SCSI (?) trouble, still.">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>SCSI (?) trouble, still.</H1>
<!-- received="Wed Jun 27 02:59:59 2001" -->
<!-- isoreceived="20010627095959" -->
<!-- sent="Wed, 27 Jun 2001 11:55:48 +0200" -->
<!-- isosent="20010627095548" -->
<!-- name="Frederik Ramm" -->
<!-- email="sane@mail.remote.org" -->
<!-- subject="SCSI (?) trouble, still." -->
<!-- id="20010627115548.A1719@aruba.remote.org" -->
<STRONG>From:</STRONG> Frederik Ramm (<A HREF="mailto:sane@mail.remote.org?Subject=Re:%20SCSI%20(?)%20trouble,%20still.&In-Reply-To=&lt;20010627115548.A1719@aruba.remote.org&gt;"><EM>sane@mail.remote.org</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Jun 27 2001 - 02:55:48 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0299.html">Timothy Reaves: "Re: snapscan and aic7xxx driver don't work together"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0297.html">Ben Stanley: "Re: snapscan and aic7xxx driver don't work together"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#298">[ date ]</A>
<A HREF="index.html#298">[ thread ]</A>
<A HREF="subject.html#298">[ subject ]</A>
<A HREF="author.html#298">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>&nbsp;&nbsp;&nbsp;I've resolved that SCSI IRQ problem but still: In the old machine (a
<BR>
PIII running 2.4.1-pre something kernel), I can use my scanner and
<BR>
everything works, but when I move the AHA2940 adapter and scanner to
<BR>
the new machine (an Athlon running 2.4.5), the resulting images are
<BR>
only garbage. Everything else seems normal, i.e. I don't get any error
<BR>
messages or SCSI timeouts or such, it's just that the data returned is
<BR>
bad.
<BR>
<P>On both machines, the scanner is the only device on the SCSI bus.
<BR>
<P>I have tried it with a sane version compiled on the new machine, and I
<BR>
have also tried using the binaries from the old machine; both have the
<BR>
same problem.
<BR>
<P>I am attaching a debug printout from a small color test scan. The
<BR>
&quot;fujitsu&quot; debug lines all seem ok. Can anyone tell me if the
<BR>
&quot;sanei_scsi&quot; debug lines look all right, or if you can spot some
<BR>
potential problem there.
<BR>
<P>Any other ideas?
<BR>
<P>Thanks
<BR>
Frederik
<BR>
<P>[sanei_debug] Setting debug level of fujitsu to 255.
<BR>
[fujitsu] sane_init
<BR>
[fujitsu] sane_init: reading config file fujitsu.conf
<BR>
[sanei_debug] Setting debug level of sanei_scsi to 255.
<BR>
[sanei_scsi] searched device is /dev/sgb
<BR>
[fujitsu] attach_scanner: /dev/sgb
<BR>
[fujitsu] attach_scanner: opening /dev/sgb
<BR>
[sanei_debug] Setting debug level of sanei_scsi to 255.
<BR>
[sanei_scsi] sanei_scsi_open: SG driver version: 30117
<BR>
[sanei_scsi] sanei_scsi_open_extended: using 131072 bytes as SCSI buffer
<BR>
[sanei_scsi] trying to enable low level command queueing
<BR>
[sanei_scsi] sanei_scsi_open: Host adapter queue depth: 2
<BR>
[sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run time
<BR>
[sanei_scsi] sanei_scsi_open: low level command queueing enabled
<BR>
[fujitsu] identify_scanner
<BR>
[fujitsu] do_inquiry
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 12 00 00 00 60 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 132 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 96 bytes:
<BR>
[fujitsu] &gt;rslt&gt;
<BR>
[fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
<BR>
[fujitsu] 016: 4d 33 30 39 31 44 43 64 20 20 20 20 20 20 20 20
<BR>
[fujitsu] 032: 42 46 32 31 00 00 00 00 00 00 00 04 00 01 00 7a
<BR>
[fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] Found FUJITSU scanner M3091DCd version BF21 on device /dev/sgb, treating as 3091
<BR>
[fujitsu] ADF: present
<BR>
[fujitsu] Duplex Unit: present
<BR>
[fujitsu] Duplex Raster Offset: 122
<BR>
[fujitsu] Color Raster Offset: 4
<BR>
[fujitsu] attach_scanner: done
<BR>
[fujitsu] sane_open
<BR>
[fujitsu] initOptions
<BR>
[fujitsu] initOptions:ok
<BR>
[fujitsu] sane_start
<BR>
[fujitsu] objectCount = 0
<BR>
[fujitsu] duplexMode = DUPLEX_FRONT
<BR>
[fujitsu] useTempFile = no
<BR>
[sanei_debug] Setting debug level of sanei_scsi to 255.
<BR>
[sanei_scsi] sanei_scsi_open: SG driver version: 30117
<BR>
[sanei_scsi] sanei_scsi_open_extended: using 131072 bytes as SCSI buffer
<BR>
[sanei_scsi] trying to enable low level command queueing
<BR>
[sanei_scsi] sanei_scsi_open: Host adapter queue depth: 2
<BR>
[sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run time
<BR>
[sanei_scsi] sanei_scsi_open: low level command queueing enabled
<BR>
[fujitsu] grabScanner
<BR>
[fujitsu] waitScanner
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner: ok
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 16 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] grabScanner: ok
<BR>
[fujitsu] objectPosition
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 31 01 00 00 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner: ok
<BR>
[fujitsu] objectPosition: ok
<BR>
[fujitsu] waitScanner
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner: ok
<BR>
[fujitsu] set_window_param
<BR>
[fujitsu] Window set
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] set_window_param: ok
<BR>
[fujitsu] startScan
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 1b 00 00 00 01 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] startScan:ok
<BR>
[fujitsu] sane_start: ok
<BR>
[fujitsu] sane_get_parameters
<BR>
[fujitsu] sane_read, objectCount=1
<BR>
[fujitsu] readerProcess started
<BR>
[fujitsu] readerProcess: starting to READ data
<BR>
[fujitsu] colorLineGap=4, greenOffset=8, blueOffset =4
<BR>
[fujitsu] readerProcess: reading 167088+5664 bytes in large blocks of 65136 bytes
<BR>
[fujitsu] readLargeDataBlock requested 65136 bytes
<BR>
[fujitsu] readLargeDataBlock ... xfer length=65136
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 28 00 00 00 00 00 00 fe 70 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 65172 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 65136 bytes:
<BR>
[fujitsu] &gt;rslt&gt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
<BR>
[fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
<BR>
[fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
<BR>
[fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[fujitsu] sane_read: read 26704 bytes of 32768
<BR>
[fujitsu] sane_read, objectCount=1
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 59508 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 59472 bytes:
<BR>
[fujitsu] &gt;rslt&gt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
<BR>
[fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
<BR>
[fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
<BR>
[fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] readerProcess: buffer of 59472 bytes read; 48144 bytes to go
<BR>
[fujitsu] readLargeDataBlock requested 48144 bytes
<BR>
[fujitsu] readLargeDataBlock ... xfer length=48144
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 28 00 00 00 00 00 00 bc 10 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[fujitsu] sane_read: read 26704 bytes of 32768
<BR>
[fujitsu] sane_read, objectCount=1
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 48180 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 48144 bytes:
<BR>
[fujitsu] &gt;rslt&gt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
<BR>
[fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
<BR>
[fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
<BR>
[fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<BR>
[fujitsu] readerProcess: buffer of 48144 bytes read; 0 bytes to go
<BR>
[fujitsu] readerProcess: finished, throughput was 172752 bytes/second
<BR>
[fujitsu] sane_read: read 15376 bytes of 32768
<BR>
[fujitsu] sane_read, objectCount=1
<BR>
[fujitsu] sane_read: read 0 bytes of 32768
<BR>
[fujitsu] sane_read: pipe closed
<BR>
[fujitsu] sane_cancel
<BR>
[fujitsu] doCancel
<BR>
[fujitsu] doCancel: kill readerProcess
<BR>
[fujitsu] freeScanner
<BR>
[fujitsu] objectDischarge
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 31 00 00 00 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner: ok
<BR>
[fujitsu] objectDischarge: ok
<BR>
[fujitsu] waitScanner
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 00 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] waitScanner: ok
<BR>
[fujitsu] &lt;cmd&lt;
<BR>
[fujitsu] 000: 17 00 00 00 00 00
<BR>
[sanei_scsi] scsi_req_enter: entered 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x401c4008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[fujitsu] sanei_scsi_cmd: returning 0 bytes:
<BR>
[fujitsu] freeScanner: ok
<BR>
[fujitsu] doCancel: close filedescriptor
<BR>
[fujitsu] sane_close
<BR>
[fujitsu] sane_exit
<BR>
<P><PRE>
--
Frederik Ramm ## eMail <A HREF="mailto:frederik@remote.org?Subject=Re:%20SCSI%20(?)%20trouble,%20still.&In-Reply-To=&lt;20010627115548.A1719@aruba.remote.org&gt;">frederik@remote.org</A> ## N48<34>59.94 E008<30>24.36'
<P><P><P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20SCSI%20(?)%20trouble,%20still.&In-Reply-To=&lt;20010627115548.A1719@aruba.remote.org&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0299.html">Timothy Reaves: "Re: snapscan and aic7xxx driver don't work together"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0297.html">Ben Stanley: "Re: snapscan and aic7xxx driver don't work together"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#298">[ date ]</A>
<A HREF="index.html#298">[ thread ]</A>
<A HREF="subject.html#298">[ subject ]</A>
<A HREF="author.html#298">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Wed Jun 27 2001 - 03:02:09 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>