[stable] PM / Hibernate: Hibernate/thaw fixes/improvements

Submitted by Manoj Iyer on July 11, 2012, 9 p.m.


Message ID alpine.DEB.2.02.1207111524350.3768@lazy
State New
Headers show


git://kernel.ubuntu.com/manjo/ubuntu-precise.git for-upstream

Commit Message

Manoj Iyer July 11, 2012, 9 p.m.
Please consider the following upstream patch to stable 3.2.y 

Patch:  PM / Hibernate: Hibernate/thaw fixes/improvements

commit 5a21d489fd9541a4a66b9a500659abaca1b19a51
Author: Bojan Smojver <bojan@rexursive.com>
Date:   Sun Apr 29 22:42:06 2012 +0200

     PM / Hibernate: Hibernate/thaw fixes/improvements

      1. Do not allocate memory for buffers from emergency pools, unless
         absolutely required. Do not warn about and do not retry 
         failed allocations.

      2. Do not check the amount of free pages left on every single page
         write, but wait until one map is completely populated and then 

      3. Set maximum number of pages for read buffering consistently, 
         of inadvertently depending on the size of the sector type.

      4. Fix copyright line, which I missed when I submitted the 
         threading patch.

      5. Dispense with bit shifting arithmetic to improve readability.

      6. Really recalculate the number of pages required to be free after 
         allocations have been done.

      7. Fix calculation of pages required for read buffering. Only count 
         pages that do not belong to high memory.

     Signed-off-by: Bojan Smojver <bojan@rexursive.com>
     Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

This patch fixes S4 issues on Lenovo and thinkpad models. The patch 
applies cleanly to:
tree. and the patch was tested on Ubuntu precise by me on Lenovo system.

The following changes since commit 

   PM / Hibernate: Hibernate/thaw fixes/improvements (2012-07-11 21:46:06 

are available in the git repository at:

   git://kernel.ubuntu.com/manjo/ubuntu-precise.git for-upstream

for you to fetch changes up to bb05f28f3de03fcb1297f1a48d8132c4bdd929e3:

   PM / Hibernate: Hibernate/thaw fixes/improvements (2012-07-11 21:46:06 


Manoj Iyer
Hardware Enablement