From: Matt Porter <mporter@kernel.crashing.org>
To: Xupei Liang <tliang@yahoo.com>
Cc: Matt Porter <mporter@kernel.crashing.org>,
"linuxppc-embedded@lists.linuxppc.org"
<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: "alloc_area_pte: page already exists"
Date: Mon, 21 Jul 2003 20:10:37 -0700 [thread overview]
Message-ID: <20030721201037.A16523@home.com> (raw)
In-Reply-To: <20030722020149.35332.qmail@web11005.mail.yahoo.com>; from tliang@yahoo.com on Mon, Jul 21, 2003 at 07:01:49PM -0700
On Mon, Jul 21, 2003 at 07:01:49PM -0700, Xupei Liang wrote:
>
> Matt,
>
> It is a custom board with 256MB of memory.
Ahh, ok. So, what you've done is misconfigured a mapping in
your custom board port. It's reporting that you already have
a pte allocated in the vmalloc area which must be untouched
so the VM can allocate memory at runtime.
Usually, this is the result of an errant io_block_map entry
which overlaps the vmalloc area. Examine the VMALLOC_START
macro to see how the start of vmalloc space is calculated.
In your case, (256MB of RAM) the start of vmalloc space will
be at 0xd1000000 assuming a standard PAGE_OFFSET of 0xc0000000.
If you've mapped something near that virtual address or somewhere
close above that address then you need to move it. How much
vmalloc space you need to reserve depends solely on your specific
application.
In most cases, it's smarter to never use io_block_map and to
let ioremap() create mappings dynamically so this sort of thing
doesn't happen. Most modern in-kernel ports try to not use
io_block_map if at all possible.
Regards,
--
Matt Porter
mporter@kernel.crashing.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-07-22 3:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-22 1:06 "alloc_area_pte: page already exists" Xupei Liang
2003-07-22 1:28 ` Matt Porter
2003-07-22 2:01 ` Xupei Liang
2003-07-22 3:10 ` Matt Porter [this message]
2003-07-23 1:18 ` Xupei Liang
-- strict thread matches above, loose matches on Subject: below --
2003-07-29 6:23 Kalpesh Jasapara
2003-07-29 15:15 ` Matt Porter
2003-07-31 18:48 ` Xupei Liang
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=20030721201037.A16523@home.com \
--to=mporter@kernel.crashing.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=tliang@yahoo.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).