]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Adjust vmalloc region size based upon available virtual address bits.
authorDavid S. Miller <davem@davemloft.net>
Sat, 27 Sep 2014 18:05:21 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Oct 2014 23:53:40 +0000 (16:53 -0700)
commit09a24dc4f66dbf521ac51e0edbf3d12a65a612d0
tree4ffffa2e95e5ad28c35762da8d9d7bcafce57052
parent62f05307852d64e8824c72144948fe863733e158
sparc64: Adjust vmalloc region size based upon available virtual address bits.

In order to accomodate embedded per-cpu allocation with large numbers
of cpus and numa nodes, we have to use as much virtual address space
as possible for the vmalloc region.  Otherwise we can get things like:

PERCPU: max_distance=0x380001c10000 too large for vmalloc space 0xff00000000

So, once we select a value for PAGE_OFFSET, derive the size of the
vmalloc region based upon that.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
arch/sparc/include/asm/page_64.h
arch/sparc/include/asm/pgtable_64.h
arch/sparc/kernel/ktlb.S
arch/sparc/mm/init_64.c