On Wed, Nov 11, 2009 at 06:03:39PM +0100, Joerg Schilling wrote:
> José Romildo Malaquias <[email protected]> wrote:
[...]
> OK, the drive does not support the read buffer command, this is why cdrecord
> cannot do a DMA speed test.
>
> But you have a massive problem in the linux kernel that needs to be
> investigated. The test unit ready command _cannot_ return a "fatal"
> SCSI transport error as long as there is a drive connected.
>
> Please start with running the "scgcheck" command to get some informations
> on the compliance problems in your linux kernel.
The output of scgcheck is attached to this message.
Romildo
# scgcheck
Scgcheck 2.01.01a67 (x86_64-unknown-linux-gnu) SCSI user level transport
library ABI checker.
Copyright (C) 1998-2008 Jörg Schilling
**********> Checking whether your implementation supports to scan the SCSI bus.
Trying to open device: '(NULL POINTER)'.
Using libscg version 'schily-0.9'
Max DMA buffer size: 32768
scsibus0:
0,0,0 0) 'ATA ' 'FUJITSU MHZ2250B' '0085' Disk
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus3:
3,0,0 300) 'TEAC ' 'DVD+-RW DVW28SLC' 'A.06' Removable CD-ROM
3,1,0 301) *
3,2,0 302) *
3,3,0 303) *
3,4,0 304) *
3,5,0 305) *
3,6,0 306) *
3,7,0 307) *
----------> 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.
No target specified, trying to find one...
Using dev=3,0,0.
Enter SCSI device name [3,0,0]:
Trying to open device: '3,0,0'.
Using libscg version 'schily-0.9'
Max DMA buffer size: 131072
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'TEAC '
Identifikation : 'DVD+-RW DVW28SLC'
Revision : 'A.06'
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 additional 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.
First SCSI open is still usable
Ready to start test for succeeded command? Enter <CR> to continue:
**********> Checking for succeeded SCSI command.
Executing 'inquiry' command on Bus 3 Target 0, Lun 0 timeout 40s
CDB: 12 00 00 00 24 00
cmd finished after 0.004s timeout 40s
Inquiry Data : 05 80 05 32 5B 00 00 00 54 45 41 43 20 20 20 20 44 56 44 2B 2D
52 57 20 44 56 57 32 38 53 4C 43 41 2E 30 36
----------> SCSI succeeded command test PASSED
Ready to start test for failing command? Enter <CR> to continue:
**********> Testing for failed SCSI command.
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:
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 0E 00 00 00 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.007s timeout 40s
----------> SCSI failed command test PASSED
Ready to start test for sense data count? Enter <CR> to continue:
**********> Testing for SCSI sense data count.
**********> Testing if at least CCS_SENSE_LEN (18) is supported...
Sense Data: 70 00 02 00 00 00 00 0E 00 00 00 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 0E 00 00 00 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 0E 00 00 00 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 0E 00 00 00 00 3A 00 00 00 FF FF FF FF FF FF
FF