#1107579 linux-image-6.1.0-37-amd64 hangs on resume from hibernate

Package:
src:linux
Source:
src:linux
Submitter:
Alessandro Vesely
Date:
2025-07-02 16:59:02 UTC
Severity:
normal
Tags:
#1107579#5
Date:
2025-06-10 07:07:34 UTC
From:
To:
Dear Maintainer,

On resume, after reading back all saved memory and after displaying the
"Suspending console(s) (use no_console_suspend to debug)" message, instead of
returning to the previous screen, it stay there and does not seem to react.
Switching to and from virtual console, ctrl-alt-f1 + ctrl-alt-f7, results in a
damaged screen where only the upper left corner is correct while the rest
replicates whatever was on the previous pixel.

Also, it used to thaw hitting any key.  Now I must hit the power button.

The log shows:
...
2025-06-09T15:47:57.503014+02:00 pcale avahi-daemon[2584]: Registering new
address record for 172.25.197.120 on eth0.IPv4.
2025-06-09T15:47:58.071694+02:00 pcale dhclient[17977]: bound to 172.25.197.120
-- renewal in 37592 seconds.
2025-06-09T15:47:58.123888+02:00 pcale /etc/pm/sleep.d/20_dhcp-lease: run thaw
hibernate, rtc=0
2025-06-09T15:47:59.024989+02:00 pcale /home/ale/bin/run-pm-hibernate:
/sbin/pm-hibernate returned 0
2025-06-09T15:49:43.244897+02:00 pcale /home/ale/bin/run-pm-hibernate: slock
returned 0
2025-06-09T15:50:00.034948+02:00 pcale kernel: [12650.230373] [drm] pstate
TEST_DEBUG_DATA: 0x3EFF000F
2025-06-09T15:50:00.034961+02:00 pcale kernel: [12650.231494] [drm] pstate
TEST_DEBUG_DATA: 0x3EFF000F
2025-06-09T15:50:00.034962+02:00 pcale kernel: [12650.231942] [drm] pstate
TEST_DEBUG_DATA: 0x3EFF000F
...

Here 20_dhcp-lease is a short script to release the IP address before sleeping,
and log; run-pm-hibernate is a suid utility to call pm-hibernate (and slock)
from the openbox menu.

The pstate message repeats until I reboot.  What does it mean?

I have this default, in case it has anything to do with pstate:
ale@pcale:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
acpi-cpufreq

Also, earlier in the log I had a drm warning.  Dunno if it's relevant.  I paste
it below.

2025-06-09T15:47:50.942302+02:00 pcale kernel: [12516.715362] ------------[ cut
here ]------------
2025-06-09T15:47:50.942303+02:00 pcale kernel: [12516.715363] amdgpu
0000:09:00.0: drm_WARN_ON_ONCE(!dev->mode_config.poll_enabled)
2025-06-09T15:47:50.942304+02:00 pcale kernel: [12516.715393] WARNING: CPU: 2
PID: 17736 at drivers/gpu/drm/drm_probe_helper.c:252
drm_kms_helper_poll_enable+0x116/0x130 [drm_kms_helper]
2025-06-09T15:47:50.942306+02:00 pcale kernel: [12516.715412] Modules linked
in: nls_ascii nls_cp437 vfat fat xt_conntrack xt_MASQUERADE
nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat nf_nat nf_conntrack
nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter ip_tables x_tables
br_netfilter bridge stp llc overlay bnep bluetooth jitterentropy_rng drbg
ansi_cprng ecdh_generic ecc autofs4 cpufreq_userspace cpufreq_ondemand
cpufreq_powersave cpufreq_conservative binfmt_misc nf_tables libcrc32c
nfnetlink f2fs crc32_generic lz4hc_compress lz4_compress zstd_compress
parport_pc ppdev lp parport intel_rapl_msr intel_rapl_common edac_mce_amd
amdgpu kvm irqbypass pktcdvd ghash_clmulni_intel sha512_ssse3 sha512_generic
sha256_ssse3 gpu_sched sha1_ssse3 drm_buddy drm_display_helper aesni_intel
snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic crypto_simd
cryptd snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi cec snd_hda_codec
evdev rc_core rapl snd_hda_core drm_ttm_helper tt
m eeepc_wmi snd_hwdep drm_kms_helper snd_pcm
2025-06-09T15:47:50.942371+02:00 pcale kernel: [12516.715489]  snd_timer
asus_wmi battery snd platform_profile drm soundcore sparse_keymap ledtrig_audio
rfkill i2c_algo_bit pcspkr wmi_bmof ccp serio_raw sp5100_tco watchdog k10temp
button acpi_cpufreq ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid
uas sr_mod sg hid usb_storage cdrom sd_mod ahci libahci nvme xhci_pci libata
nvme_core xhci_hcd r8169 realtek t10_pi crc32_pclmul mdio_devres crc32c_intel
psmouse scsi_mod usbcore libphy crc64_rocksoft crc64 crc_t10dif
crct10dif_generic i2c_piix4 crct10dif_pclmul crct10dif_common usb_common
scsi_common video wmi gpio_amdpt gpio_generic
2025-06-09T15:47:50.942372+02:00 pcale kernel: [12516.715551] CPU: 2 PID: 17736
Comm: kworker/u64:15 Tainted: G        W          6.1.0-37-amd64 #1  Debian
6.1.140-1
2025-06-09T15:47:50.942373+02:00 pcale kernel: [12516.715555] Hardware name:
System manufacturer System Product Name/PRIME B450M-A, BIOS 3211 08/10/2021
2025-06-09T15:47:50.942374+02:00 pcale kernel: [12516.715557] Workqueue:
events_unbound async_run_entry_fn
2025-06-09T15:47:50.942375+02:00 pcale kernel: [12516.715562] RIP:
0010:drm_kms_helper_poll_enable+0x116/0x130 [drm_kms_helper]
2025-06-09T15:47:50.942378+02:00 pcale kernel: [12516.715577] Code: 48 8b 5f 50
48 85 db 75 03 48 8b 1f e8 13 e6 97 e9 48 c7 c1 c8 57 b8 c0 48 89 da 48 c7 c7
3a 6b b8 c0 48 89 c6 e8 0a 6a 33 e9 <0f> 0b e9 39 ff ff ff e8 0e cc cc e9 66 66
2e 0f 1f 84 00 00 00 00
2025-06-09T15:47:50.942379+02:00 pcale kernel: [12516.715579] RSP:
0018:ffffa47640ce7d90 EFLAGS: 00010286
2025-06-09T15:47:50.942380+02:00 pcale kernel: [12516.715582] RAX:
0000000000000000 RBX: ffff98ba413ca880 RCX: ffff98bd6f2995e0
2025-06-09T15:47:50.942381+02:00 pcale kernel: [12516.715583] RDX:
0000000000000000 RSI: 0000000000000046 RDI: 0000000000000001
2025-06-09T15:47:50.942381+02:00 pcale kernel: [12516.715585] RBP:
ffff98ba44f80010 R08: ffffffffacd81a60 R09: ffff98be6f2d5abc
2025-06-09T15:47:50.942382+02:00 pcale kernel: [12516.715587] R10:
ffffffffffffffff R11: 000000002d2d2d2d R12: ffff98ba44f80000
2025-06-09T15:47:50.942382+02:00 pcale kernel: [12516.715588] R13:
0000000000000001 R14: ffff98ba44f98500 R15: ffff98ba4141f150
2025-06-09T15:47:50.942383+02:00 pcale kernel: [12516.715590] FS:
0000000000000000(0000) GS:ffff98bd60a80000(0000) knlGS:0000000000000000
2025-06-09T15:47:50.942384+02:00 pcale kernel: [12516.715592] CS:  0010 DS:
0000 ES: 0000 CR0: 0000000080050033
2025-06-09T15:47:50.942384+02:00 pcale kernel: [12516.715594] CR2:
0000000000000000 CR3: 0000000381df8000 CR4: 00000000003506e0
2025-06-09T15:47:50.942385+02:00 pcale kernel: [12516.715596] Call Trace:
2025-06-09T15:47:50.942389+02:00 pcale kernel: [12516.715598]  <TASK>
2025-06-09T15:47:50.942390+02:00 pcale kernel: [12516.715603]
amdgpu_device_resume+0x150/0x310 [amdgpu]
2025-06-09T15:47:50.942391+02:00 pcale kernel: [12516.715801]  ?
pci_pm_poweroff_noirq+0x100/0x100
2025-06-09T15:47:50.942391+02:00 pcale kernel: [12516.715806]
dpm_run_callback+0x4a/0x150
2025-06-09T15:47:50.942392+02:00 pcale kernel: [12516.715811]
__device_resume+0xa5/0x250
2025-06-09T15:47:50.942392+02:00 pcale kernel: [12516.715815]
async_resume+0x19/0x30
2025-06-09T15:47:50.942396+02:00 pcale kernel: [12516.715818]
async_run_entry_fn+0x30/0x130
2025-06-09T15:47:50.942397+02:00 pcale kernel: [12516.715822]
process_one_work+0x1c7/0x380
2025-06-09T15:47:50.942398+02:00 pcale kernel: [12516.715827]
worker_thread+0x4d/0x380
2025-06-09T15:47:50.942399+02:00 pcale kernel: [12516.715831]  ?
rescuer_thread+0x3a0/0x3a0
2025-06-09T15:47:50.942399+02:00 pcale kernel: [12516.715833]
kthread+0xda/0x100
2025-06-09T15:47:50.942400+02:00 pcale kernel: [12516.715837]  ?
kthread_complete_and_exit+0x20/0x20
2025-06-09T15:47:50.942401+02:00 pcale kernel: [12516.715841]
ret_from_fork+0x22/0x30
2025-06-09T15:47:50.942488+02:00 pcale kernel: [12516.715850]  </TASK>
2025-06-09T15:47:50.942490+02:00 pcale kernel: [12516.715851] ---[ end trace
0000000000000000 ]---

#1107579#10
Date:
2025-06-11 20:55:04 UTC
From:
To:
Hello Alessandro,

There is a (maybe) similar bug report at
https://bugs.debian.org/1106668. I asked the reporter of that bug to
check for a BIOS update and if that doesn't help follow
https://docs.kernel.org/power/basic-pm-debugging.html to debug the
issue. That would be helpful here, too. So can you please check these
and follow up with your findings?

Best regards
Uwe

#1107579#17
Date:
2025-06-12 10:45:15 UTC
From:
To:
Hi Uwe,


This seems different from bug 1106668.  When the "Suspending console(s)"
message is displayed, besides ctrl-alt-fX, Caps and Num Locks' leds work
properly.  The network works, I can login with ssh.

My BIOS doesn't seem to be overly old:

         Vendor: American Megatrends Inc.
         Version: 3211
         Release Date: 08/10/2021

I couldn't find which/ where more recent versions exist.


All three modes, reboot, platform and shutdown, fail in the same way described
above.  That is, the screen is unusable after a circuitous restore.

The freezer test works fine.

All the other tests, devices, platform, processors and core, resume to a black
screen.  Blindly typed commands are accepted and executed.  The sequence
ctrl-alt-f1 + ctrl-alt-f7 (which I called "circuitous") restores the screen to
a normal state.  The test_resume option, after resetting pm_test to none,
behaves the same way.

Probably the system works also after a real restore, except that the screen is
so broken as to make it unusable.


Best
Ale

#1107579#24
Date:
2025-06-18 20:26:03 UTC
From:
To:
Hello Alessandro,

We discussed this bug during our weekly team meeting and with your
results we have no idea how to address this. Our best recommendation is
to test if this is an issue on a later kernel and then take this to upstream.

So can you please check if that problem also happens with 6.12 or better
still on 6.15, please?
(Note that 6.12.31 has another amdgpu bug, so please make sure to test
at least 6.12.32 (that is, take the kernel package from testing and not
backports, or wait until backports are updated accordingly);
experimental has 6.15.)

The right place to report the problem upstream then is
https://gitlab.freedesktop.org/drm/amd/-/issues. Given that there will
probably some things to test in reply to that, it would be great if you
could care for that report eliminating the kernel team as middle men.
If so please mark this bug as forwarded with a link to your report (or
reply with that info if you don't know how to do that).

Best regards
Uwe

#1107579#29
Date:
2025-06-20 10:35:54 UTC
From:
To:
Hi Uwe,
I found that before installing linux-image-6.1.0-37-amd64 I ran linux-image-6.1.0-34-amd64, which worked:

ale@pcale:~/tmp$ dpkg -l linux-image\* |tail -6
rc  linux-image-6.1.0-34-amd64           6.1.135-1          amd64        Linux 6.1 for 64-bit PCs (signed)
un  linux-image-6.1.0-34-amd64-unsigned  <none>             <none>       (no description available)
ii  linux-image-6.1.0-37-amd64           6.1.140-1          amd64        Linux 6.1 for 64-bit PCs (signed)
un  linux-image-6.1.0-37-amd64-unsigned  <none>             <none>       (no description available)
ii  linux-image-amd64                    6.1.140-1          amd64        Linux for 64-bit PCs (meta-package)
un  linux-image-generic                  <none>             <none>       (no description available)

I'm unclear about the relationship among Devuan/ Debian 6.1.0-37, 6.1.140-1 numbering and the 6.15 or 6.12 used by kernel.org.  I get the following:

ale@pcale:~/tmp$ uname -a
Linux pcale 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux

and

ale@pcale:~/tmp$ dpkg -s linux-image-6.1.0-37-amd64
Package: linux-image-6.1.0-37-amd64
Status: install ok installed
Priority: optional
Section: kernel
Installed-Size: 399275
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: amd64
Source: linux-signed-amd64 (6.1.140+1)
Version: 6.1.140-1
Replaces: linux-image-6.1.0-37-amd64-unsigned
Depends: kmod, linux-base (>= 4.3~), initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool
Recommends: firmware-linux-free, apparmor
Suggests: linux-doc-6.1, debian-kernel-handbook, grub-pc | grub-efi-amd64 | extlinux
Breaks: fwupdate (<< 12-7), initramfs-tools (<< 0.120+deb8u2), wireless-regdb (<< 2019.06.03-1~)
Conflicts: linux-image-6.1.0-37-amd64-unsigned
Description: Linux 6.1 for 64-bit PCs (signed)
  The Linux kernel 6.1 and modules for use on PCs with AMD64, Intel 64 or
  VIA Nano processors.
  .
  The kernel image and modules are signed for use with Secure Boot.
Built-Using: linux (= 6.1.140-1)
Homepage: https://www.kernel.org/


On the Devuan repository there is also a linux-image-6.1.0-36-amd64, which looks like the one before what I have now. I find also a linux-image-6.12.12+bpo-amd64, which as an installed size about 1/3 of and linux-image-6.1.0-37-amd64.  I wonder what's the difference.  I paste both descriptions below.  Would you please shed some light on what should I install?


ale@pcale:~/tmp$ apt-cache show linux-image-6.12.12+bpo-amd64
Package: linux-image-6.12.12+bpo-amd64
Version: 6.12.12-1~bpo12+1
Installed-Size: 105221
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: amd64
Replaces: linux-image-6.12.12+bpo-amd64-unsigned
Depends: kmod, linux-base (>= 4.3~), initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool
Conflicts: linux-image-6.12.12+bpo-amd64-unsigned
Breaks: fwupdate (<< 12-7), initramfs-tools (<< 0.120+deb8u2), wireless-regdb (<< 2019.06.03-1~)
Homepage: https://www.kernel.org/
Built-Using: linux (= 6.12.12-1~bpo12+1)
Recommends: apparmor
Description-en: Linux 6.12 for 64-bit PCs (signed)
  The Linux kernel 6.12 and modules for use on PCs with AMD64, Intel 64 or
  VIA Nano processors.
  .
  The kernel image is signed for use with Secure Boot.
Description-md5: 224c8e7ad16235c8d318cebf70217775
Source: linux-signed-amd64 (6.12.12+1~bpo12+1)
Suggests: firmware-linux-free, linux-doc-6.12, debian-kernel-handbook, grub-pc | grub-efi-amd64 | extlinux
Section: kernel
Priority: optional
Filename: pool/DEBIAN/main/l/linux-signed-amd64/linux-image-6.12.12+bpo-amd64_6.12.12-1~bpo12+1_amd64.deb
Size: 104999700
SHA256: 9690bbafdd63cae33cf54d63e040e017f402fcc4b4ebc678438ef133ed736bc7




ale@pcale:~/tmp$ apt-cache show linux-image-6.1.0-37-amd64
Package: linux-image-6.1.0-37-amd64
Version: 6.1.140-1
Installed-Size: 399275
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: amd64
Replaces: linux-image-6.1.0-37-amd64-unsigned
Depends: kmod, linux-base (>= 4.3~), initramfs-tools (>= 0.120+deb8u2) | linux-initramfs-tool
Conflicts: linux-image-6.1.0-37-amd64-unsigned
Breaks: fwupdate (<< 12-7), initramfs-tools (<< 0.120+deb8u2), wireless-regdb (<< 2019.06.03-1~)
Homepage: https://www.kernel.org/
Built-Using: linux (= 6.1.140-1)
Recommends: firmware-linux-free, apparmor
Description-en: Linux 6.1 for 64-bit PCs (signed)
  The Linux kernel 6.1 and modules for use on PCs with AMD64, Intel 64 or
  VIA Nano processors.
  .
  The kernel image and modules are signed for use with Secure Boot.
Description-md5: eaf7b81be84ec12eb25fe90a4bac0f60
Source: linux-signed-amd64 (6.1.140+1)
Suggests: linux-doc-6.1, debian-kernel-handbook, grub-pc | grub-efi-amd64 | extlinux
Section: kernel
Priority: optional
Filename: pool/DEBIAN-SECURITY/updates/main/l/linux-signed-amd64/linux-image-6.1.0-37-amd64_6.1.140-1_amd64.deb
Size: 69078572
SHA256: cba358b526f20a637a4442ca220dd7fcd71f0b87956cb81b162e5a390ef0223c




Best
Ale

#1107579#34
Date:
2025-06-26 15:59:20 UTC
From:
To:
Hello Alessandro,

I don't know if Devuan does their own kernel packaging, but for Debian
it's as follows:

The kernel package name is linux-image-6.1.0-37-amd64 and it's version
is 6.1.140-1. That corresponds to upstream's 6.1.140 release. "6.1.0-37"
has no relevance in the mapping, though it's no coincidence that it
starts with "6.1.".

For newer kernels the naming scheme is different, but in it says true
that the version of the kernel packages correspond to upstreams version.

The difference is that for newer kernels the modules are compressed.

Try installing http://deb.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-6.15-amd64_6.15.3-1~exp1_amd64.deb
. The MD5 sum should be c41ea7cd2bf35dc2ef13b6502df9dac0.

Note that you should better uninstall that package after the test again
because it will probably prevent that you benefit from further security
fixes.

Please report back if the problem occurs with that kernel version, too.

Best regards
Uwe

#1107579#39
Date:
2025-06-27 13:29:21 UTC
From:
To:
Hi Uwe,
They don't.  The --print-uris option talls me, for example:

root@pcale:# apt-get install --print-uris linux-image-amd64-dbg
...
'http://deb.devuan.org/merged/pool/DEBIAN-SECURITY/updates/main/l/linux/linux-image-6.1.0-37-amd64-dbg_6.1.140-1_amd64.deb' linux-image-6.1.0-37-amd64-dbg_6.1.140-1_amd64.deb 853916720
'http://deb.devuan.org/merged/pool/DEBIAN-SECURITY/updates/main/l/linux/linux-image-amd64-dbg_6.1.140-1_amd64.deb' linux-image-amd64-dbg_6.1.140-1_amd64.deb 1300

But then:

root@pcale:# curl --head http://deb.devuan.org/merged/pool/DEBIAN-SECURITY/updates/main/l/linux/
HTTP/1.1 302 Found
Date: Fri, 27 Jun 2025 12:44:01 GMT
Server: Apache/2.4.62 (Debian)
Location: http://deb.debian.org/debian-security/pool/updates/main/l/linux/
Content-Type: text/html; charset=iso-8859-1


Thank you so much for clarifying.  It's quite obscure.
I haven't been able to find what Devuan package points there.  I tried to install it directly, but got the following error:

root@pcale:# dpkg -i linux-image-6.15-amd64_6.15.3-1~exp1_amd64.deb
dpkg: regarding linux-image-6.15-amd64_6.15.3-1~exp1_amd64.deb containing linux-image-6.15-amd64, pre-dependency problem:
  linux-image-6.15-amd64 pre-depends on linux-base (>= 4.12~)
   linux-base is installed, but is version 4.9.

dpkg: error processing archive linux-image-6.15-amd64_6.15.3-1~exp1_amd64.deb (--install):
  pre-dependency problem - not installing linux-image-6.15-amd64
Errors were encountered while processing:
  linux-image-6.15-amd64_6.15.3-1~exp1_amd64.deb


I got more errors when trying to install linux-base 4.12.  Then I didn't insist because something sounds wrong:  If I'm trying to install a previous version of the kernel, how come it depends to a subsequent version of linux-base?  In fact, I cannot find 6.15 in the cache:

root@pcale:# apt-cache search linux-image| grep 6.15
root@pcale:#

The highest I can find with apt-cache is a 6.12.27 backport:

root@pcale:# apt-get install --print-uris linux-image-6.12.27+bpo-rt-amd64
...
'http://deb.devuan.org/merged/pool/DEBIAN/main/l/linux-signed-amd64/linux-image-6.12.27%2bbpo-rt-amd64_6.12.27-1%7ebpo12%2b1_amd64.deb' linux-image-6.12.27+bpo-rt-amd64_6.12.27-1~bpo12+1_amd64.deb 107428604

Which is redirected to an URL in the same directory as the 6.15 you suggested:
Location: http://deb.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-6.12.27+bpo-rt-amd64_6.12.27-1~bpo12+1_amd64.deb


Thinking again, maybe it would be more productive to try and install the latest kernel, in case the problem is fixed there.

What you think?


Best
Ale

#1107579#44
Date:
2025-06-27 14:04:54 UTC
From:
To:
Hello Alessandro,

you need at least linux-base from trixie or bookworm-backports.

I don't understand the confusion. linux-image-6.1.0... depends on
linux-base (>= 4.3~) and linux-image-6.12... depends on linux-base (>=
4.12~). So you need a newer linux-base than available in debian12.

linux-image-6.15 is in debian experimental for now only.

Yeah, 6.15 is a good first approximation for "latest kernel". There is
6.16-rc3 upstream already, but that isn't packaged yet.

Best regards
Uwe