]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:10:57 +0000 (15:10 +0100)
commita31c967b2a9e869a12ee44f8f3aaf77901e206ee
treeedb4756a7cad5cb8cb4cb0e37b8d18fd6f817165
parent7f3fde55e3ad473a141dd19ae1baf31f81798d92
sparc64: Adjust vmalloc region size based upon available virtual address bits.

[ Upstream commit bb4e6e85daa52a9f6210fa06a5ec6269598a202b ]

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