From: Shawn Jin <shawnxjin@gmail.com>
To: Matt Porter <mporter@kernel.crashing.org>
Cc: ppcembed <linuxppc-embedded@ozlabs.org>
Subject: Re: DMA consistent allocation is limited to 2MB on 2.6.11 for ppc440?
Date: Fri, 20 May 2005 16:51:22 -0700 [thread overview]
Message-ID: <c3d0340b0505201651163b35cb@mail.gmail.com> (raw)
In-Reply-To: <20050520131620.B881@cox.net>
First of all thanks for your attention. :)
> Why are you using consistent memory for your DMA buffers?
Both CPU and IO controller (e.g. FC controller) have to be aware of
changes the other party makes on the data buffer. Some architectures
guarantee this coherence through bus snooping, which ppc440 is
unfortunately lack of. The simplest solution is to use consistent
memory.. On 2.4.x to some extent we don't need worry about how much
consistent memory is available. So the developers used consistent
mappings a lot instead of streaming DMA mappings. We would have been
more conservative to use consistent mappings had we known the
limitation earlier.
> The difference with this implementation is that it doesn't allow for
> arbitrarily huge consistent allocations by default. However, I carefully
> placed a comment at the top to point people to the advanced setup
> menu where they can tune the consistent pool to be larger than the
> 2MB default. You simply have to understand the memory map of your
I noticed your comment about the advanced settings:
CONFIG_CONSISTENT_SIZE and _START. However simply increasing the value
of CONSISTENT_SIZE won't get rid of the limiation. Right? The root
cause is in consistent_pte, which is only one page. It may be good to
have consistent_pte have more than one pages according to the
CONSISTENT_SIZE. Is it a useful fix?
> board port when setting this option. You can break things as with
> other advanced setup menu options.
OK. Have to be very careful here.
Best regards,
-Shawn.
prev parent reply other threads:[~2005-05-20 23:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 0:54 DMA consistent allocation is limited to 2MB on 2.6.11 for ppc440? Shawn Jin
2005-05-19 1:24 ` Eugene Surovegin
2005-05-19 1:52 ` Shawn Jin
2005-05-19 2:09 ` Eugene Surovegin
2005-05-20 18:12 ` Shawn Jin
2005-05-20 20:16 ` Matt Porter
2005-05-20 23:51 ` Shawn Jin [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=c3d0340b0505201651163b35cb@mail.gmail.com \
--to=shawnxjin@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=mporter@kernel.crashing.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).