Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3146149pxm; Mon, 28 Feb 2022 13:03:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6IPAVNu92svURrILtjzVMtgPmD4RpYS1DR1ucvHvev5gZqY/O740Lm1tJLkJ/0760QlXE X-Received: by 2002:a17:903:2342:b0:14f:dec2:9849 with SMTP id c2-20020a170903234200b0014fdec29849mr12468435plh.74.1646082225144; Mon, 28 Feb 2022 13:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646082225; cv=none; d=google.com; s=arc-20160816; b=MDa+vV9ubjpq0gWu/iBLHC/ZoSiv/GaUZjO3Y//5CGcWVdc9HEramGJhDSuboAWIjU xXMAqVGEDf5iVcEwPSItslyNo7AjBxc6xBPMArmX3mbs6CKCFBUgX77L1quIYx+NIpjD 7oldDiS5zsS6CK4OdWXnoIDbyWCsOleVuUGKeUA8fjC+5SLBz4EexzgX5fsAN7pphelx gYPZturoZHkKpJTybQP7DItFnc6A7OzkG6uqXIY4tGvcuzgovKWPcguE++T0FmgxTJO9 jFlgYE4cwsYuYD98uINf2HFi07vsgv6VYwjBzs8vTl9rKx7VK26F9GPpPE5s/OCE7zpn CaAw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eDK54Mi47ux+H8/Fc/yYFMHxLB+WNQmcSJ3zj0ycUOs=; b=0/m29aJks45R1efCvSGTurcHJ79V5+H6RilF6ncIbe6haSSgTuIt4q18VSvMHUEUZy gWbO23GYmdurex7rZv9qLwKCRUbOSMRVZXfHAxad2JNLFHka0jyq6hOX5OjRLppUB8XN ZjA0An/TW+Kj6GViQqSyLlwHar1EjeYA7hzBWQb6Cr7UgN4LVF9qTGqOPGnoVRJSUsAV 73psCwpDcg34lpF+jXHpRISXZyAGQ1JCBS8wziLCb3OiH91hDpeUPKn1xtZQRn1KuEZz m16wu6qi1XFbKe6tfBEJPK7gYj0itOeNmym2Rsyip3F3JT071YMG+uCa8fo9PapFlde4 33fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b="Nao/xJaZ"; 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 x2-20020a17090a9dc200b001bc502ebf9csi456123pjv.51.2022.02.28.13.03.08; Mon, 28 Feb 2022 13:03:45 -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="Nao/xJaZ"; 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 S229571AbiB1VDE (ORCPT + 99 others); Mon, 28 Feb 2022 16:03:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiB1VDE (ORCPT ); Mon, 28 Feb 2022 16:03:04 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DCFCDE2C0 for ; Mon, 28 Feb 2022 13:02:24 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id j17so17437179wrc.0 for ; Mon, 28 Feb 2022 13:02:24 -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:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=eDK54Mi47ux+H8/Fc/yYFMHxLB+WNQmcSJ3zj0ycUOs=; b=Nao/xJaZSChztmqL9RGX7AvqUh5RbQsrizqO0XgzO06WkVKwA0gLVz2uVNNNw+xn1e oM7wtSQNqCx+9Kd55UqqLJ4XbzJ65aHtT1DPi9hCndP1RBaI/WtKCzGxem8kZPcjIVDU jdePWG6iNQiMG5b8N29+esQFWAqgVyAha7mYlfw7ZxEfoQ2jdc8vNs3DzC8iVip5zPrA 048RzUYVKJXZlCTFk77Gw/HkBSMSEkMtwlVExwFvAGTNuKRJ5m4SeEiQNjzVQgMRxlsk qI/EU4OwM/+GKyETJyncvpnfRHkqUJwE0GLwLN8TtZ1/MpnmNKAoCv6negojr3ftJXQE ukGA== 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:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=eDK54Mi47ux+H8/Fc/yYFMHxLB+WNQmcSJ3zj0ycUOs=; b=Uyr/IZx4ch1FZsrPZRmkoL8yaaT6i73dPQfU79J8mJGv1ljMX76I6AgsNqi2TFKgWf M+WMn7bzWvu/5YbisB6LdwS1ZMROwLI957spj9tL5wYYO4b9/KOFzVxllwC73mBas6Ro VIqfj6PFxLJxsSihsPNyzwbm4NWT1oRVjjgoPIjQItz55WTKI5N0+8apmQX2kotCuDuG hw911uUxmPAEMqZu8KByJ5EoarUw9IBXn7PbXNyLvUfQzHHmFsQTnIMBPF7bSKaQ98hG lqEU1y8lRGFsysmFoE1qdYojTAcUj73roIGsvlVVZCLQjsxDl6uo2gh6FuK2iNBtzlcF wujQ== X-Gm-Message-State: AOAM531/UNcLH8Xo8zOzYbWdOfKKPvFo0q1hUyYL6MxipIy5TG2Vpkhk opabrzGD9Hp6mEwQlH6Nk4w= X-Received: by 2002:adf:f406:0:b0:1ef:879c:3228 with SMTP id g6-20020adff406000000b001ef879c3228mr9614804wro.287.1646082142799; Mon, 28 Feb 2022 13:02:22 -0800 (PST) Received: from [192.168.1.10] (4e691f2a.skybroadband.com. [78.105.31.42]) by smtp.googlemail.com with ESMTPSA id n15-20020a5d4c4f000000b001f0052c712bsm335917wrt.102.2022.02.28.13.02.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 13:02:21 -0800 (PST) Message-ID: <6b17bdb5-dddb-e7c7-86f6-2240c6523a81@googlemail.com> Date: Mon, 28 Feb 2022 21:02:18 +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 To: Luiz Augusto von Dentz Cc: Chris Murphy , Bluetooth , regressions@lists.linux.dev 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> From: Chris Clayton 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 Hi Luiz, On 28/02/2022 19:34, Luiz Augusto von Dentz wrote: > 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/ > > Sorry, that patch has made no difference. After the first boot my headphones connected okay, but after a power-down and reboot they would not connect without an unload and reload of the btusb module. Chris