Re: pktcdvd DVD+RW always writes at max drive speed (not media speed)

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

 



[email protected] writes:

> Peter Osterlund <[email protected]> writes:
>   > 
>   > [email protected] writes:
>   > 
>   > > In drivers/block/pktcdvd.c it appears that in the case of DVD
>   > > rewriting, pkt_open_write always sets the write speed to pkt_get_max_speed
>   > > (the maximum writing speed reported by the drive). 
>   > > 
>   > > In my case, I have a new drive capable of 8x re-writing. However, all of
>   > > my existing media is rated for only 4x rewrite speed. 
>   > > 
>   > > When attempting to rw mount these disks, pktcdvd reports:
>   > > 
>   > > Feb 18 00:09:52 ever kernel: pktcdvd: write speed 11080kB/s
>   > > Feb 18 00:09:54 ever kernel: pktcdvd: 54 01 00 00 00 00 00 00 00 00 00 00 -
>   > > sense 00.54.9c (No sense)
>   > > Feb 18 00:09:54 ever kernel: pktcdvd: pktcdvd0 Optimum Power Calibration failed
>   > > 
>   > > And then of course a huge heap of I/O errors on the disk. 
>   > 
>   > Have you verified that this is caused by the speed setting, ie does it
>   > work correctly if you hack the driver to write at 4x speed?
> 
> Correct. Adding a hard-coded manual setting of write_speed = 5540 to
> pkt_open_write results in functional operation (at least with 4x rated
> DVD+RW media).
> 
> Obviously, this particular drive is perfectly happy to try to write at over
> the rated media speed if it is asked to. I can't fault the manufacturer for
> this, for I generally like the idea of letting the user decide instead of
> imposing hardware/firmware fixed limits. 

The Mt. Fuji specification would put the blame on the manufacturer.
>From the description of the "set cd speed" command:

        If the Logical Unit is requested to write at the speed which
        is not listed in the Logical Unit Write Speed Performance
        Descriptor, the Logical Unit shall select any slower Logical
        Unit Write Speed. This condition is not regarded as an error
        condition.

However, the specification doesn't matter if following it blindly
makes real hardware fail. I don't think it would be that hard to get
the maximum DVD media speed from the drive and use that instead of the
maximum drive speed.

-- 
Peter Osterlund - [email protected]
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux