linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Chris Zimman <chris@cryptoapps.com>
To: "Johnson, Stephen" <stevebj@artesyncp.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: kmalloc vs pci_alloc_consistent
Date: Fri, 18 Jul 2003 10:33:57 -0500	[thread overview]
Message-ID: <20030718153357.GA9047@dingdong.cryptoapps.com> (raw)
In-Reply-To: <F9102D41F595D311ACA7009027DE2C840527B4D7@c3po.heurikon.com>


On Fri, Jul 18, 2003 at 09:56:35AM -0500, Johnson, Stephen wrote:
> I read one thing noted on a man page for kmalloc that should be highlighted.
> "the GFP_DMA flag may be set to indicate the memory must be suitable for
> DMA. ***This can mean different things on different platforms.*** For
> example, on x86, it means that the memory must come from the first 16MB."

Just to clarify -- the 16MB lower memory limit is only true on x86 when doing
DMA via ISA.  PCI does not have this problem.

In addition to making sure you get pages that are usable for DMA,
pci_alloc_consistent() also takes care of cache coherency issues.

--Chris

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

  reply	other threads:[~2003-07-18 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18 14:56 kmalloc vs pci_alloc_consistent Johnson, Stephen
2003-07-18 15:33 ` Chris Zimman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-18 13:34 Johnson, Stephen
2003-07-18 16:13 ` Matt Porter

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=20030718153357.GA9047@dingdong.cryptoapps.com \
    --to=chris@cryptoapps.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=stevebj@artesyncp.com \
    /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).