[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cdrecord and "get performance" scsi errors



Linux 2.4.33

Starting from 2.01.01a10 and this change:

     * NEC drives incorrectly return CD speed values in mode page 2A.
         * Try MMC3 get performance in hope that values closer to DVD speeds
         * are always more correct than what is found in mode page 2A.

I started getting the following errors on USB dvd writers (not on ide):
 Input/output error. get performance: scsi sendcmd: no error
CDB:  AC 00 00 00 00 00 00 00 00 64 03 00

Joerg told me this was a Linux issue. I tried contacting Linux 2.4
maintainer, but it was too difficult for me to follow this issue with him
because I don't understand it. So I just gave up.

Now I see a FreeBSD user got the very same error messages:
http://lists.debian.org/cdwrite/2007/05/msg00009.html

So, is this really a Linux issue? Do Linux and FreeBSD present the same bugs
in the SCSI layer?

I attach some logs, scgcheck was done with a disk always in since I'm not
phisically near the writerto take it out.

Thanks

# ./cdrecord.test -v -data dev=4,0,0 test.iso
Cdrecord-ProDVD-Clone 2.01.01a26 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '4,0,0'
scsibus: 4 target: 0 lun: 0
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-E10L '
Revision       : 'LE06'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD+RW
Profile: DVD-RAM 
Profile: DVD-R sequential recording 
Profile: DVD-R/DL sequential recording 
Profile: DVD-R/DL layer jump recording 
Profile: DVD-RW sequential recording 
Profile: DVD-RW restricted overwrite 
Profile: DVD+RW (current)
Profile: DVD+R 
Profile: DVD+R/DL 
Profile: DVD-ROM 
Profile: CD-R 
Profile: CD-RW 
Profile: CD-ROM 
Profile: Removable Disk 
./cdrecord.test: Input/output error. get performance: scsi sendcmd: no error
CDB:  AC 00 00 00 00 00 00 00 00 64 03 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.004s timeout 200s
Using generic SCSI-3/mmc-3 DVD+RW driver (mmc_dvdplusrw).
Driver flags   : DVD MMC-3 SWABAUDIO BURNFREE 
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 1114112 = 1088 KB
Drive pbuf size: 1966080 = 1920 KB
Drive DMA Speed: 6477 kB/s 36x CD 4x DVD
FIFO size      : 4194304 = 4096 KB
Track 01: data     5 MB        
Total size:        5 MB = 2670 sectors
Current Secsize: 2048
Trying to clear drive status.
./cdrecord.test: Input/output error. get performance: scsi sendcmd: no error
CDB:  AC 00 00 00 00 00 00 00 00 64 03 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.004s timeout 100s
./cdrecord.test: MMC-3 speed select did not work.
./cdrecord.test: Input/output error. read track info: scsi sendcmd: no error
CDB:  52 00 00 00 00 00 00 00 30 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.003s timeout 240s
./cdrecord.test: Input/output error. get performance: scsi sendcmd: no error
CDB:  AC 00 00 00 00 00 00 00 00 64 03 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.004s timeout 100s
Blocks total: 2295104 Blocks current: 2295104 Blocks remaining: 2292434
./cdrecord.test: Input/output error. get performance: scsi sendcmd: no error
CDB:  AC 00 00 00 00 00 00 00 00 64 03 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.004s timeout 100s
./cdrecord.test: MMC-3 speed select did not work.
Starting to write CD/DVD at speed 4 in real SAO mode for single session.
Last chance to quit, starting real write in 9 seconds.   8 seconds.   7 seconds.   6 seconds.   5 seconds.   4 seconds.   3 seconds.   2 seconds.   1 seconds.   0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Starting new track at sector: 0

Track 02:    0 of    5 MB written.
Track 02:    1 of    5 MB written (fifo  98%) [buf  96%]  16.2x.
Track 02:    2 of    5 MB written (fifo 100%) [buf  99%]   0.2x.
Track 02:    3 of    5 MB written (fifo 100%) [buf  99%]   4.3x.
Track 02:    4 of    5 MB written (fifo 100%) [buf  99%]   4.1x.
Track 02:    5 of    5 MB written (fifo 100%) [buf  99%]   4.2x.
Track 02: Total bytes read/written: 5468160/5468160 (2670 sectors).
Writing  time:    5.982s
Average write speed   0.7x.
Min drive buffer fill was 99%
Fixating...
Fixating time:    1.073s
./cdrecord.test: fifo had 87 puts and 87 gets.
./cdrecord.test: fifo was 0 times empty and 5 times full, min fill was 81%.
# scgcheck dev=4,0,0
Scgcheck 2.01.01a26 (i686-pc-linux-gnu) SCSI user level transport library ABI checker.
Copyright (C) 1998,2001 Jörg Schilling
Checking if your implementation supports to scan the SCSI bus.
Trying to open device: '4,0,0'.
Using libscg version 'schily-0.9'
Max DMA buffer size: 4194304
scsibus4:
	4,0,0	400) 'HL-DT-ST' 'DVDRAM GSA-E10L ' 'LE06' Removable CD-ROM
	4,1,0	401) *
	4,2,0	402) *
	4,3,0	403) *
	4,4,0	404) *
	4,5,0	405) *
	4,6,0	406) *
	4,7,0	407) *
----------> SCSI scan bus test PASSED
For the next test we need to open a single SCSI device.
Best results will be obtained if you specify a modern CD-ROM drive.
Enter SCSI device name [0,6,0]: 4,0,0
Trying to open device: '4,0,0'.
Using libscg version 'schily-0.9'
Max DMA buffer size: 4194304
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-E10L '
Revision       : 'LE06'
Ready to start test for second SCSI open? Enter <CR> to continue: 
First SCSI open OK - device usable
Checking for second SCSI open.
Second SCSI open for same device succeeded, 1 file descriptor(s) used.
Second SCSI open is usable
Closing second SCSI.
Checking first SCSI.
First SCSI open is still usable
Second SCSI open test passed.
Ready to start test for succeeded command? Enter <CR> to continue: 

Executing 'inquiry' command on Bus 4 Target 0, Lun 0 timeout 40s
CDB:  12 00 00 00 24 00
cmd finished after 0.001s timeout 40s
Inquiry Data   : 05 80 02 32 5B 00 00 00 48 4C 2D 44 54 2D 53 54 44 56 44 52 41 4D 20 47 53 41 2D 45 31 30 4C 20 4C 45 30 36
----------> SCSI succeeded command test PASSED
Ready to start test for failing command? Enter <CR> to continue: 
Inquiry did not fail.
This may be because the firmware in your drive is buggy.
If the current drive is not a CD-ROM drive please restart
the test utility. Otherwise remove any medium from the drive.
Ready to start test for failing command? Enter <CR> to continue: 
Test Unit Ready did not fail.
Ready to eject tray? Enter <CR> to continue: 
scgcheck: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.003s timeout 40s
----------> SCSI failed command test PASSED
Ready to start test for sense data count? Enter <CR> to continue: 
Testing if at least CCS_SENSE_LEN (18) is supported...
Sense Data: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 00 00
---------->     Method 0x00: expected: 18 reported: 16 max found: 13
Sense Data: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 FF FF
---------->     Method 0xFF: expected: 18 reported: 16 max found: 16
---------->	Minimum standard (CCS) sense length failed
---------->	Wanted 18 sense bytes, got (16)
Testing for 32 bytes of sense data...
Sense Data: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
---------->     Method 0x00: expected: 32 reported: 16 max found: 13
Sense Data: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
---------->     Method 0xFF: expected: 32 reported: 16 max found: 16
---------->	Wanted 32 sense bytes, got (16)
----------> Got a maximum of 16 sense bytes
----------> SCSI sense count test FAILED
----------> SCSI status byte test NOT YET READY
Ready to start test for working DMA residual count? Enter <CR> to continue: 
**********> Testing for working DMA residual count == 0.
CDB cnt: 36 DMA cnt: 36 got really: 36 (System says: RDMA cnt: 36 resid 0)
CDB cnt: 36 DMA cnt: 36 got really: 36 (System says: RDMA cnt: 36 resid 0)
---------->	Wanted 36 bytes, got it.
----------> SCSI DMA residual count == 0 test PASSED
Ready to start test for working DMA residual count == DMA count? Enter <CR> to continue: 
CDB cnt: 0 DMA cnt: 36 got really: 36 (System says: RDMA cnt: 36 resid 0)
CDB cnt: 0 DMA cnt: 36 got really: 36 (System says: RDMA cnt: 36 resid 0)
---------->	Wanted 0 bytes, got (36)
----------> SCSI DMA residual count == DMA count test FAILED
----------> SCSI DMA residual count not working - no further tests
----------> SCSI transport code test NOT YET READY
-- 
giulioo@pobox.com



Reply to: