linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mark Pilon <mpilon@midrivers.com>
To: "linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: DMA and caches -- 'correct handling'?
Date: Fri, 03 Jan 2003 10:51:25 -0700	[thread overview]
Message-ID: <3E15CD9D.62110C6@midrivers.com> (raw)


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/

                 reply	other threads:[~2003-01-03 17:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E15CD9D.62110C6@midrivers.com \
    --to=mpilon@midrivers.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).