Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELL Latitude 7320 Detachable errors during audio initialization #4353

Closed
nos1609 opened this issue May 13, 2023 · 5 comments
Closed

DELL Latitude 7320 Detachable errors during audio initialization #4353

nos1609 opened this issue May 13, 2023 · 5 comments
Labels
won't fix This will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)

Comments

@nos1609
Copy link

nos1609 commented May 13, 2023

dmesg produces lots of errors during start-up, while sound is available, the system itself is unstable, deep sleep is unavailable.

[    0.000000] DMI: Dell Inc. Latitude 7320 Detachable/0TNW0H, BIOS 1.21.0 03/15/2023
[    7.724053] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.724561] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    8.319716] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    8.320004] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    8.320029] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    8.320408] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    8.320544] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    8.327818] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[   12.349800] sof-audio-pci-intel-tgl 0000:00:1f.3: codec #0 probe error, ret: -5
[   12.378851] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[   12.422463] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   12.422473] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   12.422494] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   12.542152] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   12.542162] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   12.550482] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550490] soundwire_intel soundwire_intel.link.2: Bus clash for data word
[   12.550606] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550667] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550745] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550852] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550951] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.551026] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.551088] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.551134] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.551195] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.553209] rt711-sdca sdw:0:025d:0711:01: runtime PM trying to activate child device sdw:0:025d:0711:01 but parent (sdw-master-0) is not active
[   12.553269] rt1316-sdca sdw:1:025d:1316:01: runtime PM trying to activate child device sdw:1:025d:1316:01 but parent (sdw-master-1) is not active
[   12.553279] rt715-sdca sdw:3:025d:0714:01: runtime PM trying to activate child device sdw:3:025d:0714:01 but parent (sdw-master-3) is not active
[   12.619786] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   12.620437] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
[   12.759367] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[   12.779459] input: sof-soundwire Headset Jack as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input23
[   12.779886] input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input24
[   12.780016] input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input25
[   12.780109] input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input26
[   16.181781] soundwire_intel soundwire_intel.link.2: Clock stop failed -110
[   16.181788] soundwire_intel soundwire_intel.link.2: intel_stop_bus: cannot stop clock: -110
[   21.724014] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

Operating System: Fedora Linux 38 (Workstation Edition)
Kernel: Linux 6.2.15-300.fc38.x86_64
Hardware Vendor: Dell Inc.
Hardware Model: Latitude 7320 Detachable
Firmware Version: 1.21.0
Firmware Date: Wed 2023-03-15
Dell SKU 0A45

Support was added by #3161

@plbossart
Copy link
Member

@nos1609 If I look at the description of your hardware, it seems to have a single amplifier, which means it uses 3 links out of 4 available. I would bet link2 is not enabled on this device, which leads to the following issues:

[   12.550482] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   12.550490] soundwire_intel soundwire_intel.link.2: Bus clash for data word
[   12.550606] soundwire_intel soundwire_intel.link.2: Bus clash for control word
[   16.181781] soundwire_intel soundwire_intel.link.2: Clock stop failed -110
[   16.181788] soundwire_intel soundwire_intel.link.2: intel_stop_bus: cannot stop clock: -110

Can you please add this file
sof-dyndbg.conf.txt as /etc/modprobe.d/sof-dyndbg.conf, reboot and attach the dmesg log?

there is another issue regarding these messages:

[   12.553209] rt711-sdca sdw:0:025d:0711:01: runtime PM trying to activate child device sdw:0:025d:0711:01 but parent (sdw-master-0) is not active
[   12.553269] rt1316-sdca sdw:1:025d:1316:01: runtime PM trying to activate child device sdw:1:025d:1316:01 but parent (sdw-master-1) is not active
[   12.553279] rt715-sdca sdw:3:025d:0714:01: runtime PM trying to activate child device sdw:3:025d:0714:01 but parent (sdw-master-3) is not active

We are tracking them separately in issue #4328. It's very surprising that you hit this issue with Linux v6.2, we only detected this recently. There's an in-flight PR #4345 to look into this.

@nos1609
Copy link
Author

nos1609 commented May 27, 2023

@plbossart Huge output and looks like dmesg got logrotated...
sof_diag.txt

as of today the kernel is a bit more recent:
Operating System: Fedora Linux 38 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:38
Kernel: Linux 6.3.3-200.fc38.x86_64
Hardware Vendor: Dell Inc.
Hardware Model: Latitude 7320 Detachable
Firmware Version: 1.21.0
Firmware Date: Wed 2023-03-15

@plbossart
Copy link
Member

I don't see any errors @nos1609 ?

@nos1609
Copy link
Author

nos1609 commented Jun 12, 2023

Just these

[   15.567876] soundwire_cadence:cdns_fill_msg_resp: soundwire_intel soundwire_intel.link.2: Msg ignored for Slave 15
[   15.568888] soundwire_intel soundwire_intel.link.2: Clock stop failed -110
[   15.568891] soundwire_intel soundwire_intel.link.2: intel_stop_bus: cannot stop clock: -110

@plbossart
Copy link
Member

@nos1609 this in not an error at the kernel level, it's the BIOS/DSDT which advertises support for a link2 which is not physically not available in the device.

You can make these errors go away with a kernel parameter:

options snd_intel_sdw_acpi sdw_link_mask=0xB

@plbossart plbossart added the won't fix This will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc) label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
won't fix This will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)
Projects
None yet
Development

No branches or pull requests

2 participants