diff options
author | Huang Pei <huangpei@loongson.cn> | 2024-01-27 10:12:21 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2024-01-27 11:07:57 +0100 |
commit | 822df315cc7c85c3c10afcc6408b254a6fa0f166 (patch) | |
tree | 4a9997d54fa138ecd5310d32a8c8ed7cebc7478a /arch/mips/loongson64/numa.c | |
parent | Revert "MIPS: loongson64: set nid for reserved memblock region" (diff) | |
download | linux-822df315cc7c85c3c10afcc6408b254a6fa0f166.tar.xz linux-822df315cc7c85c3c10afcc6408b254a6fa0f166.zip |
MIPS: loongson64: set nid for reserved memblock region
Commit 61167ad5fecd("mm: pass nid to reserve_bootmem_region()") reveals
that reserved memblock regions have no valid node id set, just set it
right since loongson64 firmware makes it clear in memory layout info.
This works around booting failure on 3A1000+ since commit 61167ad5fecd
("mm: pass nid to reserve_bootmem_region()") under
CONFIG_DEFERRED_STRUCT_PAGE_INIT.
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to '')
-rw-r--r-- | arch/mips/loongson64/numa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c index 8f61e93c0c5b..68dafd6d3e25 100644 --- a/arch/mips/loongson64/numa.c +++ b/arch/mips/loongson64/numa.c @@ -132,6 +132,8 @@ static void __init node_mem_init(unsigned int node) /* Reserve pfn range 0~node[0]->node_start_pfn */ memblock_reserve(0, PAGE_SIZE * start_pfn); + /* set nid for reserved memory on node 0 */ + memblock_set_node(0, 1ULL << 44, &memblock.reserved, 0); } } |