Bluetooth stutters because of bug in kernel

Bug #2041903 reported by alex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
High
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Problems with bluetooth, apparently due to this error.
https://bugzilla.kernel.org/show_bug.cgi?id=217673
And for some reason it is present in 6.5.0-10.10 Ubuntu kernel.
I had to roll back to 6.5.0 using mainline, where there was no problem. Why is this fix not available in 6.5.0-10.10? I want to use the kernel from canonical

Also only 6.5.0 does not have this problem, 6.5.7 has it

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Created attachment 304639
The dmesg output after boot for the 6.5 RC1 mainline kernel

I have a Lenovo ThinkPad X1 Yoga Gen 7 running Arch Linux. Linux 6.4 and higher, cause audio distortion. Sometimes, this occurs to the point that nearly nothing is discernible. This carries over to wired headphones. The issue occurs on the entire mainline 6.4.x kernel series and also the 6.4.3 stable and 6.5 RC1 kernel, which are the latest at the time of writing. The issue occurs on both the Arch distributed kernels, and the mainline kernels.

Linux kernels 6.3.x are not affected and neither is the 6.1 LTS kernel series which is what I am temporarily using. On Windows 10/11 too, the audio works as it should. This indicates that my hardware is not at fault. Bluetooth audio is not impacted from my testing, either.

The distortion doesn't start immediately. It either occurs automatically after a random amount of time, or when I increase/decrease the volume, or when I skip forward/backward to a section. In order to stop the distortion, I have to either increase/decrease the volume until it stops, or skip forward/backward until it stops, or restart Pipewire via systemd, however it starts again due to one of the aforementioned reasons.

At the time of this report, I am running Pipewire 0.3.74 and Wireplumber 0.4.14. This also doesn't seem like a Pipewire/Wireplumber issue, since these same versions work fine on the 6.1 LTS kernels without causing any audio distortion.

I wrote about this on the Arch Linux forums, too, and seems like at least two other people are facing this issue. Here's the forum post: https://bbs.archlinux.org/viewtopic.php?id=287068

Furthermore, I filed a bug report on the Arch Linux Bug Reporter, where they suggested that the issue is a kernel regression and should be reported upstream, here. Here's the bug report that I filed on the Arch Linux Bug Reporter for anyone interested: https://bugs.archlinux.org/task/79081?project=1&pagenum=10

I have attached the dmesg outputs of the mainline 6.5 RC1 kernel.

Here's some audio related hardware information from my device:

inxi -A

Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio
driver: sof-audio-pci-intel-tgl
API: ALSA v: k6.5.0-rc1-1-mainline status: kernel-api

pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 138
Tile Size: 65472
User Name: tux
Host Name: NSA-Terminal-4
Server Name: PulseAudio (on PipeWire 0.3.74)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
Default Source: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
Cookie: f9dc:5e7a

I can't figure out why this is happening. Kindly ask for any more information that is necessary. Thank you.

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Created attachment 304640
Pactl detailed sound card information

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Also, please pardon me if I did something wrong with filing the bug report. This is my first time filing one.

Revision history for this message
In , bagasdotme (bagasdotme-linux-kernel-bugs) wrote :
Download full text (3.2 KiB)

(In reply to Iyer from comment #0)
> Created attachment 304639 [details]
> The dmesg output after boot for the 6.5 RC1 mainline kernel
>
> I have a Lenovo ThinkPad X1 Yoga Gen 7 running Arch Linux. Linux 6.4 and
> higher, cause audio distortion. Sometimes, this occurs to the point that
> nearly nothing is discernible. This carries over to wired headphones. The
> issue occurs on the entire mainline 6.4.x kernel series and also the 6.4.3
> stable and 6.5 RC1 kernel, which are the latest at the time of writing. The
> issue occurs on both the Arch distributed kernels, and the mainline kernels.
>
> Linux kernels 6.3.x are not affected and neither is the 6.1 LTS kernel
> series which is what I am temporarily using. On Windows 10/11 too, the audio
> works as it should. This indicates that my hardware is not at fault.
> Bluetooth audio is not impacted from my testing, either.
>
> The distortion doesn't start immediately. It either occurs automatically
> after a random amount of time, or when I increase/decrease the volume, or
> when I skip forward/backward to a section. In order to stop the distortion,
> I have to either increase/decrease the volume until it stops, or skip
> forward/backward until it stops, or restart Pipewire via systemd, however it
> starts again due to one of the aforementioned reasons.
>
> At the time of this report, I am running Pipewire 0.3.74 and Wireplumber
> 0.4.14. This also doesn't seem like a Pipewire/Wireplumber issue, since
> these same versions work fine on the 6.1 LTS kernels without causing any
> audio distortion.
>
> I wrote about this on the Arch Linux forums, too, and seems like at least
> two other people are facing this issue. Here's the forum post:
> https://bbs.archlinux.org/viewtopic.php?id=287068
>
> Furthermore, I filed a bug report on the Arch Linux Bug Reporter, where they
> suggested that the issue is a kernel regression and should be reported
> upstream, here. Here's the bug report that I filed on the Arch Linux Bug
> Reporter for anyone interested:
> https://bugs.archlinux.org/task/79081?project=1&pagenum=10
>
> I have attached the dmesg outputs of the mainline 6.5 RC1 kernel.
>
> Here's some audio related hardware information from my device:
>
> inxi -A
>
> Audio:
> Device-1: Intel Alder Lake PCH-P High Definition Audio
> driver: sof-audio-pci-intel-tgl
> API: ALSA v: k6.5.0-rc1-1-mainline status: kernel-api
>
>
> pactl info
>
> Server String: /run/user/1000/pulse/native
> Library Protocol Version: 35
> Server Protocol Version: 35
> Is Local: yes
> Client Index: 138
> Tile Size: 65472
> User Name: tux
> Host Name: NSA-Terminal-4
> Server Name: PulseAudio (on PipeWire 0.3.74)
> Server Version: 15.0.0
> Default Sample Specification: float32le 2ch 48000Hz
> Default Channel Map: front-left,front-right
> Default Sink:
> alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.
> HiFi__hw_sofhdadsp__sink
> Default Source:
> alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.
> HiFi__hw_sofhdadsp_6__source
> Cookie: f9dc:5e7a
>
>
> I can't figure out why this is happening. Kindly ask for any more
> information that is necessary. Thank you.

Can you perform bisection between v6.3 and v6....

Read more...

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Sure, but it might take some time since this is the first time I will be doing so. Kindly bear with me. Thank you.

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :
Download full text (3.9 KiB)

(In reply to Bagas Sanjaya from comment #3)
> (In reply to Iyer from comment #0)
> > Created attachment 304639 [details]
> > The dmesg output after boot for the 6.5 RC1 mainline kernel
> >
> > I have a Lenovo ThinkPad X1 Yoga Gen 7 running Arch Linux. Linux 6.4 and
> > higher, cause audio distortion. Sometimes, this occurs to the point that
> > nearly nothing is discernible. This carries over to wired headphones. The
> > issue occurs on the entire mainline 6.4.x kernel series and also the 6.4.3
> > stable and 6.5 RC1 kernel, which are the latest at the time of writing. The
> > issue occurs on both the Arch distributed kernels, and the mainline
> kernels.
> >
> > Linux kernels 6.3.x are not affected and neither is the 6.1 LTS kernel
> > series which is what I am temporarily using. On Windows 10/11 too, the
> audio
> > works as it should. This indicates that my hardware is not at fault.
> > Bluetooth audio is not impacted from my testing, either.
> >
> > The distortion doesn't start immediately. It either occurs automatically
> > after a random amount of time, or when I increase/decrease the volume, or
> > when I skip forward/backward to a section. In order to stop the distortion,
> > I have to either increase/decrease the volume until it stops, or skip
> > forward/backward until it stops, or restart Pipewire via systemd, however
> it
> > starts again due to one of the aforementioned reasons.
> >
> > At the time of this report, I am running Pipewire 0.3.74 and Wireplumber
> > 0.4.14. This also doesn't seem like a Pipewire/Wireplumber issue, since
> > these same versions work fine on the 6.1 LTS kernels without causing any
> > audio distortion.
> >
> > I wrote about this on the Arch Linux forums, too, and seems like at least
> > two other people are facing this issue. Here's the forum post:
> > https://bbs.archlinux.org/viewtopic.php?id=287068
> >
> > Furthermore, I filed a bug report on the Arch Linux Bug Reporter, where
> they
> > suggested that the issue is a kernel regression and should be reported
> > upstream, here. Here's the bug report that I filed on the Arch Linux Bug
> > Reporter for anyone interested:
> > https://bugs.archlinux.org/task/79081?project=1&pagenum=10
> >
> > I have attached the dmesg outputs of the mainline 6.5 RC1 kernel.
> >
> > Here's some audio related hardware information from my device:
> >
> > inxi -A
> >
> > Audio:
> > Device-1: Intel Alder Lake PCH-P High Definition Audio
> > driver: sof-audio-pci-intel-tgl
> > API: ALSA v: k6.5.0-rc1-1-mainline status: kernel-api
> >
> >
> > pactl info
> >
> > Server String: /run/user/1000/pulse/native
> > Library Protocol Version: 35
> > Server Protocol Version: 35
> > Is Local: yes
> > Client Index: 138
> > Tile Size: 65472
> > User Name: tux
> > Host Name: NSA-Terminal-4
> > Server Name: PulseAudio (on PipeWire 0.3.74)
> > Server Version: 15.0.0
> > Default Sample Specification: float32le 2ch 48000Hz
> > Default Channel Map: front-left,front-right
> > Default Sink:
> > alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.
> > HiFi__hw_sofhdadsp__sink
> > Default Source:
> > alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.
> > HiFi__hw_sofhdadsp_6__...

Read more...

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Created attachment 304661
"git bisect" suggested problematic commit

This is the output of the git bisect command run between mainline v6.3 and v6.4.

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

Furthermore, I would like to report that the latest (as of this post) 6.5 RC2 and 6.4.3 kernels still have this issue.

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

While following the kernel commit that "git bisect" indicated towards, I found that this issue was reported by another person. They indicated that patch 1/3 was the culprit causing this regression, as the bisection process indicated.

Here's the link to that person's post: https://<email address hidden>/

Referencing to the same commit to the kernel, there's a bug report on the SOF project's Github page: https://github.com/thesofproject/linux/issues/4455

Kindly let me know if any more information from my end is needed. Thank you.

Revision history for this message
In , cydiaimpactor2003 (cydiaimpactor2003-linux-kernel-bugs) wrote :

A patch for this issue has been merged into linux-next. Here's the link to the merged patch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=90219f1bd273055f1dc1d7bdc0965755b992c045

Just a request to merge this patch into 6.5 kernel series before 6.5 is promoted to stable.

A sincere thanks to everyone who worked to fix this issue!

Revision history for this message
In , tequila-mindset-0d (tequila-mindset-0d-linux-kernel-bugs) wrote :

I have this bug repeated in 6.5.7, and not repeated in 6.5, is this ok?

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2041903/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
tags: added: mantic
Changed in linux:
importance: Unknown → High
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.