sane-project-website/old-archive/1999-06/0251.html

86 wiersze
4.2 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Wed Jun 30 09:02:16 1999 PDT" -->
<!-- sent="Wed, 30 Jun 1999 17:44:03 +0200" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: problems increasing SG_BIG_BUFF" -->
<!-- id="" -->
<!-- inreplyto="problems increasing SG_BIG_BUFF" -->
<title>sane-devel: Re: problems increasing SG_BIG_BUFF</title>
<h1>Re: problems increasing SG_BIG_BUFF</h1>
<b>abel deuring</b> (<a href="mailto:a.deuring@satzbau-gmbh.de"><i>a.deuring@satzbau-gmbh.de</i></a>)<br>
<i>Wed, 30 Jun 1999 17:44:03 +0200</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#251">[ date ]</a><a href="index.html#251">[ thread ]</a><a href="subject.html#251">[ subject ]</a><a href="author.html#251">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0252.html">Malcolm Wallace: "Nikon Coolscan with RedHat 6.0"</a>
<li> <b>Previous message:</b> <a href="0250.html">abel deuring: "Re: problems increasing SG_BIG_BUFF"</a>
<li> <b>Maybe in reply to:</b> <a href="0047.html">Andreas Buesching: "problems increasing SG_BIG_BUFF"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi Rainer!<br>
<i>&gt; </i><br>
<i>&gt; Douglas Gilbert wrote:</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; abel deuring wrote:</i><br>
<i>&gt; &gt; &gt;</i><br>
<i>&gt; &gt; &gt; Hi all!</i><br>
<i>&gt; &gt; &gt;</i><br>
<i>&gt; &gt; &gt;</i><br>
<i>&gt; &gt; &gt; This suggests that most if not all scanner carriage stops can be avoided</i><br>
<i>&gt; &gt; &gt; if consecutive reads commands are sent to the scanner as soon as</i><br>
<i>&gt; &gt; &gt; possible after the data from the previous command has been read in.</i><br>
<i>&gt; &gt; &gt;</i><br>
<i>&gt; &gt; &gt; Doug, what do you think about adding ioctl-calls to the SG driver which</i><br>
<i>&gt; &gt; &gt; implement queueing of asynchrounous SCSI commands?</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Abel,</i><br>
<i>&gt; &gt; Command queuing is already there but turned off by</i><br>
<i>&gt; &gt; default (because cdparanoia got upset when it found</i><br>
<i>&gt; &gt; it :-) ). It is demonstrated in a program called</i><br>
<i>&gt; &gt; sgq_dd512 (a "dd" variant) that can be found on</i><br>
<i>&gt; &gt; sg's home page in the utility tarball.</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; See the SG_SET_COMMAND_Q ioctl(). I was not aware</i><br>
<i>&gt; &gt; that many scanners supported command queuing.</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Doug Gilbert</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; --</i><br>
<i>&gt; &gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; &gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
<i>&gt; </i><br>
<i>&gt; Does this mean, that I might just enable command queue tagging,</i><br>
<i>&gt; recompile the kernel and possibly sane and it should work? If yes, where</i><br>
<i>&gt; can I enable it?</i><br>
<p>
Unfortunately it needs a little bit more work to benefit from SG command<br>
queueing with Sane. At present, sanei_scsi.c has its own command queue<br>
which is filled with a call to sanei_scsi_req_enter, and queued requests<br>
are sent to the scanner if sanei_scsi_req_wait is called (this is a<br>
somewhat oversimplified description -- it's some months ago that I had a<br>
closer look into sanei_scsi.c)<br>
<p>
Further, the backend for your scanner needs to make use of the functions<br>
sanei_scsi_req_enter and sanei_scsi_req_wait instead of sanei_scsi_cmd.<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0252.html">Malcolm Wallace: "Nikon Coolscan with RedHat 6.0"</a>
<li> <b>Previous message:</b> <a href="0250.html">abel deuring: "Re: problems increasing SG_BIG_BUFF"</a>
<li> <b>Maybe in reply to:</b> <a href="0047.html">Andreas Buesching: "problems increasing SG_BIG_BUFF"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>