]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Support huge pfnmaps
authorAndrew Bresticker <abrestic@rivosinc.com>
Wed, 8 Jan 2025 13:57:00 +0000 (05:57 -0800)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 08:58:42 +0000 (08:58 +0000)
commit03dc00a2b67854604c0aa8cbd32105f8b633451e
tree78dde4bff61befffb18987aea0c1bbe4d29cd4ca
parent8df0cdcc216cee222f34f1b20b328e176ea3c667
riscv: Support huge pfnmaps

Use RSW0 as the special bit for pmds and puds, just like for ptes.
Also define the {pte,pmd,pud}_pgprot helpers which were previously
missing and are needed for the follow_pfnmap APIs.

Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250108135700.2614848-1-abrestic@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/pgtable.h