Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp374162imm; Wed, 17 Oct 2018 01:22:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV63m/fD5xtughtMrXBsG15E6j9qVMjwEWcwh0p7AuaY2sT5N69SxLx0eM1VkIKuWxRKl6K3E X-Received: by 2002:a63:ec4b:: with SMTP id r11-v6mr23332773pgj.295.1539764563923; Wed, 17 Oct 2018 01:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539764563; cv=none; d=google.com; s=arc-20160816; b=zpm1etwqFkMp0zTNRWokRUDNXW06w068VlzFIO2Hm1Trfb6E9gOwMb8PiNhWmsAZJR 6yF6Rcsv1zJI7x6Juy9p6tT3a2WLLVt468fgJdrDjWXehs6zOMoGenLSNvFuOjdVlfkx 1K8t/SC9pCxwJn3hEAiatTHwcUisRnatJzkXRvpqVNqV7ZOxBzylr1ZnhhIsjZXy7EDC kv5N+4LVAYGpzXvPmaisNNV7Zv9WxcKXvr9iATQkRdwttDY3hxzeWN9HBJBLrY2kPsar m/q5uJBvs5sZGRI+AV1lslaTyid6JpVODNMSY3zKuVZ8sS7RoCo/kHseoL57oYsSU7p3 y70A== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=GS4BnLIMbpVvb7Z7Fk/wEZWQ1tDlApwiAd9+7Sn7wns=; b=wEEy2KkaR0nETpMla2SPf6j9SLKuQFtFhq1QBoeJ1Wgb8A4qKegO2LYggeB6xFO6Mg UhVlHGoOKJh5JXpuwS9+uaqC5Kv1s6IIr2fRNpHXeLfxMcku2eKLxtK5r9KjlBV+qned 5epJU5cF29KCKOoBmLhqu7vH5WGgoU6GSerE2wGnCynq1J9qar0wcFLR6sT+w94K/8Si usuhExKZRS73jNqrryJzlFIWsSGF6WlfHamQZJI+kuQSPOPQ31XObxLXqAT5dDsmm0kI tVSVhd4MyvqVy6alTNoECtWu7iGWOiZ2iXpQ/RCYIZUyHcLNs0EUR04I0PHFFikz1IN2 K/cw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u43-v6si638491pgn.383.2018.10.17.01.22.28; Wed, 17 Oct 2018 01:22:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727238AbeJQQPC (ORCPT + 99 others); Wed, 17 Oct 2018 12:15:02 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45736 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbeJQQPC (ORCPT ); Wed, 17 Oct 2018 12:15:02 -0400 Received: from Collabora (unknown [IPv6:2a01:cb19:8ad6:900:9b39:a64b:9838:998c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aragua) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 4E44B26041C; Wed, 17 Oct 2018 09:20:28 +0100 (BST) Message-ID: <1539764425.3694.1.camel@collabora.com> Subject: Re: [PATCH v3 1/1] serial: imx - Add dma buffer confugration via sysfs From: Fabien Lahoudere To: Greg KH Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Date: Wed, 17 Oct 2018 10:20:25 +0200 In-Reply-To: <20181015140118.GA16234@kroah.com> References: <1539249903-6316-1-git-send-email-fabien.lahoudere@collabora.com> <20181015140118.GA16234@kroah.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. > > thanks, > > greg k-h -- Fabien