Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp349395ybh; Thu, 12 Mar 2020 03:13:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtC+cs8eYCM7g86twyFg5VwI+UqAjdBGtiAAK1G7JaMcMxrcewIdH9DdFJfRJeKa8++y6LZ X-Received: by 2002:a05:6830:1249:: with SMTP id s9mr4440093otp.359.1584007996917; Thu, 12 Mar 2020 03:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584007996; cv=none; d=google.com; s=arc-20160816; b=S8pywHLoENmFJEpMFOWMPyTFn/dLrqq6n51lRR7C1ZImvSKHZaqjOvRlduiFJhk0h1 MtTPQAW8zPA1yb7p2/YWGZ1Eg22q1P4iTCeqFaV+vRj3A8FxlM7G/vZE5usMQr+FMit0 1ZXNbbDdc+SMOtlN2GSIsgFo6jAmBSY2VSe7TravuYAgzuYAKDJ/i0/5HFcfkbRMpdYW 9qQ13RaNmSgGdSIWQMTiOxp0czkEagALTQT/4SSzMzPPPlsVsQtaAsPE7lGWoKin7K22 s5z753/P/L6iW/eSR410hdgfw+kViOdwN63h+WLKoMT7Dwo8PckI7jjFYMmdQcPQpgb6 ud3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fl2CByGOy+zzFbL2BpQ6YW713ROf+50Jjas0l5GmUqQ=; b=z1cbMEpnNlg77q+CNWMVo5VBVp1i2IXTMF8B50sn1I4RvhETSqhMCkj39Y8v9Ag0Ow BErBoNHHAsfRPmlgxgPsBUe5p9SDaZbrWUnmxr/TMDeAJ1TE1Tjzv1EuKkxUZtRiJE2B nZrpRgcDh+hFHHc29OLZLXEpMbnWV/zeUjeL84AgS1lnggSIABdTsSadUcvzWNpqYlr5 uL3PdfWsHh+hdtTDzxVGQLz7tHQzB3hAxU5FXbgr9MY4d/MKgRTU4Uc4JXG4jPLElThD TYnImZzlg1szfed2T/HcYNG6BqUG2JbHPTCHsT7RpPI3POnENWWRtuLaZfhZ2hvCs2+W xeBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si2391256oth.211.2020.03.12.03.13.04; Thu, 12 Mar 2020 03:13:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726733AbgCLKLn (ORCPT + 99 others); Thu, 12 Mar 2020 06:11:43 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41771 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgCLKLn (ORCPT ); Thu, 12 Mar 2020 06:11:43 -0400 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1jCKoV-00089R-23; Thu, 12 Mar 2020 11:11:39 +0100 Message-ID: Subject: Re: [PATCH] Input: synaptics-rmi4 - Do not set reduced reporting mode thresholds are not set by the driver From: Lucas Stach To: Peter Hutterer , Andrew Duggan Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Paul Hollinsky , Christopher Heiny , kernel@pengutronix.de, patchwork-lst@pengutronix.de Date: Thu, 12 Mar 2020 11:11:36 +0100 In-Reply-To: <20200312031422.GA1823643@jelly> References: <20200312005549.29922-1-aduggan@synaptics.com> <20200312031422.GA1823643@jelly> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Do, 2020-03-12 at 13:14 +1000, Peter Hutterer wrote: > Hi Andrew, > > On Wed, Mar 11, 2020 at 05:55:49PM -0700, Andrew Duggan wrote: > > The previous patch "c5ccf2ad3d33 (Input: synaptics-rmi4 - switch to > > reduced reporting mode)" enabled reduced reporting mode > > unintentionally > > on some devices, if the firmware was configured with default Delta > > X/Y > > threshold values. The result unintentionally degrade the > > performance of > > some touchpads. > > could this be the cause of a stuttering cursor on a P50 as well? > A recording in the issue below shows the cursor moving by ~25 units per > event, regardless of the time between those events. > https://gitlab.freedesktop.org/libinput/libinput/issues/448 Yes, that's very much possible, as reduced reporting mode is about only reporting events once they cross a predefined movement threshold. Regards, Lucas > thanks! > > Cheers, > Peter > > > This patch checks to see that the driver is modifying the delta X/Y > > thresholds before modifying the reporting mode. > > > > Signed-off-by: Andrew Duggan > > --- > > drivers/input/rmi4/rmi_f11.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/input/rmi4/rmi_f11.c > > b/drivers/input/rmi4/rmi_f11.c > > index 6adea8a3e8fb..ffa39ab153f2 100644 > > --- a/drivers/input/rmi4/rmi_f11.c > > +++ b/drivers/input/rmi4/rmi_f11.c > > @@ -1203,8 +1203,8 @@ static int rmi_f11_initialize(struct > > rmi_function *fn) > > * If distance threshold values are set, switch to reduced > > reporting > > * mode so they actually get used by the controller. > > */ > > - if (ctrl->ctrl0_11[RMI_F11_DELTA_X_THRESHOLD] || > > - ctrl->ctrl0_11[RMI_F11_DELTA_Y_THRESHOLD]) { > > + if (sensor->axis_align.delta_x_threshold || > > + sensor->axis_align.delta_y_threshold) { > > ctrl->ctrl0_11[0] &= ~RMI_F11_REPORT_MODE_MASK; > > ctrl->ctrl0_11[0] |= RMI_F11_REPORT_MODE_REDUCED; > > } > > -- > > 2.20.1 > >