Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1275574rwb; Thu, 8 Dec 2022 08:39:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LUdRLENfxcTg0poQj+Ivj5ncMGpPvhQZ9IZzCTxgS1ehjFMogy4FjEIZkSQL2VmopKDrg X-Received: by 2002:a17:90a:de90:b0:219:44f2:8618 with SMTP id n16-20020a17090ade9000b0021944f28618mr50188083pjv.79.1670517556735; Thu, 08 Dec 2022 08:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670517556; cv=none; d=google.com; s=arc-20160816; b=ZaFWb20sjcqpafb5M0Je2+Vsgp4dPBYoCJROVXNJ2nKiZIWY7744+E9GaP5L/7vNT5 9PFBqfmEBDSTqukyvWgznUv97v+2WZ35b2IsmWA9D2vapltY2oSKMdVBW4hukYTn9XDp 0ArM0QGI98xaJXU77QDZF0b30jAKVmxM/IBROfgnNOi9OksEsEd8p9OynbRsr2xAolsY 0E0dVMHKKGYXR+89sy57ybGNpDBSHeLInGuP32JP0hPVIBnjTomD6tyEcPFreg7pHbYk LKmUbhV+z1qBU8jIDWSXu+8v/auiRZ5mmLbZ9LusjpWIHVMAd7Mq5wr+h6jSSxAOb5HY 79cg== 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=y4m6vW119Ci1ukDjPuB+kMKipdT31LKBK2W9B6jDRbE=; b=ulE64sX6JR+cPypdx19nB6swsBi0q1jZXnEieU/wFQ345BgBRgt5R6HiznLPsEIe5H 9laHPvBKeFhNw7o22iZzTK514f8hOCTcHrpCYds59i5IrhMHjDpocySlVQoJ+16/ZfiZ wBCUGHNknH+6lPnmtM4W82SqPrBnLNybVaa5O7XYHo9deKkmuhvaOGddSkkyvqo/UuQ1 1l1Xqd9R+DvyZsi2ekGG14aFgrkXQv5wOfhi9mvIyLj6773D+ssT0NCyyDkQj1gWSzal cOFBM9aD4q+K2zfM+zqzwt9xxl5/Jd7J4FvyZyZ8Qg2dLItLZzkmOD9UEB3sYVXfCvP2 O/GA== 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 l14-20020a170902f68e00b001897a8b5367si26971040plg.56.2022.12.08.08.39.06; Thu, 08 Dec 2022 08:39:16 -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 S230168AbiLHPW1 convert rfc822-to-8bit (ORCPT + 72 others); Thu, 8 Dec 2022 10:22:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbiLHPVf (ORCPT ); Thu, 8 Dec 2022 10:21:35 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA489686B0; Thu, 8 Dec 2022 07:20:52 -0800 (PST) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 7C4BB240008; Thu, 8 Dec 2022 15:20:49 +0000 (UTC) Message-ID: 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: Thu, 08 Dec 2022 16:20:48 +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, 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 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. > > Still, as I mentioned earlier, I can't reproduce the problem on > > another > > Bluetooth Classic device...