Re: RFC non barrier versions of dma_map functions

From: FUJITA Tomonori
Date: Fri Jan 08 2010 - 03:53:23 EST


On Mon, 04 Jan 2010 15:28:33 -0800
Abhijeet Dharmapurikar <adharmap@xxxxxxxxxxxxxx> wrote:

> This is a request for extending the DMA api for efficient handling of
> multiple buffers or scatter gather mapping/unmapping operations.
>
> I am based on an ARMv7 device and we have a situation where we need
> to dma map multiple cached buffers for a single dma transaction.
>
> The current DMA api suggests the use of dma_map_single/
> dma_unmap_single for cache consistency. On ARMv7 it performs the
> necessary cache-operations and calls data sync barrier instruction
> (DSB). In our case we would be executing multiple DSB instructions
> before starting the dma operation - we need memory to be consistent
> only after we map the last buffer.

dma_map_sg? dma_map_sg requires the buffers to be consistent only
after it maps the last buffer, I think (I guess that you mean
'consistent' buffer is 'DMA ready' wrt cache).
--
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/