kopia lustrzana https://gitlab.com/sane-project/website
190 wiersze
6.7 KiB
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=<3A9281ED.8ECC9E92@satzbau-gmbh.de>"><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>>
|
|
</EM><BR>
|
|
<EM>> Hi there,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> 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=<3A9281ED.8ECC9E92@satzbau-gmbh.de>">anvil@amin.unice.fr</A> wrote:
|
|
</EM><BR>
|
|
<EM>> > Thank you for your patch, i recompiled the module... But the problem is
|
|
</EM><BR>
|
|
<EM>> > still present : xsane freeze when trying to acquire preview and lots of
|
|
</EM><BR>
|
|
<EM>> > (scsi0:2:0) no buffers left for 128(128) bytes (data overrun!?) ending
|
|
</EM><BR>
|
|
<EM>> > by a (scsi0:2:0) no buffers left for 16(16) bytes (data overrun!?) are
|
|
</EM><BR>
|
|
<EM>> > in the dmesg....
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Douglas,
|
|
</EM><BR>
|
|
<EM>> might this somehow relate to the resid feature? With data data overruns
|
|
</EM><BR>
|
|
<EM>> the value of resid should be different. Is this handled somewhere?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Abel,
|
|
</EM><BR>
|
|
<EM>> weren't you tracking this issue further down with a lend snapscan?
|
|
</EM><BR>
|
|
<EM>> Did you gain more insights? IIRC, we solved the aha152x problems,
|
|
</EM><BR>
|
|
<EM>> 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>
|
|
static const char *me = "send_diagnostic";
|
|
<BR>
|
|
u_char cmd[] = {SEND_DIAGNOSTIC, 0x04, 0, 0, 0, 0}; /* self-test */
|
|
<BR>
|
|
SANE_Status status;
|
|
<BR>
|
|
|
|
<BR>
|
|
if (pss->pdev->model == PRISA620S /* GP added */
|
|
<BR>
|
|
||
|
|
<BR>
|
|
pss->pdev->model == VUEGO610S) /* SJU added */
|
|
<BR>
|
|
{
|
|
<BR>
|
|
return SANE_STATUS_GOOD;
|
|
<BR>
|
|
}
|
|
<BR>
|
|
DBG (DL_CALL_TRACE, "%s\n", me);
|
|
<BR>
|
|
|
|
<BR>
|
|
status = sanei_scsi_cmd (pss->fd, cmd, sizeof (cmd), NULL, NULL);
|
|
<BR>
|
|
if (status != SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (DL_MAJOR_ERROR,
|
|
<BR>
|
|
"%s: scsi command error: %s\n",
|
|
<BR>
|
|
me,
|
|
<BR>
|
|
sane_strstatus (status));
|
|
<BR>
|
|
}
|
|
<BR>
|
|
return status;
|
|
<BR>
|
|
}
|
|
<BR>
|
|
<P>patched version:
|
|
<BR>
|
|
<P>static SANE_Status send_diagnostic (SnapScan_Scanner *pss)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
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=<3A9281ED.8ECC9E92@satzbau-gmbh.de>">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>
|