summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2022-03-29 15:33:52 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-04-13 17:01:14 +0200
commit84958f38d897f85b34036356f64e908e4754170f (patch)
treee174e2490eb3a07973bd50610ffe67973b635c09 /drivers/base/base.h
parent467df4cfdc10cb497ac8a977458e50b8266f915f (diff)
downloadlinux-84958f38d897f85b34036356f64e908e4754170f.tar.bz2
x86/ACPI: Preserve ACPI-table override during hibernation
When overriding NHLT ACPI-table tests show that on some platforms there is problem that NHLT contains garbage after hibernation/resume cycle. Problem stems from the fact that ACPI override performs early memory allocation using memblock_phys_alloc_range() in memblock_phys_alloc_range(). This memory block is later being marked as ACPI memory block in arch_reserve_mem_area(). Later when memory areas are considered for hibernation it is being marked as nosave in e820__register_nosave_regions(). Fix this by marking ACPI override memory area as ACPI NVS (Non-Volatile-Sleeping), which according to specification needs to be saved on entering S4 and restored when leaving and is implemented as such in kernel. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/base.h')
0 files changed, 0 insertions, 0 deletions