Hibernate (suspend to disk) and resume worked fine with my desktop box until kernel 5.15.41 included.
With later kernels 5.15.52 and 5.15.59 after some days (~3-15 times hibernate) instead of resuming from the image the box booted from scratch.
The same now with kernel 5.15.80 after 7 and 3 hibernates. Between these switches of the kernels I didn't change the kernel config manually.
After the failed resumes dmesg always shows that the image got loaded:
Code: Select all
PM: Image signature found, resuming
[...]
PM: Image successfully loaded
[...]
PM: hibernation: Failed to load image, recovering.
Code: Select all
[ 0.000000] Linux version 5.15.52-gentoo-x86_64 [...]
[...]
[ 4.361113] PM: Image signature found, resuming
[...]
[ 12.128598] PM: Image successfully loaded
[ 12.601521] serial 00:05: disabled
[ 12.740636] PM: pci_pm_freeze(): hcd_pci_suspend+0x0/0x20 [usbcore] returns -16
[ 12.740653] PM: dpm_run_callback(): pci_pm_freeze+0x0/0xb0 returns -16
[ 12.740661] xhci_hcd 0000:28:00.3: PM: failed to quiesce async: error -16
[ 12.861496] xhci_hcd 0000:03:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 12.861507] usb usb1: root hub lost power or was reset
[ 12.861509] usb usb2: root hub lost power or was reset
[ 12.862311] serial 00:05: activated
[ 12.937106] nvme nvme0: 16/0/0 default/read/poll queues
[ 13.195984] ata6: SATA link down (SStatus 0 SControl 330)
[ 13.196016] ata1: SATA link down (SStatus 0 SControl 300)
[ 13.196046] ata5: SATA link down (SStatus 0 SControl 330)
[ 13.361075] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 13.373719] ata2.00: configured for UDMA/100
[ 13.401879] usb 1-7: reset low-speed USB device number 2 using xhci_hcd
[ 13.868660] PM: hibernation: Failed to load image, recovering.
[ 13.940093] PM: hibernation: Basic memory bitmaps freed
[ 13.940096] OOM killer enabled.
[ 13.940096] Restarting tasks ... done.
[ 13.940230] PM: hibernation: resume failed (-16)
Code: Select all
[ 0.000000] Linux version 5.15.59-gentoo-x86_64 [...]
[...]
[ 4.461255] PM: Image signature found, resuming
[...]
[ 21.589748] PM: Image successfully loaded
[ 22.112286] serial 00:05: disabled
[ 22.271263] PM: pci_pm_freeze(): hcd_pci_suspend+0x0/0x20 [usbcore] returns -16
[ 22.271275] PM: dpm_run_callback(): pci_pm_freeze+0x0/0xb0 returns -16
[ 22.271282] xhci_hcd 0000:28:00.3: PM: failed to quiesce async: error -16
[ 22.392289] xhci_hcd 0000:03:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 22.392296] usb usb1: root hub lost power or was reset
[ 22.392299] usb usb2: root hub lost power or was reset
[ 22.393350] serial 00:05: activated
[ 22.467883] nvme nvme0: 16/0/0 default/read/poll queues
[ 22.725823] ata6: SATA link down (SStatus 0 SControl 330)
[ 22.725857] ata1: SATA link down (SStatus 0 SControl 300)
[ 22.725891] ata5: SATA link down (SStatus 0 SControl 330)
[ 22.891923] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 22.905880] ata2.00: configured for UDMA/100
[ 22.932727] usb 1-7: reset low-speed USB device number 2 using xhci_hcd
[ 23.400333] PM: hibernation: Failed to load image, recovering.
[ 23.575557] PM: hibernation: Basic memory bitmaps freed
[ 23.575560] OOM killer enabled.
[ 23.575561] Restarting tasks ... done.
[ 23.575683] PM: hibernation: resume failed (-16)
Code: Select all
[ 0.000000] Linux version 5.15.80-gentoo-x86_64 [...]
[...]
[ 4.261362] PM: Image signature found, resuming
[...]
[ 18.773681] PM: Image successfully loaded
[ 19.391908] serial 00:05: disabled
[ 19.431359] PM: pci_pm_freeze(): hcd_pci_suspend+0x0/0x20 [usbcore] returns -16
[ 19.431377] PM: dpm_run_callback(): pci_pm_freeze+0x0/0xb0 returns -16
[ 19.431389] xhci_hcd 0000:28:00.3: PM: failed to quiesce async: error -16
[ 19.651895] xhci_hcd 0000:03:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 19.651903] usb usb1: root hub lost power or was reset
[ 19.651905] usb usb2: root hub lost power or was reset
[ 19.652864] serial 00:05: activated
[ 19.728240] nvme nvme0: 16/0/0 default/read/poll queues
[ 19.985995] ata6: SATA link down (SStatus 0 SControl 330)
[ 19.986030] ata5: SATA link down (SStatus 0 SControl 330)
[ 19.986063] ata1: SATA link down (SStatus 0 SControl 300)
[ 20.192209] usb 1-10: reset low-speed USB device number 2 using xhci_hcd
[ 20.658805] PM: hibernation: Failed to load image, recovering.
[ 20.839565] PM: hibernation: Basic memory bitmaps freed
[ 20.839567] OOM killer enabled.
[ 20.839568] Restarting tasks ... done.
[ 20.839677] PM: hibernation: resume failed (-16)
Code: Select all
$ egrep -v '^(#|$)' /etc/hibernate/hibernate.conf
TryMethod disk.conf
$ egrep -v '^(#|$)' /etc/hibernate/disk.conf
TryMethod sysfs-disk.conf
$ egrep -v '^(#|$)' /etc/hibernate/sysfs-disk.conf
UseSysfsPowerState disk
Include common.conf
$ egrep -v '^(#|$)' /etc/hibernate/common.conf
Verbosity 1
LogFile /var/log/hibernate.log
LogVerbosity 4
LogTimestamp yes
Distribution gentoo
XDisplay :0
SaveClock yes
FullSpeedCPU yes
LockXScreenSaver yes
UnloadModules xhci_pci xhci_hcd usbhid usb_storage usbcore
UnloadBlacklistedModules yes
LoadModules auto
DownInterfaces auto
UpInterfaces auto
RestartServices apache2
SwitchToTextMode yes
Code: Select all
egrep -q '^XHC0.*disabled' /proc/acpi/wakeup && echo XHC0 > /proc/acpi/wakeup
egrep -q '^PTXH.*disabled' /proc/acpi/wakeup && echo PTXH > /proc/acpi/wakeup
What can I do avoid it so I can run a newer kernel and continue using hibernate/resume?

