From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] Prohibit ioremap() on kernel managed RAM
Date: Sat, 1 May 2010 10:19:43 +0100 [thread overview]
Message-ID: <20100501091943.GA12172@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02C5217DFF@dbde02.ent.ti.com>
On Sat, May 01, 2010 at 11:54:55AM +0530, Shilimkar, Santosh wrote:
> This seems to be good solution if it's doable. Reserving memory in the boot
> is not so flexible and might end up in waste of memory.
However, allocating large pages (larger than 4K) is unreliable due to
fragmentation. There's two factors here - the larger the allocation,
and the longer the system has been running, the more likely such an
allocation is to fail.
Since we'd need to enforce a minimum allocation size of 1MB in order to
unmap the direct mapping, we're asking for an order-8 page - and I think
you'll find that'll be fairly unreliable if you want to keep allocating
and freeing it.
The DMA allocators can handle anything up to MAX_ORDER-order allocations
provided it has enough virtual memory space available to it - so if you
want to go down this route, you might as well switch to using that.
(However, eventually the DMA allocator also needs fixing to avoid the
dual-mappings that it creates.)
next prev parent reply other threads:[~2010-05-01 9:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 14:40 [RFC] Prohibit ioremap() on kernel managed RAM Russell King
2010-04-30 16:33 ` George G. Davis
2010-04-30 16:38 ` Catalin Marinas
2010-05-01 6:24 ` Shilimkar, Santosh
2010-05-01 9:19 ` Russell King - ARM Linux [this message]
2010-05-03 15:59 ` George G. Davis
2010-05-04 15:29 ` Catalin Marinas
2010-05-05 16:23 ` George G. Davis
2010-05-05 16:30 ` Russell King - ARM Linux
2010-05-05 16:33 ` George G. Davis
2010-04-30 18:19 ` Russell King - ARM Linux
2010-04-30 22:30 ` George G. Davis
-- strict thread matches above, loose matches on Subject: below --
2010-04-08 9:48 Russell King - ARM Linux
2010-04-23 14:15 ` Catalin Marinas
2010-04-23 14:27 ` Shilimkar, Santosh
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=20100501091943.GA12172@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).