linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* dma_sync_single_for_cpu takes a really long time
@ 2015-06-28 20:40 Sylvain Munaut
  2015-06-28 22:30 ` Russell King - ARM Linux
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sylvain Munaut @ 2015-06-28 20:40 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,


I'm working on a DMA driver that uses the the streaming DMA API to
synchronize the access between host and device. The data flow is
exclusively from the device to the host (video grabber).

As such, I call dma_sync_single_for_cpu when the hardware is done
writing a frame to make sure that the cpu gets up to date data when
accessing the zone.

However this call takes a _long_ time to complete. For a 6 Megabytes
buffer, it takes about 13 ms which is just crazy ... at that rate it'd
be faster to just read random data from a random buffer to trash the
measly 512k of cache ...

Is there any alternative that's faster when dealing with large buffers ?

(The platform is a Zynq 7000 - Dual Cortex A9).


Cheers,

   Sylvain

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

end of thread, other threads:[~2015-06-29 13:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-28 20:40 dma_sync_single_for_cpu takes a really long time Sylvain Munaut
2015-06-28 22:30 ` Russell King - ARM Linux
2015-06-29  6:07   ` Sylvain Munaut
2015-06-29  9:08     ` Russell King - ARM Linux
2015-06-29  9:36       ` Catalin Marinas
2015-06-29 12:30       ` Sylvain Munaut
2015-06-29 13:29         ` Russell King - ARM Linux
2015-06-29  9:09   ` Catalin Marinas
2015-06-29  6:33 ` Mike Looijmans
2015-06-29 13:06   ` Sylvain Munaut
2015-06-29 13:24     ` Mike Looijmans
2015-06-29 10:25 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).