Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7528395rwd; Tue, 6 Jun 2023 12:05:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6amKCwjo5QvR3TbRecZJ+n9NKoKTbR3EWI3n9mbP5b397VVeVvEJ+yGrje0W1Xfd4oFIOf X-Received: by 2002:a17:902:d2c7:b0:1b0:4b65:79e4 with SMTP id n7-20020a170902d2c700b001b04b6579e4mr2529805plc.20.1686078305213; Tue, 06 Jun 2023 12:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686078305; cv=none; d=google.com; s=arc-20160816; b=S+QlJph8MR/94EVkTATQi57An1ZJdBhvl/5g/2ZUi5U+oiRWdpq5S1BgdQ1AHJun8J wRaqTlAXpSLKX2PzXErFY8dMW6o+sfO+iMM6A/F/dyjRlhgW5xGpAlkME6mH714gnBCR +584D9r3vJmvHDKJ8Xknoomk/JqOG9YxqpCt+sQrOYbv/yYmYIWzhKUDAmTUZvA69b/u rh4vOXM1Wk5VKvOzW+kg7+HORgXFicVFWofh6xmkEYrk1vo1A25ORjBE0+EWDYOg5KaZ EvAJlEa8gyBspK0MGNfi/8plFSqm06PGqYo3yCrfjsrFxgLWNiXByPPV5UkUDcj0uGDK 3qHg== 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=BagLP1pdl2jLuypkWVwHAzF6SlgrIs6dDABtbPpb9hk=; b=bWj/nUMQtU7lm8BBJsjx0TTW9eX8eR4H+xnLeaaAD2lNQuLrbFP70kEiRY9DtM4hbm OkBJeT1CcnUzO2p6uEEWoL3p+rVSczPqDglqOM0MHA5IgrBXUqIydx+53Wc1BKzIDppV stYQSo9pjHql5s+AaWz7+KOP1NZdqDJMXwG2aIZildacPjb7sG2mDAAuF7IG/unxd5dV cQARoEdFSXY6yiI8CzuxdhDrj/PQcAfigYVdfD9nubsy4+zzFftgG/JtVbJnQQsz2y/D 6EO/r2XB63Hgo0ro2UUgBKVrs+h940qUlMZ0XIdnQIjJoLvZsIl7nrxtsjPCxLoHfWfH FANA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gsQqDQz3; 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 k13-20020a170902c40d00b001b053ea9b8dsi7843703plk.570.2023.06.06.12.04.44; Tue, 06 Jun 2023 12:05:05 -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=gsQqDQz3; 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 S237959AbjFFSib (ORCPT + 99 others); Tue, 6 Jun 2023 14:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237728AbjFFSi2 (ORCPT ); Tue, 6 Jun 2023 14:38:28 -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 A48B5E8 for ; Tue, 6 Jun 2023 11:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686076659; 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=BagLP1pdl2jLuypkWVwHAzF6SlgrIs6dDABtbPpb9hk=; b=gsQqDQz30RS6JrWc+zUCx35R0E7pNyHQVRZj2Ecp4KlYEYB43eALfbx2+okb5uXbXKuFuE JzD6NZ4ztFhA8SR4AtOgv1flgpW/WOSXsuMh2PtMZKgV03VHuQ/R4FwrquAXkR4toYzLE6 L6CoE8cLQzwMN99+LNPxIB61dqE5oNQ= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-597-XPn5emBBMsiVyNzYWg7WVA-1; Tue, 06 Jun 2023 14:37:38 -0400 X-MC-Unique: XPn5emBBMsiVyNzYWg7WVA-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-56942442eb0so94833077b3.1 for ; Tue, 06 Jun 2023 11:37:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686076658; x=1688668658; 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=BagLP1pdl2jLuypkWVwHAzF6SlgrIs6dDABtbPpb9hk=; b=UAo1aeRg/gxn3BcXEN+L7y5u5habAzcM8YS8w6lxwT8tETLbalIc+DewqdlKXLAasQ azfkqYcJrwWtwuv5uw4nPg929RD25KUeTuVXemQIdOscOYEPzJMWLsX3Ez1LVvf0zkpy Kt4eUJt/tAZQalaUfX/tLjtyXdOA/Xe8RrllNDC0Py4235RvNuFmgpGc3LSXVbwMngoQ sgVMDTZvx8WioEpvE9gLngrvuiiPZuDMipgoZidRQJ7PaAsX9xJlPVUeC6PMMo+Qsuv9 ERP0UGpzRC+uqvkEXl3cwizMSD3JuDKcfA2H72xVU20/AHKatXfgEhXMCRTmPLNJVwIp gh9g== X-Gm-Message-State: AC+VfDxqzLUMEeHfY54L6KL60pDFoIWJbL9niJw/GRVQI17acNKvU3iF CHg52CxiYbg6KS8txaw7nQJRzBLOYoVYqkIhCYVUfyKI7vgGToy14Dc3DFeqCLiXZwqu8WXYM6z 8zTR8Nb+yBwANioFZtVEAlRrhn0TWfzV/G2jYmqhl X-Received: by 2002:a81:7382:0:b0:568:f981:637d with SMTP id o124-20020a817382000000b00568f981637dmr3775414ywc.37.1686076658075; Tue, 06 Jun 2023 11:37:38 -0700 (PDT) X-Received: by 2002:a81:7382:0:b0:568:f981:637d with SMTP id o124-20020a817382000000b00568f981637dmr3775388ywc.37.1686076657821; Tue, 06 Jun 2023 11:37:37 -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> In-Reply-To: <42b6e582-f642-7521-135a-449140984211@leemhuis.info> From: Benjamin Tissoires Date: Tue, 6 Jun 2023 20:37:26 +0200 Message-ID: Subject: Re: [PATCH] HID: logitech-hidpp: Handle timeout differently from busy To: Linux regressions mailing list Cc: 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 , Greg Kroah-Hartman 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 Tue, Jun 6, 2023 at 8:18=E2=80=AFPM 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 th= e > >>>>> receiver or device never responds, don't restart the communication,= only > >>>>> restart it if the receiver or device answers that it's busy, as ori= ginally > >>>>> intended. > >>>>> > >>>>> This was the behaviour on communication timeout before commit 586e8= fede795 > >>>>> ("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++ versi= on. > >>>>> > >>>>> Signed-off-by: Bastien Nocera > >>>>> Suggested-by: Mark Lord > >>>>> Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when devi= ce is busy") > >>>>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D217412 > >>> [...] > >>>> > >>>> I have applied this even before getting confirmation from the report= ers in > >>>> bugzilla, as it's the right thing to do anyway. > >>> > >>> Unfortunately it doesn't seem to cure the reported issue (while rever= ting > >>> 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/7c28afd5512e371773dbb2bf95a31ed5625651= d9 > > 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. 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! Cheers, Benjamin > > Ciao, Thorsten > > P.S.: If the answer is along the lines of "let's backport this quickly", > please consider directly CCing Greg. >