]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Make sure memblock reserves the memory containing DT
authorAtish Patra <atish.patra@wdc.com>
Thu, 1 Oct 2020 19:04:56 +0000 (12:04 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 4 Oct 2020 23:19:28 +0000 (16:19 -0700)
commitf4597dc7de5214f2b8c4c5d7eb4bd5b5bae41731
tree67ba16a086caf75f694114ec18032acd38e81976
parent9437ce7c6c73f8d8bbd73a13f737a8ebc7d5e755
RISC-V: Make sure memblock reserves the memory containing DT

Currently, the memory containing DT is not reserved. Thus, that region
of memory can be reallocated or reused for other purposes. This may result
in  corrupted DT for nommu virt board in Qemu. We may not face any issue
in kendryte as DT is embedded in the kernel image for that.

Fixes: d87baaf52826 ("riscv: add nommu support")
Cc: stable@vger.kernel.org
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c