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)
commitbb4e6e85daa52a9f6210fa06a5ec6269598a202b
tree4ffffa2e95e5ad28c35762da8d9d7bcafce57052
parent7c0fa0f24bb76ce3d67be7f737b799846a04570f
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