mbox series

[focal:linux-azure,00/21] LP:#1880032 - [linux-azure] Enable Hibernation on The 18.04 and 20.04 5.4 Kernels

Message ID 20200602020817.236422-1-marcelo.cerri@canonical.com
Headers show
Series LP:#1880032 - [linux-azure] Enable Hibernation on The 18.04 and 20.04 5.4 Kernels | expand

Message

Marcelo Henrique Cerri June 2, 2020, 2:07 a.m. UTC
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

---
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(-)

Comments

Kleber Sacilotto de Souza June 4, 2020, 7:58 a.m. UTC | #1
On 2020-06-02 04:07, Marcelo Henrique Cerri wrote:
> 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 <kleber.souza@canonical.com>

> 
> ---
> 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(-)
>
Andrea Righi June 4, 2020, 8:25 a.m. UTC | #2
On Mon, Jun 01, 2020 at 11:07:56PM -0300, Marcelo Henrique Cerri wrote:
> 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

All drivers/arch-specific clean cherry picks from upstream. Looks good
to me.

Acked-by: Andrea Righi <andrea.righi@canonical.com>

> 
> ---
> 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(-)
> 
> -- 
> 2.25.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Khalid Elmously June 5, 2020, 6:21 a.m. UTC | #3
On 2020-06-01 23:07:56 , Marcelo Henrique Cerri wrote:
> 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
> 
> ---
> 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(-)
> 
> -- 
> 2.25.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team