SCSI (?) trouble, still.

From: Frederik Ramm (sane@mail.remote.org)
Date: Wed Jun 27 2001 - 02:55:48 PDT

  • Next message: Timothy Reaves: "Re: snapscan and aic7xxx driver don't work together"

    Hi,

       I've resolved that SCSI IRQ problem but still: In the old machine (a
    PIII running 2.4.1-pre something kernel), I can use my scanner and
    everything works, but when I move the AHA2940 adapter and scanner to
    the new machine (an Athlon running 2.4.5), the resulting images are
    only garbage. Everything else seems normal, i.e. I don't get any error
    messages or SCSI timeouts or such, it's just that the data returned is
    bad.

    On both machines, the scanner is the only device on the SCSI bus.

    I have tried it with a sane version compiled on the new machine, and I
    have also tried using the binaries from the old machine; both have the
    same problem.

    I am attaching a debug printout from a small color test scan. The
    "fujitsu" debug lines all seem ok. Can anyone tell me if the
    "sanei_scsi" debug lines look all right, or if you can spot some
    potential problem there.

    Any other ideas?

    Thanks
    Frederik

    [sanei_debug] Setting debug level of fujitsu to 255.
    [fujitsu] sane_init
    [fujitsu] sane_init: reading config file fujitsu.conf
    [sanei_debug] Setting debug level of sanei_scsi to 255.
    [sanei_scsi] searched device is /dev/sgb
    [fujitsu] attach_scanner: /dev/sgb
    [fujitsu] attach_scanner: opening /dev/sgb
    [sanei_debug] Setting debug level of sanei_scsi to 255.
    [sanei_scsi] sanei_scsi_open: SG driver version: 30117
    [sanei_scsi] sanei_scsi_open_extended: using 131072 bytes as SCSI buffer
    [sanei_scsi] trying to enable low level command queueing
    [sanei_scsi] sanei_scsi_open: Host adapter queue depth: 2
    [sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run time
    [sanei_scsi] sanei_scsi_open: low level command queueing enabled
    [fujitsu] identify_scanner
    [fujitsu] do_inquiry
    [fujitsu] <cmd<
    [fujitsu] 000: 12 00 00 00 60 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 132 bytes
    [fujitsu] sanei_scsi_cmd: returning 96 bytes:
    [fujitsu] >rslt>
    [fujitsu] 000: 06 00 02 02 5b 00 00 10 46 55 4a 49 54 53 55 20
    [fujitsu] 016: 4d 33 30 39 31 44 43 64 20 20 20 20 20 20 20 20
    [fujitsu] 032: 42 46 32 31 00 00 00 00 00 00 00 04 00 01 00 7a
    [fujitsu] 048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] Found FUJITSU scanner M3091DCd version BF21 on device /dev/sgb, treating as 3091
    [fujitsu] ADF: present
    [fujitsu] Duplex Unit: present
    [fujitsu] Duplex Raster Offset: 122
    [fujitsu] Color Raster Offset: 4
    [fujitsu] attach_scanner: done
    [fujitsu] sane_open
    [fujitsu] initOptions
    [fujitsu] initOptions:ok
    [fujitsu] sane_start
    [fujitsu] objectCount = 0
    [fujitsu] duplexMode = DUPLEX_FRONT
    [fujitsu] useTempFile = no
    [sanei_debug] Setting debug level of sanei_scsi to 255.
    [sanei_scsi] sanei_scsi_open: SG driver version: 30117
    [sanei_scsi] sanei_scsi_open_extended: using 131072 bytes as SCSI buffer
    [sanei_scsi] trying to enable low level command queueing
    [sanei_scsi] sanei_scsi_open: Host adapter queue depth: 2
    [sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run time
    [sanei_scsi] sanei_scsi_open: low level command queueing enabled
    [fujitsu] grabScanner
    [fujitsu] waitScanner
    [fujitsu] <cmd<
    [fujitsu] 000: 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner: ok
    [fujitsu] <cmd<
    [fujitsu] 000: 16 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] grabScanner: ok
    [fujitsu] objectPosition
    [fujitsu] <cmd<
    [fujitsu] 000: 31 01 00 00 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner
    [fujitsu] <cmd<
    [fujitsu] 000: 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner: ok
    [fujitsu] objectPosition: ok
    [fujitsu] waitScanner
    [fujitsu] <cmd<
    [fujitsu] 000: 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner: ok
    [fujitsu] set_window_param
    [fujitsu] Window set
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] set_window_param: ok
    [fujitsu] startScan
    [fujitsu] <cmd<
    [fujitsu] 000: 1b 00 00 00 01 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] startScan:ok
    [fujitsu] sane_start: ok
    [fujitsu] sane_get_parameters
    [fujitsu] sane_read, objectCount=1
    [fujitsu] readerProcess started
    [fujitsu] readerProcess: starting to READ data
    [fujitsu] colorLineGap=4, greenOffset=8, blueOffset =4
    [fujitsu] readerProcess: reading 167088+5664 bytes in large blocks of 65136 bytes
    [fujitsu] readLargeDataBlock requested 65136 bytes
    [fujitsu] readLargeDataBlock ... xfer length=65136
    [fujitsu] <cmd<
    [fujitsu] 000: 28 00 00 00 00 00 00 fe 70 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 65172 bytes
    [fujitsu] sanei_scsi_cmd: returning 65136 bytes:
    [fujitsu] >rslt>
    [fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
    [fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
    [fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
    [fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [fujitsu] sane_read: read 26704 bytes of 32768
    [fujitsu] sane_read, objectCount=1
    [sanei_scsi] sanei_scsi_req_wait: read 59508 bytes
    [fujitsu] sanei_scsi_cmd: returning 59472 bytes:
    [fujitsu] >rslt>
    [fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
    [fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
    [fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
    [fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] readerProcess: buffer of 59472 bytes read; 48144 bytes to go
    [fujitsu] readLargeDataBlock requested 48144 bytes
    [fujitsu] readLargeDataBlock ... xfer length=48144
    [fujitsu] <cmd<
    [fujitsu] 000: 28 00 00 00 00 00 00 bc 10 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [fujitsu] sane_read: read 26704 bytes of 32768
    [fujitsu] sane_read, objectCount=1
    [sanei_scsi] sanei_scsi_req_wait: read 48180 bytes
    [fujitsu] sanei_scsi_cmd: returning 48144 bytes:
    [fujitsu] >rslt>
    [fujitsu] 000: 00 00 00 00 00 00 00 60 00 00 01 2c 01 2c 00 00
    [fujitsu] 016: 00 00 00 00 00 00 00 00 03 b0 00 00 03 d0 00 00
    [fujitsu] 032: 00 05 08 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 048: c0 00 00 00 00 00 00 00 00 00 00 00 00 c0 00 00
    [fujitsu] 064: 27 d7 00 00 36 cf 00 00 00 00 00 00 00 00 00 00
    [fujitsu] 080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [fujitsu] readerProcess: buffer of 48144 bytes read; 0 bytes to go
    [fujitsu] readerProcess: finished, throughput was 172752 bytes/second
    [fujitsu] sane_read: read 15376 bytes of 32768
    [fujitsu] sane_read, objectCount=1
    [fujitsu] sane_read: read 0 bytes of 32768
    [fujitsu] sane_read: pipe closed
    [fujitsu] sane_cancel
    [fujitsu] doCancel
    [fujitsu] doCancel: kill readerProcess
    [fujitsu] freeScanner
    [fujitsu] objectDischarge
    [fujitsu] <cmd<
    [fujitsu] 000: 31 00 00 00 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner
    [fujitsu] <cmd<
    [fujitsu] 000: 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner: ok
    [fujitsu] objectDischarge: ok
    [fujitsu] waitScanner
    [fujitsu] <cmd<
    [fujitsu] 000: 00 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] waitScanner: ok
    [fujitsu] <cmd<
    [fujitsu] 000: 17 00 00 00 00 00
    [sanei_scsi] scsi_req_enter: entered 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 2
    [sanei_scsi] sanei_scsi_req_wait: waiting for 0x401c4008
    [sanei_scsi] sanei_scsi.issue: 0x401c4008
    [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
    [fujitsu] sanei_scsi_cmd: returning 0 bytes:
    [fujitsu] freeScanner: ok
    [fujitsu] doCancel: close filedescriptor
    [fujitsu] sane_close
    [fujitsu] sane_exit

    -- 
    Frederik Ramm  ##  eMail frederik@remote.org  ##  N48°59.94 E008°24.36'
    

    -- 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 : Wed Jun 27 2001 - 03:02:09 PDT