Repository navigation
Description
This on a Dell XPS 17 9720 Laptop with Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01).
I have gone thru the wiki and installed sof-firmware as instructed.
sof version: sof-firmware 2.2-1
with sof-installed:
0000:00:1f.3 Multimedia audio controller: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
Subsystem: Dell Device 0afe
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
when the sof-firmware is installed the laptop hangs on shutdown indefinitely and requires holding the power button down.
looking at the next boot 'journalctl -b' i see these listed:
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Jul 16 23:15:36 olderman kernel: fbcon: i915drmfb (fb0) is primary device
Jul 16 23:15:36 olderman kernel: Console: switching to colour frame buffer device 240x75
Jul 16 23:15:36 olderman kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:19:1
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:19:1
Jul 16 23:15:36 olderman kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
...
Jul 16 23:15:38 olderman kernel: soundwire sdw:3:025d:0714:01: Probe not complete, timed out
Jul 16 23:15:38 olderman kernel: soundwire sdw:3:025d:0714:01: Update Slave status failed:-110
Jul 16 23:15:38 olderman kernel: soundwire sdw:2:025d:1316:01: Probe not complete, timed out
Jul 16 23:15:38 olderman kernel: soundwire sdw:2:025d:1316:01: Update Slave status failed:-110
Jul 16 23:15:38 olderman kernel: soundwire sdw:1:025d:1316:01: Probe not complete, timed out
Jul 16 23:15:38 olderman kernel: soundwire sdw:1:025d:1316:01: Update Slave status failed:-110
Jul 16 23:15:38 olderman kernel: soundwire sdw:0:025d:0711:01: Probe not complete, timed out
Jul 16 23:15:38 olderman kernel: soundwire sdw:0:025d:0711:01: Update Slave status failed:-110
...
Jul 16 23:15:39 olderman kernel: sof_sdw sof_sdw: snd_soc_register_card failed -517
Jul 16 23:15:40 olderman kernel: sof_sdw sof_sdw: snd_soc_register_card failed -517
Jul 16 23:15:40 olderman kernel: sof_sdw sof_sdw: snd_soc_register_card failed -517
Jul 16 23:15:40 olderman kernel: sof_sdw sof_sdw: snd_soc_register_card failed -517
Jul 16 23:15:40 olderman kernel: sof_sdw sof_sdw: snd_soc_register_card failed -517
...
ul 16 23:16:39 olderman systemd-udevd[368]: sdw:0:025d:0711:01: Worker [374] processing SEQNUM=5150 is taking a long time
Jul 16 23:16:39 olderman systemd-udevd[368]: sdw:3:025d:0714:01: Worker [422] processing SEQNUM=5162 is taking a long time
Jul 16 23:18:39 olderman systemd-udevd[368]: sdw:0:025d:0711:01: Worker [374] processing SEQNUM=5150 killed
Jul 16 23:18:39 olderman systemd-udevd[368]: sdw:3:025d:0714:01: Worker [422] processing SEQNUM=5162 killed
...
ul 16 23:19:36 olderman kernel: INFO: task systemd-udevd:374 blocked for more than 122 seconds.
Jul 16 23:19:36 olderman kernel: Tainted: P OE 5.18.12-arch1-1 thesofproject/sof#1
Jul 16 23:19:36 olderman kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 16 23:19:36 olderman kernel: task:systemd-udevd state:D stack: 0 pid: 374 ppid: 368 flags:0x00000006
Jul 16 23:19:36 olderman kernel: Call Trace:
Jul 16 23:19:36 olderman kernel:
If I remove sof-firmware the system will again shutdown fine.
Activity
[-]No Sound - Arch Linux 5.18.12-arch1-1 - hanging shutdown [BUG][/-][+][BUG] No Sound - Arch Linux 5.18.12-arch1-1 - hanging shutdown[/+]direc85 commentedon Jul 18, 2022
I noticed you have the same issue with the same lines in
dmesgthan I did:Same here with a Tiger Lake laptop (Lenovo X1 Carbon) and Manjaro Linux. I made a Manjaro forum post about it (pardon the URL and original title, I was sidetracked at first).
I managed to restore sound (and general system responsiveness) by downgrading
sof-firmwarefrom2.2-1to2.1.1.a-1. I still get a different ABI version mismatch message, though:plbossart commentedon Jul 18, 2022
@changedsoul the shutdown issues are known, they fixes were contributed upstream last week.
The bigger issue is why the probe fails. Can you please add this file
sof-dyndbg.conf.txt as /etc/modprobe.d/sof-dyndbg.conf (the extension matters), reboot and attach the dmesg log.
Also please attach the 'alsa-info' log.
plbossart commentedon Jul 18, 2022
please ignore this, I sent a patch upstream to remove this. You don't have to worry about it, it was intended only for developers.
plbossart commentedon Jul 18, 2022
That's not normal and should be filed as a separate bug @direc85. I have no idea why downgrading the firmware would help.
@lgirdwood FYI.
lgirdwood commentedon Jul 18, 2022
@changedsoul we had a similar issue on a Chromebook that was resolved with a slightly different shutdown flow. Adding @kv2019i who is back next week and implemented the Chromebook fix. It may additionally need to be used here. Please keep using v2.1.1 for the moment.
plbossart commentedon Jul 18, 2022
@lgirdwood the shutdown issue is only on SoundWire device where we tried to remove a headset device property in the machine driver that was not set on deferred probe. Nothing to do with the SOF PCI shutdown problems.
Edit: see 6da6824
changedsoul commentedon Jul 19, 2022
OK, I tried the downgrade of sof-firmware to no avail. Reinstalled the 2.2.1 version, rebooted and here are the logs @plbossart was asking for.
alsa-info.txt
dmesg.txt
direc85 commentedon Jul 19, 2022
Thanks, I'll do that,.
Edit: I am not able to reproduce the bug anymore by updating the sof-firmware to 2.2, and audio works fine after upgrading the whole Manjaro (i.e. ALSA 1.2.7.2). I'll reopen the bug with logs if I ever hit it again.
plbossart commentedon Jul 19, 2022
@changedsoul the Dell SKU is not handled in the kernel for now, this is a device Dell didn't mention to us....
The weird part is that we end-up selecting an existing configuration that fails at run-time with all kinds of SoundWire issues.
I think what's happening is that we detect a 2-amp machine, but since we are missing the SKU support we use the 1-amp version in the machine driver.
[-][BUG] No Sound - Arch Linux 5.18.12-arch1-1 - hanging shutdown[/-][+][BUG] No Sound on Dell SoundWire SKU 0AF0 - Arch Linux 5.18.12-arch1-1 - hanging shutdown[/+]9 remaining items
changedsoul commentedon Jul 21, 2022
Ok, Ill do that when I get home. It will be about 10 hours from now. I was not sure how to apply the patch, so what I did was a wget on "https://raw.githubusercontent.com/thesofproject/linux/8e02f7024e36a4f1440a52133d008f94c3e9a8e8/sound/soc/intel/boards/sof_sdw.c" and placed it into "sound/soc/intel/boards/sof_sdw.c" and compiled the kernel.
I hope this was an adequate method.
plbossart commentedon Jul 21, 2022
Good enough!
changedsoul commentedon Jul 22, 2022
Here is dmesg and alsa-info
alsa-info.txt
dmesg.txt
plbossart commentedon Jul 22, 2022
I don't see any error in the kernel logs @changedsoul. The card is created alright and the following devices are exposed.
I do see timeouts in the logs, but the kernel seems to be able to recover and create the cards.
It seems likely that this is the same issue as #3777, some sort of delay/race condition on startup that impacts the results.
You may want to try the solutions I recommended in #3777 (comment) so see if this helps.
Happy Friday!
changedsoul commentedon Jul 22, 2022
Thanks, I compiled with the time out setting altered for a longer period and I now have sound. Now I just need to wait for a few weeks for the patch to roll into my distro kernel.
Thanks for all the help. It was a fun experience compiling the kernel.
ASoC: Intel: sof_sdw: add support for Dell SKU 0AF0
plbossart commentedon Jul 22, 2022
Thanks for testing @changedsoul, glad we managed to fix your issues.
If you have time, would you mind checking that our latest development kernel works on your platform? This would only add a new grub2 boot option on your device, you would keep what you have.
the code is on GitHub here:
https://github.com/thesofproject/linux.git
You can also get the zip file if you don't want to muck with git.
https://github.com/thesofproject/linux/archive/refs/heads/topic/sof-dev.zip
Edit: you need to use your existing config, just run 'make olddefconfig' to get all the new default options.
changedsoul commentedon Jul 23, 2022
Would be glad to, Ill report back the results
changedsoul commentedon Jul 23, 2022
Yes, my sound worked with your dev kernel without patching anything.
plbossart commentedon Jul 25, 2022
ok, will submit this upstream then. Thanks @changedsoul for your help, much appreciated.
ASoC: Intel: sof_sdw: add support for Dell SKU 0AF0
ASoC: Intel: sof_sdw: add support for Dell SKU 0AF0