kopia lustrzana https://gitlab.com/sane-project/website
154 wiersze
5.4 KiB
HTML
154 wiersze
5.4 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: SANE Linux 2.2.13 SCSI problem</TITLE>
|
|
<META NAME="Author" CONTENT="Douglas Gilbert (dgilbert@interlog.com)">
|
|
<META NAME="Subject" CONTENT="Re: SANE Linux 2.2.13 SCSI problem">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: SANE Linux 2.2.13 SCSI problem</H1>
|
|
<!-- received="Mon Feb 28 21:04:25 2000" -->
|
|
<!-- isoreceived="20000229050425" -->
|
|
<!-- sent="Tue, 29 Feb 2000 00:13:18 -0500" -->
|
|
<!-- isosent="20000229051318" -->
|
|
<!-- name="Douglas Gilbert" -->
|
|
<!-- email="dgilbert@interlog.com" -->
|
|
<!-- subject="Re: SANE Linux 2.2.13 SCSI problem" -->
|
|
<!-- id="38BB556E.374D4A17@interlog.com" -->
|
|
<!-- inreplyto="200002290405.MAA08389@xena.ee.uwa.edu.au" -->
|
|
<STRONG>From:</STRONG> Douglas Gilbert (<A HREF="mailto:dgilbert@interlog.com?Subject=Re:%20SANE%20Linux%202.2.13%20SCSI%20problem&In-Reply-To=<38BB556E.374D4A17@interlog.com>"><EM>dgilbert@interlog.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Mon Feb 28 2000 - 21:13:18 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0403.html">Peter Kirchgessner: "Re: HP scanjet 3200C on Linux ?"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0401.html">Petter Reinholdtsen: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0401.html">Petter Reinholdtsen: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0405.html">abel deuring: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#402">[ date ]</A>
|
|
<A HREF="index.html#402">[ thread ]</A>
|
|
<A HREF="subject.html#402">[ subject ]</A>
|
|
<A HREF="author.html#402">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Petter Reinholdtsen wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> [Joaquin Franco]
|
|
</EM><BR>
|
|
<EM>> > After upgrade to 2.2.13 kernel, SANE doesn't work anymore. I think
|
|
</EM><BR>
|
|
<EM>> > the reason is this:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > ( from sg.h file ( kernel 2.2.13 ))
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > - this driver no longer uses a single SG_BIG_BUFF sized buffer
|
|
</EM><BR>
|
|
<EM>> > obtained at driver/module init time. Rather it tries to obtain a
|
|
</EM><BR>
|
|
<EM>> > SG_DEF_RESERVED_SIZE buffer when a fd is open()ed and frees it at
|
|
</EM><BR>
|
|
<EM>> > the corresponding release() (ie per fd).
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > can you help me ?
|
|
</EM><BR>
|
|
<P>It's been that way since lk 2.2.6 and has been done in such a way
|
|
<BR>
|
|
to minimize the impact on existing applications such as SANE. I
|
|
<BR>
|
|
would be very surprised if it's causing your problem. Did you
|
|
<BR>
|
|
attempt to change the value of those defines?
|
|
<BR>
|
|
<P><P>With the sg driver in the development lk 2.3.48 you can:
|
|
<BR>
|
|
$ cat /proc/scsi/sg/def_reserved_size
|
|
<BR>
|
|
32768
|
|
<BR>
|
|
$ echo 131072 > /proc/scsi/sg/def_reserved_size
|
|
<BR>
|
|
$ cat /proc/scsi/sg/def_reserved_size
|
|
<BR>
|
|
131072
|
|
<BR>
|
|
<P>The 2nd command requires root permission. A "def_reserved_size=<n>"
|
|
<BR>
|
|
can be passed at module load time or "sg_def_reserved_size=<n>"
|
|
<BR>
|
|
can be given at kernel boot time.
|
|
<BR>
|
|
/proc/sys/kernel/sg-big-buff lives on but only when sg is built
|
|
<BR>
|
|
into the kernel (as always).
|
|
<BR>
|
|
<P>Most users shouldn't need to play with this value, and if
|
|
<BR>
|
|
they do in lk 2.4 , at least they won't need to change the
|
|
<BR>
|
|
kernel source.
|
|
<BR>
|
|
<P><P><EM>> Not really. I don't know enough about the Linux SCSI internals. I
|
|
</EM><BR>
|
|
<EM>> can on the other hand post your question on the list, and hopefully
|
|
</EM><BR>
|
|
<EM>> someone will be able to help you. Check
|
|
</EM><BR>
|
|
<EM>> <URL:<A HREF="http://www.mostang.com/sane/mail.html">http://www.mostang.com/sane/mail.html</A>> to see any followups.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Which version of SANE are you using?
|
|
</EM><BR>
|
|
<P>Also, which linux version were you using previously and with
|
|
<BR>
|
|
which adapter?
|
|
<BR>
|
|
<P><P>Doug Gilbert
|
|
<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:%20SANE%20Linux%202.2.13%20SCSI%20problem&In-Reply-To=<38BB556E.374D4A17@interlog.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0403.html">Peter Kirchgessner: "Re: HP scanjet 3200C on Linux ?"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0401.html">Petter Reinholdtsen: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0401.html">Petter Reinholdtsen: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0405.html">abel deuring: "Re: SANE Linux 2.2.13 SCSI problem"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#402">[ date ]</A>
|
|
<A HREF="index.html#402">[ thread ]</A>
|
|
<A HREF="subject.html#402">[ subject ]</A>
|
|
<A HREF="author.html#402">[ 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>Mon Feb 28 2000 - 21:07:54 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|