kopia lustrzana https://gitlab.com/sane-project/website
157 wiersze
6.0 KiB
HTML
157 wiersze
6.0 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: [dev] sanei_scsi.c and Linux versions < 2.2.7</TITLE>
|
||
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
|
||
<META NAME="Subject" CONTENT="[dev] sanei_scsi.c and Linux versions < 2.2.7">
|
||
</HEAD>
|
||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
<H1>[dev] sanei_scsi.c and Linux versions < 2.2.7</H1>
|
||
<!-- received="Sun Jul 15 05:33:37 2001" -->
|
||
<!-- isoreceived="20010715123337" -->
|
||
<!-- sent="Sun, 15 Jul 2001 14:49:05 +0200" -->
|
||
<!-- isosent="20010715124905" -->
|
||
<!-- name="Henning Meier-Geinitz" -->
|
||
<!-- email="henning@meier-geinitz.de" -->
|
||
<!-- subject="[dev] sanei_scsi.c and Linux versions < 2.2.7" -->
|
||
<!-- id="20010715144905.A31122@vortex.swb.de" -->
|
||
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20[dev]%20sanei_scsi.c%20and%20Linux%20versions%20<%202.2.7&In-Reply-To=<20010715144905.A31122@vortex.swb.de>"><EM>henning@meier-geinitz.de</EM></A>)<BR>
|
||
<STRONG>Date:</STRONG> Sun Jul 15 2001 - 05:49:05 PDT
|
||
<P>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0132.html">Marshall Lake: "Scanning with Mustek"</A>
|
||
<UL>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0130.html">Ralph F. De Witt: "Re: Need help with Scanner."</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0133.html">abel deuring: "Re: [dev] sanei_scsi.c and Linux versions < 2.2.7"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0133.html">abel deuring: "Re: [dev] sanei_scsi.c and Linux versions < 2.2.7"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#131">[ date ]</A>
|
||
<A HREF="index.html#131">[ thread ]</A>
|
||
<A HREF="subject.html#131">[ subject ]</A>
|
||
<A HREF="author.html#131">[ author ]</A>
|
||
</UL>
|
||
<HR NOSHADE><P>
|
||
<!-- body="start" -->
|
||
<P>
|
||
Hi,
|
||
<BR>
|
||
<P>I have some comments/questions on the sg buffer size on Linux kernels
|
||
<BR>
|
||
before 2.2.7 (2.2.5 in this case). I got a bug report for this one. I
|
||
<BR>
|
||
know this could be fixed by increasing the buffer size in the kernel
|
||
<BR>
|
||
includes or by telling the backend (mustek in this case) not to use
|
||
<BR>
|
||
more than 32k.
|
||
<BR>
|
||
<P>1) In README there is a comment: "--enable-scsibuffersize and
|
||
<BR>
|
||
SANE_SG_BUFFERSIZE have no effect for the Mustek, Umax and
|
||
<BR>
|
||
Sharp backends.". This is not true, at least for the mustek
|
||
<BR>
|
||
backend. In this backend you can set the buffer size in the config
|
||
<BR>
|
||
file, but if one of the two methods above is used, the buffer size
|
||
<BR>
|
||
is not bigger then the specified. E.g. mustek.conf: buffersize=128
|
||
<BR>
|
||
(on kilobytes), SANE_SG_BUFFERSIZE=32768 --> real (maximum)
|
||
<BR>
|
||
buffer size = 32768.
|
||
<BR>
|
||
|
||
<BR>
|
||
2) Is there any way to detect from a backend how big the available
|
||
<BR>
|
||
buffersize is? I'm using sanei_scsi_open extended and it tells me
|
||
<BR>
|
||
that 128 k is ok even if the kernel doesn't support it. So the
|
||
<BR>
|
||
question is: Must the user set the size to 32k manually (or modify
|
||
<BR>
|
||
the kernel) or is there some other way?
|
||
<BR>
|
||
|
||
<BR>
|
||
3) Here is a log from the failing command:
|
||
<BR>
|
||
<P>[mustek] reader_process: buffer 1: entering read request for 65484 bytes (buffer 1)
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi_req_enter2: Command: 28 00 00 00 00 00 00 00 6b 00
|
||
<BR>
|
||
[sanei_scsi] scsi_req_enter: entered 0x4038b008
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi.issue: 0x4038b008
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi.issue: bad write (errno=12) Nicht gen<65>gend Hauptspeicher verf<72>gbar -1
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi.issue: SG_BIG_BUF inconsistency? Check file PROBLEMS.
|
||
<BR>
|
||
[sanei_scsi] scsi_req_enter: queue_used: 0, queue_max: 1
|
||
<BR>
|
||
[mustek] reader_process: buffer 1: entered (line 107 of 835, buffer 1)
|
||
<BR>
|
||
<P> Wouldn't it be nicer to return an error from sanei_scsi_req_enter
|
||
<BR>
|
||
instead of ignoring the situation? The error comes up later when
|
||
<BR>
|
||
waiting for the buffer:
|
||
<BR>
|
||
|
||
<BR>
|
||
[mustek] reader_process: buffer 1: waiting for request to be ready
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4038b008
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi.issue: 0x4038b008
|
||
<BR>
|
||
[sanei_scsi] issue: ENOMEM - cannot queue SCSI command. Trying again later.
|
||
<BR>
|
||
[sanei_scsi] sanei_scsi.issue: 0x403ac008
|
||
<BR>
|
||
[sanei_scsi] issue: ENOMEM - cannot queue SCSI command. Trying again later.
|
||
<BR>
|
||
[mustek] reader_process: failed to read data, status: Out of memory, buffer: 1
|
||
<BR>
|
||
<P>Bye,
|
||
<BR>
|
||
Henning
|
||
<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:%20[dev]%20sanei_scsi.c%20and%20Linux%20versions%20<%202.2.7&In-Reply-To=<20010715144905.A31122@vortex.swb.de>">majordomo@mostang.com</A>
|
||
</PRE>
|
||
<P><!-- body="end" -->
|
||
<HR NOSHADE>
|
||
<UL>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0132.html">Marshall Lake: "Scanning with Mustek"</A>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0130.html">Ralph F. De Witt: "Re: Need help with Scanner."</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0133.html">abel deuring: "Re: [dev] sanei_scsi.c and Linux versions < 2.2.7"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0133.html">abel deuring: "Re: [dev] sanei_scsi.c and Linux versions < 2.2.7"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#131">[ date ]</A>
|
||
<A HREF="index.html#131">[ thread ]</A>
|
||
<A HREF="subject.html#131">[ subject ]</A>
|
||
<A HREF="author.html#131">[ 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 Jul 15 2001 - 05:39:01 PDT</EM>
|
||
</EM>
|
||
</SMALL>
|
||
</BODY>
|
||
</HTML>
|