linux icon indicating copy to clipboard operation
linux copied to clipboard

[IPC4] Suspend while pause causes IPC errors

Open ujfalusi opened this issue 10 months ago • 1 comments

Steps to reproduce (on upx-i11 for example - needs pause support to be force enabled): terminal1: aplay -Dhw:0,0 -i -fdat /dev/zero terminal1: < press SPACE to pause > retminal2: rtcwake -m mem -s5 terminal1: < press SPACE to release > terminal1: <press CTRL+c to stop>

in kernel log IPC errors will be present:

[  797.265134] sof-audio-pci-intel-tgl 0000:00:1f.3: FW reported error: 12 - Required resource is in invalid state
[  797.265151] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc error for msg 0x12000000|0x0
[  797.265154] sof-audio-pci-intel-tgl 0000:00:1f.3: failed to free pipeline widget pipeline.1
...
[  797.265540] sof-audio-pci-intel-tgl 0000:00:1f.3: FW reported error: 12 - Required resource is in invalid state
[  797.265562] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc error for msg 0x12010000|0x0
[  797.265565] sof-audio-pci-intel-tgl 0000:00:1f.3: failed to free pipeline widget pipeline.2
[  797.265572] sof-audio-pci-intel-tgl 0000:00:1f.3: Failed to free connected widgets
[  797.265579] sof-audio-pci-intel-tgl 0000:00:1f.3: sof_pcm_stream_free: pcm0 (HDA Analog), dir 0: sof_widget_list_free failed -22
...
[  833.268174] sof-audio-pci-intel-tgl 0000:00:1f.3: FW reported error: 12 - Required resource is in invalid state
[  833.268198] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc error for msg 0x12000000|0x0
[  833.268204] sof-audio-pci-intel-tgl 0000:00:1f.3: failed to free pipeline widget pipeline.1
...
[  833.269106] sof-audio-pci-intel-tgl 0000:00:1f.3: Failed to free connected widgets
[  833.269115] sof-audio-pci-intel-tgl 0000:00:1f.3: sof_pcm_stream_free: pcm0 (HDA Analog), dir 0: sof_widget_list_free failed -22
[  833.269124] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC error (-22): at snd_soc_pcm_component_hw_free() on 0000:00:1f.3

kernel log for this scenario: dmesg.txt

The only working fix so far for this is: https://github.com/thesofproject/linux/pull/5058

ujfalusi avatar Feb 28 '25 14:02 ujfalusi

The fix upstream is: https://lore.kernel.org/linux-sound/[email protected]/

ujfalusi avatar Apr 01 '25 15:04 ujfalusi