diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2023-12-13 00:34:57 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2023-12-14 11:24:06 +0300 |
commit | 6b9f29b81b155af023da95f560f738f29722b306 (patch) | |
tree | fa31f30d1576fb32ca2c77d3f818688ea1a317fe /arch/x86/entry/entry.S | |
parent | 7a92fc8b4d20680e4c20289a670d8fca2d1f2c1b (diff) | |
download | linux-6b9f29b81b155af023da95f560f738f29722b306.tar.xz |
riscv: Enable pcpu page first chunk allocator
As explained in commit 6ea529a2037c ("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 09cea6195073 ("arm64: support page mapping percpu first chunk
allocator")).
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'arch/x86/entry/entry.S')
0 files changed, 0 insertions, 0 deletions