linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Clayton <chris2553@googlemail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Chris Murphy <lists@colorremedies.com>,
	Bluetooth <linux-bluetooth@vger.kernel.org>
Subject: Re: bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices
Date: Thu, 24 Feb 2022 05:59:50 +0000	[thread overview]
Message-ID: <2ce6175c-74ec-8469-80a5-374bd1429542@googlemail.com> (raw)
In-Reply-To: <a35b4b75-bb64-89c8-bacd-d58ed8576272@googlemail.com>



On 23/02/2022 22:42, Chris Clayton wrote:
> Hi.
> 
> <snip>
> 
>>
>> We are starting to suspect this is not a new issue, it just become
>> easier to reproduce with newer kernels since the mgmt commands are now
>> handled by a different work/thread which probably takes longer to
>> respond hitting problems such as:
>>
>> https://github.com/bluez/bluez/issues/275#issuecomment-1020608282
>>
>> This has been fixed by:
>>
>> https://github.com/bluez/bluez/commit/faad125c5505b941f06c54525616e192a6369208
>> https://github.com/bluez/bluez/commit/5f378404bff6bbfea3f20e36535c494efa5066a5
>>
> 
> I cloned bluez, but that FTBFS, so I applied the two patches by hand.
> 
> After the first boot, my bluetooth devices connected fine. But after a poweroff and boot, they didn't. Nor did they on
> the third and fourth boots, so the patches don't seem to be the answer. (They couldn't really be anyway because changes
> to the kernel have broken user-space which I understand is a big no no unless there is a really compelling reason.)
> 
> I've gathered some diagnostics today and they are attached. They consist of 6 files containing the output from btmon and
> dmesg and the log file for the system daemons, which, of course, includes bluetoothd. There are 2 sets of these files -
> one from a boot that resulted in a system where my devices would not connect and another from a boot where they could

s/would not connect and another/would connect and another/

> not connect. You'll note that the btmon log is empty for a failed connection.
> 
> I also tried a bisection with v5.16 as good and v5.17-rc1 as bad. Unfortunately, I found several steps resulted in a
> kernel where bluetooth seemed to be substantially borked - to the extent that blueman was non-functional and clicking on
> the tray icon did not start up the blueman-manager application.
> 
> I also booted into a 5.16.10 kernel and connecting bluetooth devices worked flawlessly. (This was with the unpatched
> bluez daemon)
> 
> Chris
>> So the timer doesn't start until the request is sent. but obvoiusly
>> older versions of userspace don't have that fix so they end up
>> cancelling the loading of LTKs, this would explain why reloading the
>> daemon would make it work again.

  reply	other threads:[~2022-02-24  5:59 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11  1:44 bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices Chris Murphy
2022-02-15 15:29 ` Chris Murphy
2022-02-15 15:38   ` Chris Murphy
2022-02-16  3:47     ` Chris Murphy
2022-02-16 23:49       ` Luiz Augusto von Dentz
2022-02-17  1:35         ` Chris Murphy
2022-02-17 23:36           ` Chris Murphy
2022-02-18  0:15             ` Luiz Augusto von Dentz
2022-02-18  3:49               ` Chris Murphy
2022-02-21 11:39                 ` Chris Clayton
2022-02-21 13:22                 ` Chris Clayton
2022-02-21 17:11                   ` Luiz Augusto von Dentz
2022-02-21 20:23                     ` Chris Clayton
2022-02-21 21:27                       ` Luiz Augusto von Dentz
2022-02-21 22:33                         ` Chris Clayton
2022-02-22 20:03                           ` Chris Clayton
2022-02-23 17:51                             ` Luiz Augusto von Dentz
2022-02-23 22:42                               ` Chris Clayton
2022-02-24  5:59                                 ` Chris Clayton [this message]
2022-02-24  8:16                                   ` Luiz Augusto von Dentz
2022-02-24 10:08                                     ` Chris Clayton
2022-02-24 15:16                                       ` Luiz Augusto von Dentz
2022-02-24 16:18                                         ` Thorsten Leemhuis
2022-02-26  8:04                                         ` Chris Clayton
2022-02-28 19:34                                           ` Luiz Augusto von Dentz
2022-02-28 21:02                                             ` Chris Clayton
2022-02-28 21:20                                               ` Luiz Augusto von Dentz
2022-03-01  9:26                                                 ` Chris Clayton
2022-03-01 18:34                                                   ` Luiz Augusto von Dentz
2022-03-01 18:56                                                     ` Chris Clayton
2022-03-01 18:57                                                     ` Luiz Augusto von Dentz
2022-03-01 19:40                                                       ` Chris Clayton
2022-03-01 22:40                                                         ` Luiz Augusto von Dentz
2022-03-01 22:47                                                           ` Luiz Augusto von Dentz
2022-03-02  2:31                                                             ` Luiz Augusto von Dentz
2022-03-02  6:55                                                               ` Luiz Augusto von Dentz
2022-03-02  9:59                                                                 ` Chris Clayton
2022-03-02  8:54                                                             ` Chris Clayton
2022-02-24  8:24                                   ` Chris Clayton
2022-02-21 17:12                 ` Luiz Augusto von Dentz
2022-02-21 17:18                   ` Luiz Augusto von Dentz
2022-02-24 10:26 ` Thorsten Leemhuis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ce6175c-74ec-8469-80a5-374bd1429542@googlemail.com \
    --to=chris2553@googlemail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).