All of lore.kernel.org
 help / color / mirror / Atom feed
* videobuf-dma-contig sync question
@ 2009-04-22  9:50 Matthieu CASTET
  2009-04-22 11:31 ` Magnus Damm
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu CASTET @ 2009-04-22  9:50 UTC (permalink / raw)
  To: video4linux-list; +Cc: Guennadi Liakhovetski

Hi,


I don't understand why __videobuf_sync in videobuf-dma-contig isn't a nop.

All the memory allocated by videobuf-dma-contig is coherent memory. And
Documentation/DMA-API.txt seems to imply that this memory is coherent
and doesn't need extra cache operation for synchronization.

Also calling dma_sync_single_for_cpu cause panic on arm for per-device
coherent memory, because the memory isn't in the main memory[1].

Why __videobuf_sync need dma_sync_single_for_cpu ?

Regards,

Matthieu



[1]
void dma_cache_maint(const void *start, size_t size, int direction)
{
    const void *end = start + size;

    BUG_ON(!virt_addr_valid(start) || !virt_addr_valid(end - 1));

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-23  3:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22  9:50 videobuf-dma-contig sync question Matthieu CASTET
2009-04-22 11:31 ` Magnus Damm
2009-04-23  3:45   ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.