linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* DMA and caches -- 'correct handling'?
@ 2003-01-03 17:51 Mark Pilon
  0 siblings, 0 replies; only message in thread
From: Mark Pilon @ 2003-01-03 17:51 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org


this is a ppc405 -based controller question but has bearing on
the right way to DMA under linux, in general:

I have an application in which I'll be DMAing several megabytes
from memory into a fifo;  the data are cpu-created so I'd expect
I'd need to flush the data cache prior to starting the DMA.

is this implicitly done by any of the setup & start-dma calls or
should I explicitly do this myself.

also, give the sizeof the source buffer and the smallness of the
405 data cache, I'd expect I should flush the entire cache to
memory (flush pending writes) rather than for the entire address
range of the source buffer.

thoughts?

thanks,

Mark

--
Mark Pilon
Minolta-QMS

P.O. Box 37
325 Dawson County Road 227
Fallon, MT.  59326-0037
1-406-486-5539 (primary voice line)
1-406-853-0433 (cell)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-03 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 17:51 DMA and caches -- 'correct handling'? Mark Pilon

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