Re: USB/hal: USB open() broken? (USB CD burner underruns, USB HDD hard resets)

From: Andreas Mohr
Date: Wed Jun 21 2006 - 05:11:15 EST


Hi,

On Tue, Jun 20, 2006 at 01:37:41AM -0700, Andrew Morton wrote:
> On Mon, 19 Jun 2006 10:21:54 +0200
> Andreas Mohr <andi@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> > I'm having severe issues with cdrecord aborting with "buffer underrun"
> > message, *always*. Problem nailed, see below.
>
> [hald polling causes cdrecord to go bad on a USB CD drive]
>
> One possible reason is that we're shooting down the device's pagecache by
> accident as a result of hald activity. This shouldn't happen, but still.
> Could you please do
>
> `watch -n1 cat /proc/meminfo' and/or `vmstat 1'
>
> then run cdrecord
>
> then wait a bit
>
> then run hald, see if the amount of pagecache (/proc/meminfo:Buffers or
> /proc/meminfo:Cached) suddenly decreases.
>
> If the answer is "no" then I guess there's some unpleasant interaction
> happening at the USB level

"no":
both values don't show any noticeable decrease whatsoever upon a second
parallel open() of the device which makes burning abort.

It seems to be a USB thingy, as I will show in my next mail.

Andreas Mohr
-
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/