Re: SCSI problems with SANE 1.0.5, Linux 2.4.x and double buffering

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Sat Jul 07 2001 - 10:51:03 PDT

  • Next message: Matt: "Re: Fw: Compiling problems on Redhat 7.0"

    Hi,

    On Sat, Jul 07, 2001 at 07:31:58PM +0200, abel deuring wrote:
    > > I tried to reproduce this bug but couldn't until I did the following:
    > > rename /usr/include/scsi/sg.h to something else. After recompile
    > > sanei_scsi.c seems to use the kernel headers from /usr/src/linux
    > > (which are the right ones for my current kernel 2.4.5). I'm using
    > > Debian 2.2.
    >
    > So the error does not occur, if /usr/include/scsi/sg.h exists? (for
    > more, see below)
     
    On my system, if /usr/include/scsi/sg.h exists, there is no problem at
    all. On the systems the bug-reporters have, they didn't change
    anything, so I suppose they have /usr/include/scsi/sg.h. But I don't
    know if this file is from libc or the kernel.

    > > dev_max(currently)=7 max_active_device=1 (origin 1)
    > > scsi_dma_free_sectors=48 sg_pool_secs_aval=320 def_reserved_size=32768
    > > >>> device=sg0 scsi0 chan=0 id=6 lun=0 em=0 sg_tablesize=255 excl=1
    > > FD(1): timeout=600000ms bufflen=8192 (res)sgat=0 low_dma=0
    > > cmd_q=1 f_packid=0 k_orphan=0 closed=0
    > > rb>> rcv: id=0 blen=96 dur=10ms sgat=0 op=0x12
    > > --- Where does this come from? I can't find it in sanei_scsci.c.
    >
    > That's in function issue:
    >
    > IF_DBG(if (DBG_LEVEL >= 255) system("cat /proc/scsi/sg/debug 1>&2");)
    >
    > It was suggested by Douglas. The idea is to have debug information from
    > Sane and from the SG driver in one place.

    Ah, ok, I just searched for dev_max and couldn't find anything.

    Thanks for all the information.

    To be sure that this is not scanner-related, I just verified the
    problem with a completely different Mustek scanner. I will also try
    the latest sg (in 2.4.7pre3).

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 10:44:56 PDT