Package: src:linux
Version: 6.12.116-1
Severity: important
Tags: regression
Dear Maintainer,
After upgrading from linux-image-6.12.107+deb13-amd64 (6.12.107-1) to
linux-image-6.12.116+deb13-amd64 (6.12.116-1), the system hangs ~30 s after
every boot. snd_hda_intel's probe work spins on CPU#0 in
snd_hdac_bus_send_cmd() while initializing the codecs. On this 2-core machine,
the rest of the system then stalls ("task systemd:1 blocked for more than 120
seconds", login hangs, and SSH accepts connections but never starts a shell).
It needs a hard power-off.
Hardware:
HP Laptop 15s-fq3xxx, board 88EA, BIOS F.63 (10/05/2023)
CPU: Intel Celeron N4500 (Jasper Lake), 2 cores
Audio: 00:1f.3 Intel Jasper Lake HD Audio [8086:4dc8] (rev 01),
subsystem HP [103c:88ea]
Codecs (as detected on 6.12.107): Realtek ALC236 (addr 0), Intel HDMI (addr 2)
GPU: 00:02.0 Intel JasperLake UHD Graphics [8086:4e55]
firmware-sof-signed 2025.01-1; legacy HDA driver is selected (no DMIC)
Reproducibility:
- 6.12.107-1: audio works on every boot, including a warm boot directly
after a 6.12.116 hang (so the hardware is not stuck or broken).
- 6.12.116-1: hangs on every boot (4/4).
- 6.12.116-1 + runtime "modprobe snd_hda_intel" after boot: same soft lockup.
- 6.12.116-1 + snd_hda_intel probe_mask=1 (Realtek codec only): same soft
lockup, so the HDMI codec alone is not the trigger.
- 6.12.116-1 + snd_hda_intel single_cmd=1: no lockup, but neither codec
answers:
hdaudio hdaudioC0D0: no AFG or MFG node found
hdaudio hdaudioC0D2: no AFG or MFG node found
snd_hda_intel 0000:00:1f.3: no codecs initialized
The subsequent reboot then hung at the very end of shutdown.
Workaround: blacklisting snd_hda_intel / snd_sof_pci_intel_icl /
snd_sof_pci_intel_cnl / snd_soc_avs makes 6.12.116 boot and run stably, but
there is no audio.
I could not find an obvious culprit among the ALSA entries in the
6.12.107..6.12.116 changelog. Because the codec link depends on the i915 audio
component ("bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])"
appears just before the hang), an i915 or power-management change may also be
the cause. I'm happy to test patches or bisect between stable versions if
that helps.
Kernel log of the first lockup (6.12.116-1, "Modules linked in" lines
truncated):
[ 32.132060] watchdog: BUG: soft lockup - CPU#0 stuck for 26s!
[kworker/0:1:11]
[ 32.132208] Modules linked in: ccm xt_connmark xt_conntrack xt_MASQUERADE
xt_tcpudp xt_mark ...
[ 32.132436] CPU: 0 UID: 0 PID: 11 Comm: kworker/0:1 Not tainted
6.12.116+deb13-amd64 #1 Debian 6.12.116-1
[ 32.132457] Hardware name: HP HP Laptop 15s-fq3xxx/88EA, BIOS F.63 10/05/2023
[ 32.132476] Workqueue: events azx_probe_work [snd_hda_intel]
[ 32.132495] RIP: 0010:_raw_spin_unlock_irq+0x15/0x40
[ 32.132513] Code: 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 f3 0f 1e fa 0f 1f 44 00 00 c6 07 00 0f 1f 00 fb 0f 1f 44 00 00 <65> ff 0d
2c 8c d1 75 74 05 c3 cc cc cc cc 0f 1f 44 00 00 c3 cc cc
[ 32.132531] RSP: 0018:ffffcd02800f7b58 EFLAGS: 00000246
[ 32.132551] RAX: 0000000000000007 RBX: 00000000fffffff5 RCX: ffff8b92511e6038
[ 32.132571] RDX: 0000000000000007 RSI: ffffcd02808e8000 RDI: ffff8b92511e64d0
[ 32.132594] RBP: ffff8b92511e64d0 R08: ffff8b92511e6428 R09: 0000000000000001
[ 32.132614] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000004
[ 32.132633] R13: ffffcd02800f7b9c R14: 00000000400f0005 R15: ffff8b92511e6028
[ 32.132652] FS: 0000000000000000(0000) GS:ffff8b93b8000000(0000)
knlGS:0000000000000000
[ 32.132672] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 32.132689] CR2: 00007fdcbde36ee0 CR3: 0000000101744000 CR4: 0000000000352ef0
[ 32.132708] Call Trace:
[ 32.132726] <TASK>
[ 32.132748] snd_hdac_bus_send_cmd+0x20c/0x230 [snd_hda_core]
[ 32.132767] snd_hdac_bus_exec_verb_unlocked+0x8a/0x1b0 [snd_hda_core]
[ 32.132785] snd_hdac_bus_exec_verb+0x3b/0x60 [snd_hda_core]
[ 32.132803] hda_reg_read+0x1c1/0x250 [snd_hda_core]
[ 32.132822] reg_raw_read+0x4f/0x70 [snd_hda_core]
[ 32.132841] snd_hdac_regmap_read_raw+0x1f/0x70 [snd_hda_core]
[ 32.132860] snd_hdac_device_init+0x246/0x440 [snd_hda_core]
[ 32.132878] snd_hda_codec_device_init+0xf2/0x2b0 [snd_hda_codec]
[ 32.132897] snd_hda_codec_new+0x31/0x90 [snd_hda_codec]
[ 32.132917] azx_probe_codecs+0x188/0x240 [snd_hda_codec]
[ 32.132934] azx_probe_continue+0x6a3/0x850 [snd_hda_intel]
[ 32.132953] process_one_work+0x188/0x340
[ 32.132971] worker_thread+0x191/0x2f0
[ 32.132988] ? __pfx_worker_thread+0x10/0x10
[ 32.133007] kthread+0xcf/0x100
[ 32.133024] ? __pfx_kthread+0x10/0x10
[ 32.133042] ret_from_fork+0x31/0x50
[ 32.133063] ? __pfx_kthread+0x10/0x10
[ 32.133080] ret_from_fork_asm+0x1a/0x30
[ 32.133101] </TASK>
Followed by repeating soft-lockup reports every 28 s, and then:
INFO: task systemd:1 blocked for more than 120 seconds.
INFO: task kworker/u8:2:36 blocked for more than 120 seconds.
INFO: task khugepaged:41 blocked for more than 120 seconds.
INFO: task login:707 blocked for more than 120 seconds.