aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2025-02-13 04:02:35 +0000
committerHuacai Chen <[email protected]>2025-02-13 04:02:35 +0000
commit619b52777a4972bdb6ddf86ac54c6f68a47b51c4 (patch)
treee708d6820e479c6a6d820c8fdd4b53360c0dd7a3 /drivers/net/ethernet/intel/igc/igc_main.c
parentLoongArch: Fix idle VS timer enqueue (diff)
downloadkernel-619b52777a4972bdb6ddf86ac54c6f68a47b51c4.tar.gz
kernel-619b52777a4972bdb6ddf86ac54c6f68a47b51c4.zip
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 <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions