riscv: Enable pcpu page first chunk allocator
As explained in commit 6ea529a2 ("percpu: make embedding first chunk allocator check vmalloc space size"), the embedding first chunk allocator needs the vmalloc space to be larger than the maximum distance between units which are grouped into NUMA nodes. On a very sparse NUMA configurations and a small vmalloc area (for example, it is 64GB in sv39), the allocation of dynamic percpu data in the vmalloc area could fail. So provide the pcpu page allocator as a fallback in case we fall into such a sparse configuration (which happened in arm64 as shown by commit 09cea619 ("arm64: support page mapping percpu first chunk allocator")). Signed-off-by:Alexandre Ghiti <alexghiti@rivosinc.com> Signed-off-by:
Dennis Zhou <dennis@kernel.org>
Showing
Please register or sign in to comment