[linux-azure] Enable Hibernation on The 18.04 and 20.04 5.4 Kernels

Bug #1880032 reported by Joseph Salisbury on 2020-05-21
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-azure (Ubuntu)
Undecided
Unassigned
Focal
Undecided
Unassigned

Bug Description

Microsoft would like to request commits to enable VM hibernation in the Azure 5.4 kernels for 18.04 and 20.04.

Some of the commits needed to enable VM hibernation were included in mainline 5.4 and older. However, 24 commits were added in 5.5 and later, which are required in the 5.4 kernel. The list of commits requested are:

38dce4195f0d x86/hyperv: Properly suspend/resume reenlightenment notifications
2351f8d295ed PM: hibernate: Freeze kernel threads in software_resume()
421f090c819d x86/hyperv: Suspend/resume the VP assist page for hibernation
1a06d017fb3f Drivers: hv: vmbus: Fix Suspend-to-Idle for Generation-2 VM
3704a6a44579 PM: hibernate: Propagate the return value of hibernation_restore()
54e19d34011f hv_utils: Add the support of hibernation
ffd1d4a49336 hv_utils: Support host-initiated hibernation request
3e9c72056ed5 hv_utils: Support host-initiated restart request
9fc3c01a1fae6 Tools: hv: Reopen the devices if read() or write() returns
05bd330a7fd8 x86/hyperv: Suspend/resume the hypercall page for hibernation
382a46221757 video: hyperv_fb: Fix hibernation for the deferred IO feature
e2379b30324c Input: hyperv-keyboard: Add the support of hibernation
ac82fc8327088 PCI: hv: Add hibernation support
a8e37506e79a PCI: hv: Reorganize the code in preparation of hibernation
1349401ff1aa4 clocksource/drivers/hyper-v: Suspend/resume Hyper-V clocksource for hibernation
af13f9ed6f9a HID: hyperv: Add the support of hibernation
25bd2b2f1f053 hv_balloon: Add the support of hibernation
b96f86534fa31 x86/hyperv: Implement hv_is_hibernation_supported()
4df4cb9e99f83 x86/hyperv: Initialize clockevents earlier in CPU onlining
0efeea5fb1535 hv_netvsc: Add the support of hibernation
2194c2eb6717f hv_sock: Add the support of hibernation
1ecf302021040 video: hyperv_fb: Add the support of hibernation
56fb105859345 scsi: storvsc: Add the support of hibernation
f2c33ccacb2d4 PCI/PM: Always return devices to D0 when thawing

Dexuan Cui (decui) wrote :

There is another important bug fix for hibernation:
net/mlx5: Fix crash upon suspend/resume (https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=8fc3e29be9248048f449793502c15af329f35c6e).

So far the fix is only present in the net.git tree, but I expect it will be in the mainline tree’s v5.8-rc1 (or even v5.7, if we’re lucky).

Please consider picking it up. Thanks!

Dexuan Cui (decui) wrote :

FYI: the patch "net/mlx5: Fix crash upon suspend/resume" is in v5.7 now (i.e. today's latest mainline): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.7&id=8fc3e29be9248048f449793502c15af329f35c6e

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-azure (Ubuntu):
status: New → Confirmed
Marcelo Cerri (mhcerri) on 2020-06-02
Changed in linux-azure (Ubuntu Focal):
status: New → In Progress
Marcelo Cerri (mhcerri) wrote :

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

Changed in linux-azure (Ubuntu Focal):
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers