File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -404,11 +404,6 @@ void __init arm64_memblock_init(void)
404
404
high_memory = __va (memblock_end_of_DRAM () - 1 ) + 1 ;
405
405
406
406
dma_contiguous_reserve (arm64_dma32_phys_limit );
407
-
408
- #ifdef CONFIG_ARM64_4K_PAGES
409
- hugetlb_cma_reserve (PUD_SHIFT - PAGE_SHIFT );
410
- #endif
411
-
412
407
}
413
408
414
409
void __init bootmem_init (void )
@@ -424,6 +419,16 @@ void __init bootmem_init(void)
424
419
min_low_pfn = min ;
425
420
426
421
arm64_numa_init ();
422
+
423
+ /*
424
+ * must be done after arm64_numa_init() which calls numa_init() to
425
+ * initialize node_online_map that gets used in hugetlb_cma_reserve()
426
+ * while allocating required CMA size across online nodes.
427
+ */
428
+ #ifdef CONFIG_ARM64_4K_PAGES
429
+ hugetlb_cma_reserve (PUD_SHIFT - PAGE_SHIFT );
430
+ #endif
431
+
427
432
/*
428
433
* Sparsemem tries to allocate bootmem in memory_present(), so must be
429
434
* done after the fixed reservations.
You can’t perform that action at this time.
0 commit comments