OSDN Git Service

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)
commita78c6f5956a949b496a5b087188dde52483edf51
tree67ba16a086caf75f694114ec18032acd38e81976
parent549738f15da0e5a00275977623be199fbbf7df50
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: 6bd33e1ece52 ("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