]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix 32-bit RISC-V boot failure
authorBin Meng <bmeng.cn@gmail.com>
Sun, 27 Jun 2021 13:51:17 +0000 (21:51 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 22 Jul 2021 05:17:41 +0000 (22:17 -0700)
commit7c0b3d1566d7469b6e946ba5d0eb5d04f18ee3b2
treeaff92b9e0fb6e560ca5b41f544f2387f24ccf8ba
parent9fb51bb203ba1c67f480638e9d0605db59810687
riscv: Fix 32-bit RISC-V boot failure

Commit f43f2fb21642 ("riscv: Cleanup setup_bootmem()") adjusted
the calling sequence in setup_bootmem(), which invalidates the fix
commit 2c80e632e314 ("RISC-V: Fix usage of memblock_enforce_memory_limit")
did for 32-bit RISC-V unfortunately.

So now 32-bit RISC-V does not boot again when testing booting kernel
on QEMU 'virt' with '-m 2G', which was exactly what the original
commit 2c80e632e314 ("RISC-V: Fix usage of memblock_enforce_memory_limit")
tried to fix.

Fixes: f43f2fb21642 ("riscv: Cleanup setup_bootmem()")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c