Skip to content

sof-audio-pci-intel-tgl: warm reboot stalls in infinite -EAGAIN loop in snd_hdac_bus_exec_verb_unlocked (100% CPU, no soundcards) on HP 15-dw3xxx #6083

Backlog

Description

@oldestdream-07

Summary

On an HP Laptop 15-dw3xxx (Intel Tiger Lake + Realtek ALC236), warm reboots frequently cause sof-audio-pci-intel-tgl (0000:00:1f.3) to hang during sof_probe_work() right after logging use msi interrupt mode.

When this happens:

  1. One kworker/*+events thread spins at ~100% CPU indefinitely in kernel space.
  2. Probe never completes (hda codecs found is never logged and /proc/asound/cards reports --- no soundcards ---).
  3. A full cold shutdown + power-on recovers audio every time (6/6 cold boots succeeded; 3/4 warm reboots hung across both Linux 7.2.15 and 7.3.6).

Hardware & Software

  • System: HP Laptop 15-dw3xxx, board 881D, BIOS F.71 (11/21/2025)
  • CPU: 11th Gen Intel(R) Core(TM) i3-1125G4 @ 2.00GHz (Tiger Lake)
  • Audio Controller: 0000:00:1f.3 Multimedia audio controller [0401]: Intel Corporation 500 Series Chipset Family On-Package High Definition Audio (HD Audio) [8086:a0c8] (rev 20) (PCI SSID 103c:881d)
  • Codecs (on working boot): mask 5 — Realtek ALC236 (ehdaudio0D0) + Intel HDMI, 2 DMICs in NHLT
  • Firmware / Topology: sof-firmware 2026.09.2-1 (intel/sof/sof-tgl.ri FW 2:2:0-57864, intel/sof-tplg/sof-hda-generic-2ch.tplg)
  • Kernels reproduced on: 7.2.15-4-omarchy, 7.3.6-11-omarchy (Arch Linux)

Kernel Log on Hung Boot

snd_soc_avs 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops intel_audio_component_bind_ops [i915])
sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode

(Log stops here; AudioDSP IRQ stops incrementing after ~274–277 interrupts.)

Stack Trace of Spinning Worker (kworker/2:2+events, 99.8% CPU)

Captured via sudo taskset -c 2 cat /proc/865/stack:

[<0>] preempt_schedule_thunk+0x16/0x40
[<0>] snd_hdac_bus_send_cmd+0xbe/0x2b0 [snd_hda_core]
[<0>] snd_hdac_bus_exec_verb_unlocked+0x9d/0x1e0 [snd_hda_core]
[<0>] snd_hdac_bus_exec_verb+0x41/0x60 [snd_hda_core]
[<0>] hda_reg_read+0x20c/0x240 [snd_hda_core]
[<0>] snd_hdac_regmap_read_raw+0x85/0xe0 [snd_hda_core]
[<0>] snd_hdac_device_init+0x226/0x490 [snd_hda_core]
[<0>] snd_hda_codec_device_init+0x11e/0x2c0 [snd_hda_codec]
[<0>] hda_codec_probe_bus+0x151/0x372 [snd_sof_intel_hda]
[<0>] hda_dsp_probe+0x22d/0x6e0 [snd_sof_intel_hda_generic]
[<0>] sof_probe_work+0x4b/0x7f0 [snd_sof]
[<0>] process_one_work+0x1d9/0x3d0
[<0>] worker_thread+0x1f3/0x3c0
[<0>] kthread+0xe6/0x120
[<0>] ret_from_fork+0x294/0x330
[<0>] ret_from_fork_asm+0x1a/0x30

Root Cause Notes

Inspecting snd-hda-core.ko around snd_hdac_bus_send_cmd+0xbe and snd_hdac_bus_exec_verb_unlocked+0x9d:

  1. snd_hdac_bus_send_cmd() sees the CORB ring full ((CORBWP + 1) & 0xff == CORBRP), unlocks at +0xbe, and returns -EAGAIN.
  2. snd_hdac_bus_exec_verb_unlocked() loops unconditionally on -EAGAIN (for (;;)), calling bus->ops->get_response() (which returns 0 immediately) and immediately retrying snd_hdac_bus_send_cmd() with no sleep and no retry limit — spinning at 100% CPU forever.
  3. On normal reboot, hda_dsp_shutdown() only calls snd_sof_suspend() (whereas unbinding 0000:00:1f.3 calls hda_dsp_remove() -> hda_codec_device_remove() / hda_dsp_ctrl_stop_chip()). Unbinding 0000:00:1f.3 via a pre-reboot systemd service worked around the warm-reboot hang on retest.

Expected Behavior

  • The HDA/DSP controller should be left in a clean state across warm reboots so codec probing completes normally.
  • Even if CORB stalls, snd_hdac_bus_exec_verb_unlocked() should time out / reset CORB and fail gracefully rather than spinning a kworker at 100% CPU indefinitely.

Related to #6036 (Problem 2 — same warm-reboot SOF probe hang and same pre-reboot unbind workaround on HP 250 G9 / 15-dw4xxx, Alder Lake + ALC236, SSID 103c:89a0; this report adds the spinning kworker stack trace in snd_hdac_bus_send_cmd / snd_hdac_bus_exec_verb_unlocked).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions