kopia lustrzana https://gitlab.com/sane-project/website
144 wiersze
5.8 KiB
HTML
144 wiersze
5.8 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: Problem with kernel 2.4ac9, ava1505, snapscan12</TITLE>
|
|
<META NAME="Author" CONTENT="Erik Inge Bolsø (knan@mo.himolde.no)">
|
|
<META NAME="Subject" CONTENT="Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4</H1>
|
|
<!-- received="Sun Jan 14 11:47:57 2001" -->
|
|
<!-- isoreceived="20010114194757" -->
|
|
<!-- sent="Sun, 14 Jan 2001 21:31:19 +0100 (CET)" -->
|
|
<!-- isosent="20010114203119" -->
|
|
<!-- name="Erik Inge Bolsø" -->
|
|
<!-- email="knan@mo.himolde.no" -->
|
|
<!-- subject="Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4" -->
|
|
<!-- id="Pine.LNX.4.21.0101142113340.1465-100000@yme.mo.himolde.no" -->
|
|
<!-- inreplyto="3A61FF59.39BC55C3@interlog.com" -->
|
|
<STRONG>From:</STRONG> Erik Inge Bolsø (<A HREF="mailto:knan@mo.himolde.no?Subject=Re:%20Problem%20with%20kernel%202.4ac9,%20ava1505,%20snapscan1236s,%20sane1.0.4&In-Reply-To=<Pine.LNX.4.21.0101142113340.1465-100000@yme.mo.himolde.no>"><EM>knan@mo.himolde.no</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sun Jan 14 2001 - 12:31:19 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0145.html">David Mosberger-Tang: "test"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0155.html">abel deuring: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#144">[ date ]</A>
|
|
<A HREF="index.html#144">[ thread ]</A>
|
|
<A HREF="subject.html#144">[ subject ]</A>
|
|
<A HREF="author.html#144">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
On Sun, 14 Jan 2001, Douglas Gilbert wrote:
|
|
<BR>
|
|
<EM>>This is interesting. The linux scsi subsystem (as does
|
|
</EM><BR>
|
|
<EM>>FreeBSD's CAM) implements "autosense" to get its sense
|
|
</EM><BR>
|
|
<EM>>buffer after a command has failed. This means that when
|
|
</EM><BR>
|
|
<EM>>a command like "test unit ready" is sent and it returns
|
|
</EM><BR>
|
|
<EM>>a "check condition" status code then the subsystem will
|
|
</EM><BR>
|
|
<EM>>automatically issue a "request sense" and give its
|
|
</EM><BR>
|
|
<EM>>response back as the sense buffer of the original command
|
|
</EM><BR>
|
|
<EM>>("test unit ready" in this case).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>So SANE backends shouldn't be issuing "request sense"
|
|
</EM><BR>
|
|
<EM>>commands IMHO. BTW only the first "request sense" gets
|
|
</EM><BR>
|
|
<EM>>the error response, so sending more of them is useless.
|
|
</EM><BR>
|
|
<P>Hmm, interesting.
|
|
<BR>
|
|
<P>Did a grep in current sources, and found that 12 out of 30-something
|
|
<BR>
|
|
backends issue request_sense commands currently.
|
|
<BR>
|
|
<P>But a problem is: what about the other OS'es supported by
|
|
<BR>
|
|
SANE? AIX, Unixware, OS/2, HP-UX, Solaris, *BSD ? I expect not all of
|
|
<BR>
|
|
these use the "autosense" method... And that's probably why these backends
|
|
<BR>
|
|
issue request_sense commands.
|
|
<BR>
|
|
<P>So do we need to implement some sort of: (pseudocode following)
|
|
<BR>
|
|
<P> error = do_scsi_command(cmd);
|
|
<BR>
|
|
if ((error < 0) && OS_AUTOSENSE)
|
|
<BR>
|
|
sense = cmd->sense;
|
|
<BR>
|
|
else
|
|
<BR>
|
|
sense = do_scsi_command(request_sense);
|
|
<BR>
|
|
<P>in some generic layer somewhere?
|
|
<BR>
|
|
<P>I'm not familiar with SANE internals, so this might already exist, for all
|
|
<BR>
|
|
I know :)
|
|
<BR>
|
|
<P><EM>>It seems as though a problem that Arnold Schiller has
|
|
</EM><BR>
|
|
<EM>>sent me is very similar: a SnapScan1236/aha152x
|
|
</EM><BR>
|
|
<EM>>combination that locks up just after a "request sense"
|
|
</EM><BR>
|
|
<EM>>is sent to the scanner.
|
|
</EM><BR>
|
|
<P>Sounds like the same problem, indeed.
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Erik I. Bolsø | email: <knan at mo.himolde.no>
|
|
The UNIX philosophy basically involves giving you enough rope to
|
|
hang yourself. And then a couple of feet more, just to be sure.
|
|
<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:%20Problem%20with%20kernel%202.4ac9,%20ava1505,%20snapscan1236s,%20sane1.0.4&In-Reply-To=<Pine.LNX.4.21.0101142113340.1465-100000@yme.mo.himolde.no>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0145.html">David Mosberger-Tang: "test"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0155.html">abel deuring: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#144">[ date ]</A>
|
|
<A HREF="index.html#144">[ thread ]</A>
|
|
<A HREF="subject.html#144">[ subject ]</A>
|
|
<A HREF="author.html#144">[ 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>Sun Jan 14 2001 - 11:48:49 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|