Repository navigation
Closed
Description
Describe the bug
No audio devices detected on a Dell XPS Plus 13 9320
Linux 5.18.0, Debian unstable.
Tested with both Debian firmware-sof-signed package (2.1.1) and also using the sof 2.2 release installed manually (after removing the firmware-sof-signed package)
To Reproduce
Install Debian unstable
Observe no audio devices were detected
Reproduction Rate
All the time
Expected behavior
Audio devices should be detected
Impact
Showstopper
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: 5.18.0 from the Debian linux-image-5.18.0-2-amd64 package version 5.18.5-1
- SOF: 2.1.1 from the Debian firmware-sof-signed package version 2.1.1-1 and 2.2 from https://github.com/thesofproject/sof-bin/releases/download/v2.2/sof-bin-v2.2.tar.gz
- Name of the topology file
- Topology: [not sure what to put here]
- Name of the platform(s) on which the bug is observed.
- Platform: Dell 9320
Screenshots or console output
I'm not sure what exactly is relevant, but this from dmesg was all I could really find
[ 5.688031] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 5.688730] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
...
[ 5.784568] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 5.784633] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 5.784645] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 5.784758] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 5.784824] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 5.791593] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 5.847914] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 5.848787] sof-audio-pci-intel-tgl 0000:00:1f.3: firmware: direct-loading firmware intel/sof/sof-adl.ri
[ 5.848796] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:1:1-3964a
[ 5.848797] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:21:0 Kernel ABI 3:19:1
[ 5.848799] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[ 5.848801] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
...
[ 7.961634] soundwire sdw:2:025d:1316:01: Probe not complete, timed out
[ 7.961647] soundwire sdw:2:025d:1316:01: Update Slave status failed:-110
[ 7.961683] soundwire sdw:1:025d:1316:01: Probe not complete, timed out
[ 7.961686] soundwire sdw:1:025d:1316:01: Update Slave status failed:-110
[ 7.961715] soundwire sdw:0:025d:0714:01: Probe not complete, timed out
[ 7.961717] soundwire sdw:0:025d:0714:01: Update Slave status failed:-110
dmesg and alsa-info with sof 2.1.1 debian package:
dmesg-2.1.1.log
alsa-info-2.1.1.txt
dmesg and alsa-info with sof 2.2:
alsa-info-2.2.txt
dmesg-2.2.log
Activity
plbossart commentedon Jul 21, 2022
We added support for this sku 0AF3
{ .callback = sof_sdw_quirk_cb, .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"), DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0AF3"), }, /* No Jack */ .driver_data = (void *)(SOF_SDW_TGL_HDMI | SOF_SDW_FOUR_SPK), },This was added in commit 8f4fa45 ("ASoC: Intel: sof_sdw: Add support for SKU 0AF3 product") and should be present in 5.18
You probably have an invalid kernel configuration or something.
if you want to debug, add this file
sof-dyndbg.conf.txt
as /etc/modprobe.d/sof-dyndbg.conf, reboot and attach the full dmesg log.
rhowe commentedon Jul 22, 2022
Nothing in the dmesg with debugging enabled looks too alarming except for the final message relating to sof
dmesg-2.1.1-debug.txt
heftig commentedon Jul 22, 2022
Same issue here, same SKU but on Arch Linux.
I had an aggressive power-saving udev config which set
power/controltoautofor almost all PCI devices. After removing this config,dmesgstill shows registration errors but speakers and microphones work.plbossart commentedon Jul 22, 2022
@rhowe it seems we have some sort of race condition here, you can see from the logs below that all devices fails to probe, but then are found
We're completely removed this 'probe not complete' in the last bleeding edge kernel, it was a really bad idea in the first place.
See https://lore.kernel.org/alsa-devel/[email protected]/, the patches will appear in 5.20 upstream in about 9 weeks.
In the mean time, you can either
a) apply these patches and try yourself
b) manually increase the probe timeout in drivers/soundwire/bus.h
bus.h:#define DEFAULT_PROBE_TIMEOUT 2000
if you increase this to 10000 (10s) that should fix the issue.
rhowe commentedon Jul 22, 2022
It's about 20 years since I built a custom kernel, this should be fun
soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
heftig commentedon Jul 23, 2022
I was mistaken about the trigger, as the issue reappeared on my next boot and then disappeared again a few reboots after I restored the config.
I tried applying these patches to v5.18.13, but ran into an error:
I'll try this now. I'll report back if I get another boot with missing audio (and udev stuck, which seems to coincide).
rhowe commentedon Jul 23, 2022
I just came to post about that build failure - I just deleted that line in the assumption that whatever rt715 is, I don't need it.
However, I'm currently fighting Debian's undocumented process for building a signed kernel package so whilst I have a build, I haven't been able to try it out yet.
madsl commentedon Jul 23, 2022
I just went straight for the sof-dev kernel from here, and that worked the first time I tried on my XPS 9320 some weeks ago. But, even with a kernel updated and built today, if I play anything on my speakers, the sound output will stop after one minute of playback (the media player is also unable to continue playing, the whole stream stops). And I can't get it back without rebooting. It's only when it's speakers, the DisplayPort output ports works.
Anyone else experience this?
madsl commentedon Jul 25, 2022
It seems to be because of running powertop --auto-tune. If I don't do that during boot, it stays on.
Shouldn't that work..?
(The sound still works if I make powertop not enable Runtime PM on" PCI Device Intel Corporation Alder Lake PCH eSPI Controller" (/sys/bus/pci/devices/0000:00:1f.0/power/control))
plbossart commentedon Jul 25, 2022
Sorry, you also need the patch 5118da4 ("ASoC: codecs: rt715-sdca: remove useless assignment of ops")
plbossart commentedon Jul 25, 2022
Separate issue @madsl, let's track this problem in #3783
plbossart commentedon Jul 25, 2022
it's like riding a bike, when you screw up it hurts just the same after 20 years.
266 remaining items
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms
Manjaro: soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms