RISC-V: mm: Support huge page in vmalloc_fault()
authorDylan Jhong <dylan@andestech.com>
Fri, 10 Mar 2023 07:50:21 +0000 (15:50 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 15 Mar 2023 02:15:34 +0000 (19:15 -0700)
commit47dd902aaee9b9341808a3a994793199e7eddb88
tree643810c7d2804b9b0dedee8d51f25c1cf3ea024d
parent9b7fef255c80db8fc33fc06f2ad6d8e3ced1389b
RISC-V: mm: Support huge page in vmalloc_fault()

Since RISC-V supports ioremap() with huge page (pud/pmd) mapping,
However, vmalloc_fault() assumes that the vmalloc range is limited
to pte mappings. To complete the vmalloc_fault() function by adding
huge page support.

Fixes: 310f541a027b ("riscv: Enable HAVE_ARCH_HUGE_VMAP for 64BIT")
Cc: stable@vger.kernel.org
Signed-off-by: Dylan Jhong <dylan@andestech.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230310075021.3919290-1-dylan@andestech.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/fault.c