linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: "Petersen, David (MED, GEMS-IT)" <David.Petersen@med.ge.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: m8260_cpm_hostalloc() data reads incorrect data
Date: Fri, 07 Nov 2003 11:26:43 -0500	[thread overview]
Message-ID: <3FABC7C3.8060703@embeddededge.com> (raw)
In-Reply-To: B1243F436404D511A5CF009027E705DA148191C2@uswaumsx09medge.med.ge.com


Petersen, David (MED, GEMS-IT) wrote:

 > ....However the
> data that is read from the buffer is incorrect.  As a sanity check, I
> allocated my buffers using m8260_cpm_dpalloc() and I then read the correct
> data.

It doesn't sound like you are properly setting up the device with
the 'global' memory access flags, which cause the CPM to perform
cache coherent DMA.

> ....It is unclear to me how this memory can be
> in a PAGE_NO_CACHE region as it needs to be for the CPM.

The caches on the 82xx/603e cores are cache coherent with the CPM,
when the devices are configured properly.  If you notice, all of
the exisiting drivers enable cache coherent DMA from the CPM.

The flexibility of the CPM allows non-coherent options, but the
current implementation of VM on traditional PPC cores (which are
always cache coherent) doesn't provide for the creation of
such memory regions, which really aren't necessary.




	-- Dan


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

      reply	other threads:[~2003-11-07 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-06 14:52 m8260_cpm_hostalloc() data reads incorrect data Petersen, David (MED, GEMS-IT)
2003-11-07 16:26 ` Dan Malek [this message]

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=3FABC7C3.8060703@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=David.Petersen@med.ge.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).