Re: cdrecord and "get performance" scsi errors
On 5/17/07, Giulio Orsero <giulioo@gmail.com> wrote:
On 5/16/07, Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de> wrote:
> Try first with a low number (e.g. 4), use the formula
> 8+16*i and you get a DMA Size of 72
I have to use 2 to avoid the error
if (scsi_get_performance(scgp, buffer, 8+16*2, 2, 0x03, 0) < 0)
BTW, all this was on kernel.org 2.4.33 with LG E10L USB.
On 2.4.32 (I don't thikn this is much different from 2.4.33, I cannot
upgrade that system since it's remote) with LG 2466D USB I have to use
1 instead of 2, moreover this has other issues and cannot write DVD-RW
(DVD+RW are ok)
[DVD-RW is ok on E10L]:
# /tmp/cdrecord dev=$cddev -v -data blank=fast
Cdrecord-ProDVD-Clone 2.01.01a26 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jör
g Schilling
TOC Type: 1 = CD-ROM
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Linux sg driver version: 3.1.25
/tmp/cdrecord: Warning Linux Bus mapping botch.
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 : 'DVDRRW GSA-2166D'
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD-RW sequential recording
Profile: DVD-RAM
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential recording (current)
Profile: DVD-RW restricted overwrite (current)
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
GIULIO get_perf: 1
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags : DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1409024 = 1376 KB
Drive pbuf size: 134217728 = 131072 KB
/tmp/cdrecord: Input/output error. read buffer: scsi sendcmd: no error
CDB: 3C 00 00 00 00 00 00 FC 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.002s timeout 100s
Current Secsize: 2048
/tmp/cdrecord: Input/output error. read disk info: scsi sendcmd: no error
CDB: 51 00 00 00 00 00 00 00 2C 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.003s timeout 240s
/tmp/cdrecord: Cannot get disk type.
# /tmp/cdrecord dev=$cddev -minfo
Cdrecord-ProDVD-Clone 2.01.01a26 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jör
g Schilling
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Linux sg driver version: 3.1.25
/tmp/cdrecord: Warning Linux Bus mapping botch.
Using libscg version 'schily-0.9'.
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'DVDRRW GSA-2166D'
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
GIULIO get_perf: 1
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags : DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO
/tmp/cdrecord: Input/output error. read buffer: scsi sendcmd: no error
CDB: 3C 00 00 00 00 00 00 FC 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.002s timeout 100s
/tmp/cdrecord: Input/output error. read disk info: scsi sendcmd: no error
CDB: 51 00 00 00 00 00 00 00 2C 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.003s timeout 240s
/tmp/cdrecord: Cannot get disk type.
--
giulioo@pobox.com
Reply to: