Return-Path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:33337 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751449AbcHZTVs (ORCPT ); Fri, 26 Aug 2016 15:21:48 -0400 Received: by mail-qk0-f195.google.com with SMTP id n66so6363980qkf.0 for ; Fri, 26 Aug 2016 12:21:41 -0700 (PDT) From: Fabio Estevam To: gregkh@linuxfoundation.org Cc: manfred.schlaegl@gmx.at, otavio@ossystems.com.br, stable@vger.kernel.org, Fabio Estevam Subject: serial: imx: reduce irq-latency after rx overflow Date: Fri, 26 Aug 2016 16:20:47 -0300 Message-Id: <1472239247-19180-1-git-send-email-festevam@gmail.com> Sender: stable-owner@vger.kernel.org List-ID: From: Manfred Schlaegl commit e9b5a9825f6b02a9cf86697bcffafd3d7898f9f6 upstream. 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. Cc: # 4.1.x Signed-off-by: Manfred Schlaegl Acked-By: Alexander Stein Signed-off-by: Greg Kroah-Hartman Signed-off-by: Fabio Estevam --- 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 01aa52f..60ace71 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -766,7 +766,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.9.1