mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: "Cestonaro,
	Thilo (external)"  <Thilo.Cestonaro.external@fujitsu-siemens.com>,
	linux-kernel@vger.kernel.org
Subject: Re: How to guarantee that kmalloc returns an address below 4GB
Date: Thu, 17 May 2007 11:46:58 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0705171145330.3010@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <464B02FF.1060000@s5r6.in-berlin.de>

On Wed, 16 May 2007, Stefan Richter wrote:

> Cestonaro, Thilo (external) wrote:
> > is there an option for kmalloc, which I can use to allocate
> > a buffer which is in physical memory placed below 4GB?
> > Not in a remapped area.
> 
> GFP_DMA32

Nope. There are no general slabs available for DMA32.

You could use a dma slab by specifying GFP_DMA. However, on i386 and 
x86_64 this will get you memory in the precious first 16MB. On IA64 and 
other platforms you will get memory < 4GB.

Another option is to use the page allocator and specify GFP_DMA32.


      reply	other threads:[~2007-05-17 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16  8:30 Cestonaro, Thilo (external)
2007-05-16 13:11 ` Stefan Richter
2007-05-17 18:46   ` Christoph Lameter [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=Pine.LNX.4.64.0705171145330.3010@schroedinger.engr.sgi.com \
    --to=clameter@sgi.com \
    --cc=Thilo.Cestonaro.external@fujitsu-siemens.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefanr@s5r6.in-berlin.de \
    /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

all inboxes | Powered by JetHome®