Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36912383rwd; Tue, 11 Jul 2023 07:14:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFD2CW0JgHgRdBZSTZl3Ol+zZXFD4eZKcJX0b3JIMfWqVPWYaaGJ942WZU4qM1sev//HKK4 X-Received: by 2002:a05:6402:270c:b0:51e:588b:20ca with SMTP id y12-20020a056402270c00b0051e588b20camr10547085edd.8.1689084871187; Tue, 11 Jul 2023 07:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689084871; cv=none; d=google.com; s=arc-20160816; b=InBc68JN2dvBrtRHAQPcGN2BpDDV7rMrE7KtW/n+ze9ioULbGR+SUsyjmg+zK3MKg/ +Tyxr3jp+1ru0OEC40+SY7KM2h+ig4SvNayYgy2Bvdc5GOEf3v8zq6kqVWSD8KAzm8NU zih5oWKa0x3znTP/BgJvxb+aupVp/jZwYiTjLU9BT+nmqUAaXQzbSCZizCEKIO26POml QL0VQKklUS5I5RWpZRjb7cZPW4pOHexHOUG4v3Fut6BNQ3eTjWMafUiSV5B5q7lacyGF KaYsx1vKkoHWseFZpw0LohUB5aLhSXscLSV+ybSHzeaxu1PhXLfPLGg4DBCcK3Pc/CEn 9TIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=obwxieaGU/aHr8zxspwDloTorIO5Q7HNPYXktwvxPXU=; fh=z6FMrEKUkL82zK8HZF7SFfWpmnEUvrAUPSeFxpE+RUc=; b=JEqzO6CQdg1E9L9rMB4Ii7Mo7LYs/PVgR1wjY0dO5zzCcJh4ny5PyqpXlx488+kCI2 reTS1f3vqxd/qs1ajMncZPUIkjQnncK5wHkM9q5A5vpQgJWP8yuZ08UaUSHaR8dhr4ii B14Qw9SzHOdPmuj73ADw7HFL0Ws/jeB/yA+H9r+apwD1DRjEsNvrIGn0vUZwW17P4Tp+ 3m/0aonzq2gvBr2pr+yAI7zuQ+sR8lccRgQHgiy0/ThVHNOEg/d8F+Bx/uB9iLFv65Ps 8TEJLr9okGZt48sok3b9QE+SO12Dk0UfyYSQ9Rom0oq68YsX65+VLkiM3P3+0EBM//gI oVbA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g25-20020aa7d1d9000000b0051e16e83727si2098125edp.568.2023.07.11.07.14.06; Tue, 11 Jul 2023 07:14:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbjGKN4J (ORCPT + 99 others); Tue, 11 Jul 2023 09:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjGKN4I (ORCPT ); Tue, 11 Jul 2023 09:56:08 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834A4BC; Tue, 11 Jul 2023 06:56:07 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qJDqV-0002HE-4j; Tue, 11 Jul 2023 15:56:03 +0200 Message-ID: <2f53de7c-e9db-6bf5-6e9e-65edadd4d754@leemhuis.info> Date: Tue, 11 Jul 2023 15:56:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] HID: logitech-hidpp: rework one more time the retries attempts Content-Language: en-US, de-DE To: Benjamin Tissoires , Linux regressions mailing list Cc: Bastien Nocera , Greg KH , =?UTF-8?Q?Filipe_La=c3=adns?= , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20230621-logitech-fixes-v1-1-32e70933c0b0@redhat.com> <2023062156-trespass-pandemic-7f4f@gregkh> <31ce32e018a9fa410e9e1f3e5900621b16a56091.camel@hadess.net> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1689083767;ef056e90; X-HE-SMSGID: 1qJDqV-0002HE-4j X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 11.07.23 15:40, Benjamin Tissoires wrote: > On Tue, Jul 11, 2023 at 3:10 PM Linux regression tracking (Thorsten > Leemhuis) wrote: >> >> On 26.06.23 16:02, Benjamin Tissoires wrote: >>> On Sun, Jun 25, 2023 at 10:30 AM Bastien Nocera wrote: >>>> On Fri, 2023-06-23 at 10:37 +0200, Benjamin Tissoires wrote: >>>>> On Jun 21 2023, Greg KH wrote: >>>>>> On Wed, Jun 21, 2023 at 11:42:30AM +0200, Benjamin Tissoires wrote: >>>>>>> Make the code looks less like Pascal. >>>>>>> >>>>>>> Extract the internal code inside a helper function, fix the >>>>>>> initialization of the parameters used in the helper function >>>>>>> (`hidpp->answer_available` was not reset and `*response` wasn't >>>>>>> too), >>>>>>> and use a `do {...} while();` loop. >>>>>>> >>>>>>> Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when >>>>>>> device is busy") >>>>>>> Cc: stable@vger.kernel.org >>>>>>> Signed-off-by: Benjamin Tissoires >>>>>>> --- >>>>>>> as requested by >>>>>>> https://lore.kernel.org/all/CAHk-=wiMbF38KCNhPFiargenpSBoecSXTLQACKS2UMyo_Vu2ww@mail.gmail.com/ >>>>>>> This is a rewrite of that particular piece of code. >>>>>>> --- >>>>>>> drivers/hid/hid-logitech-hidpp.c | 102 +++++++++++++++++++++++-- >>>>>>> -------------- >>>>>>> 1 file changed, 61 insertions(+), 41 deletions(-) >>> [...] >>> >>> Some people on the Bz were able to reproduce with multiple reboots. >>> But it's not as urgent as previously, and we were close to the 6.4 >>> final when I sent it. I'll make sure this goes into 6.5 and gets >>> proper stable backports FWIW. >> >> Did that happen? Doesn't look like it from here, but maybe I'm missing >> something. Where there maybe other changes to resolve the remaining >> problems some users encounter sporadically since the urgent fixes went in? > > No, there were no other changes that could have solved this. I guess > the randomness of the problem makes it way harder to detect and to > reproduce. > > I'll send a v2 of that patch with the reviews today or tomorrow and we > can probably get it through the current 6.5 cycle. Great, many thx! Ciao, Thorsten