RISC-V: mm: Enable huge page support to kernel_page_present() function
authorSia Jee Heng <jeeheng.sia@starfivetech.com>
Tue, 14 Mar 2023 05:03:15 +0000 (13:03 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 28 Mar 2023 03:23:14 +0000 (12:23 +0900)
commit3de30b400af18ee2cbc229690a34d8b36db9f697
treec84d968dd386a2c9e4b9dfed4288f8f8066a7d2e
parent00913b2fdb409a17daefe9074c62aab97c8195fb
RISC-V: mm: Enable huge page support to kernel_page_present() function

Currently kernel_page_present() function doesn't support huge page
detection causes the function to mistakenly return false to the
hibernation core.

Add huge page detection to the function to solve the problem.

Fixes: 9e953cda5cdf ("riscv: Introduce huge page support for 32/64bit kernel")
Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
Reviewed-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
Reviewed-by: Mason Huo <mason.huo@starfivetech.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/mm/pageattr.c