Re: DMA API issues

From: David Brownell
Date: Fri Jun 18 2004 - 16:20:11 EST


James Bottomley wrote:
On Fri, 2004-06-18 at 14:44, Ian Molton wrote:

For example, if usbaudio uses usb_buffer_alloc to stream data,
that eliminates dma bouncing. That's dma_alloc_coherent at
its core ... it should allocate from that 32K region.

Agreed.


There are complications to this: not all platforms can access PCI memory
directly. That's why ioremap and memcpy_toio and friends exist. What
should happen on these platforms?

I'm not following you. This isn't using the PCI DMA calls.
These dots don't connect: different hardware needs different
solutions. How would those calls make dma_alloc_coherent work?

- Dave

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