]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson64: Fix boot failure after dropping boot_mem_map
authorHuacai Chen <chenhc@lemote.com>
Fri, 27 Sep 2019 10:27:42 +0000 (18:27 +0800)
committerPaul Burton <paul.burton@mips.com>
Mon, 30 Sep 2019 22:18:22 +0000 (15:18 -0700)
commit67f4fe081199f3016a12c67f8a5bdd1c46f60f3a
tree07620843a196adebdd8dee23a25db5c29425a3a0
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
MIPS: Loongson64: Fix boot failure after dropping boot_mem_map

From commit 1f4f7deaef04 ("MIPS: init: Drop boot_mem_map") onwards,
add_memory_region() is handled by memblock_add()/memblock_reserve()
directly and all bootmem API should be converted to memblock API.
Otherwise it will lead to boot failure, especially in the NUMA case
because add_memory_region lose the node_id information.

Fixes: 1f4f7deaef04f098b23bd9b6 ("MIPS: init: Drop boot_mem_map")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
[paul.burton@mips.com:
  - Invert node_id check to de-indent the switch statement & avoid lines
    over 80 characters.
  - Fixup commit reference in commit message.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-mips@vger.kernel.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: Huacai Chen <chenhuacai@gmail.com>
arch/mips/loongson64/common/mem.c
arch/mips/loongson64/loongson-3/numa.c