]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Get rid of MAXPHYSMEM configs
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 17 Jan 2022 09:57:16 +0000 (10:57 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 19 Jan 2022 23:12:32 +0000 (15:12 -0800)
commit7fbcec4a004241ec9ac021c63da51af2aad2be7e
tree764e3005492caecb74b1bc8656d288c4de80dd6d
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
riscv: Get rid of MAXPHYSMEM configs

CONFIG_MAXPHYSMEM_* are actually never used, even the nommu defconfigs
selecting the MAXPHYSMEM_2GB had no effects on PAGE_OFFSET since it was
preempted by !MMU case right before.

In addition, the move of the kernel mapping at the end of the address
space broke the use of MAXPHYSMEM_2G with MMU since it defines PAGE_OFFSET
at the same address as the kernel mapping.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 7ab87eaa7eaf ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Conor Dooley <Conor.Dooley@microchip.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/configs/nommu_k210_defconfig
arch/riscv/configs/nommu_k210_sdcard_defconfig
arch/riscv/configs/nommu_virt_defconfig