Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7159233rwd; Tue, 6 Jun 2023 07:08:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ke4pw+M+mmmyt+IvSBJUe2axbDx82WNoYqOhqTduU3wT8VvwvQ5v809IwhKukBOG9T9s4 X-Received: by 2002:ac8:594b:0:b0:3f3:8f88:72f4 with SMTP id 11-20020ac8594b000000b003f38f8872f4mr2530979qtz.20.1686060539008; Tue, 06 Jun 2023 07:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686060538; cv=none; d=google.com; s=arc-20160816; b=qNga8mazl6mekMakLjHegLmgtJk9Mj1gn5K4sQSgIP2QuHb9d79sI7hhAAhLt1o9Qf oLgSr7DYHOQ7HNEeyXZgYJN0AZvkDhGpox8dpeWNgjEMLysLAFwuSMrdSZJXI199e+/o 4crXMRHG7uv6sYnX2ZOqhQmcNVKPzCPB7x2wJlbh0UhR7Z4152NJbmXQ+o94MEq4sd1X ARbLZVeZg1auGnBLSaUnKJuhGa3nINkyriuNxvApOylj3yMIJX4JTEjnoRHfE8F7QBQf u6cVvGsNjx8ouogmY1qevYHQKAfvcy6Tg7JUr1N/Td/i1WG9pq5g19+E0WMROsgaIGY8 rwyw== 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:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=eVVx6YmmmmWbkg+p+X5guPDhbSfKSyFc6Y15fFt1ESM=; b=tJ/rZTISjxJwt7/CQe4VYod0uySBuoSknrDFRrv+WbkZduXIcYW0uHUg4sTbUU0ty4 Ox7iQg8S9fA2yGb+DhNAA3fYOCZ/icZ886+VwUegjUaYWF+eb04ZUzhfO5YTjuh+qTZ4 PI25Y5cSgs/w3v8jNlPCukP7SutTEzRvAHzWvAVdXBzqXEVUrOJeBzY/hM9oMU3hhSs0 UVCXU2dwKR+lYcR2AyG9646Our8ITBut9SKqqWoJ0inJPPUwlM63JDH9M3j1bjsBBhu3 UzkiNXn447XFr2PeC6hH667+T+BsFm0NeaKEvizlOpFSQIMCcR0Xg0dXEVIJeHX+qXmg jWTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YmljVAsf; 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 c12-20020a05622a024c00b003f5aa8ecadbsi6343850qtx.224.2023.06.06.07.08.43; Tue, 06 Jun 2023 07:08:58 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YmljVAsf; 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 S237456AbjFFN1w (ORCPT + 99 others); Tue, 6 Jun 2023 09:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237514AbjFFN1r (ORCPT ); Tue, 6 Jun 2023 09:27:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87AD610F0; Tue, 6 Jun 2023 06:27:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9115B62B73; Tue, 6 Jun 2023 13:27:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D2DC433D2; Tue, 6 Jun 2023 13:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686058062; bh=Y5tGaEDCfykOC2/4URAbvKrhGg4KX5KOyjmQhsNzC8c=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=YmljVAsfkKIDZ+t4UlyRN5aekGZdC9+HIxGCMfnrY3T6jWyNbpMQX3ux6EKNaGYvn 75+djZcOEKYYfZumWK0oEoIpSa2rJeneqEljKnpLxgEEFJdfHWJeYOMHUCYqwrcx/u wjDQSfMhgElR1oV2W1QGokmVFvb2ActK1U7EH4Eajoa/pWPQUBwGOOZQiomPgsKpg8 tv04eUOpm3HGgY3ak6l+MgRPj+kivJe/hSoKXkp5W/nmXojFpz1nT2AVWyo7RQnr7M mbfbB2A5tSpFZA8rhDRFL1GNTdYk7qGdAMLDHtxTJmBZ7LfQXRpci4wg+jXZiW+nFL dtJNHavJBMyUg== Date: Tue, 6 Jun 2023 15:27:37 +0200 (CEST) From: Jiri Kosina To: Linux regressions mailing list cc: Bastien Nocera , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires , "Peter F . Patel-Schneider" , =?ISO-8859-15?Q?Filipe_La=EDns?= , Nestor Lopez Casado , Mark Lord Subject: Re: [PATCH] HID: logitech-hidpp: Handle timeout differently from busy In-Reply-To: <15bb2507-a145-7f1b-8e84-58aeb02484b9@leemhuis.info> Message-ID: References: <20230531082428.21763-1-hadess@hadess.net> <15bb2507-a145-7f1b-8e84-58aeb02484b9@leemhuis.info> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org On Mon, 5 Jun 2023, Linux regression tracking (Thorsten Leemhuis) wrote: > >>> If an attempt at contacting a receiver or a device fails because the > >>> receiver or device never responds, don't restart the communication, only > >>> restart it if the receiver or device answers that it's busy, as originally > >>> intended. > >>> > >>> This was the behaviour on communication timeout before commit 586e8fede795 > >>> ("HID: logitech-hidpp: Retry commands when device is busy"). > >>> > >>> This fixes some overly long waits in a critical path on boot, when > >>> checking whether the device is connected by getting its HID++ version. > >>> > >>> Signed-off-by: Bastien Nocera > >>> Suggested-by: Mark Lord > >>> Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when device is busy") > >>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=217412 > > [...] > >> > >> I have applied this even before getting confirmation from the reporters in > >> bugzilla, as it's the right thing to do anyway. > > > > Unfortunately it doesn't seem to cure the reported issue (while reverting > > 586e8fede79 does): > > BTW, remind me again: was fixing this by reverting 586e8fede79 for now a > option? I guess it's not, but if I'm wrong I wonder if that might at > this point be the best way forward. This should now all be fixed by https://git.kernel.org/linus/7c28afd5512e371773dbb2bf95a31ed5625651d9 > > https://bugzilla.kernel.org/show_bug.cgi?id=217523#c2 > > FWIW, another comment showed up there: > > ``` > > --- Comment #6 from vova7890 --- > > Same problem. I researched this some time ago. I noticed that if I add a small > > delay between commands to the dongle - everything goes fine. Repeated > > request(586e8fede7953b1695b5ccc6112eff9b052e79ac) made the situation more > > visible > -- Jiri Kosina SUSE Labs