Hi,
scanning with SANE with my scanner UMAX Astra 610S connected to my
Dawicontrol DC-2974 PCI card and the tmscsim driver copiled
into my 2.2.5 kernel causes the SCSI card to hang, i.e.
when I try to acquire a preview with xscanimage, the scanner
starts but hangs shortly before completion. After a certain
time (several minutes) I tried to query the SCSI cards with the
program scsiinq: then I get a SCSI timeout frome the card and
the scanner moves back to the initial position, but the scan
software has lost the connection to the device, produces only
SCSI timeouts. Only a shutdown with power off can cure this
(Reset doesn�t help).
Output from /var/log/messages:
Jul 11 09:12:26 einstein kernel: Detected scsi generic sge at scsi1, channel 0, id 5,
lun 0
The scanner is the only device on this card, my harddisks and all other
devices are connected to an Adaptec 2940AU.
The alternate driver I found in my distribution (S.u.S.E. 6.1)
"AM53/79C974 (PC-SCSI) Linux driver ALPHA release 0.5, 19 November 1995"
by Drew Eckhardt and D. Frieauff works without problems in the same
configuration.
In both cases I use the default settigs without any lilo or kernel
parameters or mods via echo in /proc.
Since I would like to use more devices at the Dowicontrol card in near
future, I�d like to use the tmscsim driver, because it appears to me more
advanced, I�d happy about hints how to use it with my scanner.
Here some debug info:
Output from /var/log/messages:
Jul 11 09:12:26 einstein kernel: Detected scsi generic sge at scsi1, channel 0, id 5,
lun 0
Jul 11 09:22:10 einstein kernel: (scsi0:0:4:0) Synchronous at 5.0 Mbyte/sec, offset 15.
Jul 11 09:23:08 einstein kernel: scsi : aborting command due to timeout : pid 10629,
scsi1, channel 0, id 5, lun 0 Test Unit Ready 00 00 00 00 00
Jul 11 09:23:08 einstein kernel: DC390: Abort command (pid 10629, DCB c031f160, SRB
c009b128)
Jul 11 09:23:08 einstein kernel: DC390: SRB: Xferred 00000000, Remain 00000000, State
00000002, Phase 04
Jul 11 09:23:08 einstein kernel: DC390: AdpaterStatus: 00, SRB Status 00
Jul 11 09:23:08 einstein kernel: DC390: Status of last IRQ (DMA/SC/Int/IRQ): 0890c020
Jul 11 09:23:08 einstein kernel: DC390: Register dump: SCSI block:
Jul 11 09:23:08 einstein kernel: DC390: XferCnt Cmd Stat IntS IRQS FFIS Ctl1 Ctl2 Ctl3
Ctl4
Jul 11 09:23:08 einstein kernel: DC390: 000000 44 10 c0 00 07 17 48
08 84
Jul 11 09:23:08 einstein kernel: DC390: Register dump: DMA engine:
Jul 11 09:23:08 einstein kernel: DC390: Cmd STrCnt SBusA WrkBC WrkAC Stat
SBusCtrl
Jul 11 09:23:08 einstein kernel: DC390: 00 00000001 0031c000 00000000 0031c004 00
03080000
Jul 11 09:23:08 einstein kernel: DC390: Register dump: PCI Status: 0200
Jul 11 09:23:08 einstein kernel: DC390: In case of driver trouble read
linux/drivers/scsi/README.tmscsim
Jul 11 09:23:08 einstein kernel: DC390: Aborted pid 10629 with status 4
# cat /proc/scsi/tmscsim/?
Tekram DC390/AM53C974 PCI SCSI Host Adapter, Driver Version 2.0d 1998/12/25
SCSI Host Nr 1, AM53C974 Adapter Nr 0
IOPortBase 0xe000, IRQLevel 0x0f
MaxID 7, MaxLUN 1, AdapterID 7, SelTimeout 250 ms
TagMaxNum 16, Status 0, ACBFlag 0, GlitchEater 24 ns
Statistics: Cmnds 8, Cmnds not sent directly 0, Out of SRB conds 0
Lost arbitrations 0
Nr of attached devices: 1, Nr of DCBs: 1
Idx ID LUN Prty Sync DsCn SndS TagQ STOP NegoPeriod SyncSpeed SyncOffs
00 05 00 Yes No Yes Yes No No (200 ns)
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DORS-32160 Rev: WA6A
Type: Direct-Access ANSI SCSI revision: 01 CCS
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DCAS-34330 Rev: S61A
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: TOSHIBA Model: CD-ROM XM-5701TA Rev: 0167
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: CONNER Model: CTT8000-S Rev: 1.17
Type: Sequential-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: Astra 610S Rev: V1.3
Type: Scanner ANSI SCSI revision: 02
In boot.msg:
<6>(scsi0) <Adaptec AHA-2940A Ultra SCSI host adapter> found at PCI 12/0
<6>(scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
<6>(scsi0) Downloading sequencer code... 419 instructions downloaded
<6>DC390_init: No EEPROM found!
<6>DC390_init: Trying default EEPROM settings:
<6>DC390: Used defaults: AdaptID=7, SpeedIdx=1 (8.0 MHz), DevMode=0x1f, AdaptMode=0x0f,
TaggedCmnds=3 (16)
<6>DC390: 1 adapters found
<4>scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.13/3.2.4
<4> <Adaptec AHA-2940A Ultra SCSI host adapter>
<4>scsi1 : Tekram DC390/AM53C974 V2.0d 1998/12/25
<4>scsi : 2 hosts.
<4> Vendor: IBM Model: DORS-32160 Rev: WA6A
<4> Type: Direct-Access ANSI SCSI revision: 01 CCS
<4>Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
<4> Vendor: IBM Model: DCAS-34330 Rev: S61A
<4> Type: Direct-Access ANSI SCSI revision: 02
<4>Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
<4> Vendor: TOSHIBA Model: CD-ROM XM-5701TA Rev: 0167
<4> Type: CD-ROM ANSI SCSI revision: 02
<4>Detected scsi CD-ROM sr0 at scsi0, channel 0, id 2, lun 0
<4> Vendor: CONNER Model: CTT8000-S Rev: 1.17
<4> Type: Sequential-Access ANSI SCSI revision: 02
<4> Vendor: UMAX Model: Astra 610S Rev: V1.3
<4> Type: Scanner ANSI SCSI revision: 02
<4>scsi : detected 1 SCSI cdrom 2 SCSI disks total.
<6>(scsi0:0:2:0) Synchronous at 10.0 Mbyte/sec, offset 8.
<6>Uniform CDROM driver Revision: 2.54
<6>(scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15.
<4>SCSI device sda: hdwr sector= 512 bytes. Sectors= 4127761 [2015 MB] [2.0 GB]
<6>(scsi0:0:1:0) Synchronous at 20.0 Mbyte/sec, offset 15.
<4>SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8467200 [4134 MB] [4.1 GB]
Best regards,
Alexander
---
Dr. Alexander K�nig 30655 Hannover, Germany
mailto:[EMAIL PROTECTED] ICQ:22795798 http://members.xoom.com/koenig_a/
PGP (0x29B210E9) from servers and http://members.xoom.com/koenig_a/pgp.html
In a world without walls and fences who needs windows and gates?
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]