sane-project-website/old-archive/2001-01/0144.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=&lt;Pine.LNX.4.21.0101142113340.1465-100000@yme.mo.himolde.no&gt;"><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>&gt;This is interesting. The linux scsi subsystem (as does
</EM><BR>
<EM>&gt;FreeBSD's CAM) implements &quot;autosense&quot; to get its sense
</EM><BR>
<EM>&gt;buffer after a command has failed. This means that when
</EM><BR>
<EM>&gt;a command like &quot;test unit ready&quot; is sent and it returns
</EM><BR>
<EM>&gt;a &quot;check condition&quot; status code then the subsystem will
</EM><BR>
<EM>&gt;automatically issue a &quot;request sense&quot; and give its
</EM><BR>
<EM>&gt;response back as the sense buffer of the original command
</EM><BR>
<EM>&gt;(&quot;test unit ready&quot; in this case).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;So SANE backends shouldn't be issuing &quot;request sense&quot;
</EM><BR>
<EM>&gt;commands IMHO. BTW only the first &quot;request sense&quot; gets
</EM><BR>
<EM>&gt;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 &quot;autosense&quot; 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>&nbsp;&nbsp;error = do_scsi_command(cmd);
<BR>
&nbsp;&nbsp;if ((error &lt; 0) &amp;&amp; OS_AUTOSENSE)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sense = cmd-&gt;sense;
<BR>
&nbsp;&nbsp;else
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&gt;It seems as though a problem that Arnold Schiller has
</EM><BR>
<EM>&gt;sent me is very similar: a SnapScan1236/aha152x
</EM><BR>
<EM>&gt;combination that locks up just after a &quot;request sense&quot;
</EM><BR>
<EM>&gt;is sent to the scanner.
</EM><BR>
<P>Sounds like the same problem, indeed.
<BR>
<P><PRE>
--
Erik I. Bolsø | email: &lt;knan at mo.himolde.no&gt;
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=&lt;Pine.LNX.4.21.0101142113340.1465-100000@yme.mo.himolde.no&gt;">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>