kopia lustrzana https://gitlab.com/sane-project/website
194 wiersze
6.7 KiB
HTML
194 wiersze
6.7 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: Problems with KYE ColorPage-HR5+DTC3181LE+Kerne</TITLE>
|
|
<META NAME="Author" CONTENT="Douglas Gilbert (dgilbert@interlog.com)">
|
|
<META NAME="Subject" CONTENT="Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0</H1>
|
|
<!-- received="Sat Feb 3 06:35:53 2001" -->
|
|
<!-- isoreceived="20010203143553" -->
|
|
<!-- sent="Sat, 03 Feb 2001 09:36:02 -0500" -->
|
|
<!-- isosent="20010203143602" -->
|
|
<!-- name="Douglas Gilbert" -->
|
|
<!-- email="dgilbert@interlog.com" -->
|
|
<!-- subject="Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0" -->
|
|
<!-- id="3A7C1752.805824AC@interlog.com" -->
|
|
<!-- inreplyto="3A7BCD2C.E7BE03A5@wolfsburg.de" -->
|
|
<STRONG>From:</STRONG> Douglas Gilbert (<A HREF="mailto:dgilbert@interlog.com?Subject=Re:%20Problems%20with%20KYE%20ColorPage-HR5%2BDTC3181LE%2BKernel%202.4.0&In-Reply-To=<3A7C1752.805824AC@interlog.com>"><EM>dgilbert@interlog.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sat Feb 03 2001 - 06:36:02 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0020.html">Roy Mathew: "Microtek X6, USB and slackware problems"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0018.html">Oliver Rauch: "Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0018.html">Oliver Rauch: "Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0017.html">Patricio Díaz G.: "RE: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#19">[ date ]</A>
|
|
<A HREF="index.html#19">[ thread ]</A>
|
|
<A HREF="subject.html#19">[ subject ]</A>
|
|
<A HREF="author.html#19">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Oliver Rauch wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> > "Patricio Díaz G." wrote:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > Abel,
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > The problem remains, attached I send you the log files generated with the new version you sent to me (thanks for that).
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > Today I played a lot with the sources, and the exact line where the program freezes is:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > sanei_scsi.c (1972): select (req->fd, &readable, 0, 0, 0);
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > I want to learn about the commands to send to the scanner, do you have some information?, so I could help to fix this problem.
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > thanks,
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > Patricio
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Hi,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> is it possible, that the sanei_scsi_open_extended does not
|
|
</EM><BR>
|
|
<EM>> work correct ?:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> [sanei_scsi] sanei_scsi_open_extended: using 456704 bytes as SCSI buffer
|
|
</EM><BR>
|
|
<EM>> ...
|
|
</EM><BR>
|
|
<EM>> [umax] sane_start: sanei_scsi_open_extended returned scsi buffer size = 456704
|
|
</EM><BR>
|
|
<EM>> ...
|
|
</EM><BR>
|
|
<EM>> [sanei_scsi] scsi_req_enter: entered 0x8050cf0
|
|
</EM><BR>
|
|
<EM>> [sanei_scsi] sanei_scsi.issue: 0x8050cf0
|
|
</EM><BR>
|
|
<EM>> dev_max(currently)=7 max_active_device=1 (origin 1)
|
|
</EM><BR>
|
|
<EM>> scsi_dma_free_sectors=48 sg_pool_secs_aval=320 def_reserved_size=32768
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> (Is def_reserved_size=32768 the real buffer size?)
|
|
</EM><BR>
|
|
<P>Oliver,
|
|
<BR>
|
|
Things are probably ok. I suspect Abel is using
|
|
<BR>
|
|
system("cat /proc/scsi/sg/debug") inside sanei to output
|
|
<BR>
|
|
sg's internal state. Here is the output from that command
|
|
<BR>
|
|
on my machine when I'm reading a disk via sg:
|
|
<BR>
|
|
<P>$ cat /proc/scsi/sg/debug
|
|
<BR>
|
|
dev_max(currently)=9 max_active_device=3 (origin 1)
|
|
<BR>
|
|
scsi_dma_free_sectors=512 sg_pool_secs_aval=320 def_reserved_size=32768
|
|
<BR>
|
|
<EM> >>> device=sg0 scsi1 chan=0 id=1 lun=0 em=0 sg_tablesize=255 excl=0
|
|
</EM><BR>
|
|
FD(1): timeout=60000ms bufflen=65536 (res)sgat=2 low_dma=0
|
|
<BR>
|
|
cmd_q=1 f_packid=0 k_orphan=0 closed=0
|
|
<BR>
|
|
rb>> act: id=191488 blen=65536 t_o/elap=40000/10ms sgat=2 op=0x28
|
|
<BR>
|
|
<P>The 'def_reserved_size=32768' is inherited by all sg file
|
|
<BR>
|
|
descriptors (fds) when they are open()ed. The 'bufflen=65536'
|
|
<BR>
|
|
on FD(1) indicates that the SG_SET_RESERVED_SIZE ioctl
|
|
<BR>
|
|
must have been called to increase the inherited value.
|
|
<BR>
|
|
The command that is active has set its data length to
|
|
<BR>
|
|
'blen=65536' and the "rb >> " indicates the reserved
|
|
<BR>
|
|
buffer for that fd is being used.
|
|
<BR>
|
|
<P>Perhaps this is information overload but it tells me
|
|
<BR>
|
|
quite a lot.
|
|
<BR>
|
|
<P>The use of the reserved buffer is not essential (i.e.
|
|
<BR>
|
|
the command data length may exceed the reserved buffer
|
|
<BR>
|
|
size). It just removes a small chance of receiving an
|
|
<BR>
|
|
ENOMEM error. [With more memory and less ISA cards
|
|
<BR>
|
|
around, the small chance is getting smaller.]
|
|
<BR>
|
|
<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:%20Problems%20with%20KYE%20ColorPage-HR5%2BDTC3181LE%2BKernel%202.4.0&In-Reply-To=<3A7C1752.805824AC@interlog.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0020.html">Roy Mathew: "Microtek X6, USB and slackware problems"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0018.html">Oliver Rauch: "Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0018.html">Oliver Rauch: "Re: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0017.html">Patricio Díaz G.: "RE: Problems with KYE ColorPage-HR5+DTC3181LE+Kernel 2.4.0"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#19">[ date ]</A>
|
|
<A HREF="index.html#19">[ thread ]</A>
|
|
<A HREF="subject.html#19">[ subject ]</A>
|
|
<A HREF="author.html#19">[ 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>Sat Feb 03 2001 - 06:38:59 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|