From patchwork Tue Jun 2 02:07:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 1302010 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 49bb7838D3z9sSn; Tue, 2 Jun 2020 12:08:35 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jfwLp-0005Bu-69; Tue, 02 Jun 2020 02:08:25 +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 1jfwLn-0005Bo-QR for kernel-team@lists.ubuntu.com; Tue, 02 Jun 2020 02:08:23 +0000 Received: from mail-qt1-f199.google.com ([209.85.160.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jfwLn-0001xr-Fq for kernel-team@lists.ubuntu.com; Tue, 02 Jun 2020 02:08:23 +0000 Received: by mail-qt1-f199.google.com with SMTP id y7so4182585qti.8 for ; Mon, 01 Jun 2020 19:08:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=L7Z9RD4IDhtXZ6btXCnUbfnMY72p46l478yFB8ny25E=; b=B//EzGphU90ea3lJpi5QHB/dLFnlRzf7wtnU2bKvIT32RNQSB4uCCRH/W7SIymRBf8 gfajIjMZRiEnuLAnJLL1Y5jNo5L3Hjz573fzuGTxzfSpBb1wqln7jrHhyMg13GwIDPc+ QYuoq5lcFu7hBoyJfi8Y9wkBdQ5rb7HzUWANs5R2qAAYeS+wsoNGag2RGIBpKLOanWwd RoAuO7vHWw+itcahZb8vhl404ehYJHD5DKI38HB6Y2ILh/E4iwD52nPGJIeJ/ImnnZK6 Ojf1izIEp9fulBwaA5YIuPaVBMJaLO8JBsM2oppwj7y9/UluFykl6JfkVqKKp/B4h1NA 3voA== X-Gm-Message-State: AOAM531LRUXutinyyAkEmwIKPrmVrcBzGPw6oNR9/JvfXqlJNvYUJYeH 4ZC4xOpEfZXESwsPVmReQvqP4F2pPCxh4rYWx7ez3GAdI7wBQK501r2IPPBSfY4iWx68vbUUBIN krNLQsoX8zSDtJgLIimaZROUkKXJPrbywDziO8ZWE X-Received: by 2002:ac8:32dc:: with SMTP id a28mr17645772qtb.158.1591063702081; Mon, 01 Jun 2020 19:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGEP2Y2ctgCN+TNFzt+h2sZ4k9SCJpueM0gpYmAPPQu+ZGIEJvgYiylpQiE04DAwocQn9GZw== X-Received: by 2002:ac8:32dc:: with SMTP id a28mr17645754qtb.158.1591063701699; Mon, 01 Jun 2020 19:08:21 -0700 (PDT) Received: from gallifrey.lan ([201.82.186.200]) by smtp.gmail.com with ESMTPSA id t13sm1138342qtc.77.2020.06.01.19.08.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 19:08:20 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [focal:linux-azure][PATCH 00/21] LP:#1880032 - [linux-azure] Enable Hibernation on The 18.04 and 20.04 5.4 Kernels Date: Mon, 1 Jun 2020 23:07:56 -0300 Message-Id: <20200602020817.236422-1-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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: http://bugs.launchpad.net/bugs/1880032 Clean cherry picks from upstream. The following patches weren't necessary because they were already applied via upstream stable updates: f2c33ccacb2d PCI/PM: Always return devices to D0 when thawing Via https://bugs.launchpad.net/bugs/1858427 2351f8d295ed PM: hibernate: Freeze kernel threads in software_resume() Via https://bugs.launchpad.net/bugs/1877592 1a06d017fb3f Drivers: hv: vmbus: Fix Suspend-to-Idle for Generation-2 VM Via https://bugs.launchpad.net/bugs/1877592 Acked-by: Kleber Sacilotto de Souza Acked-by: Andrea Righi --- Dexuan Cui (19): scsi: storvsc: Add the support of hibernation video: hyperv_fb: Add the support of hibernation hv_sock: Add the support of hibernation hv_netvsc: Add the support of hibernation x86/hyperv: Implement hv_is_hibernation_supported() hv_balloon: Add the support of hibernation HID: hyperv: Add the support of hibernation PCI: hv: Reorganize the code in preparation of hibernation PCI: hv: Add hibernation support clocksource/drivers/hyper-v: Suspend/resume Hyper-V clocksource for hibernation Input: hyperv-keyboard: Add the support of hibernation video: hyperv_fb: Fix hibernation for the deferred IO feature Tools: hv: Reopen the devices if read() or write() returns errors hv_utils: Support host-initiated restart request hv_utils: Support host-initiated hibernation request hv_utils: Add the support of hibernation x86/hyperv: Suspend/resume the hypercall page for hibernation PM: hibernate: Propagate the return value of hibernation_restore() x86/hyperv: Suspend/resume the VP assist page for hibernation Mark Bloch (1): net/mlx5: Fix crash upon suspend/resume Michael Kelley (1): x86/hyperv: Initialize clockevents earlier in CPU onlining arch/x86/hyperv/hv_init.c | 73 ++++++- drivers/clocksource/hyperv_timer.c | 179 +++++++++++++++--- drivers/hid/hid-hyperv.c | 34 ++++ drivers/hv/hv.c | 4 +- drivers/hv/hv_balloon.c | 87 ++++++++- drivers/hv/hv_fcopy.c | 54 +++++- drivers/hv/hv_kvp.c | 43 ++++- drivers/hv/hv_snapshot.c | 55 +++++- drivers/hv/hv_util.c | 148 ++++++++++++++- drivers/hv/hyperv_vmbus.h | 6 + drivers/hv/vmbus_drv.c | 30 ++- drivers/input/serio/hyperv-keyboard.c | 27 +++ .../net/ethernet/mellanox/mlx5/core/main.c | 18 ++ drivers/net/hyperv/hyperv_net.h | 3 + drivers/net/hyperv/netvsc_drv.c | 57 ++++++ drivers/pci/controller/pci-hyperv.c | 166 ++++++++++++++-- drivers/scsi/storvsc_drv.c | 41 ++++ drivers/video/fbdev/hyperv_fb.c | 61 ++++++ include/asm-generic/mshyperv.h | 2 + include/clocksource/hyperv_timer.h | 7 +- include/linux/cpuhotplug.h | 1 + include/linux/hyperv.h | 2 + kernel/power/hibernate.c | 2 +- net/vmw_vsock/hyperv_transport.c | 20 ++ tools/hv/hv_fcopy_daemon.c | 37 +++- tools/hv/hv_kvp_daemon.c | 36 ++-- tools/hv/hv_vss_daemon.c | 49 +++-- 27 files changed, 1126 insertions(+), 116 deletions(-)