]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix memory_limit for 64-bit kernel
authorAlexandre Ghiti <alex@ghiti.fr>
Tue, 29 Jun 2021 09:13:46 +0000 (11:13 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 23 Jul 2021 03:29:30 +0000 (20:29 -0700)
commit77895ac11c0c04551f68ca0c69b90237333fe66b
treeedd66b71f7948d8b0be523ee5f56cbb7cd55f46b
parentac01c55b522a869deb87a90911b357ad31f01417
riscv: Fix memory_limit for 64-bit kernel

As described in Documentation/riscv/vm-layout.rst, the end of the
virtual address space for 64-bit kernel is occupied by the modules/BPF/
kernel mappings so this actually reduces the amount of memory we are able
to map and then use in the linear mapping. So make sure this limit is
correctly set.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Fixes: 7ab87eaa7eaf ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c