From patchwork Mon Jan 27 16:21:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Righi X-Patchwork-Id: 1229935 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 485w465fKnz9sPJ; Tue, 28 Jan 2020 03:21:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iw78o-00018r-Jx; Mon, 27 Jan 2020 16:21:34 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iw78m-00018l-5w for kernel-team@lists.ubuntu.com; Mon, 27 Jan 2020 16:21:32 +0000 Received: from mail-wm1-f69.google.com ([209.85.128.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iw78l-0002DQ-U2 for kernel-team@lists.ubuntu.com; Mon, 27 Jan 2020 16:21:31 +0000 Received: by mail-wm1-f69.google.com with SMTP id p5so1537772wmc.4 for ; Mon, 27 Jan 2020 08:21:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=dF9MMAVDxIpIqsqwxLT6Az77P3t9OFCT9cYPU90d6Qc=; b=EawJkWjN+cXzlEASOXQKkfaLmFMdp9JJvsTeNnOmjDtvktDLNZHx32fE4dJWSuKg3C +QTzrWx14l7BAGjZ94sb8ZN3pwgcFFv0Kl0rwjInO5e7wn4AExh4VfmIBSY2ZA9paecz 4Rxps9fQhVmU5dV3AyW2DRW/zO0r5l9iVpF/6UWJ+aYcwBHfUEze5D++2i8S7q+WvDAb 6uY0SWOQp0dIaeUpp0MlWsB3ppVVYBsIFoWgPBBuHxPp/OsHSAVhtt56tYceqq7k3ASI +/o59ftYZjiwC8lbPdiqlDbIBXKrehv+QbCge64pV2OAGLGr1CPe9T4tBYfnymtGFjvc Hb5g== X-Gm-Message-State: APjAAAU7L9YNpToO2rd1sAztutsPVClanYoxbsaFqAKEMTdtiRkKUhs1 QBjKnM/P8S0aV5qiDMT8D+3IMe/00xw6TyATNrszto7lm4zPAqNlrYY9hCP5Nf9Mj1Qhek/q1QH QXPinAKVYFFOD8m76hH6MnW13hK6zzOIcRk1MtIH5GQ== X-Received: by 2002:a7b:cc97:: with SMTP id p23mr14536901wma.89.1580142091323; Mon, 27 Jan 2020 08:21:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzZvhMAma1czbJADh6R/7lZUnB6uU6/EvB6mqRtMGfdwv2kZapJmwxkIAYbjTaksNLLDjP2gA== X-Received: by 2002:a7b:cc97:: with SMTP id p23mr14536874wma.89.1580142090973; Mon, 27 Jan 2020 08:21:30 -0800 (PST) Received: from localhost ([87.18.123.4]) by smtp.gmail.com with ESMTPSA id d16sm24467652wrg.27.2020.01.27.08.21.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 08:21:30 -0800 (PST) Date: Mon, 27 Jan 2020 17:21:29 +0100 From: Andrea Righi To: kernel-team@lists.ubuntu.com Subject: [SRU][D / B aws-edge][aws][PULL v2] proper hibernation support Message-ID: <20200127162129.GB12892@xps-13> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1858618 BugLink: https://bugs.launchpad.net/bugs/1831940 The following patches are required to properly support hibernation with bionic:linux-aws-edge / disco:linux-aws. The most important patch is "PM / hibernate: memory_bm_find_bit(): Tighten node optimisation": this is a very critical bug fix for hibernation that prevents potential memory corruptions on resume. All the other hibernation-related SAUCE patches are required to improve swapoff performance after a successful resume. Moreover, some Xen-related patches have been included (ported from bionic:linux-aws). All these patches have been tested in the AWS environment with positive results. Changes in v2: - added missing Xen-related patches - added pm_async and image_size tunings The following changes since commit 0f84693e79c7c596ac56d952851e0b9527679689: UBUNTU: Ubuntu-aws-edge-5.0.0-1019.21~18.04.1 (2019-10-03 00:49:16 -0400) are available in the Git repository at: git://git.launchpad.net/~arighi/+git/bionic-linux aws-edge-arighi for you to fetch changes up to caccf0c5e1ab5d5394d5c930585a3229a3a5bdea: UBUNTU SAUCE [aws]: xen: Only restore the ACPI SCI interrupt in xen_restore_pirqs. (2020-01-27 10:52:43 +0000) ---------------------------------------------------------------- Anchal Agarwal (1): UBUNTU SAUCE [aws]: ACPICA: Enable sleep button on ACPI legacy wake Andrea Righi (4): UBUNTU SAUCE [aws] PM / hibernate: reduce memory pressure during image writing UBUNTU SAUCE [aws]: mm: swap: improve swap readahead heuristic UBUNTU SAUCE [aws]: PM / hibernate: make sure pm_async is always disabled UBUNTU SAUCE [aws]: PM / hibernate: set image_size to 0 by default Andy Whitcroft (1): PM / hibernate: memory_bm_find_bit(): Tighten node optimisation Eduardo Valentin (1): UBUNTU SAUCE [aws]: block: xen-blkfront: consider new dom0 features on restore Frank van der Linden (2): UBUNTU SAUCE [aws]: xen: restore pirqs on resume from hibernation. UBUNTU SAUCE [aws]: xen: Only restore the ACPI SCI interrupt in xen_restore_pirqs. Vineeth Remanan Pillai (2): mm: refactor swap-in logic out of shmem_getpage_gfp mm: rid swapoff of quadratic complexity arch/x86/xen/suspend.c | 2 + drivers/acpi/acpica/hwsleep.c | 11 + drivers/block/xen-blkfront.c | 3 + drivers/xen/events/events_base.c | 45 +++ include/linux/frontswap.h | 7 + include/linux/shmem_fs.h | 3 +- include/xen/events.h | 1 + kernel/power/main.c | 4 +- kernel/power/snapshot.c | 10 +- kernel/power/swap.c | 24 +- mm/shmem.c | 716 +++++++++++++++++++++------------------ mm/swap.c | 2 +- mm/swap_state.c | 60 +--- mm/swapfile.c | 433 +++++++++-------------- 14 files changed, 646 insertions(+), 675 deletions(-) Acked-by: Marcelo Henrique Cerri