]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] add support for physical memory > 4TB
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Nov 2011 10:19:16 +0000 (11:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Nov 2011 10:19:17 +0000 (11:19 +0100)
commit1e2b12774b132f8d233e740978c83cc91bf7da28
tree4cc4c75d5548a21c4c6060b14b4fd9a0d3163ac5
parent39bf88be00e45f9758b75ce08d19300e91469aa4
[S390] add support for physical memory > 4TB

The kernel address space of a 64 bit kernel currently uses a three level
page table and the vmemmap array has a fixed address and a fixed maximum
size. A three level page table is good enough for systems with less than
3.8TB of memory, for bigger systems four page table levels need to be
used. Each page table level costs a bit of performance, use 3 levels for
normal systems and 4 levels only for the really big systems.
To avoid bloating sparse.o too much set MAX_PHYSMEM_BITS to 46 for a
maximum of 64TB of memory.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/include/asm/sparsemem.h
arch/s390/kernel/setup.c
arch/s390/mm/init.c
arch/s390/mm/pgtable.c