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

Re: cdrecord and "get performance" scsi errors



"Giulio Orsero" <giulioo@gmail.com> wrote:

> On 5/16/07, Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de> wrote:
>
> > What would make sense is to try if there is a bug in the ATAPI <-> USB
> > adaprot that dauses a DMA error by trying to
> > reduce the 64 == 100 dec. to a lower number and check again.
>
> I assume you mean to reduce that number in order for cdrecord to try
> working around a bug in Linux atapi<->USB.
> Where in the cdrecord sources I find that 64 to be changed?

I am speaking about the converter hardware that may be defective.

scsi_mmc.c:

        fillbytes((caddr_t) buffer, sizeof (buffer), '\0'); 
        if (scsi_get_performance(scgp, buffer, 104, 100, 0x03, 0) < 0) 
                return (-1); 
 

if you reduce the 4th parameter, you need to also reduce the DMA size

the furmula is here:

if (scsi_get_performance(scgp, buffer, 8+16*i, i, 0x00, 0x04) < 0) 

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de                (uni)  
       schilling@fokus.fraunhofer.de     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily



Reply to: