Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp515603rwd; Wed, 7 Jun 2023 03:18:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lu28Qxjud2RQWTfHq7kj+0W6WN+taBtjg8DrAB5BaEab8VYG+C+T+tmjTdS+JhZ3BocJ2 X-Received: by 2002:a92:d906:0:b0:33b:848:378b with SMTP id s6-20020a92d906000000b0033b0848378bmr6583984iln.8.1686133109884; Wed, 07 Jun 2023 03:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686133109; cv=none; d=google.com; s=arc-20160816; b=RNWMWcFhcBs6a8H3w/Z+l49T9UTwibcEiCAebRFsy3gkOEEaZKPsCZo3mX6r3/3/TX eIC8dyZUR31tJKvBpYGdinkI8TZCCk2WoU+v1yZXpB8z64HCcyyaOwxXyaE7zTH9nVRK oJaLl/oaz5Qq17vNkbO5Hp+hxF+x9XREa4L7ej1xsOGiWXOe2l89Zmgo/yW/AyctNaaS 90nEPB/22dPIQnKfrN+mkfJ8Q/PdM4rCOo8dCdV+ifbNQfWZBT8yTOvkVqRdRZN5br51 4Id3jq7iPbkMn7LQE2hqW858UMd5FEWqkpxVsunvzRwT3eLtzsRJSyPaW+XaKG1ogC7g a/0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZjCfRHFJSIdpS7jzY++KQNzLbHPPyNxvvLxeXHaj3JY=; b=zX7rpR/JsQwwb161VIjj4/0o8BD8Qnh9M4Rpf7A1KPQPSZNFJ6SUkGd+VEFiEH2Xhj UG83LZGRlEVEmAQcTFalmhi9jkk6V+CKyHLhif6Bfn9+3ettg7YFo9PLlAm6eHbh6KeI 7ScXTdFiFlodgSnSXWaVB5j3q9iugSLZVcU8RpQlPlEvTcF6KZQb+BBysKCmSfIPMwUO B+UmixvzzPP38aZ0eBufgwLcgZYR06OYByNEX50B+KDjgcg3XFbSXfz2tZUCP7Wjb1ah vPCRXjT/i8H49P92pI+WxAjh5IfEdSH188aLsawE6pcupmZesUx/QZIpELce7AFwVlJi umNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W4O3BnD+; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a637707000000b005347fcb785dsi8613389pgc.181.2023.06.07.03.18.15; Wed, 07 Jun 2023 03:18:29 -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=@linuxfoundation.org header.s=korg header.b=W4O3BnD+; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239452AbjFGJqW (ORCPT + 99 others); Wed, 7 Jun 2023 05:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234667AbjFGJqV (ORCPT ); Wed, 7 Jun 2023 05:46:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40219EB; Wed, 7 Jun 2023 02:46:20 -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 961E063526; Wed, 7 Jun 2023 09:46:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70EF7C433D2; Wed, 7 Jun 2023 09:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686131178; bh=Hr4rBiNWgGFLHEUkJ6fJ0SmEH1IK0S4xufK3cOEzt8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W4O3BnD+iBFljIz6bc+MRDzP6j9A4YW5JRg1OH8QiTSmUm9x+xd3ybL1fUr4AjAnm 8yUolAP2YS/0ceZ4K3aBEhehVQL5Ak/0/sw6DIPWvsZSNhfggLWO4sig0wgYarXqMT JODzFKDXQj5LclUj3eYGm4/FuwGh66AUJrZaFGuA= Date: Wed, 7 Jun 2023 11:46:16 +0200 From: Greg Kroah-Hartman To: Benjamin Tissoires Cc: Linux regressions mailing list , Jiri Kosina , Bastien Nocera , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Peter F . Patel-Schneider" , Filipe =?iso-8859-1?Q?La=EDns?= , Nestor Lopez Casado , Mark Lord Subject: Re: [PATCH] HID: logitech-hidpp: Handle timeout differently from busy Message-ID: <2023060703-colony-shakily-3514@gregkh> References: <20230531082428.21763-1-hadess@hadess.net> <15bb2507-a145-7f1b-8e84-58aeb02484b9@leemhuis.info> <42b6e582-f642-7521-135a-449140984211@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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,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-kernel@vger.kernel.org On Tue, Jun 06, 2023 at 08:37:26PM +0200, Benjamin Tissoires wrote: > On Tue, Jun 6, 2023 at 8:18 PM Linux regression tracking (Thorsten > Leemhuis) wrote: > > > > > > > > On 06.06.23 15:27, Jiri Kosina wrote: > > > 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 > > > > Jiri, Benjamin, many many thx for working on this. > > > > Hmmm. No CC: > > > Should we ask Greg to pick this up for 6.3 now, or better wait a few > > days? He currently already has 6199d23c91ce ("HID: logitech-hidpp: > > Handle timeout differently from busy") in his queue for the next 6.3.y > > release. > > Well, the Fixes: tag supposedly is enough to let the stable folks to > pick it up. No, not at all, please see: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. (hint, we need a cc: stable@ in the signed-off-by area.) We only pick up stuff with "Fixes:" semi-often, sometimes never, depending on our workload. Never rely on that. It's been this way for 18+ years now, nothing new :) > But you are right, let's Cc Greg for a quicker inclusion > in the 6.3 tree. > > Greg, would you mind adding the commit above (7c28afd5512e37) onto the > 6.3 stable queue? Thanks! Now queued up, thanks. greg k-h