riscv: Add support for PUD THP
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 21 Mar 2025 12:39:54 +0000 (13:39 +0100)
committerPalmer Dabbelt <palmer@dabbelt.com>
Thu, 5 Jun 2025 18:09:40 +0000 (11:09 -0700)
commitc3cc2a4a3a23faf6b88459471c1c16ab3837cc2f
treeb639ae04eb73e0fdebe68e8356c05ace9dc730d9
parent850d7b14c8f77407b7d2a1edeb83d3e36c46e7a8
riscv: Add support for PUD THP

Add the necessary page table functions to deal with PUD THP, this
enables the use of PUD pfnmap.

Link: https://lore.kernel.org/r/20250321123954.225097-1-alexghiti@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/Kconfig
arch/riscv/include/asm/pgtable-64.h
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/tlbflush.h
arch/riscv/mm/pgtable.c
arch/riscv/mm/tlbflush.c