From: scarayol@assystembrime.com
To: linux-mm@kvack.org
Subject: Re: mapping large amount of memory on physical addresses
Date: Tue, 12 Apr 2005 08:23:46 +0200 [thread overview]
Message-ID: <OF967F18DF.AC2C3352-ONC1256FE1.0022ECD3@brime.fr> (raw)
Hello,
I wrote 2 drivers very close to the driver /dev/mem in order to write in
the physical memory at specific addresses. For that I use mmap
instruction.
I want to know, if there is a limit for the maximum amount of physical
memory that I can map with a single the mmap instruction.
My platform is a MPC885 (PowerPC) on a MPC885ADS board and I have a 2.4.26
kernel.
Now I map 2 zones of 1MB (first zone at 6MB and the 2nd at 7MB:I have 8MB
on my board), each on the same physical component (to have data
transfertsbetween the two zones). But, in the final application (on our
own card) one zone will represent 2MB for a component of 2MB and and the
other 216 MB for another component of 256MB. So, it will let 40MB for the
kernel, FileSystem, etc.
How can I be sure that linux let me reserve all these physical addresses ?
If I use the command 'mem=6M' in u-boot to force Linux in the first 6M,
the
mem driver accesses don't work any more.
If mmap doesn't work for such an amount of memory (216 MB) how can I do ?
Last question: How could I verify the mapping by a shell command or a
memory dump... ?
Thank you really for your help.
----------------------------------------------------------
Sophie CARAYOL
TECHNOLOGIES & SYSTEMES
50 rue du President Sadate
F - 29337 QUIMPER CEDEX
Tel: +33 2 98 10 30 06
mailto:scarayol@assystembrime.com
----------------------------------------------------------
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next reply other threads:[~2005-04-12 6:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 6:23 scarayol [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-08 16:15 scarayol
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=OF967F18DF.AC2C3352-ONC1256FE1.0022ECD3@brime.fr \
--to=scarayol@assystembrime.com \
--cc=linux-mm@kvack.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