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

linux-6.7rc5 breaks sof-rt5682 #70

Closed
135e2 opened this issue Dec 20, 2023 · 8 comments
Closed

linux-6.7rc5 breaks sof-rt5682 #70

135e2 opened this issue Dec 20, 2023 · 8 comments

Comments

@135e2
Copy link

135e2 commented Dec 20, 2023

Describe the bug
Somewhere between 6.7rc4 and 6.7rc5 breaks the chromebook audio. Upon inspecting the kernel log, I've identified the only differences (omitting identical lines):

// 6.7rc4, working
[   61.572587] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   61.572593] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   61.572594] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   61.573247] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   61.573250] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   61.573251] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   61.573888] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   61.573892] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   61.573893] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   61.574570] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   61.574572] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   61.574573] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
// 6.7rc6, broken
[   48.930740] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x30020000 (msg/reply size: 12/0): -13
[   48.930762] sof-audio-pci-intel-tgl 0000:00:1f.3: failed to free widget DMIC0.IN
[   57.235697] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x30030000 (msg/reply size: 16/0): -22
[   57.235701] sof-audio-pci-intel-tgl 0000:00:1f.3: sof_ipc3_route_setup: route DMIC0.IN -> BUF4.0 failed
[   57.235703] sof-audio-pci-intel-tgl 0000:00:1f.3: sof_ipc3_set_up_all_pipelines: route set up failed
[   57.235704] sof-audio-pci-intel-tgl 0000:00:1f.3: Failed to restore pipeline after resume -22
[   57.235706] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.235926] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.235966] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236006] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236041] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236074] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236107] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236141] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236173] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236205] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22
[   57.236239] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_pm_runtime_get on 0000:00:1f.3: -22

Looking through recent commits in kernel, I found no changes made to intel sof drivers. Might it be a kernel regression, or should I report to the upstream kernel bugzilla? Any guidance or suggestions would be much appreciated.


Edit: Now I suspect it's a regression from the sof project. Tried upgrading sof-firmware to v2023.12 (they released it 5 hrs ago xD), rebooted, but got no luck.

OS
Arch Linux

Kernel
linux-mainline built from AUR

Boardname
Voxel

@WeirdTreeThing
Copy link
Owner

Unfortunate how intel keeps breaking things in the kernel. The only thing that can really be done is a git bisect to find the bad commit.

@ninelore
Copy link
Contributor

Can also confirm on linux-lts 6.6.13-1

@ninelore
Copy link
Contributor

@135e2 Workaround is downgrade to 6.6.12

@135e2
Copy link
Author

135e2 commented Feb 1, 2024

UPDATE:
2024/02/01
Hours of git bisecting led me to the first bad commit causing the regression:
torvalds/linux@31ed8da
@WeirdTreeThing any ideas or should I report to the linux kernel maintainer mailing list?


2024/02/06
@WeirdTreeThing @ninelore
Bug reported to sof: thesofproject/linux#4807


2024/02/26
Fix (ASoC: SOF: ipc3-topology: Fix pipeline tear down logic) arrives in 6.7.6 & 6.8-rc5. Closing the issue.

@WeirdTreeThing
Copy link
Owner

Thanks for finding that! Yeah maybe report it to an alsa mailing list or just the regular linux mailing list.

@ninelore
Copy link
Contributor

Fixed in 6.6.18 and 6.7.6

Please close

@135e2 135e2 closed this as completed Feb 25, 2024
@BinBashBanana
Copy link
Contributor

swag

@WeirdTreeThing
Copy link
Owner

swag indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants