Thread (9 messages) 9 messages, 4 authors, 2014-10-31
STALE4238d REVIEWED: 5 (5M)

[PATCH 1/3] ARM: Add default SPARSEMEM settings

From: arnd@arndb.de (Arnd Bergmann)
Date: 2014-10-31 20:47:55

On Friday 31 October 2014 13:11:54 Gregory Fong wrote:
On Thu, Sep 11, 2014 at 7:22 PM, Kevin Cernekee [off-list ref] wrote:
quoted
We can still override these settings via mach/memory.h, but let's provide
sensible defaults so that SPARSEMEM is available in the multiplatform
kernels.

Two platforms currently use SECTION_SIZE_BITS < 28, but are expected to
work with 28 (albeit slightly less efficiently if not all banks are
populated):

 - mach-rpc: uses 26 bits.  Based on mach/hardware.h it looks like this
   platform puts RAM at 0x1000_0000 - 0x1fff_ffff, and I/O below
   0x1000_0000.

 - mach-sa1100: uses 27 bits.  mach/memory.h indicates that RAM occupies
   the entire range of 0xc000_0000 - 0xdfff_ffff.

Several platforms need MAX_PHYSMEM_BITS >= 36 so we'll pick that as the
minimum.  Anything higher and we'll fail the SECTIONS_WIDTH + NODES_WIDTH +
ZONES_WIDTH test in <linux/mm.h>.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Acked-by: Gregory Fong <redacted>
I didn't see this patch originally, just saw the reply. The patch looks
good, but it's worth noting in the changelog that rpc and sa1100 will
never have to use the default, because they cannot be part of a multiplatform
kernel, and that is very unlikely to ever change.

Acked-by: Arnd Bergmann <arnd@arndb.de>

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help