Skip to contentSkip to conversation

dma_unmap_single() lacking cache sync on some archs?

DISCUSSION Arvid Brodin 2 participants 2 messages Sep 22, 2011

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 11 lines · Arvid Brodin

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?

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/