• Alexandre Ghiti's avatar
    riscv: Enable pcpu page first chunk allocator · 6b9f29b8
    Alexandre Ghiti authored
    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>
    6b9f29b8
kasan_init.c 13.9 KB