Skip to content

[BUG] Failed to load sound driver on Latitude 7320 Detachable  #3161

Closed

Description

@prof-dr-pepper

Describe the bug
Sound driver seems to fail to load properly on Dell Latitude 7320 Detachable (see hardware probe here https://linux-hardware.org/?probe=21c50317b2) and therefore sound is not available at the device on linux.
Even though the sound adapter (hardware ID: 8086:a0c8) seems to be supported by the linux kernel the device does not work. Browsing on the internet this issue seems to happen on all Dell Latitude 7320 Detachable systems. I tested with kubuntu 21.04 with kernel 5.11.0-34-generic (however same issue occurs with latest Manjaro linux and kernels up to 5.14). Furthermore looking at dmesg I saw a lot of (thousands and millions) suppressed IRQ callbacks that keep the CPU busy (one core seems to be busy for about 50% because of that). Not loading the driver (via grub: snd_hda_intel.dmic_detect=0) the CPU issue is gone but of course then sound will be disabled.

To Reproduce

  1. Run kubuntu 21.04 live image (sha256sum of ISO: e705e84ed8fa820f1b7f4d286d24e0eb97561a5b2d47421bf7ea0381103788b7) from USB stick
  2. After boot look at dmesg (my dmesg: https://github.com/thesofproject/sof/files/7172540/dmesg.txt)

Reproduction Rate
Issue is reproducible all the time (also seems with other linux kernel versions and linux distros).

Expected behavior
Linux boots up and loads driver without issues. Sound is working properly and CPU usage is near 0.

Impact
Using linux without sound is annoying at the least but during home office makes it also useless during audio conferences (however video is also not working on the device but that's another issue because there exists not webcam driver for this device yet). ;-)

Environment

  • Dell Latitude 7320 Detachable
  • Kubuntu 21.04 64bit (see ISO hash above)
  • Stock ubuntu linux kernel 5.11.0-34-generic
  • HW probe: https://linux-hardware.org/?probe=21c50317b2
  • Docking station with SSD for linux installation was attached during HW probe (however issue also occurs when booting from kubuntu 21.04 live USB stick)

Screenshots or console output
Here you can find my dmesg output and alsa-info directly after boot:
dmesg.txt
http://alsa-project.org/db/?f=e7ce23315aee536587174f7f58f79812c1166d1a

Please let me know if you need more information and how I can provide it.

Thanx,
Marcus

Activity

  1. changed the title [-][BUG][/-] [+][BUG] Failed to load sound driver in Latitude 7320 Detachable [/+] on Sep 15, 2021
  2. changed the title [-][BUG] Failed to load sound driver in Latitude 7320 Detachable [/-] [+][BUG] Failed to load sound driver on Latitude 7320 Detachable [/+] on Sep 15, 2021
  3. plbossart commented on Sep 15, 2021

    @plbossart
    Member

    @prof-dr-pepper can you provide the results of 'alsa-info' please. Looks like you have a SoundWire device that is not known to us. It's usually a minor SKU value that we need to add, or that was added in more recent kernels.

  4. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    I added the alsa-info to the bug. You can find it here: http://alsa-project.org/db/?f=e7ce23315aee536587174f7f58f79812c1166d1a

    Thanks for helping :)

  5. plbossart commented on Sep 16, 2021

    @plbossart
    Member

    Thanks @prof-dr-pepper. I can see this: System SKU: 0A45, which is unfortunately a device we haven't seen before. I'll contact Dell and ask for details.

  6. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    Let me know if there is anything I can help with. I am software developer myself (not a kernel developer, but at least fluent in C/C++). ;-)

  7. plbossart commented on Sep 16, 2021

    @plbossart
    Member

    Let me know if there is anything I can help with. I am software developer myself (not a kernel developer, but at least fluent in C/C++). ;-)

    I will take you up on your offer, given that I don't have access to the hardware, we have to rely on the community for feedback. The main ask is to be able to recompile your own kernel, using our latest development Git tree. we may also try with linux-stable and patches. Thanks!

  8. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    Sure. So I'll try this kernel https://github.com/thesofproject/linux but which branch? Normally I would assume "master" but in this case it looks more like "topic/sof-dev". So "topic/sof-dev"?

  9. plbossart commented on Sep 16, 2021

    @plbossart
    Member

    yes. topic/sof-dev, with possibly a PR test before we merge to topic/sof-dev. we also generate our own configs with https://github.com/thesofproject/kconfig, specifically kconfig-sof-default.sh to only compile the minimum amount of code for audio tests.

  10. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    with possibly a PR test before we merge to topic/sof-dev

    Sorry, I didn't understand that. Which PR and which merge are you talking about?

    Nevertheless I checked out the sof kernel and applied kconfig-sof-default.sh. I am compiling right now ;-)

  11. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    Compilation finished, I installed the kernel and ran alsa-info again: http://alsa-project.org/db/?f=0043c8bc949293f9717707d2c32ec19ee506b525

  12. plbossart commented on Sep 16, 2021

    @plbossart
    Member

    @prof-dr-pepper I was talking about a future PR, when I have the information needed to create it.

    Looks like your build does not use SOF, so something is missing in your config somehow. only HDMI is reported in your results. You should have the module snd-sof-pci-intel-tgl loaded.

    here's my local config (a bit behind sof-dev but that should be fine with make olddefconfig):

    config.txt

  13. prof-dr-pepper commented on Sep 16, 2021

    @prof-dr-pepper
    Author

    Ok, I tried again with your config. I hope this worked now. Here is the result: http://alsa-project.org/db/?f=8ec1e2d02b170f25c9068f45816d043fb80aa361

  14. plbossart commented on Sep 16, 2021

    @plbossart
    Member

    Ok, I tried again with your config. I hope this worked now. Here is the result: http://alsa-project.org/db/?f=8ec1e2d02b170f25c9068f45816d043fb80aa361

    something's not going well, still HDMI card.

    please add this to /etc/modprobe.d/alsa-base.conf

    blacklist snd-hda-intel

    also add if you want to see more, add this file
    sof-dyndbg.conf.txt
    to /etc/modprobe.d/sof-dyndbg.conf

    and reboot

    then check if you see any signs of SOF driver being loaded.

  15. 205 remaining items

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