Re: dma_unmap_single() lacking cache sync on some archs?

2011-09-27 Thread Arvid Brodin
[Resending with CC to affected parties] Hi, I would expect cache synchronization for DMA_TO_DEVICE and DMA_BIDIRECTIONAL when dma_map_single() is called, and for DMA_FROM_DEVICE and DMA_BIDIRECTIONAL when dma_unmap_single() is called. However, on some architechtures (at least avr32, blackfin,

Re: dma_unmap_single() lacking cache sync on some archs?

2011-09-27 Thread Håvard Skinnemoen
Hi, On Tue, Sep 27, 2011 at 5:13 AM, Arvid Brodin arvid.bro...@enea.com wrote: [Resending with CC to affected parties] Hi, I would expect cache synchronization for DMA_TO_DEVICE and DMA_BIDIRECTIONAL when dma_map_single() is called, and for DMA_FROM_DEVICE and DMA_BIDIRECTIONAL when

Re: dma_unmap_single() lacking cache sync on some archs?

2011-09-27 Thread Arnd Bergmann
On Tuesday 27 September 2011 09:55:02 Håvard Skinnemoen wrote: On Tue, Sep 27, 2011 at 5:13 AM, Arvid Brodin arvid.bro...@enea.com wrote: [Resending with CC to affected parties] Hi, I would expect cache synchronization for DMA_TO_DEVICE and DMA_BIDIRECTIONAL when dma_map_single() is