public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@gmail.com>
To: linux-os@analogic.com
Cc: Bas Vermeulen <bvermeul@blackstar.xs4all.nl>,
	linux-kernel@vger.kernel.org
Subject: Re: NOMMU - How to reserve 1 MB in top of memory in a clean way
Date: Wed, 06 Apr 2005 16:05:51 +0100	[thread overview]
Message-ID: <tnxoecs9c8g.fsf@arm.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0504061040420.22273@chaos.analogic.com> (Richard B. Johnson's message of "Wed, 6 Apr 2005 10:53:07 -0400 (EDT)")

"Richard B. Johnson" <linux-os@analogic.com> wrote:
> 1 Megabyte of DMA RAM should be available using conventional
> means __get_dma_pages(GFP_KERNEL, 0x100) soon after boot.

The problem is that he needs to get this memory from the last MB only,
__get_dma_pages would return pages from ZONE_DMA but this is usually
at the beginning of RAM.

> Or just use mem= on the boot command line. This will tell
> the kernel the extent of memory to use. Any RAM after that
> is available. Your driver can access kernel variable, "num_physpages"
> to find the last page it is supposed to use.

But this means that you would need to modify all the drivers that need
DMA memory. Modifying the zones is actually transparent for the
drivers.

--
Catalin


  reply	other threads:[~2005-04-06 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  9:50 NOMMU - How to reserve 1 MB in top of memory in a clean way Bas Vermeulen
2005-04-06 13:26 ` Catalin Marinas
2005-04-06 14:53   ` Richard B. Johnson
2005-04-06 15:05     ` Catalin Marinas [this message]
2005-04-06 15:13     ` Bas Vermeulen
2005-04-06 15:16   ` Bas Vermeulen
2005-04-06 15:56     ` Catalin Marinas

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=tnxoecs9c8g.fsf@arm.com \
    --to=catalin.marinas@gmail.com \
    --cc=bvermeul@blackstar.xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.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