Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1962380rwl; Wed, 12 Apr 2023 22:56:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bnsLeKgNg70pWUmJbmprDDQA0cpY5ETlN0QtmKFNpND4TmzNzh/2seAMaiVgq/eARX3xuR X-Received: by 2002:a17:906:a941:b0:94e:4d06:845d with SMTP id hh1-20020a170906a94100b0094e4d06845dmr1497135ejb.25.1681365416866; Wed, 12 Apr 2023 22:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681365416; cv=none; d=google.com; s=arc-20160816; b=Nd3RcwJtAA7uprgbDSaAJ0qTaUSlRYmfbe4m4FtN9rgOu2NhUGTlTk7qh3Zzxs9fEN 6d810L2MawvTLoB/i7y1KY8Qknf34DhyT1OTG6ms64RDbHaiHeV1B/69zeMiYbn+Y7LO 7LYRlDqm8EZpggJOKa0ZeJqXgPfSM3UM/yw5+wxaiOExg9/lzZWhv/d6D8+3ivBFxRIl RWBntAOU/QVf3WQ5sRw/y/KEapLUUNhV9orhp60dVn4R762Pl7c4vmf4Aa4XJOBwgTzk b/ox7XqlQDfrDbUteMo9imqr6LvnKapfomgEfMjj5eDXEy+67+KdSbm+JHwySPzU8GLz rKaA== 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:cc :content-language:references:to:subject:user-agent:mime-version:date :message-id; bh=Hihau913AcaYQXcwPrxUR0zBeJ+c8lOs3OSqsk3uhbU=; b=sR6ljag05IgaQshmApYDkULLlzD0G1a4R+B301aiWq+QAetLwQbpVN5URACrYO8YPx CfoHq+60q6t5bpfVcpqJLR73IaJI1+BbCmk3O4+E6oAV3HBOrx2jfK0VwqDjgALWZe19 F6huWbdcW6Z67h87idWyDt8qKEEi6jEdtNs5/cq5M2BDWnLehHopHXzy39MKE4CrXhUh EyqYHeIRr5AiJtRJRCnuqXVXUud6jMTyl8q3bcyag8cQ1k5sIWdM0F56/G0DA1KOnsF+ 9mQrAIYj4d+6yCmTVLCNRccEHjUliWng/Z1imA3ccsYq30jbvazlRTZfpeBp3U12lKNq uyQg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fu32-20020a170907b02000b0094e7bb3630csi925854ejc.65.2023.04.12.22.55.57; Wed, 12 Apr 2023 22:56:56 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbjDMFj2 (ORCPT + 99 others); Thu, 13 Apr 2023 01:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjDMFj1 (ORCPT ); Thu, 13 Apr 2023 01:39:27 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BD584200; Wed, 12 Apr 2023 22:39:24 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aebdb.dynamic.kabel-deutschland.de [95.90.235.219]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 6215E60027FE8; Thu, 13 Apr 2023 07:39:21 +0200 (CEST) Message-ID: Date: Thu, 13 Apr 2023 07:39:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: btusb driver need to be unloaded and reloaded after boot & lag issue To: help.7ocym@8shield.net References: <168133719213.7.14774994518515251513.119182329@8shield.net> Content-Language: en-US Cc: linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev From: Paul Menzel In-Reply-To: <168133719213.7.14774994518515251513.119182329@8shield.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 [Cc: +regressions@lists.linux.dev] Dear JLM, Am 13.04.23 um 00:06 schrieb help.7ocym@8shield.net: > sorry to address both list, but this issue seems related, without > knowing where lies the issue > my hardware : https://wiki.gentoo.org/wiki/Lenovo_Yoga_900 > I use the pre-built gentoo linux kernel, > 6.2.8-gentoo-dist #1 SMP PREEMPT_DYNAMIC Wed Mar 22 17:15:39 -00 2023 x86_64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz GenuineIntel GNU/Linux > > since a few update (sadly I didn't noted the latest kernel version > that didn't had the issue), after a boot, the bluetooth isn't > working, nothing bad in dmesg, I just have to unload btusb module and > modprobe it again to have bluetooth working again... > > after a suspend to ram, I have to power off-power on the bluetooth to > have it work again (bluetoothctl power off; bluetoothctl power on) > > bluetooth mouse can also be extremely laggy sometimes,but without > error message in dmesg, most of the time `bluetoothctl power` off-on > cycling do solve the issue.... > > I also included the usb mailing list because it might be related to > some behavior I noticed : > > I have usb3.0 micro sd card reader (SanDisk MobileMate UHS-I microSD > Reader/Writer USB 3.0 Reader, Kingston MobileLite Plus (MLPM) microSD > Card Reader USB 3.1 microSDHC/SDXC UHS-II, for example) and some > extra fast micro sd cards (like sandisk extrem 512G), when > transferring data the read rate can be as high as 110Mo/s and write > 70Mo/s sustained, nothing impressive but when such rate is achieved > for a long time (big file transfer) either reading only access, > writing only access or read write, the usb bus become unusable, I > can't even use a usb mouse connected to it by wire... even if cpu > usage is really low (less than 10%) I don't have the issue if I > connect a M2 usb3 flash drive, with comparable transfert speed... so > not related to some bus over usage... > > so I suspect that there is an issue with the usb driver, and that > maybe the bluetooth issue can be related to the usb issue, since the > bluetooth controller is on the usb bus on the laptop > > the transfer issue of usb is much more older than the bluetooth > issue, it's approximative, but : > - the btusb boot issue is about 3 month old, > - the suspend/resume issue of bluetooth is more than a year old > - the usb transfer issue as more than a year... > > I'll gladly provide any useful information, can also do patch tries... As you use Gentoo and are able to build your own Linux kernel, the fastest way to get these issues addressed is to bisect them. To shorten the test cycles, I recommend to try, if you can reproduce the issues in QEMU and passing through the problematic devices to the VM [1][2]. I also recommend to start a separate thread for each issue and, as these seem to be regressions, also keep the regression folks in the loop [3]. Kind regards, Paul [1]: https://lore.kernel.org/all/5891f0d5-8d51-9da5-7663-718f301490b1@molgen.mpg.de/ (The commands were working for after all, and the device didn’t show up due to a (second) Linux kernel regression.) [2]: https://station.eciton.net/qemu-usb-host-device-pass-through.html [3]: https://www.kernel.org/doc/html/latest/admin-guide/reporting-regressions.html