]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: Do not restrict memory size because of linear mapping on nommu
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 27 Aug 2024 06:52:30 +0000 (08:52 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 3 Sep 2024 14:57:27 +0000 (07:57 -0700)
commit5f771088a2b5edd6f2c5c9f34484ca18dc389f3e
tree44301bc24ba73768a5bec76df760ac2b1f006c72
parent5ba7a75a53dffbf727e842b5847859bb482ac4aa
riscv: Do not restrict memory size because of linear mapping on nommu

It makes no sense to restrict physical memory size because of linear
mapping size constraints when there is no linear mapping, so only do
that when mmu is enabled.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/linux-riscv/CAMuHMdW0bnJt5GMRtOZGkTiM7GK4UaLJCDMF_Ouq++fnDKi3_A@mail.gmail.com/
Fixes: 3b6564427aea ("riscv: Fix linear mapping checks for non-contiguous memory regions")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240827065230.145021-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c