Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499AbbFTR0I (ORCPT ); Sat, 20 Jun 2015 13:26:08 -0400 Received: from mout.gmx.net ([212.227.17.22]:64458 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932423AbbFTRZ6 (ORCPT ); Sat, 20 Jun 2015 13:25:58 -0400 Message-ID: <5585A220.5000405@gmx.at> Date: Sat, 20 Jun 2015 19:25:52 +0200 From: Manfred Schlaegl User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Manfred Schlaegl Subject: [PATCH] serial: imx: reduce irq-latency after rx overflow Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:GBoIa7mWk3m562xPABxL4lzn1PUYfPviYIP7xYj/8hWZVU4qSOI OS+1745ftKn2IJVda3rskD1cRQGe1ZoMoDvQWRBMHhAQplurWaq9yAaLvGd3ztPGp2AyXyc T4CG6y8LnA0ehSDVfZFZVcNJV/pmNf3+PdtNF4ndJcrDt33ww8xsxu1pYmv6/wmcrhRw40Y /S0PiKz3MIY1Fd5M2WN1A== X-UI-Out-Filterresults: notjunk:1;V01:K0:HrMUHsX4zWo=:1BIjQ8tLjw2mZJhStFVeiv 5CzkZKUTlgjgOyx4VLAo6kIdIPrX8y26vCgDODbwYV1LwoXAx2sanJ1QQSVfpB/uyrXle1hoD fzyVOWQMXCscvPVW8lmpEjnpXsdCCJdoz5YEC7nboaj0YRBNjLI++W0OV8hU5gykKQ7UdZXAD K2Z47U+4q84IjKIzRBbHv8MgWKW4OX3u5wGNHlCXaoBcWkG6gPCeHokjvw/QNsmkcd0jHPz4e d9U2NNhTp1VAWwebGqJdJ5LTx9343rCCgabvKymAV0bU3tdg/zFvM3+IJnfnJvx33yHbz3e7H h2txE37mU2mazPobAp0NyNCIxOt7v0DgkwwrJl6/D6SdhiKogDhLsA3Q76m3y80MBACl3v5Up /lwa5Gg7fdEP0jb+pOfNkFPLiki2GNuMYor013cBMJK95Jr/arFnQSvqe8XFeeuBwWM4rkWbA MlyYcuNCyMNePGBvxGGVg/5jpjWuoZdryzGkwvgUHhwNfTGH5MGseiqI0VQYCwHm2LIsJXshR p14ZYXQ7NvADq4E2EMIV7DrelJwXbzPxbFT1gJxN5vyJ5NYp91Yx9Z17vwlQej62befGtYSwA pH+zXZzUXux1G963bF3FxcdcW3AvcuCbs6XEfImm6AwUbv2r/dryb9FTbAitQ3NMPGFI1DpyA Eh5MOsDHznZFaIODbwdIQ2/WQFVGdDyWPGWTuHhxF6g14ucCzLWERE2wg6Pmxit5d8Fs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1272 Lines: 35 To prevent problems with interrupt latency, and due to the fact, that the error will be counted anyway (icount.overrun), the dev_err is simply removed. Background: If an rx-fifo overflow occurs a dev_err message was called in interrupt context. Since dev_err messages are written to console in a synchronous way (unbuffered), and console may be a serial terminal, this leads to a highly increased interrupt-latency (several milliseconds). As a result of the high latency more rx-fifo overflows will happen, and therefore a feedback loop of errors is created. Signed-off-by: Manfred Schlaegl --- drivers/tty/serial/imx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 384cf1d..40fd32c 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -767,7 +767,6 @@ static irqreturn_t imx_int(int irq, void *dev_id) writel(USR1_AWAKE, sport->port.membase + USR1); if (sts2 & USR2_ORE) { - dev_err(sport->port.dev, "Rx FIFO overrun\n"); sport->port.icount.overrun++; writel(USR2_ORE, sport->port.membase + USR2); } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/