2002-09-22 06:50:59

by jurriaan

[permalink] [raw]
Subject: ide-scsi problems (identical) in 2.5.38 and 2.4.20-pre7-ac3: CoD != 0 in idescsi_pc_intr

selected parts of dmesg:

hdg: LITE-ON LTR-40125W, ATAPI CD/DVD-ROM drive
ide-cd: passing drive hdg to ide-scsi emulation.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: LITE-ON Model: LTR-40125W Rev: WS05
Type: CD-ROM ANSI SCSI revision: 02
sr3: scsi3-mmc drive: 12x/12x writer cd/rw xa/form2 cdda tray

After writing for a while, it says:
ide-scsi: CoD != 0 in idescsi_pc_intr
hdg: ATAPI reset complete

and cdrdao mentions:

sudo cdrdao simulate --device 1,0,0 --driver generic-mmc --speed 12 test.cue
Cdrdao version 1.1.5 - (C) Andreas Mueller <[email protected]>
SCSI interface library - (C) Joerg Schilling
L-EC encoding library - (C) Heiko Eissfeldt
Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

Using libscg version 'schily-0.5'

1,0,0: LITE-ON LTR-40125W Rev: WS05
Using driver: Generic SCSI-3/MMC - Version 1.2 (options 0x0000)

Starting write simulation at speed 12...
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Turning BURN-Proof on
Writing track 01 (mode MODE2_RAW/MODE2_RAW)...
Writing track 02 (mode MODE2_RAW/MODE2_RAW)...
?: Input/output error. : scsi sendcmd: no error
CDB: 2A 00 00 01 58 88 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 06 00 00 00 00 0A 00 00 00 00 29 00 00 00
Sense Key: 0x6 Unit Attention, Segment 0
Sense Code: 0x29 Qual 0x00 (power on, reset, or bus device reset occurred) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 3.160s timeout 180s
ERROR: Write data failed.
ERROR: Writing failed - buffer under run?
ERROR: Simulation failed.

Both 2.4.20-pre7-ac3 and 2.5.38 fail in this way.

Kind regards,
Jurriaan
--
Lightspeed is too slow. We're going to have to go right to Ludicrous Speed.
Spaceballs - The Movie
GNU/Linux 2.5.37 SMP/ReiserFS 2x1380 bogomips load av: 0.18 0.74 0.57


2002-09-22 18:02:14

by Thomas Molina

[permalink] [raw]
Subject: Re: ide-scsi problems (identical) in 2.5.38 and 2.4.20-pre7-ac3: CoD != 0 in idescsi_pc_intr

On Sun, 22 Sep 2002, Jurriaan wrote:

> selected parts of dmesg:
>
> hdg: LITE-ON LTR-40125W, ATAPI CD/DVD-ROM drive
> ide-cd: passing drive hdg to ide-scsi emulation.
> scsi1 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: LITE-ON Model: LTR-40125W Rev: WS05
> Type: CD-ROM ANSI SCSI revision: 02
> sr3: scsi3-mmc drive: 12x/12x writer cd/rw xa/form2 cdda tray
>
> After writing for a while, it says:
> ide-scsi: CoD != 0 in idescsi_pc_intr
> hdg: ATAPI reset complete

I could not duplicate this error in 2.5.38-bk.

However, I did notice some other anomalies during testing. My testing
consisted of dd if=/dev/cdrom of=cd.iso under 2.4.18-10 and 2.5.38-bk. I
tried both a small mail spool (2 MB) cd and a large document cd (637 MB).
The small file copied fine under both, but 2.5.38-bk read two fewer
sectors than 2.4.18-10 (32404 vs. 32406). On disk, the files created
were:

-rw-r--r-- 1 root root 668475392 Sep 22 12:01 cd2.iso
-rw-r--r-- 1 root root 668479488 Sep 22 11:51 cd.iso

from the same source cd.