Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp983187imu; Fri, 9 Nov 2018 09:04:51 -0800 (PST) X-Google-Smtp-Source: AJdET5fW8Zrq4Cck5zxouHQaBjYQIL7+2y9p4wA1gDPm4oxZVdmCjKo/sYJG/p3I++GbtaZ9mJKO X-Received: by 2002:a17:902:f81:: with SMTP id 1-v6mr9657181plz.203.1541783091012; Fri, 09 Nov 2018 09:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541783090; cv=none; d=google.com; s=arc-20160816; b=O2YCm3HBj0V5Yqpa9AhSfRxTnHtkGHsW6Xlz+59ipkfNzKP9FhXlxCj4BhbQ0S7XWM 7jcToFYJFKJug4dOYbEUPYHq30lQ2I9BaGJJKsqQw/WoInxtu1mvVXjkdZyK5dQtPfaX t1xpPeepIO54IZajsw4Zsa+LrNxiXiZIhiF49UPEqCIdN/XlST8hH7uArk12LL15aebe +ERpdBW9EL68qCnfrW0cp3GpSnsy4DZ4R2smDR/FiTpZCmBKv16HrIx7IBXadu2K4jU5 E56j+qgoadbtM4jih80NRQdOpqkrKgsocirwTaEapYbZ85FGuFFPjOmNrGUyRCEz5Tim 414g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=47oJwMTybdmQnrDbSEUzqjkRdhyq8Q3lvRsq4Y5gsho=; b=sqNah5hWlRxoX5ielL+YZ6jq9KIMOhVpSaa8gepueYbs7hfdISXmMZWVrLe2AxD3qc tFHzyKjfQExicPbhfTU1oEnnpeSQy31PjSbDOHBAA2ENUZAQL6XxhucvWM79b6x1Kykr XvELBLogAQKKDQG+wcZdnTD/NTNmOZffm9pNsBHRBnrMEXdYOcmERwm+x1H7zvJx466X r/c5q2EVwNE7ahZk+nQf34+b2Y+xGOkFc35d2GMwShBv2T2L10P+/UltuYz2lyUFmvjt DXFKry9Y/yjMeGFMJ7s09b/nJVe0AFqTlKT0ItJpCMpfEQYay3GSArrNe03+cocl7A52 E5Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RYf9XT2C; 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 f11-v6si6722657pgi.378.2018.11.09.09.03.58; Fri, 09 Nov 2018 09:04:50 -0800 (PST) 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=@kernel.org header.s=default header.b=RYf9XT2C; 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 S1728311AbeKJCoY (ORCPT + 99 others); Fri, 9 Nov 2018 21:44:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:35464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbeKJCoX (ORCPT ); Fri, 9 Nov 2018 21:44:23 -0500 Received: from localhost (71-6-98-120.static-ip.telepacific.net [71.6.98.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D19912081C; Fri, 9 Nov 2018 17:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541782978; bh=kNNy2Sm5KbxvdaNop0Svhi0ijerAG1rf13f5IyrIySk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RYf9XT2CKAsop/Nqqdt+Uq+9xLDKdZpJ6rFwqJMhSJFB0tkaVf8ZrdzWewPoF1342 C9ahu6grvK3FuHyrX5Be+tO0tQk21lQzc2oydFaG85puZ4dzvIXQUbzu/cI3PgmA/z yV271TkK/aYN+B7qacy0IroIsDOjAhWRRgUOAueg= Date: Fri, 9 Nov 2018 09:02:57 -0800 From: Greg KH To: Fabien Lahoudere Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v3 1/1] serial: imx - Add dma buffer confugration via sysfs Message-ID: <20181109170257.GA14151@kroah.com> References: <1539249903-6316-1-git-send-email-fabien.lahoudere@collabora.com> <20181015140118.GA16234@kroah.com> <1539764425.3694.1.camel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1539764425.3694.1.camel@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 10:20:25AM +0200, Fabien Lahoudere wrote: > Hi Greg, > > On Mon, 2018-10-15 at 16:01 +0200, Greg KH wrote: > > On Thu, Oct 11, 2018 at 11:25:03AM +0200, Fabien Lahoudere wrote: > > > In order to optimize serial communication on imx53 and imx6, we may > > > need to tweak DMA period and buffer length per period. > > > > Why can you not just automatically determine this information???What is > > userspace going to know that the kernel can not just learn now? > > > > Having tunables is nice, but it is even better to not need them at all. > > I agree that it is better to let the kernel do the configuration. Great! > However in our case we use several serial communication for different device > and one of them need to tweak that configuration to get small data with a better > period. However having this parameter for all serial port implies a bigger number > of interrupts for others too. Why can you not dynamically figure this out? How are you figuring it out "by hand" today in userspace? thanks, greg k-h