linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* non barrier versions of dma_map functions
@ 2009-12-07 19:37 adharmap at codeaurora.org
  2009-12-07 19:35 ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: adharmap at codeaurora.org @ 2009-12-07 19:37 UTC (permalink / raw)
  To: linux-arm-kernel

We have a situation where we need to dma map multiple cached buffers for a
single dma transaction.

The current DMA api suggests the use of dma_map_single for cache
consistency. On ARMv7 it performs the necessary cache-operations and calls
data sync barrier instruction (DSB). In our case we would be executing
multiple DSB instruction before starting the dma operation - we need
memory to be consistent only after we map the last buffer.

I am thinking we could define "no barrier" version's of all the mapping
functions and then a barrier function that results in DSB before the dma
is started.

Requesting alternative ideas or code design to get the desired nonbarrier
versions of the mapping functions.

Abhijeet Dharmapurikar

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

end of thread, other threads:[~2009-12-10 19:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 19:37 non barrier versions of dma_map functions adharmap at codeaurora.org
2009-12-07 19:35 ` Russell King - ARM Linux
2009-12-10  0:32   ` Abhijeet Dharmapurikar
2009-12-10  9:39     ` Catalin Marinas
2009-12-10 18:16       ` Abhijeet Dharmapurikar
2009-12-10 19:08         ` Russell King - ARM Linux

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).