Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3121842pxm; Mon, 28 Feb 2022 12:29:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAPAKsPxd+AOE/csUR53zY4UYBhxa7H0r+t8Lzdggw6/q1b2HNW5O4/TBJVTbpmHJOMCSK X-Received: by 2002:a17:90b:fd4:b0:1bc:1bf2:6fc9 with SMTP id gd20-20020a17090b0fd400b001bc1bf26fc9mr18377422pjb.97.1646080171263; Mon, 28 Feb 2022 12:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646080171; cv=none; d=google.com; s=arc-20160816; b=yR6nxhxHLRAL1II/KyucLocQzzPxc/TC4GV2QR0O5SI97aV5o0YjlyYixxXZov6LRO tHvgLlq5SK5H93WlmNbsrbEzo7Tbt7qtYMHiuwlFvVbr9Gq+sxE85p1mziuxAqU/Qgr4 kfCY7iDxFPOBpxWAkhkI+Rl2/DwGVNXe9/0KXFZm6hNw5mUVsEGZUCKvKdNCj9xWbWS2 j1aBalLWYGXLBgxeZJ+jzyvLHTggo5WPuazi6Ji4PuBXqgAReYF4ohrXzeuFd8tc5wxH KyvF/d0Wqh7oT6hup5kvl5oHmNu7u7U9WP40+IOOPAPD+sgo27/F/PfVMxGpnNnlPzjE La7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gEJ3DsiDthcuH9tTzOHmbsSJefzTxI3kBK1Vok77M5Q=; b=Dp/JdcdQ3GMvf5ni/Kuma+fxPNW+wa/bekDzHHiFOATDyYyJO6vUZaNysdCMZeAbol QdM+Icqy1BjHKl2DnFv2UrIpe8/2mKy9pVw9cw2dAnpjG+IyAIkiHeSFEwUECP3Y6cBu fIiOsoGCUjMnesThcDjlo9xmqqAhUjlr84UAmonQhOapp5UaXeyWIZXONJqm40v/eStm s+7bDx7cZgwyAcdlbswdWc1EF3cYRjkgWXAM3U11xtXL6YAMV9A3Wt3a8+wTrUvHIZAw TnMNAOVZveUtW/z6BqKNM74DMQW/OGJ6K9S4nT0MU/5fygv3qLj0QTP+K2ve2bQFlV6m IPVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vs8KTM+i; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p18-20020a056a000b5200b004ede0f6eb78si10902718pfo.224.2022.02.28.12.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:29:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vs8KTM+i; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 50CCB214FB1; Mon, 28 Feb 2022 11:47:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbiB1Ts2 (ORCPT + 99 others); Mon, 28 Feb 2022 14:48:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiB1TsK (ORCPT ); Mon, 28 Feb 2022 14:48:10 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCD2F1AFD for ; Mon, 28 Feb 2022 11:46:20 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id k9-20020a056830242900b005ad25f8ebfdso10358727ots.7 for ; Mon, 28 Feb 2022 11:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gEJ3DsiDthcuH9tTzOHmbsSJefzTxI3kBK1Vok77M5Q=; b=Vs8KTM+i6iaD1kI0oT15nX/aQgfVrm2Ip5T/0PDd+miQZyMvLTdSz3/bwNMwX30Jju Hl6YAoTH5GgE+CHNLX+gAV/4NJo+K1GamfwfBbxwCfKsR4CW849RChtRL6zHblufr7Vm +8oeeYaxq2R7pJG8lzKspsLB6HucD1BmWZoeNON3pxJp66V+4/xpGKSzIntnHbeSApJl J+tT3fhOYd/Gjsct23C2wBIhRbrwVoldcEOEw2DbbC7yEa2TmqkdMoQNat5ZzAc/G6U1 P/P9v9XKFtIJ+tMI0RQ6QwK+lmZDyHwkveU0KHRgwmnvPea2xo6vN80OIY/264roMvLq X1aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gEJ3DsiDthcuH9tTzOHmbsSJefzTxI3kBK1Vok77M5Q=; b=pirLQlL/5j0ubWBZ3VMy15pY/RYbOx57AQSREhz0g4Y549okKW6vZSF7PBzvxLvRte 37eeJLVwAljoLJWmldRrWqR1F3a6+t9TBfwCfZ6SqiOjjXWBJBExHRom0VkxGXCgMtX1 DCUMvvhTBC6bLwyFSV3BW91VBGwtlnaux+zdOQE/5SP07AHCSVN18rzBzxfKaWpJU4K+ xejPmGPerbeyobZhGOd6c2dfxDWBThK2tbt8J2Zyrefo8OY9oQMwvRXscNWabq29ODSJ 1bwyr5j69Lsxt9Wq0itKqwPrCsYho4LNyux7eqJ70sO07WzuLLc18QoQ1DiO4cUqYxGE JYaQ== X-Gm-Message-State: AOAM533rTdkwmGIZsan5wgf6VUHxFq6RmrDWznmwes92jlcJSv7BUcop pMkSyvAR4zPHeVJfoRQe3jqhbX3b3oscIUGiIfYj1dcFRWs= X-Received: by 2002:a25:d754:0:b0:627:f51d:ae0b with SMTP id o81-20020a25d754000000b00627f51dae0bmr11518626ybg.41.1646076907398; Mon, 28 Feb 2022 11:35:07 -0800 (PST) MIME-Version: 1.0 References: <9ad505e1-7b59-7ebf-378b-23a6c0e25802@googlemail.com> <82216882-463a-8976-e6bc-4a8919107a31@googlemail.com> <2ce6175c-74ec-8469-80a5-374bd1429542@googlemail.com> <17f2bf7e-1d6b-e090-8926-21a408f2b496@googlemail.com> <16cac2c8-c1ca-c8d7-e3d9-5f00be511614@googlemail.com> In-Reply-To: <16cac2c8-c1ca-c8d7-e3d9-5f00be511614@googlemail.com> From: Luiz Augusto von Dentz Date: Mon, 28 Feb 2022 11:34:56 -0800 Message-ID: Subject: Re: bug kernel 5.17, qualcom and intel adapters, unable to reliably connect to bluetooth devices To: Chris Clayton Cc: Chris Murphy , Bluetooth , regressions@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Chris, On Sat, Feb 26, 2022 at 12:04 AM Chris Clayton wrote: > > Hi, > > On 24/02/2022 15:16, Luiz Augusto von Dentz wrote: > >> I'll try another bisection today, but limit its range to changes made in the net/bluetooth directory. > > That bisection has proved very difficult because the bluetooth "service" in kernels at some steps of the bisection were > completely borked to the extent that blueman's device-manager application wouldn't start and emitted the messages: > > blueman-manager 12.00.37 ERROR Manager:137 on_dbus_name_appeared: Default adapter not found, trying first available. > blueman-manager 12.00.37 ERROR Manager:141 on_dbus_name_appeared: No adapter(s) found, exiting > > Obviously, I don't know whether the problem I am trying to pinpoint is hiding behind this more fundamental problem with > the bluetooth "service", so being unable to say whether that kernel was good or bad, I had to skip. There seems to be a > batch of commits that mean that, whilst the kernel builds okay, hunting down a bluetooth-related problem is not > possible. Eventually and I cursed and gave up. Whatever was causing this breakage has obviously been fixed. > > > Please record the HCI with btmon, it must be producing something since > > it records even the mgmt commands. > > > > Refreshed by a good night's sleep, I started another bisection (between 5.16 and 5.17-rc1) yesterday morning but this > time did not limit it to net/bluetooth. That was going okay until I ran into what I assume is the same batch of borked > kernels. I've been more persistent this time but have just had a run of 16 steps in which the bluetooth support in the > kernel is broken so badly that testing bluetooth is not possible. I will push on today, but I've suspended that activity > to get the hci trace that Luiz has asked for. > > Using information from the bisect, I built a kernel that had tested as bad (but not borked). The commit is > f2b551fad8d8f2ac5e1f810ad595298381e0b0c5. As I've mentioned before, the problem with devices not connecting is > intermittent - for a given kernel, sometimes a connection works and other times it doesn't. On the first boot of this > kernel, my bluetooth devices could connect, Attached are 4 files related to this - the output from btmon, and the > related portions of daemon.log, kern.log and sys.log from /var/log/. Each of the these files is suffixed with ".good". > > I then powered down the laptop and booted into the same kernel. This time the bluetooth devices could not connect. Four > more files are attached for this boot and are suffixed with ".bad". I said in an earlier email that when connection > fails, there is no output from btmon, so that log is empty. That's still the case, but I guess that fact itself is a > clue to what the problem might be. What I can add, however, is that if, in that same bad kernel, I unload and then > reload the btusb module, connections start to work. Maybe that too is a clue. The same unload/load process revives > bluetooth on a kernel built after a pull of Linus' latest and greatest this morning. > > Since I now have a workround, I'm going stop the current bisection that I was doing. I've done another couple of steps > this morning and both produced kernels on which I could not test bluetooth and had to tell git bisect to skip. If > however, I can provide any other diagnostics, please let me know. > > Chris Can you try with the following patch: https://patchwork.kernel.org/project/bluetooth/patch/20220228173918.524733-1-brian.gix@intel.com/ -- Luiz Augusto von Dentz