[RFC] dmaengine: omap-dma: Allow DMA controller to prefetch data
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Nov 19 07:16:29 EST 2012
On Mon, Nov 19, 2012 at 11:00:15AM +0100, Peter Ujfalusi wrote:
> When we have prefetch enabled we tend to resume after pause from a slightly
> off place than when the prefetch is disabled.
That is exactly what I was expecting would happen having read how the
DMA works.
With memory->device transfers, if you stop them (there is no pause), the
DMA hardware discards its buffers. So if you allow it to prefetch data,
you're going to throw more data away when you stop it.
For device->memory transfers, at least it will write the contents back to
memory before stopping.
More information about the linux-arm-kernel
mailing list