]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: mm: Add support for ZONE_DEVICE
authorBjörn Töpel <bjorn@rivosinc.com>
Wed, 5 Jun 2024 11:40:53 +0000 (13:40 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 15:42:46 +0000 (08:42 -0700)
commit216e04bf1e4d933fe8338e486a9dff93c208601e
tree00f2fb878ad4c2a4d4a9eec028088095f6ca6e28
parent0546d7043e55becec78fa262f2e84c76a96f6e52
riscv: mm: Add support for ZONE_DEVICE

ZONE_DEVICE pages need DEVMAP PTEs support to function
(ARCH_HAS_PTE_DEVMAP). Claim another RSW (reserved for software) bit
in the PTE for DEVMAP mark, add the corresponding helpers, and enable
ARCH_HAS_PTE_DEVMAP for riscv64.

Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20240605114100.315918-11-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/pgtable-64.h
arch/riscv/include/asm/pgtable-bits.h
arch/riscv/include/asm/pgtable.h