Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8645961rwb; Tue, 13 Dec 2022 08:45:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7z6h3LAbkPpxOM5sYEXjSzGCFkZMKfUYce2Qp25Htp8lR3aAhw511cKkG/nTxVBCzat541 X-Received: by 2002:a17:903:22cf:b0:189:c839:14cd with SMTP id y15-20020a17090322cf00b00189c83914cdmr30763697plg.16.1670949927548; Tue, 13 Dec 2022 08:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670949927; cv=none; d=google.com; s=arc-20160816; b=fXMjMy7YGKPLkHwg5swdhx4t+HaMPV1z/ZxDQJ44kSL+m2cAtcWQK49kVlq4qjZn9C 3Za3yjeSCtxSXAKI9KiLZZNT0xzK07NNmkBR6e+YvNG7f3xK0slWSz/1VTvz4SQSowi6 D6GUgmmywHVKJRHCsam+b5wsIlUfE1bI1IIuigr6aqHU/U/nG7VE080OJE8C3iA3qAL0 tMbAK2eH7Yi4f54NUNBiso+oCi/kIgzk2fAazGIOhi509wE6UP/MT0n1NxPK/XAGADix XyO+/Pfuko75K84b9AWEC3PCHsnTGxiUHy4G3OR8RrTuAse5DprAI6cY587Jn6vF0Qmd uKNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=jS+kMEAVOI3lGLQc3Bn5Y4pAFkuPhvTbkrKTEAG68qg=; b=xyUyNtLly6bGUjPSzEy1a4h0XVMQ07nKcFKxAClyY8d2aapGGiIanHRX71bD0RLwIl ATHOcDUHrVD5tTDNny+k3ZnSownay7oQOb8Z69PYcKgGikjEiRMDyq1MKpQllB5AqtAA MKRwqykzQ8eZaotaQw5y77TEeub0gq8sP+pmr0dUH4i/gUE9FE1Ev6h7p3SUidvM1k4/ /P38oirTSisvKt0LI6BpVo32GupsS7gU5KNOagi0Cxtbzu+XUROiocKrcFu6a9xY1wpB HjyQ1iUnf4a87Q6+LoDcWPyud1aDltQgETwczbUfjmEo9mn53y6dgmySu6bLmhVGNSRc wzXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 d17-20020a170902c19100b0017f77922b11si241802pld.84.2022.12.13.08.45.18; Tue, 13 Dec 2022 08:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235961AbiLMQOQ convert rfc822-to-8bit (ORCPT + 72 others); Tue, 13 Dec 2022 11:14:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236008AbiLMQOM (ORCPT ); Tue, 13 Dec 2022 11:14:12 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 371061CFCC; Tue, 13 Dec 2022 08:14:10 -0800 (PST) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 5469260002; Tue, 13 Dec 2022 16:14:07 +0000 (UTC) Message-ID: <6b5e878265958fb0201178fc3c1d75ef06c826ec.camel@hadess.net> Subject: Re: [Regression] Logitech BT mouse unusable after commit 532223c8ac57 (still in 6.1-rc8) From: Bastien Nocera To: "Rafael J. Wysocki" Cc: Jiri Kosina , Filipe =?ISO-8859-1?Q?La=EDns?= , Benjamin Tissoires , linux-input@vger.kernel.org, LKML , Thorsten Leemhuis Date: Tue, 13 Dec 2022 17:14:06 +0100 In-Reply-To: References: <2262737.ElGaqSPkdT@kreacher> <1df12728a2e788788fd387588bac62023e123d16.camel@hadess.net> <2145955.irdbgypaU6@kreacher> <8281ddcc16cc950f9cde4b196cf208adcc798319.camel@hadess.net> <91367d07a72ecb2065faebe974c54ebd966e0d59.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Thu, 2022-12-08 at 16:20 +0100, Bastien Nocera wrote: > On Wed, 2022-12-07 at 18:44 +0100, Rafael J. Wysocki wrote: > > On Wed, Dec 7, 2022 at 6:19 PM Bastien Nocera > > wrote: > > > > > > On Wed, 2022-12-07 at 12:07 +0100, Rafael J. Wysocki wrote: > > > > # hidpp-list-features /dev/hidraw1 > > > > Bluetooth Mouse M336/M337/M535 (046d:b016) is a HID++ 4.5 > > > > device > > > > Feature 0x01: [0x0001] Feature set > > > > Feature 0x02: [0x0003] Device FW version > > > > Feature 0x03: [0x0005] Device name > > > > Feature 0x04: [0x0020] Reset > > > > Feature 0x05: [0x1e00] Enable hidden features (hidden) > > > > Feature 0x06: [0x1800] Generic Test (hidden, internal) > > > > Feature 0x07: [0x1000] Battery status > > > > Feature 0x08: [0x1b04] Reprog controls v4 > > > > Feature 0x09: [0x2100] Vertical scrolling > > > > Feature 0x0a: [0x2200] Mouse pointer > > > > Feature 0x0b: [0x2205] Pointer speed > > > > Feature 0x0c: [0x18b1] ? (hidden, internal) > > > > Feature 0x0d: [0x2121] Hi-res wheel > > > > Feature 0x0e: [0x1f03] ? (hidden, internal) > > > > > > Would you be able to enable debugging for the hid subsystem to > > > get > > > some > > > debug data when getting the version from the device fails? > > > > I guess I could, but I think that the device is just quirky. > > > > At least the BT layer appears to think that it is connected. > > > > Anyway, what exactly do you need? > > > > > I can't see any problems in there that wouldn't also have > > > impacted > > > all > > > the other Logitech Bluetooth devices listed in the support > > > devices > > > list. > > > > > > If the problem is a timeout, maybe we should lower the timeouts > > > we > > > currently have (5*HZ = 5 seconds, right?), so we can retry 5 > > > times > > > one > > > second instead. > > > > No, it doesn't take 5 sec to get a response from it.  It rather > > looks > > like __hidpp_send_report() returns an error. > > Adding "debug" on the kernel command-line should be enough to get > debug > out of hidpp_send_message_sync(): > https://stackoverflow.com/a/63682160 > > Either that or turn all the dbg_hid() into hid_err() if you're going > to > be compiling the kernel. > > We're mainly interested in the error code from the device, as that's > what I'm guessing is caused the error to propagate. Can you also check whether you had: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=8b7e58409b1813c58eea542d9f3b8db35b4ac1f7 in your git tree? Would be great to know whether that commit helps at all. Cheers > > > Still, as I mentioned earlier, I can't reproduce the problem on > > > another > > > Bluetooth Classic device... >