linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Callebaut Benoit <callebaut@mailandnews.com>
To: linuxppc-embedded mailing list <linuxppc-embedded@lists.linuxppc.org>
Subject: setting caching properties of pte entries
Date: Wed, 11 Jun 2003 11:45:00 -0400	[thread overview]
Message-ID: <3EEC1B10@mailandnews.com> (raw)


I,
To avoid cache problem when doing dma transfer on a MPC8245 I want to set
myself the WIMG flags of the pte entry for a mapped block of memory.
Where can I do this. I don't find the code responsible to create the pte and
to set those flags for the MPC8245.

The purpose of this is to do PowerPC initiated DMA on pre-allocated buffers.
And I have some problems with datas not well written sometime whith
copy_from_user.
Can this be related to the use of get_free_page instead of kmalloc ?

Or does someone have an idea to ensure cache coherency for the DMA transfer
without using bus snooping if possible. Like a manual management of the cache
(using flush_dcache_range and invalidate_dcache_range for example)

Thanks,
Benoit Callebaut


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

                 reply	other threads:[~2003-06-11 15:45 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=3EEC1B10@mailandnews.com \
    --to=callebaut@mailandnews.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).