Skip to content
Commit 6b9f29b8 authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Dennis Zhou
Browse files

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: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
parent 7a92fc8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment