Re: [PATCH 1/3] add dma_coherent_write_sync to DMA API

From: Catalin Marinas
Date: Tue Sep 06 2011 - 10:32:13 EST


(coming late to this thread due to holidays)

2011/9/1 Mark Salter <msalter@xxxxxxxxxx>:
> On Thu, 2011-09-01 at 11:57 +0200, MichaÅ MirosÅaw wrote:
>> BTW, if there's no time limit on write buffers flushing, or if write
>> buffers can cause reordering of the writes, then the memory accesses
>> need to be managed just like non-DMA-coherent memory. So what differs
>> then in DMA-coherent vs non-DMA-coherent mappings then?
>
> My understanding is that ordering is preserved, but an ARM guy should
> probably verify that.

On ARMv6 onwards the coherent DMA is Normal Non-cacheable memory and
this is buffered and can be reordered.

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