]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Fix arch_hugetlb_migration_supported() for NAPOT
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 30 Jan 2024 12:01:14 +0000 (13:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:14:26 +0000 (19:14 +0100)
commitac4be33bcbde0166ba412c6cdf08d3bcd93ef5e0
tree6b474ef5756adaac981bb3303d090ca26ae9ea3f
parent524b78875804bc905efdb84b181178c8be54f908
riscv: Fix arch_hugetlb_migration_supported() for NAPOT

[ Upstream commit ce68c035457bdd025a9961e0ba2157323090c581 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/hugetlb.h
arch/riscv/mm/hugetlbpage.c