Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp39129ybh; Wed, 11 Mar 2020 20:15:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vspIaxAZGM/KBEEHEB3iC5cRipd7hor0NP76YlsG4qm26byeYIJlgw6M9aSFdV64KlSu2WJ X-Received: by 2002:a9d:7d0c:: with SMTP id v12mr4733177otn.171.1583982907752; Wed, 11 Mar 2020 20:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583982907; cv=none; d=google.com; s=arc-20160816; b=GZyi04w9eBD9Tx7ljxmcqOVOnlJeVMS8yJUsUXaib+Y8h3ZoI4HA3Py7SIadM2pTTq VvHIgXX67UFJVMoguExAZliVjBFIZVQLtffE76TO6CKMdOo2otdaU1q6Df0ylxSqLBGP nByKjOeWEidm8LqSGHZhQ5eInzE8vHFkuGLPXmgQIJZFFFEy+vpSEI9v4Kg0aPv4Skxz 9PuMLoHAju1bYHQoiG5KILlWOamC67YPuxBGF94CbL89JFVCWpHwR+YZYlrBUJSw/X9B xBJbU0oBmb8cTXfna5pufLijITo00XAbSvzBBF2epXumRxhyr97zaRYILEk2a+CsEEws xpuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=xGzQ7xg6V2hzCeYDub4RmkUI42gVfxcqitmM4leDLF0=; b=gnqMVaqVNF3iR4DEUflBOP1z0yu3GHhSC68bHdcVfMGM1b28Nss2YUzK8VLUZA8GRc 27x9/8AVPnU60mbyMdYHWObvDiWhKXPM/D2hbZ1Ft4CEFFTxRj19dJgNPxwEn422T7qT YnpKmlZ9YDqUVH8GOaoz4TztqUbjNEsuAC/a1l7JvHsx24+zYUy28TBcKo1cwLFZWQK+ gxN0JthZFyavmnBP02UOLYH60LVIfGWDP7S0xZZgppVvEYo8Ikh1rVCfF3eWRxcP4p3W KkMxc06m9VVu/sU5KbdACLDlzFonbhAdyHcJjnFSA/lULe5pnQdZpH4HMXQgJg6hFv8g uCUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=bKW0JsLc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=p8Aa5YdW; 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 w22si1893824oih.103.2020.03.11.20.14.55; Wed, 11 Mar 2020 20:15:07 -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; dkim=pass header.i=@who-t.net header.s=fm2 header.b=bKW0JsLc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=p8Aa5YdW; 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 S2387687AbgCLDOd (ORCPT + 99 others); Wed, 11 Mar 2020 23:14:33 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:39593 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387453AbgCLDOc (ORCPT ); Wed, 11 Mar 2020 23:14:32 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 30DA28BB; Wed, 11 Mar 2020 23:14:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 11 Mar 2020 23:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=xGzQ7xg6V2hzCeYDub4RmkUI42g VfxcqitmM4leDLF0=; b=bKW0JsLci/UuxZ8NG9T7lPpuouSF/34YF7Yfd5ilSsV gci44yDu+Npb6ka+qY88kNSDzEFDUpGveWwjd9SpK6lwhgtCSMUL85Zt0dgrUtTa CjvJbsOvQBq8DlppW+C/iHTMtssKsbEwzWvFl5wR/0aZDONjlXI7MuH15Vp1mFaL P6UJNv+O8Gxtku3aDXU8lIE5XCMMDbkOczNvGJUQBaBsirqfnnOiRtS+8w7gG541 HXjg6ZIERlo4b0EMZ0wfXdhiwMWMWXoPUMN+X6i622oNkU+YfUFzMxGnsd/ysZWK q4EVFA+pkDjgLXSXUVuX9Srl0GPTgT56WzR7TZC+fKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=xGzQ7x g6V2hzCeYDub4RmkUI42gVfxcqitmM4leDLF0=; b=p8Aa5YdWGRhi+9UBpt1Hmn VzH5XIxjvcBdXEXDvNjWF1veIXqW6TwyVqvBQNAJZ9+9J5EKlZHup6TVB/G4xLFx 1xYaIW8z4GtDv415xvLhGuVsAAgH9aATGHzhGQD10B2jA0j5rzY/KhtAjyzXnaco a0e6xk/pX7a2bDbFXcgG1jw5eji+CbvxsWy/nCgMJJbGlIMMWGmwf491zyoge/U6 ioF8oYx1h2Merc+/wK9PYiRx79INf2RYdc3B8gfZ3LIMLb+o3r0gMtiuUUu7iItN 5C1zhglmDcUypQ6dK/PxUKuMOoCu2Rt5ie0wWTuOMaqWbGiHfDYC48rlYjHvBZ3w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvgedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefrvghtvghr ucfjuhhtthgvrhgvrhcuoehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvth eqnecuffhomhgrihhnpehfrhgvvgguvghskhhtohhprdhorhhgnecukfhppeduudejrddv tddrjedurddutdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepphgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvght X-ME-Proxy: Received: from jelly (117-20-71-109.751447.bne.nbn.aussiebb.net [117.20.71.109]) by mail.messagingengine.com (Postfix) with ESMTPA id 24ACE30611FB; Wed, 11 Mar 2020 23:14:26 -0400 (EDT) Date: Thu, 12 Mar 2020 13:14:22 +1000 From: Peter Hutterer To: Andrew Duggan Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Paul Hollinsky , Christopher Heiny , Lucas Stach , kernel@pengutronix.de, patchwork-lst@pengutronix.de Subject: Re: [PATCH] Input: synaptics-rmi4 - Do not set reduced reporting mode thresholds are not set by the driver Message-ID: <20200312031422.GA1823643@jelly> References: <20200312005549.29922-1-aduggan@synaptics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312005549.29922-1-aduggan@synaptics.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 >