Re: [2.6.13] pktcdvd: IO-errors

From: Peter Osterlund
Date: Mon Sep 26 2005 - 13:37:18 EST


Guennadi Liakhovetski <g.liakhovetski@xxxxxx> writes:

> On Sun, 25 Sep 2005, Peter Osterlund wrote:
>
> > Guennadi Liakhovetski <g.liakhovetski@xxxxxx> writes:
> >
> > > Just tried pktcdvd on 2.6.13.1. The setup went fine:
...
> > > But, as I tried to copy some files to the CD-RW, it first went ok, but
> > > then produced the following:
> > >
> > > 20:41:01: ide-cd: cmd 0x2a timed out
> > > ^^^^ ---------> write10
> > > 20:41:01: hdc: DMA timeout retry
> > > 20:41:01: hdc: timeout waiting for DMA
...
> > > the "cp" finished earlier, I did a sync, and it also finished. The good
> > > parts - no Oops, no process stuck in "D", tha bad parts - it didn't
> > > work:-), the IDE LED stays on and I cannot eject the CD. The CD-R is a
> > > BenQ 52x32x52 Seamless Link alone on ide1, the disk does indeed say
> > > 4x-10x. The cd-writer works mostly... if I am gentle to it - I usually
> > > burn at 32x even if the media says 52x... Is it just a hw-failure or a
> > > driver bug?
> >
> > Did it ever work with this hardware, for example using 2.6.12?
>
> It was the first time I ever tried it. Now as you asked I also tried
> 2.6.12-rc5. Surprise, surprise - it worked... But very strange. First, I
> did
>
> # time cp -a source /cdrom/ ; time sync
>
> It took a few minutes to copy 190MB, but it finished successfully. Now to
> the strange things: even after it finished the LED on the writer continued
> flashing red... Only after I performed a read access to /cdrom/ it
> stopped. Actually, just wrote a small file to it, did a sync, sync
> returned, LED is flashing red. Now I cannot stop it by reading. Only
> unmounting it helped.
...
> Besides, it works under 2.6.12-rc5...

What gcc versions were used when compiling the kernels? (Boot both
kernels, run "cat /proc/version" to find out.)

I just discovered that the driver doesn't work correctly on my laptop
if I use "gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)" from Fedora
Core 4. "pktsetup 0 /dev/hdc ; cat /proc/driver/pktcdvd/pktcdvd0"
OOPSes. If I use gcc32 it does seem to work though.

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