From patchwork Wed Jul 11 21:08:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Iyer X-Patchwork-Id: 170516 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id C324F2C0084 for ; Thu, 12 Jul 2012 07:08:29 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Sp48v-00026g-7O; Wed, 11 Jul 2012 21:08:17 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Sp48t-00026R-L8 for kernel-team@lists.ubuntu.com; Wed, 11 Jul 2012 21:08:15 +0000 Received: from 108-226-168-165.lightspeed.austtx.sbcglobal.net ([108.226.168.165] helo=ubuntu) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Sp48s-0003N0-P2; Wed, 11 Jul 2012 21:08:15 +0000 Date: Wed, 11 Jul 2012 16:08:11 -0500 (CDT) From: Manoj Iyer X-X-Sender: manjo@lazy To: stable@vger.kernel.org Subject: [stable] PM / Hibernate: Hibernate/thaw fixes/improvements Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Cc: kernel-team@lists.ubuntu.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com Please consider the following upstream patch to stable 3.2.y linux-stable Patch: PM / Hibernate: Hibernate/thaw fixes/improvements commit 5a21d489fd9541a4a66b9a500659abaca1b19a51 Author: Bojan Smojver 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 non-essential 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 check. 3. Set maximum number of pages for read buffering consistently, instead of inadvertently depending on the size of the sector type. 4. Fix copyright line, which I missed when I submitted the hibernation threading patch. 5. Dispense with bit shifting arithmetic to improve readability. 6. Really recalculate the number of pages required to be free after all allocations have been done. 7. Fix calculation of pages required for read buffering. Only count in pages that do not belong to high memory. Signed-off-by: Bojan Smojver Signed-off-by: Rafael J. Wysocki This patch fixes S4 issues on Lenovo and thinkpad models. The patch applies cleanly to: git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-3.2.y.git tree. and the patch was tested on Ubuntu precise by me on Lenovo system. ---------------------------------------------------------------- The following changes since commit bb05f28f3de03fcb1297f1a48d8132c4bdd929e3: PM / Hibernate: Hibernate/thaw fixes/improvements (2012-07-11 21:46:06 +0100) 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 +0100) ---------------------------------------------------------------- Thanks --- ==================== Manoj Iyer Ubuntu/Canonical Hardware Enablement ====================