]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99a973194acd7d0d56ffadce92a9ad7f4e9afbe9
tree97ac8850ccaf16476f457c5dff00c3cea2af3973
parentc87fa6585ad273f0c725bac58a8bc2c2e6185541
parent26a82ee44c1389195fb0594fa1d8e0aff2aa6b31
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