riscv: Fix arch_hugetlb_migration_supported() for NAPOT
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 30 Jan 2024 12:01:14 +0000 (13:01 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 7 Feb 2024 17:55:26 +0000 (09:55 -0800)
commitce68c035457bdd025a9961e0ba2157323090c581
treee9bb9c49a2e33f418e626a8b9b7bd5a4cf1c12e4
parent97cf301fa42e8ea6e0a24de97bc0abcdc87d9504
riscv: Fix arch_hugetlb_migration_supported() for NAPOT

arch_hugetlb_migration_supported() must be reimplemented to add support
for NAPOT hugepages, which is done here.

Fixes: 82a1a1f3bfb6 ("riscv: mm: support Svnapot in hugetlb page")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240130120114.106003-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hugetlb.h
arch/riscv/mm/hugetlbpage.c