[lkml]   [2011]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: dma_unmap_single() lacking cache sync on some archs?
    [Resending with CC to affected parties]


    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.

    See e.g.

    Isn't this a bug?

    (Please CC me in responses.)

    Arvid Brodin
    Enea Services Stockholm AB

     \ /
      Last update: 2011-09-27 14:15    [W:0.042 / U:181.480 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site