mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bas Vermeulen <bvermeul@blackstar.xs4all.nl>
To: linux-kernel@vger.kernel.org
Subject: NOMMU - How to reserve 1 MB in top of memory in a clean way
Date: Wed, 06 Apr 2005 11:50:28 +0200	[thread overview]
Message-ID: <1112781027.2687.6.camel@laptop.blackstar.nl> (raw)

Hey all,

I am currently working on the bfinnommu linux port for the BlackFin 533.
I need to grab the top 1 MB of memory so I can give it out to drivers
that need non-cached memory for DMA operations.

I've tried the following approaches (which each failed, in different
ways):

1. Allocate 1 MB in ZONE_DMA. This doesn't work because ZONE_DMA needs
to be in the bottom of memory (and I couldn't find a way around that),
and needs to be a minimum of 4 MB.
2. Create ZONE_NORMAL with all memory in it, but add a hole of 1 MB.
This crashes in the swapper somewhere.

What I want is a way to cleanly grab all pages in the top megabyte of
memory, so I can give them out in an implementation (to be written) of
dma_alloc_coherent and friends. That top megabyte would be set to
non-cached in the software cache manager.

If anyone can point me in the right direction, that would be great.

Regards,

Bas Vermeulen


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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06  9:50 Bas Vermeulen [this message]
2005-04-06 13:26 ` Catalin Marinas
2005-04-06 14:53   ` Richard B. Johnson
2005-04-06 15:05     ` Catalin Marinas
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=1112781027.2687.6.camel@laptop.blackstar.nl \
    --to=bvermeul@blackstar.xs4all.nl \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®