sane-project-website/old-archive/2001-02/0185.html

190 wiersze
6.7 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: Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = p</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem</H1>
<!-- received="Tue Feb 20 08:47:31 2001" -->
<!-- isoreceived="20010220164731" -->
<!-- sent="Tue, 20 Feb 2001 15:40:45 +0100" -->
<!-- isosent="20010220144045" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem" -->
<!-- id="3A9281ED.8ECC9E92@satzbau-gmbh.de" -->
<!-- inreplyto="20010220131815.A26278@linux-buechse.de" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Snapscan%20SCSI%201236s%20%2B%20aha152x%20%2B%20linux%202.4.0%20=%20problem&In-Reply-To=&lt;3A9281ED.8ECC9E92@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Feb 20 2001 - 06:40:45 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0186.html">Wolfgang Rapp: "HP2100C USB scanner ?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0184.html">Juergen E Fischer: "Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0184.html">Juergen E Fischer: "Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#185">[ date ]</A>
<A HREF="index.html#185">[ thread ]</A>
<A HREF="subject.html#185">[ subject ]</A>
<A HREF="author.html#185">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Juergen E Fischer wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi there,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; On Tue, Feb 20, 2001 at 12:06:21PM +0100, <A HREF="mailto:anvil@amin.unice.fr?Subject=Re:%20Snapscan%20SCSI%201236s%20%2B%20aha152x%20%2B%20linux%202.4.0%20=%20problem&In-Reply-To=&lt;3A9281ED.8ECC9E92@satzbau-gmbh.de&gt;">anvil@amin.unice.fr</A> wrote:
</EM><BR>
<EM>&gt; &gt; Thank you for your patch, i recompiled the module... But the problem is
</EM><BR>
<EM>&gt; &gt; still present : xsane freeze when trying to acquire preview and lots of
</EM><BR>
<EM>&gt; &gt; (scsi0:2:0) no buffers left for 128(128) bytes (data overrun!?) ending
</EM><BR>
<EM>&gt; &gt; by a (scsi0:2:0) no buffers left for 16(16) bytes (data overrun!?) are
</EM><BR>
<EM>&gt; &gt; in the dmesg....
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Douglas,
</EM><BR>
<EM>&gt; might this somehow relate to the resid feature? With data data overruns
</EM><BR>
<EM>&gt; the value of resid should be different. Is this handled somewhere?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Abel,
</EM><BR>
<EM>&gt; weren't you tracking this issue further down with a lend snapscan?
</EM><BR>
<EM>&gt; Did you gain more insights? IIRC, we solved the aha152x problems,
</EM><BR>
<EM>&gt; but there were still problems in the sane backend.
</EM><BR>
<P>Juergen, Douglas and Dams,
<BR>
<P>right, there were a few problems... I don't recall every detail at
<BR>
present, and I last week had to return the Snapscan to its owner.
<BR>
<P>One possible cause of data overruns is the SEND DIAGNOSTIC command in
<BR>
the Snapscan backend. As I understand it, the backend does not expect
<BR>
any data to be returned for this command, but the scanner sends some
<BR>
bytes anyway. IIRC, Karsten Strunk or Marcel Martin tried successfully
<BR>
to disable this command.
<BR>
<P>Perhaps the folloing patch in snapscan-scsi.c (line 821 in the current
<BR>
CVS version) helps.
<BR>
<P>Original version:
<BR>
<P>static SANE_Status send_diagnostic (SnapScan_Scanner *pss)
<BR>
{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;static const char *me = &quot;send_diagnostic&quot;;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;u_char cmd[] = {SEND_DIAGNOSTIC, 0x04, 0, 0, 0, 0}; /* self-test */
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;SANE_Status status;
<BR>
&nbsp;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if (pss-&gt;pdev-&gt;model == PRISA620S /* GP added */
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pss-&gt;pdev-&gt;model == VUEGO610S) /* SJU added */
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return SANE_STATUS_GOOD;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;DBG (DL_CALL_TRACE, &quot;%s\n&quot;, me);
<BR>
&nbsp;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;status = sanei_scsi_cmd (pss-&gt;fd, cmd, sizeof (cmd), NULL, NULL);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if (status != SANE_STATUS_GOOD)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG (DL_MAJOR_ERROR,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;%s: scsi command error: %s\n&quot;,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;me,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sane_strstatus (status));
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;return status;
<BR>
}
<BR>
<P>patched version:
<BR>
<P>static SANE_Status send_diagnostic (SnapScan_Scanner *pss)
<BR>
{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;return SANE_STATUS_GOOD;
<BR>
}
<BR>
<P>Abel
<BR>
<P><PRE>
--
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:%20Snapscan%20SCSI%201236s%20%2B%20aha152x%20%2B%20linux%202.4.0%20=%20problem&In-Reply-To=&lt;3A9281ED.8ECC9E92@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0186.html">Wolfgang Rapp: "HP2100C USB scanner ?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0184.html">Juergen E Fischer: "Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0184.html">Juergen E Fischer: "Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#185">[ date ]</A>
<A HREF="index.html#185">[ thread ]</A>
<A HREF="subject.html#185">[ subject ]</A>
<A HREF="author.html#185">[ 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>Tue Feb 20 2001 - 08:50:18 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>