]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm64: mm: reserve hugetlb CMA after numa_init
authorBarry Song <song.bao.hua@hisilicon.com>
Wed, 17 Jun 2020 21:58:28 +0000 (09:58 +1200)
committerWill Deacon <will@kernel.org>
Thu, 18 Jun 2020 09:39:15 +0000 (10:39 +0100)
commit618e07865b7453d02410c1f3407c2d78a670eabb
tree1a1d3df14ba429c319421fa4da4b613f1e086f88
parentb9249cba25a5dce5de87e5404503a5e11832c2dd
arm64: mm: reserve hugetlb CMA after numa_init

hugetlb_cma_reserve() is called at the wrong place. numa_init has not been
done yet. so all reserved memory will be located at node0.

Fixes: cf11e85fc08c ("mm: hugetlb: optionally allocate gigantic hugepages using cma")
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Roman Gushchin <guro@fb.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200617215828.25296-1-song.bao.hua@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/init.c