RISC-V: Add Sv57 page table support
authorPalmer Dabbelt <palmer@rivosinc.com>
Tue, 22 Feb 2022 17:40:52 +0000 (09:40 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 22 Feb 2022 17:40:52 +0000 (09:40 -0800)
commit9195c294bc58f284f5bf7bc7e6d94cce078b206f
tree97ac8850ccaf16476f457c5dff00c3cea2af3973
parent67ff2f262619d7bb5101525672ead4f2a437a40f
parent8fbdccd2b17335e1881a23865e98c63fcc345938
RISC-V: Add Sv57 page table support

This implements Sv57 support at runtime. The kernel will try to boot
with 5-level page table firstly , and will fallback to 4-level if the HW
does not support it. And it will finally fallback to 3-level if the HW
alse does not support sv48.

* riscv-sv57:
  riscv: mm: Support kasan for sv57
  riscv: mm: Set sv57 on defaultly
  riscv: mm: Prepare pt_ops helper functions for sv57
  riscv: mm: Control p4d's folding by pgtable_l5_enabled
arch/riscv/mm/init.c