dma_unmap_single() lacking cache sync on some archs?
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, ...), cache synchronization only happens when dma_map_single() is called (and then irrespective of DMA direction). dma_unmap_single() is a no-op for these archs.
Isn't this a bug?
(Please CC me in responses.)
Signature · 2 lines
Arvid Brodin Enea Services Stockholm AB
Quoted 11 lines · Arvid Brodin
Hi,
I would expect cache synchronization for
DMA_TO_DEVICEandDMA_BIDIRECTIONALwhendma_map_single()is called, and forDMA_FROM_DEVICEandDMA_BIDIRECTIONALwhendma_unmap_single()is called.However, on some architechtures (at least avr32, blackfin, ...), cache synchronization only happens when
dma_map_single()is called (and then irrespective of DMA direction).dma_unmap_single()is a no-op for these archs.Isn't this a bug?
You'd get a better chance to reach your audience by cc'ing respective arch mailing lists and at least the [email protected] ML.
Thanks
Guennadi
Quoted 5 lines
(Please CC me in responses.)
Signature · 2 lines
Arvid Brodin Enea Services Stockholm AB
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/