riscv: Support allocating gigantic hugepages using CMA
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 30 Jul 2021 12:48:41 +0000 (20:48 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 14 Aug 2021 04:33:54 +0000 (21:33 -0700)
commit8ba1a8b77ba1eb3aef441ed2caf28ab2b1261f5f
tree5a6d9c34e704f2af9542ad72f0292b2ded901859
parentfb31f0a499332a053477ed57312b214e42476e6d
riscv: Support allocating gigantic hugepages using CMA

This patch adds support to allocate gigantic hugepages using CMA by
specifying the hugetlb_cma= kernel parameter.  This is only supported on
RV64.

Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c