linux/arch/loongarch/mm
Huacai Chen 619b52777a LoongArch: Fix kernel_page_present() for KPRANGE/XKPRANGE
Now kernel_page_present() always return true for KPRANGE/XKPRANGE
addresses, this isn't correct because hibernation (ACPI S4) use it
to distinguish whether a page is saveable. If all KPRANGE/XKPRANGE
addresses are considered as saveable, then reserved memory such as
EFI_RUNTIME_SERVICES_CODE / EFI_RUNTIME_SERVICES_DATA will also be
saved and restored.

Fix this by returning true only if the KPRANGE/XKPRANGE address is in
memblock.memory.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-02-13 12:02:35 +08:00
..
Makefile LoongArch: Add ARCH_HAS_SET_MEMORY support 2024-09-24 15:32:20 +08:00
cache.c LoongArch: Remove shm_align_mask and use SHMLBA instead 2023-09-06 22:53:09 +08:00
extable.c LoongArch: BPF: Add BPF exception tables 2022-12-14 08:36:11 +08:00
fault.c LoongArch: Improve hardware page table walker 2024-09-24 15:32:20 +08:00
hugetlbpage.c LoongArch: Use accessors to page table entries instead of direct dereference 2024-08-07 17:37:11 +08:00
init.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
ioremap.c LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
kasan_init.c LoongArch: Add WriteCombine shadow mapping in KASAN 2024-11-12 16:35:39 +08:00
maccess.c
mmap.c mm: make arch_get_unmapped_area() take vm_flags by default 2024-09-09 16:39:13 -07:00
page.S LoongArch: Replace #include <asm/export.h> with #include <linux/export.h> 2023-08-25 23:40:26 +08:00
pageattr.c LoongArch: Fix kernel_page_present() for KPRANGE/XKPRANGE 2025-02-13 12:02:35 +08:00
pgtable.c asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
tlb.c LoongArch: Fix sleeping in atomic context for PREEMPT_RT 2024-11-26 18:06:04 +08:00
tlbex.S LoongArch: Give a chance to build with !CONFIG_SMP 2024-05-14 12:24:18 +08:00