Created attachment 1687770 [details] kernel log starting at boot 1. Please describe the problem: I'm seeing multiple kernel error messages, several per second, all looking like May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x80010000 size 120 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: can't enter idle May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: trace point 00004000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: panic at src/lib/agent.c:50 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: DSP Firmware Oops May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: EXCCAUSE 0x0000003f EXCVADDR 0x00000000 PS 0x00060725 SAR 0x00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: EPC1 0x00000000 EPC2 0xbe00cefe EPC3 0x00000000 EPC4 0x00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: EPC5 0x00000000 EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: EPS2 0x00060d20 EPS3 0x00000000 EPS4 0x00000000 EPS5 0x00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: EPS6 0x00000000 EPS7 0x00000000 INTENABL 0x00000000 INTERRU 0x00000222 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: stack dump from 0xbe04c0f0 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c0f0: be00f7f0 be04c120 be052180 00000001 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c0f4: 00000000 00000000 00000032 00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c0f8: 00000000 00000000 2f637273 2f62696c May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c0fc: 00000000 8829f028 ffff8e66 c0af81ce May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c100: ffff8e66 93127aa0 ffffffff 41c57938 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c104: ffff8e66 41c579cc ffffafe2 c0af5ace May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c108: ffff8e66 8829f028 ffff8e66 c0c49b7e May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: 0xbe04c10c: 00000000 00000000 00000000 85981a30 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0xc0000000 rirb 00 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: error: failed to set dai config for iDisp1 May 12 12:11:24 idefix kernel: sof-audio-pci 0000:00:1f.3: ASoC: can't set iDisp1 Pin hw params: -110 May 12 12:11:24 idefix kernel: iDisp1: ASoC: hw_params BE failed -110 May 12 12:11:24 idefix kernel: HDMI1: ASoC: hw_params BE failed -110 It may be that the initial error message is the real one: May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: error : DSP panic! May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005 May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: error: can't enter idle May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: error: trace point 00004000 May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: error: panic at src/lib/agent.c:50 May 12 10:34:46 kernel: sof-audio-pci 0000:00:1f.3: error: DSP Firmware Oops 2. What is the Version-Release number of the kernel: 5.6.11-300.fc32.x86_64 This is for a Lenovo Yoga C940, with an Intel(R) Core(TM) i7-1065G7 CPU. 3. Did it work previously in Fedora? If so, what kernel version did the issue *first* appear? Old kernels are available for download at https://koji.fedoraproject.org/koji/packageinfo?packageID=8 : Similar problems have been happening before, but maybe only for certain kernels. 4. Can you reproduce this issue? If so, please provide the steps to reproduce the issue below: This does not happen all the time. It appears to be triggered by trying to play sound. 5. Does this problem occur with the latest Rawhide kernel? To install the Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by ``sudo dnf update --enablerepo=rawhide kernel``: Unknown 6. Are you running any modules that not shipped with directly Fedora's kernel?: No 7. Please attach the kernel logs. You can get the complete kernel log for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the issue occurred on a previous boot, use the journalctl ``-b`` flag.
Thanks for your report. If this problem is affecting the usability of your system, a workaround would be to blacklist an sof module, possibly: module_blacklist=snd_sof_pci Also, could you put a link to your upstream bug report in the Links section at the top of the page: Bug_205755 - limited sound on Lenovo Yoga C940 https://bugzilla.kernel.org/show_bug.cgi?id=205755
Using sof is required for the digital microphone to work on systems like this so blacklisting it isn't a good solution. The problem appears to be related to suspending and removing (or maybe to adding and removing a USB sound device) and only occurs occasionally so rebooting is a better solution than blacklisting. This does appear to be somewhat different from my original report of sound problems on this laptop but I did add the link.
Samuel, in Bug 1817368, Comment 28, uses a workaround that leaves audio working on his system: $ cat /etc/modprobe.d/snd_intel.conf options snd-intel-dspcfg dsp_driver=1 Bug 1817368 - Random hangs with sof-audio-pci
(In reply to Peter F. Patel-Schneider from comment #2) > Using sof is required for the digital microphone to work on systems like this so blacklisting it isn't a good solution. That's why I qualified my suggestion with this phrase: "If this problem is affecting the usability of your system". If it would help make that qualification more clear, amend it to say: "_otherwise_ affecting". BTW, a "perfect" workaround is called a "fix".
As I more or less expected $ cat /etc/modprobe.d/snd_intel.conf options snd-intel-dspcfg dsp_driver=1 turns off sof, which means that the laptop's microphone doesn't work. As having sound sometimes not work is better than no microphone at all I'm going to go back to sof. I'll try to keep a close watch and see if I can better figure out what is triggering the problem.
This appears to be working in Fedora 33.