Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1317603pxm; Thu, 24 Feb 2022 00:15:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzVtoN6Kk3npzG7J+ye0EJVU9ya70N6gxOLgWE5TfD68HhYkK6iLs+o+4rM+wL2+9jSMIc X-Received: by 2002:a17:906:1e0c:b0:6cf:d014:e454 with SMTP id g12-20020a1709061e0c00b006cfd014e454mr1334215ejj.583.1645690548432; Thu, 24 Feb 2022 00:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645690548; cv=none; d=google.com; s=arc-20160816; b=UEpdClx+rHdKA9yU9Slnr7BFvIpXPxa5+AOikscyT8LhlhdUq8fY9YXNTq596xmp/J SNCP+lPmvP3DlKMzb/XwR/3264gHflREMqh/ijeT4q/Lfgcr45Qiqehs6sgeU46uZG0E eLyklXVftCSiapEsoIAfAw4xbOeuNAP6FbgywDo5FzPhRCShO4g+/+yv3UJCpcXQNEW3 dOBrisp3w+sJMJfj/99pt8cYHdeVORfHjW3L3aqONuBA7KVJhYsvjBz7TmXml2FL49N4 vo5ZJh8alZj7XbynqYjJeq5Xqlyon9oLjKUrAZbwukqLWTBStb7yFvE4uGmRUtcovJ5K RcGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=3rV7qCnw9rBAgXbr9d5EnEhXtSL4DlEIZjORHfyBtgU=; b=nyJEL0iwlNiwclAjr4f+VkPk8H9Gpbygy/zo4tc4ovz1fbzw7+cKmHsoVSwKjUdxen zYD98V+unBV/VUuH7ZAnTOx0AJEtNYz39z0J452A+Y+AuBrVos73AaL8Mbul29vg7P/V Rr6XoVgUSXOA6OZzqwlmKp2bvi5966Tws9aHK09w1IZfUFOU1+SLwAuOTeeQA0SVsuj2 lPhdHxvMXwEZiU7ab6JfzJ7ekUkHuLY3WPM8l4l5trHsszaABFADN0j2hADYmA9qgWcx KrzuuemQmF6bs7F8pt6mfTFZveY3MJKYoMsOvFbXxDsw/xJ6ZB6mylIGgPci+fbXfSlT 1/cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=Fsf68gGK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19si1339965edu.433.2022.02.24.00.15.23; Thu, 24 Feb 2022 00:15:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=Fsf68gGK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbiBXGAY (ORCPT + 99 others); Thu, 24 Feb 2022 01:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiBXGAY (ORCPT ); Thu, 24 Feb 2022 01:00:24 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89772649BF for ; Wed, 23 Feb 2022 21:59:54 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id i20so492244wmc.3 for ; Wed, 23 Feb 2022 21:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=3rV7qCnw9rBAgXbr9d5EnEhXtSL4DlEIZjORHfyBtgU=; b=Fsf68gGK7Og4hDRSgSR9g8RpIPKxUc2UhpaqR3DgZNdmwoSD4KiIsBN38U7kb9MIyT 9Pw9UVd/qocHa2o69uRzysbUMq7EteEcA2tlfBA+eTTAuIrT/JKH4zkb4Udk8A18siDC mVDWYNPNjtT/D7bEXKMjRfA/Fc4Z4AUipP1L3iUIw0fZJcrfkaFsPhBZCsMrtxzCyMPw VXEkpniBYWHZe88KhULmaiR51bHW+mmWtfBuCztprSzDuTwZPqlcotUZVApziJMi1ns+ OuoAYLZFZyRRJJo4B+irqdCPnzgMxj6M1KnMwuVg9wIycScJXAHR75E0XsDBKXKUUCPY ziiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=3rV7qCnw9rBAgXbr9d5EnEhXtSL4DlEIZjORHfyBtgU=; b=4vQDiZtrIVTvM51paqr8DDT73FYLDgllSpWtzviEhPripVMfmyb3UtKheV16jGv+I8 f2fsx2cnLz8JZ63gMSoUKBhGKfHSu84bn1LorL5r3jgO04Pbw1Oj3LjU1XJ64Hz6FJc2 SJJchO7FvEQQCHrQ0yV1xYwSCVcJjX/YBVMeLc3LRl/0hPEqR4LZFGRW3xf1WX36vMl6 wkU1cflWP0IbIez3wl2oRfPGa4vznJWxr50ZsR8Zfj53o4UBTGxmJII/1J+lGecgLgIb A9NXVjiJxarg5p0BPUujH/15MJut0bBwLQQ0m+ErAKfPBbP8izhEa1b3Ojp52bhRI6Jm WUAg== X-Gm-Message-State: AOAM533zKD4yFww8lVwYtGiz8LVHzNTtm4uUHl5kzNle7evxC53OPh/Z JBtHghDlTkhVKVyGtzIXz9A= X-Received: by 2002:a7b:cd87:0:b0:37b:b8a8:2d28 with SMTP id y7-20020a7bcd87000000b0037bb8a82d28mr876084wmj.176.1645682393401; Wed, 23 Feb 2022 21:59:53 -0800 (PST) Received: from [192.168.1.10] (4e691f2a.skybroadband.com. [78.105.31.42]) by smtp.googlemail.com with ESMTPSA id 14sm1823681wrb.34.2022.02.23.21.59.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Feb 2022 21:59:52 -0800 (PST) Message-ID: <2ce6175c-74ec-8469-80a5-374bd1429542@googlemail.com> Date: Thu, 24 Feb 2022 05:59:50 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices Content-Language: en-GB From: Chris Clayton To: Luiz Augusto von Dentz Cc: Chris Murphy , Bluetooth References: <9ad505e1-7b59-7ebf-378b-23a6c0e25802@googlemail.com> <82216882-463a-8976-e6bc-4a8919107a31@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 23/02/2022 22:42, Chris Clayton wrote: > Hi. > > > >> >> 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.