NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.31k stars 14.28k forks source link

Sound Open Firmware Breaks Circa 6.0.3 For Cometlake #198180

Open AnotherBrynAlt opened 2 years ago

AnotherBrynAlt commented 2 years ago

Describe the bug

On the KLED board (Acer 713 Spin) Chromebook with an Intel 10110U, any Kernel >= 6.0.3 breaks SOF for sound.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set boot.loader.kernelPackages = pkgs.linuxPackages_6_0; in configuration.nix
  2. Rebuild NixOS
  3. No sound, error in dmesg

Expected behavior

SOF provides various audio devices for use

Screenshots

Screenshot_20221027_185222

Additional context

Output of dmesg | grep -i audio:

5.19.16:

[    0.108990] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[   14.090681] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   14.090847] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[   14.119536] sof-audio-pci-intel-cnl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   14.208188] sof-audio-pci-intel-cnl 0000:00:1f.3: use msi interrupt mode
[   14.228186] sof-audio-pci-intel-cnl 0000:00:1f.3: NHLT table not found
[   14.228244] sof-audio-pci-intel-cnl 0000:00:1f.3: hda codecs found, mask 4
[   14.262260] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   14.262264] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[   14.262266] sof-audio-pci-intel-cnl 0000:00:1f.3: FW ABI is more recent than kernel
[   14.262270] sof-audio-pci-intel-cnl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   14.374739] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   14.374746] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[   14.374750] sof-audio-pci-intel-cnl 0000:00:1f.3: FW ABI is more recent than kernel
[   14.429304] sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:21:0
[   14.429312] sof-audio-pci-intel-cnl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[   14.475469] snd_hda_codec_hdmi ehdaudio0D2: ASoC: sink widget AIF1TX overwritten
[   14.475488] snd_hda_codec_hdmi ehdaudio0D2: ASoC: source widget AIF1RX overwritten
[   26.083681] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   26.083687] sof-audio-pci-intel-cnl 0000:00:1f.3: HW params ipc failed for stream 1
[   26.083690] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   26.084245] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   26.084249] sof-audio-pci-intel-cnl 0000:00:1f.3: HW params ipc failed for stream 1
[   26.084251] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   26.085888] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   26.085893] sof-audio-pci-intel-cnl 0000:00:1f.3: HW params ipc failed for stream 1
[   26.085896] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   26.086432] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   26.086437] sof-audio-pci-intel-cnl 0000:00:1f.3: HW params ipc failed for stream 1
[   26.086439] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   26.096623] sof-audio-pci-intel-cnl 0000:00:1f.3: sof_ipc3_keyword_dapm_event: Cannot find PCM for DETECT9.0
[   26.096633] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: PRE_PMU: DETECT9.0 event failed: -22
[   26.096636] sof-audio-pci-intel-cnl 0000:00:1f.3: sof_ipc3_keyword_dapm_event: Cannot find PCM for DETECT9.0
[   26.096637] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: POST_PMU: DETECT9.0 event failed: -22
[   26.096747] sof-audio-pci-intel-cnl 0000:00:1f.3: sof_ipc3_keyword_dapm_event: Cannot find PCM for DETECT9.0
[   26.096749] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: PRE_PMD: DETECT9.0 event failed: -22
[   26.096751] sof-audio-pci-intel-cnl 0000:00:1f.3: sof_ipc3_keyword_dapm_event: Cannot find PCM for DETECT9.0
[   26.096753] sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: POST_PMD: DETECT9.0 event failed: -22

Output on 6.0.5:

[    0.109735] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[   34.864371] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   34.864517] sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[   34.864589] sof-audio-pci-intel-cnl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   34.870834] sof-audio-pci-intel-cnl 0000:00:1f.3: use msi interrupt mode
[   34.892540] sof-audio-pci-intel-cnl 0000:00:1f.3: NHLT table not found
[   34.892593] sof-audio-pci-intel-cnl 0000:00:1f.3: hda codecs found, mask 4
[   34.935035] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   34.935040] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   34.935048] sof-audio-pci-intel-cnl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   35.047321] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   35.047336] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   35.135559] sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   35.166192] snd_hda_codec_hdmi ehdaudio0D2: failed to create hda codec -12
[   35.169454] snd_hda_codec_hdmi ehdaudio0D2: ASoC: error at snd_soc_component_probe on ehdaudio0D2: -12

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

λ  nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.19.16, NixOS, 22.11 (Raccoon), 22.11.20221025.f994293`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
alapshin commented 2 years ago

FYI linuxPackages_zen doesn't have this issue it seems and can be used as a workaround.

AnotherBrynAlt commented 2 years ago

FYI linuxPackages_zen doesn't have this issue it seems and can be used as a workaround.

Replicated here too, 6.0.3-zen2 works.