Re: ide-cd turning off DMA when verifying DVD-R
From: Bartlomiej Zolnierkiewicz
Date: Fri Jan 13 2006 - 04:18:17 EST
Hi,
On 1/13/06, Volker Kuhlmann <list0570@xxxxxxxxxxxxxxx> wrote:
> On Fri 13 Jan 2006 17:40:33 NZDT +1300, Robert Hancock wrote:
>
> > I'm thinking the IDE code is too aggressive in assuming that the failure
> > is because of a DMA problem and disabling it.. Most likely all that's
> > happening is the drive is taking a long time to complete the current
> > command.
What actually happened is that normal command timed out
and because of that driver reset the device which caused
it to loose DMA:
->ide_atapi_error()
->ide_do_reset()
->pre_reset()
->check_dma_crc()
->__ide_dma_off()
Somebody needs to investigate why __ide_dma_off() is called
et all and if we need to restore DMA after reset (don't count ATM
on me, I'm buried by bugreports). Ondrej, could you fill the bug at
http://bugzilla.kernel.org so we don't lose it?
> Yes! Each time when inserting a faulty CD/DVD, or whenever the drive
> gives read errors for whatever reason, the kernel decides to turn DMA
> off and try again, fail (again) and leave DMA off. And this after having
> successfully used DMA before - so it's not that the device is
> DMA-incapable.
This is a separate issue and is related to retrying failed DMA
commands. Driver doesn't know what was the cause of the timeout
and it shouldn't disable DMA for the device (only the failed request
should be retried in PIO mode).
Any takers? :)
PS1 please don't trim cc: list
PS2 please use linux-ide@xxxxxxxxxxxxxxx for ATA problem
Thanks,
Bartlomiej
-
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/