Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp303757pxy; Wed, 21 Apr 2021 03:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0iEScjTu09cvkTSoWVDJBm52EMMZ3FJxmg0EN7IhgQwSyg1mXTNbCA+vnD6xgf9cRuCLa X-Received: by 2002:a05:6402:5113:: with SMTP id m19mr38513181edd.78.1619001028132; Wed, 21 Apr 2021 03:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619001028; cv=none; d=google.com; s=arc-20160816; b=sCG41l84KHwhDJjIJxlQioZkUGFs+F+flqmcKMLt4oERX7xmW/I2h7WF3Z+bx4ahhM vEFnde9exdcg18bLwTzNusci2eJm43OwKtUi1IQrRzJs1mGZYvlKPKFLOTnnvC8G6fyb FVXLrBKKJs4uWrAX0rnNOpZ//3qlfi0QDX/zteKJcZKiy+BpkvNpjF63uy1/re1Dm10y H5jXzu7dsHMFr8q4wPMXWalWB0RcU06QTxt8iNpXIXv/aX34ZR5VtbjYuhRH7xtUXoTw SedxjPH3focxvv7UnjC64Esm5r4d6S+gw4Qa7H0NdbgOlo1JHBP3ZOpoaCdCkWmIXuKs XVJA== 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=ge/6s1p96qxHOjezbU3ZF91GgWZyz9hYBJpToQIFxAc=; b=zDHzDds1dcrthC8YgWjnvcey7QIzxDbPTM3xDOwXFsKwDivZHbh4uRKwWU2mz01lJN YjpZFaln9IUwJRcxiyNFt9hihorsaX/P0vlJH+daSSWxa9bDXHyyDKKIYTSLPti+tyFm FKtQZntJBxvcoVAtsC5wBRHAKgxJkmHtY1IFeMDHumKgBF4sMzD6xgEBOrPc3jgiBq7j plk3z34XEAgqaHC75S/PIyvwtlclpUKgI3UoxZF19L5K66QwiBYM3xRhFLKxPMlYm80l 7CyvhcLoPVVMMJxJNJwxlpkMnCnJPJVbbOcm7y7eKU6RpqBeye7T+uA2nNa6TioWAv4D J0ig== 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 p18si1460682ejg.216.2021.04.21.03.30.05; Wed, 21 Apr 2021 03:30:28 -0700 (PDT) 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 S238328AbhDUKMb (ORCPT + 99 others); Wed, 21 Apr 2021 06:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238282AbhDUKMa (ORCPT ); Wed, 21 Apr 2021 06:12:30 -0400 Received: from sym2.noone.org (sym2.noone.org [IPv6:2a01:4f8:120:4161::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D0B2C06138A; Wed, 21 Apr 2021 03:11:57 -0700 (PDT) Received: by sym2.noone.org (Postfix, from userid 1002) id 4FQGN84tpkzvjfm; Wed, 21 Apr 2021 12:03:36 +0200 (CEST) Date: Wed, 21 Apr 2021 12:03:36 +0200 From: Tobias Klauser To: Johan Hovold Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/26] serial: altera_uart: drop low-latency workaround Message-ID: <20210421100335.gfpowqfacqtn4e3r@distanz.ch> References: <20210421095509.3024-1-johan@kernel.org> <20210421095509.3024-4-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421095509.3024-4-johan@kernel.org> User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-04-21 at 11:54:46 +0200, Johan Hovold wrote: > Commit dd085ed8ef6c ("tty: serial: altera: drop uart_port->lock before > calling tty_flip_buffer_push()") claimed to address a locking > issue but only provided a dubious lockdep splat from an unrelated > driver, which in the end turned out to be due a broken local change > carried by the author. > > Unfortunately these patches were merged before the issue had been > analysed properly so the commit messages makes no sense whatsoever. > > The real issue was first seen on RT which at the time effectively always > set the low_latency flag for all serial drivers by patching > tty_flip_buffer_push(). This in turn revealed that many drivers did not > handle the infamous low_latency behaviour which meant that data was > pushed immediately to the line discipline instead of being deferred to a > work queue. > > Since commit a9c3f68f3cd8 ("tty: Fix low_latency BUG"), > tty_flip_buffer_push() always schedules a work item to push data to the > line discipline and there's no need to keep any low_latency hacks > around. > > Link: https://lore.kernel.org/linux-serial/cover.1376923198.git.viresh.kumar@linaro.org/ > Cc: Tobias Klauser > Signed-off-by: Johan Hovold Acked-by: Tobias Klauser Thanks