Skip to content

[BUG] No Sound on Dell SoundWire SKU 0AF0 - Arch Linux 5.18.12-arch1-1 - hanging shutdown #3772

Closed

Description

@changedsoul

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

  1. added
    bug
    on Jul 17, 2022
  2. changed the title [-]No Sound - Arch Linux 5.18.12-arch1-1 - hanging shutdown [BUG][/-] [+][BUG] No Sound - Arch Linux 5.18.12-arch1-1 - hanging shutdown[/+] on Jul 17, 2022
  3. direc85 commented on Jul 18, 2022

    @direc85

    I noticed you have the same issue with the same lines in dmesg than I did:

    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:19:1
    sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel

    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-firmware from 2.2-1 to 2.1.1.a-1. I still get a different ABI version mismatch message, though:

    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:1:1-3964a
    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:21:0 Kernel ABI 3:19:1
    sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel

  4. plbossart commented on Jul 18, 2022

    @plbossart
    Member

    @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.

  5. plbossart commented on Jul 18, 2022

    @plbossart
    Member

    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
    sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:19:1
    sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel

    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.

  6. plbossart commented on Jul 18, 2022

    @plbossart
    Member

    I managed to restore sound (and general system responsiveness) by downgrading sof-firmware from 2.2-1 to 2.1.1.a-1. I still get a different ABI version mismatch message, though:

    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.

  7. lgirdwood commented on Jul 18, 2022

    @lgirdwood
    Member

    @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.

  8. added
    P1
    ADL
    on Jul 18, 2022
  9. plbossart commented on Jul 18, 2022

    @plbossart
    Member

    @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

  10. changedsoul commented on Jul 19, 2022

    @changedsoul
    Author

    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

  11. direc85 commented on Jul 19, 2022

    @direc85

    That's not normal and should be filed as a separate bug

    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.

  12. plbossart commented on Jul 19, 2022

    @plbossart
    Member

    @changedsoul the Dell SKU is not handled in the kernel for now, this is a device Dell didn't mention to us....

    System SKU:        0AFE
    

    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.

  13. changed the title [-][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[/+] on Jul 19, 2022
  14. 9 remaining items

  15. changedsoul commented on Jul 21, 2022

    @changedsoul
    Author

    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.

  16. plbossart commented on Jul 21, 2022

    @plbossart
    Member

    I hope this was an adequate method.

    Good enough!

  17. changedsoul commented on Jul 22, 2022

    @changedsoul
    Author

    Here is dmesg and alsa-info
    alsa-info.txt
    dmesg.txt

  18. plbossart commented on Jul 22, 2022

    @plbossart
    Member

    I don't see any error in the kernel logs @changedsoul. The card is created alright and the following devices are exposed.

    **** List of PLAYBACK Hardware Devices ****
    card 0: sofsoundwire [sof-soundwire], device 0: Jack Out (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: sofsoundwire [sof-soundwire], device 2: Speaker (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: sofsoundwire [sof-soundwire], device 5: HDMI 1 (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: sofsoundwire [sof-soundwire], device 6: HDMI 2 (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: sofsoundwire [sof-soundwire], device 7: HDMI 3 (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    
    ARECORD
    
    **** List of CAPTURE Hardware Devices ****
    card 0: sofsoundwire [sof-soundwire], device 1: Jack In (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: sofsoundwire [sof-soundwire], device 4: Microphone (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    

    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!

  19. changedsoul commented on Jul 22, 2022

    @changedsoul
    Author

    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.

  20. plbossart commented on Jul 22, 2022

    @plbossart
    Member

    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.

  21. changedsoul commented on Jul 23, 2022

    @changedsoul
    Author

    Would be glad to, Ill report back the results

  22. changedsoul commented on Jul 23, 2022

    @changedsoul
    Author

    Yes, my sound worked with your dev kernel without patching anything.

  23. plbossart commented on Jul 25, 2022

    @plbossart
    Member

    Yes, my sound worked with your dev kernel without patching anything.

    ok, will submit this upstream then. Thanks @changedsoul for your help, much appreciated.

  24. added
    SDW
    on Jul 25, 2022
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

    ADLDell SDW SKUP1SDWbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions