Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp25093pxb; Tue, 19 Jan 2021 23:45:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1Ok2QHhxdDIrOyXkDw9XdjJLVxMXV2YDSv86ac4yAYs7C1tfarhmMerU1QtGTXKRX++uN X-Received: by 2002:a17:906:94ce:: with SMTP id d14mr5259452ejy.121.1611128722656; Tue, 19 Jan 2021 23:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611128722; cv=none; d=google.com; s=arc-20160816; b=b3QhTg2+I5BKrSLqEF+jcAYkjJCHRpvU4TNEoDpfPiu92IgBmHfTes9xLGdV3zTZK3 JI5SH9vYXQbxsAxBA321WxLJncwdPsjw3eIGqV10RlMPAO3Gfu4qwMyOdv3q0W/n+/Dz +c4XU8y4Um8SpJqYfXbKvOwrzzryHQWUOZiMhp0eQ3P8ea7cLpdqQ7ZOj0/xEFt5lz2H kt3sdfvudnHbvWq0G6m0Sgqvj4z5q0JRcQGBDe3QlxMJauIi/xPyYza20GskhRwsl16g L4Eyg+XK6zN1Zkh0yQL7ym7IHt078Uq3j/c32oo4vwM0V4LROwWaIdQaa0MgcMuWd5fI HupQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+I2vWEGumKZ5RwCk1j1V4Z7Cj9ksV2XKYM0sS2jLiCk=; b=EJ+kc24IYo1pcD6pW/0d8vcpdZ3sCpjK1JWT2D9/L4MHexC11uHH6j/Xm287gKXrYV 8CwkXpWc9GKoh9/7NSMcqERyEdd1b/L2p5lt/naMS8NynIdduJ6UCiLvgETMZveZocsz S1vxJT2oxjAz291wK9H1YQvH9kOWDyzkLYT89GIasW//1h4qfcC36oyycayp9KW1SjVE b8CiUIEx7zn0FSJSHXMCKnfSWWsmf2OxH66u3FsXnkRFypuAC4+wJJu/igZXqrNfuGCg wamAMLlLvGwafz0WvD9FDKhn4nKU0x5PtTxd/tEBJRUQpH/ATVLALSL3M+biaNn5H/HB w1ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga3si411166ejc.601.2021.01.19.23.44.59; Tue, 19 Jan 2021 23:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729244AbhATHmY (ORCPT + 99 others); Wed, 20 Jan 2021 02:42:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729571AbhATHlT (ORCPT ); Wed, 20 Jan 2021 02:41:19 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC95CC061575 for ; Tue, 19 Jan 2021 23:40:38 -0800 (PST) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l286U-0004eK-7C; Wed, 20 Jan 2021 08:40:34 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1l286S-0001Md-2k; Wed, 20 Jan 2021 08:40:32 +0100 Date: Wed, 20 Jan 2021 08:40:32 +0100 From: Oleksij Rempel To: Dmitry Torokhov Cc: Alexandru Ardelean , Mark Brown , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org, David Jander Subject: Re: [PATCH v2 2/2] Input: ads7846: convert to one message Message-ID: <20210120074032.2swvp7iqli6xttul@pengutronix.de> References: <20201110085041.16303-1-o.rempel@pengutronix.de> <20201110085041.16303-3-o.rempel@pengutronix.de> <20201118003138.GD2009714@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201118003138.GD2009714@dtor-ws> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:38:56 up 48 days, 21:45, 28 users, load average: 0.00, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On Tue, Nov 17, 2020 at 04:31:38PM -0800, Dmitry Torokhov wrote: > On Tue, Nov 10, 2020 at 09:50:41AM +0100, Oleksij Rempel wrote: > > Convert multiple full duplex transfers in to a single transfer to reduce > > CPU load. > > > > Current driver version support following filtering modes: > > - ads7846_no_filter() - not filtered > > - ads7846_debounce_filter() - driver specific debounce filter > > - pdata->filter - platform specific debounce filter (do any platform > > provides such filter?) > > > > Without filter this HW is not really usable, since the physic of > > resistive touchscreen can provide some bounce effects. With driver internal > > filter, we have constant amount of retries + debounce retries if some anomaly > > was detected. > > > > High amount of tiny SPI transfers is the primer reason of high CPU load > > and interrupt frequency. > > > > This patch create one SPI transfer with all fields and not optional retires. If > > bounce anomaly was detected, we will make more transfer if needed. > > > > Without this patch, we will get about 10% CPU load on iMX6S on pen-down event. > > For example by holding stylus on the screen. > > > > With this patch, depending in the amount of retries, the CPU load will > > be 1% with "ti,debounce-rep = <3>". > > > > One buffer transfer allows us to use PIO FIFO or DMA engine, depending > > on the platform. > > > > Signed-off-by: Oleksij Rempel > > Applied, thank you. I can't find this patch in your git repository. Should I rebase it against latest git and resend it? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |