Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1200178rwb; Thu, 15 Dec 2022 07:30:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lHrd2Y4GkV+JcQL+ic/WS14KsIO+AGrF8h3ZIYcLbZJ05ua7xrvpR3GT+wpYmc0Q6+lP3 X-Received: by 2002:a05:6402:1693:b0:46c:91fa:5a7d with SMTP id a19-20020a056402169300b0046c91fa5a7dmr25853891edv.12.1671118235589; Thu, 15 Dec 2022 07:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671118235; cv=none; d=google.com; s=arc-20160816; b=t7jzhy6zJm25bbz5oqMGPfzaaG+qWe382yLyrdZ9PIshFiYa8w0bmn3l+xDNRNSVkM 6e3BlnOy9DKOXA6RBaup2MAGbwEYCHjqT1GbizOjI8yHTb2NTs+uyfIgl7oU/IyXA2VA qF+hjB6HAugC/azPnoD5qTyLr5XkdLRhsK8/EQ0usJ6jI39F5vOMMILfUxpgCvs0HOjk 4NKvYCnHxOTyMfn+3IBVDPJ7gUD062POFcTDE8E/CdJHrreB63agTyLdVopKFyODJYyO cjgx1bvgnRgnNu8c4PjQQDJEFE1/6Adn6djgiVUk/q1v6ntOShq33nmS+Ve4uyWRNBwb 7yfQ== 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; bh=VRK7b4YTFDqD0ddpHKV1yukQyR96FeHvIOON11LsLBg=; b=ZJMRvFF55CClv3D/omYWgxuYOIp0UkDDaXjAhQZfIiydXefOgnRG2AcHWU8bUvNxh0 +4WGUHpI+kmljy32HKKSri6RIRUR0s5QglPWj5ax9jyP5ke8TAAZZjMYwKVdrrvj23V8 GpFBAXvX74ZCY1i93bqjaJgiPh57+NI5tiF4J9JYqpzr4yvqfIGeYrPMgzimNruIO59U VOJDdZ6MJTUp9eEAbaadASCZsP73c97H7pp+fREvUalxGgLqn+QljD3y+tD9apvgr6Mt C6EC7DL26TjX+rWQgBC3uo1N2AnrIQ8mOHG/pJ0QC1PeFO8ffXwpLbIJkgGDr8MOHtAK WcTw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a056402510600b00461a144e981si19281012edd.356.2022.12.15.07.30.16; Thu, 15 Dec 2022 07:30:35 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbiLOPKG (ORCPT + 68 others); Thu, 15 Dec 2022 10:10:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiLOPJ6 (ORCPT ); Thu, 15 Dec 2022 10:09:58 -0500 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C01C0303F1; Thu, 15 Dec 2022 07:09:56 -0800 (PST) Received: by mail-qk1-f180.google.com with SMTP id p18so2770681qkg.2; Thu, 15 Dec 2022 07:09:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VRK7b4YTFDqD0ddpHKV1yukQyR96FeHvIOON11LsLBg=; b=3OEhIwMkX1t8DWtD8yncIFq73+f8jlmBye01D7jXXHe6vCzQr99WfP2QrEyLaWzAEg biyC/uoMpWgTOTPOeo95QKVYAXSPhpBYIa2ojuGGey/IHczQl1yFD6g5nNR1IdYYFnNs /l+JEHp2fYjYFYHBcB6sm6ADbw2qyA+YUuD525A9xxQTV9mpNziaSFEphEi66jDsTRqF bcIvDwrpqL+aSQZQpr2TjgI42I9y3y1KcZ5nDM+/qrvOk0DB6klfy01PF2HHdzpe5fuT +5BjZM8Gc55hd40R3kiUsPOB4zLh76iSezbsznc+G0TEK0cHZWI2/qXKgyqU88prSX/P cWtw== X-Gm-Message-State: ANoB5pkLXfwOe6O40qq1ETwdT11+otcNOOWbFndBXwQaWCn+UL8FHi+2 d5C5awkT1mgwOrkAPMYA+m9ob2udWtzjrMEp8dc= X-Received: by 2002:a05:620a:4611:b0:6fa:af7e:927c with SMTP id br17-20020a05620a461100b006faaf7e927cmr82807384qkb.443.1671116995879; Thu, 15 Dec 2022 07:09:55 -0800 (PST) MIME-Version: 1.0 References: <2262737.ElGaqSPkdT@kreacher> <1df12728a2e788788fd387588bac62023e123d16.camel@hadess.net> <2145955.irdbgypaU6@kreacher> <8281ddcc16cc950f9cde4b196cf208adcc798319.camel@hadess.net> <91367d07a72ecb2065faebe974c54ebd966e0d59.camel@hadess.net> <6b5e878265958fb0201178fc3c1d75ef06c826ec.camel@hadess.net> In-Reply-To: <6b5e878265958fb0201178fc3c1d75ef06c826ec.camel@hadess.net> From: "Rafael J. Wysocki" Date: Thu, 15 Dec 2022 16:09:44 +0100 Message-ID: Subject: Re: [Regression] Logitech BT mouse unusable after commit 532223c8ac57 (still in 6.1-rc8) To: Bastien Nocera Cc: "Rafael J. Wysocki" , Jiri Kosina , =?UTF-8?Q?Filipe_La=C3=ADns?= , Benjamin Tissoires , linux-input@vger.kernel.org, LKML , Thorsten Leemhuis Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 5:14 PM Bastien Nocera wrote: > > 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. No, it's not present in the kernels I've tested so far.