Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp518381rwd; Wed, 7 Jun 2023 03:21:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fubq3Q8aaTtOWSYsFBXEq6aquC+IwMUsFG4d152j2stqbVxRIhr5D5HPsyOPZUKcJOuzV X-Received: by 2002:a92:2906:0:b0:33c:5109:bb07 with SMTP id l6-20020a922906000000b0033c5109bb07mr8384394ilg.1.1686133279291; Wed, 07 Jun 2023 03:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686133279; cv=none; d=google.com; s=arc-20160816; b=aajjjGjXQ4Ugf0FuJvTTgKt9rA2B+ArQqviuXWpH2kymQUILG4PKorbeWc9ihV5pEl Dp29rowc3oMys+wTyokGRdGbpZQ3tDnGcHngvDkV3CghcYNEhHHck+AOqduT/44IXwpJ hFo0yUwkRiu1CTIFcZCSSadtb2i0XQCROR5BA+s18yQju14oKJBELRv3DLS5Q/xupO51 xAqGTs9tZzObqZ17xH7rz4vGHHkldBHJp5g2SBF3RUYS0CmSnUHV1k+OGj/wfh0Ea+wd 1weqVCXnPfIm7xDPiYyA1sBMwtN8P44I0JDuU4nCMv/1fvLt6drTDW6Zx4FTlUI6L4Mc CHHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EvYvWP/dmRw7dcP93qz9byoXzFOKtvhvKrmHdFETiw8=; b=Aj9Oql2UOpOMMBHwcJEKvMaRSKTXnmBXLPTvsI6klRvFwUIUfUFaxRV/83PMd9nhCh 4D1DBreGsSxPi8Hy59OmxchTtob5oKPcJz3cX0rgtwtwXKZQUUcGLT828L/kisxbovds BFS3ieSot8uHNgmu4yUbVgwEK1GuAsgNH2cAmi1KSo02GRuUtRkJ09nGlOwP8nknoPh/ wcWMnMlZGYUdm39YcjcfbHpwgKZuwgIhaxoUyjZcIfLYYFonNSKhqLXSduEKj66YtcBt CwW9jMMkpMU78J7XskkAg38rD1OZl+oBnBVKz1v0Sx/UliwiTzH/M/bFh9in1JfRiDSY gReA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S4V54KCm; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a65480b000000b0054402b987f8si1685047pgs.605.2023.06.07.03.21.04; Wed, 07 Jun 2023 03:21:19 -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=@redhat.com header.s=mimecast20190719 header.b=S4V54KCm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234318AbjFGKIU (ORCPT + 99 others); Wed, 7 Jun 2023 06:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234009AbjFGKIS (ORCPT ); Wed, 7 Jun 2023 06:08:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F37199A for ; Wed, 7 Jun 2023 03:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686132454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EvYvWP/dmRw7dcP93qz9byoXzFOKtvhvKrmHdFETiw8=; b=S4V54KCmKtG43bb7GWAp4G8kVtnqWkmv8erZ9NUvOz653CHV3FMzWMVrNnOXyC/CowxlEH jxLy8mKoPVTcMCijL7mzMiF7DrguCMx1Rj+UTNJSdC7Ai1f/zKVg9ZAzDoSyNOGB7r/znj U61i0Bm3xJ5g1GYqoq7mWAJszcnXb4Q= Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-461-hoPI2V0YMs20GsLvFyp_jQ-1; Wed, 07 Jun 2023 06:07:32 -0400 X-MC-Unique: hoPI2V0YMs20GsLvFyp_jQ-1 Received: by mail-yb1-f200.google.com with SMTP id 3f1490d57ef6-bb0cb2e67c5so10375099276.0 for ; Wed, 07 Jun 2023 03:07:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686132452; x=1688724452; h=content-transfer-encoding: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=EvYvWP/dmRw7dcP93qz9byoXzFOKtvhvKrmHdFETiw8=; b=kcUvRiZ+tYRGdfn+DRqumKj0GftF8HPUReCjXJ+IEAuvL3rZ6qEMSHz7XLIquHTJDq 8qcpWf87i9sSbXoQ+IQTEj9/XlupgbfuJdXYGQgsRtEzZl3vazECGnD3MIrQggzuoiiP 5jo+oCVwW6vPx3Lw2doXoA6FSqHVw5DYYQ0pjTsRqTxqk9km7haElH4mSp/VqqrWE3xu 5gIb8XaPv/P9XuZm2wA2T7swXJcByd8XcnT2DhV/owgVczkBY+LNy/1KpiPppovq9P2n 7EL8t5dbMFKDqyPgqZ1fmMHZ6fN8QyGvZ0srtr3aWQQgHPYwOPTSVaR+n0553jQF/bZC dkQw== X-Gm-Message-State: AC+VfDz5ji7Mg6Z4bXaRNv9woPB3Aa2CdNjnrp9dwi2w7lEK+AM942IE epEQBffhF2U8UcVJ03LNm35KZXf24Fn05aTV1CQ39N+6MaczCF9iQgV3wSuXhWz7o/jhP2ZDcMh JQ5xwKZ6JBfU0QK/pziiW3fvt6keK9xx6gRvsFP7Y X-Received: by 2002:a25:b90e:0:b0:b9e:5055:ce7e with SMTP id x14-20020a25b90e000000b00b9e5055ce7emr5436820ybj.55.1686132452439; Wed, 07 Jun 2023 03:07:32 -0700 (PDT) X-Received: by 2002:a25:b90e:0:b0:b9e:5055:ce7e with SMTP id x14-20020a25b90e000000b00b9e5055ce7emr5436799ybj.55.1686132452198; Wed, 07 Jun 2023 03:07:32 -0700 (PDT) MIME-Version: 1.0 References: <20230531082428.21763-1-hadess@hadess.net> <15bb2507-a145-7f1b-8e84-58aeb02484b9@leemhuis.info> <42b6e582-f642-7521-135a-449140984211@leemhuis.info> <2023060703-colony-shakily-3514@gregkh> In-Reply-To: <2023060703-colony-shakily-3514@gregkh> From: Benjamin Tissoires Date: Wed, 7 Jun 2023 12:07:21 +0200 Message-ID: Subject: Re: [PATCH] HID: logitech-hidpp: Handle timeout differently from busy To: Greg Kroah-Hartman Cc: Linux regressions mailing list , Jiri Kosina , Bastien Nocera , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Peter F . Patel-Schneider" , =?UTF-8?Q?Filipe_La=C3=ADns?= , Nestor Lopez Casado , Mark Lord Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Wed, Jun 7, 2023 at 11:46=E2=80=AFAM Greg Kroah-Hartman wrote: > > On Tue, Jun 06, 2023 at 08:37:26PM +0200, Benjamin Tissoires wrote: > > On Tue, Jun 6, 2023 at 8:18=E2=80=AFPM Linux regression tracking (Thors= ten > > Leemhuis) wrote: > > > > > > > > > > > > On 06.06.23 15:27, Jiri Kosina wrote: > > > > On Mon, 5 Jun 2023, Linux regression tracking (Thorsten Leemhuis) w= rote: > > > > > > > >>>>> If an attempt at contacting a receiver or a device fails becaus= e the > > > >>>>> receiver or device never responds, don't restart the communicat= ion, 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 5= 86e8fede795 > > > >>>>> ("HID: logitech-hidpp: Retry commands when device is busy"). > > > >>>>> > > > >>>>> This fixes some overly long waits in a critical path on boot, w= hen > > > >>>>> checking whether the device is connected by getting its HID++ v= ersion. > > > >>>>> > > > >>>>> 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=3D217412 > > > >>> [...] > > > >>>> > > > >>>> I have applied this even before getting confirmation from the re= porters in > > > >>>> bugzilla, as it's the right thing to do anyway. > > > >>> > > > >>> Unfortunately it doesn't seem to cure the reported issue (while r= everting > > > >>> 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/7c28afd5512e371773dbb2bf95a31ed562= 5651d9 > > > > > > 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.ht= ml > 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. Oh right. Given that those patches eventually end up in stable sooner or later I made the shortcut in my head. Thanks for correcting 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. Great thanks! Cheers, Benjamin