Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3211567imu; Mon, 28 Jan 2019 00:24:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6D+sYzmR1TjAX8WIFPgeZXYCmE0jDZx+QzjafAP1jeEu5cSNOPYC81XugQp2OGXtI+1f/+ X-Received: by 2002:a62:870e:: with SMTP id i14mr21469609pfe.41.1548663852416; Mon, 28 Jan 2019 00:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548663852; cv=none; d=google.com; s=arc-20160816; b=B/ZvulKGWLkOk0iLLF/99X3DFocWpKsBLAQlD/s8EeEJ8czOddP0a9qZseuQXLA2qg OpleKLBr3ZYoBR+wEkK46vCvEpWisk/xij3TCTkEZ772lK+f7I0vrJB+3TbVX+9Es1Sk xCu/3E1TCqQUZ34Q7PFoWFSW+K/Kv74+JIv2YbCeuKjwle+wB1yxqnDjiyx/kLIYSnEd X3+7nf9mHBxmRF69+9JZCqIyVCwWra8D0+NplfjSCn/xeE//NVT1vhJ8ve9r2N0dYtGS 5ojNXQVWx8G0flwr334sWHy3+SKIuFKJ+Yv7jf6ps/Y8klPz/lxhgS3fp72iAi+rhTNJ CpWA== 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=21D3+N/JRAmv4D2JZyAUGgm8vEWbBH2gmVefDyDYdho=; b=HYicFQeE8V7C1S7uQyght65G0cN/4bxOgONDteOz7yboDeByTcwgQ7iRfBYMI58Rrx bTqT9DQnspvGiVsWMrjylZIXASjoTjaLP4yhf1wLaXcjN7wGmKPmYyOekeFLn7/IADrc fvQnLhi+JaKJO7DYs8JRmcY1Lqhu8D6CnpBgLRnzP2GkHWVUbiWASKILavzYlHRAqjhG Y40jwtvTmxea2G76EMTsmLAi71sewXyzJ4k4ZVd5NZmn+aJiYTuUzMXTaErsh/r895Ue 8wXLXSFFo6Tq2q4GM05uwTOQy9J6KO4AL/JDX7Y+84UjPUl/JDXE/9gxzevgjqj50GHu E3Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h0pMFqEz; 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 r8si2493879pgu.435.2019.01.28.00.23.56; Mon, 28 Jan 2019 00:24:12 -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=h0pMFqEz; 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 S1726754AbfA1IXR (ORCPT + 99 others); Mon, 28 Jan 2019 03:23:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:59182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbfA1IXR (ORCPT ); Mon, 28 Jan 2019 03:23:17 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 255BE2148E; Mon, 28 Jan 2019 08:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548663796; bh=CDuTNVgfGfdfsdqHOILuN4/sQtGCbQMlhWeiJ9bCA/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h0pMFqEztXQdKYIYNX3xfcyJxwRTtcUSwU6OFakWm9aO7tH5kWSs3qa54h5lkEkdR BQ24ulB7FSK7q80PfLHI4bZLvOfIm+wocapkls39i6+EFs3p3YPMa18WKbiFDfHaPi 3zDwzl7TXHYHi+a3lYxn7jPxnZFXmR+UIEHIETj4= Date: Mon, 28 Jan 2019 09:23:13 +0100 From: Greg Kroah-Hartman To: Oleksij Rempel Cc: Linus Torvalds , Jiri Slaby , Pengutronix Kernel Team , lkml Subject: Re: [PATCH v1 3/3] drivers/tty: increase priority for tty_buffer_worker Message-ID: <20190128082313.GA15182@kroah.com> References: <20190110101232.9398-1-o.rempel@pengutronix.de> <20190110101232.9398-4-o.rempel@pengutronix.de> <20190110151953.qpat4t7lat6plfk6@pengutronix.de> <20190110163030.GB19693@kroah.com> <7a593f3b-0019-c30f-30e8-34eae7b96cf0@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a593f3b-0019-c30f-30e8-34eae7b96cf0@pengutronix.de> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 09:05:30AM +0100, Oleksij Rempel wrote: > > > On 10.01.19 17:30, Greg Kroah-Hartman wrote: > > On Thu, Jan 10, 2019 at 04:19:53PM +0100, Oleksij Rempel wrote: > > > > My gut feel is that if somebody still cares deeply about serial line > > > > latency, they should look at trying to see if they can do some of the > > > > work directly without the bounce to the workqueue. We use workqueues > > > > for a reason, but it's possible that some of it could be avoided at > > > > least in special cases... And yours sounds like a special case. > > > > > > It is for industrial low latency RS-422 based application. The loopback > > > test is just easy way to test/reproduce it without additional hardware. > > > > > > What is good, mainlineable way to implement it? > > > > What is the real problem your systems are having? Are they serial-port > > limited? Is latency a big issue? Trying to tune for a fake workload > > isn't the best way to solve anything :) > > The system in question is a high power laser cutter with live image-based inspection > and adjustment of the cutting process. In this setup the RS422 interface is used to > control parameters of the laser cutting unit in a tie control loop with the camera. > This loops needs to operate at 1000 Hz. > > The xy-stage moves with a speed of approx. 60m/min, i.e. within 1ms it > moves about 1mm. For a high precision control process a jitter of ? 500 us (+/- 0.5mm) > is unacceptable. Are you using the rt kernel patch for this type of thing? That should bound your jitter at a much more deterministic level. thanks, greg k-h