[linux-next] [PATCH V2 0/4] ACPI: save/restore ACPI NVS memory during hiberntion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
This is the second version of patches which save/restore ACPI NVS memoryduring hibernation.
According to the ACPI spec, ACPI NVS memory region is required tobe saved/restored by OS during hibernation.
Section 15.3.2 ACPI Spec 3.0b,"OSPM will call the _PTS control method some time before enteringa sleeping state, to allow the platform’s AML code to updatethis memory image before entering the sleeping state.After the system awakes from an S4 state, OSPM will restore thismemory area and call the _WAK control method to enable the BIOSto reclaim its memory image."
This patch set add the mechanism to save/restore ACPI NVS memoryduring hibernation.
Patch 01: call platform_begin before swsusp_shrink_memory.        So that we can allocate enough pages for ACPI NVS memory        before shrink the memory.
Patch 02: introduce the mechanism to save/restore ACPI NVS memory.        Patch 03: mark the ACPI NVS memory region during startup.
Patch 04: introduce kernel parameter acpi_sleep=s4_nvs_nosave	  which prevents OS from saving/restoring ACPI NVS memory.
As patch 01 changes the generic code, I don't know if there areany side effects introduced by this patch, and I'm not able totest on other platforms.But with Rafael's suggestion, patch 01 can be optionally droppedbecause we can use the the I/O and spare pages reserved, which is5MB at present and the NVS memory is usually tens of pages duringmy test.
Any comments are welcome. :)
thanks,rui
_______________________________________________linux-pm mailing listlinux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux