Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp303780pxy; Wed, 21 Apr 2021 03:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9xmquhmkObTT46tL1ihEZG97+MIg1LC1BBtGZFbz7Ci9DeKISzSW9RnIoCYI4iRsH0toW X-Received: by 2002:a05:6402:1a47:: with SMTP id bf7mr26096318edb.173.1619001029488; Wed, 21 Apr 2021 03:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619001029; cv=none; d=google.com; s=arc-20160816; b=T1dxqMh+93tjcJKDSv86atKCius3083Ni6AmelcujeWFlPgGeDVH4iy9dswUWcBZQG yoPIJIlzMZ9U27rtVvye+PS9POt1bLUW7+mL3pIoJ1VmAj9uCu9JfDCbGzo16AmIElLf Xa8gFhJrwYBWMprsBykNuc9FL3i5s2SmgqwgHBPjM7FX9b2KnbaYWciijTYypnSFGxsl KgeH1LLpqKzxrzKzxuNGh1Izp6Vc8vitJTkhgZGSInwIOiVaxt94CPFf2dEs4/G984yQ HmH/AS7G0QJxvYOZ3Ue5foUoUiTto/l65jE7QA20f6z0qSbQMdK0HzIOKCEH/q6VBwy3 NDjQ== 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=lS1PSUgBte3NZhM/EQjNGatDudhY0RBYjw3DdPSmqCE=; b=cOTWAkT6kc6dYGvzg8Qm1u0KEzatB1GspdDauIzWLYD0n6mFDj2j0QN24MXK56kA/e 1HHfI7wKK5Puj7RNySAtJUy2zxvjgN8Byz8g3vw9LM7vWra+DWXHqa3H/uJBBI5hf7Uv yyVGDhkyteapAv/kUeHfJYmzmVpeHMjQmyQoW0gyyfGwS3JW3EbgclEDMtwpJ9nfpGv+ OfBcp2JVzH7bi+hviVvN7s1MlXWxB+MDkkHr8Z0q0UaqmpTzny0tjzsCTglTw9mesCms hLW2K/0fCBDrlrqYHmFDrP6Z8z/FddE4hjJNtZGxKuFgG7UKEUiWhMzoiw/tSluR/z3W XfAQ== 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 s6si1422154ejc.744.2021.04.21.03.30.05; Wed, 21 Apr 2021 03:30:29 -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 S238416AbhDUKMd (ORCPT + 99 others); Wed, 21 Apr 2021 06:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235189AbhDUKMa (ORCPT ); Wed, 21 Apr 2021 06:12:30 -0400 X-Greylist: delayed 494 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 21 Apr 2021 03:11:57 PDT Received: from sym2.noone.org (sym2.noone.org [IPv6:2a01:4f8:120:4161::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D4CC06174A; Wed, 21 Apr 2021 03:11:57 -0700 (PDT) Received: by sym2.noone.org (Postfix, from userid 1002) id 4FQGNT1gRhzvjfp; Wed, 21 Apr 2021 12:03:53 +0200 (CEST) Date: Wed, 21 Apr 2021 12:03:52 +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 02/26] serial: altera_jtaguart: drop low-latency workaround Message-ID: <20210421100352.vayt5himhl7php4h@distanz.ch> References: <20210421095509.3024-1-johan@kernel.org> <20210421095509.3024-3-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421095509.3024-3-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:45 +0200, Johan Hovold wrote: > Commit 53dd0ba7a6f4 ("tty: serial: altera_jtag: 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