]> 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)
commitaddc3e6bfe0b95a4582f51ce27f2a6d8d4b84db2
tree67ba16a086caf75f694114ec18032acd38e81976
parent8d14aede3a4dea0a8529c8aa849876125c838e4b
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: 3932ca301903 ("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