All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Hurley <peter@hurleysoftware.com>
To: John Ogness <john.ogness@linutronix.de>,
	gregkh@linuxfoundation.org, tony@atomide.com, nsekhar@ti.com
Cc: vinod.koul@intel.com, dan.j.williams@intel.com,
	bigeasy@linutronix.de, peter.ujfalusi@ti.com,
	dmaengine@vger.kernel.org, linux-serial@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] tty: serial: 8250: omap: consume spurious interrupts
Date: Fri, 22 Jan 2016 08:48:55 -0800	[thread overview]
Message-ID: <56A25D77.7090000@hurleysoftware.com> (raw)
In-Reply-To: <87si1pq577.fsf@linutronix.de>

Hi John,

On 01/22/2016 02:27 AM, John Ogness wrote:
> It has been seen that spurious interrupts are generated when the
> DMA engine is in use. By disabling timeout interrupts (~IER_RDI)
> this phenomenon goes away, but this driver relies on the timeout
> interrupts, so we just consume the spurious interrupts.
> 
> Since we are consuming spurious interrupts, the irq cannot be
> shared with other drivers. (It is never really shared anyway.)

Does this fix the spurious irqs referred to by Sekhar in
this email chain  https://lkml.org/lkml/2015/12/3/442 ?



> Signed-off-by: John Ogness <john.ogness@linutronix.de>
> ---
>  patch against next-20160122
> 
>  drivers/tty/serial/8250/8250_omap.c |   10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c
> index ef7a60b..004b85a 100644
> --- a/drivers/tty/serial/8250/8250_omap.c
> +++ b/drivers/tty/serial/8250/8250_omap.c
> @@ -630,7 +630,7 @@ static int omap_8250_startup(struct uart_port *port)
>  	}
>  #endif
>  
> -	ret = request_irq(port->irq, omap8250_irq, IRQF_SHARED,
> +	ret = request_irq(port->irq, omap8250_irq, 0,
>  			  dev_name(port->dev), port);
>  	if (ret < 0)
>  		goto err;
> @@ -1112,8 +1112,14 @@ static int omap_8250_dma_handle_irq(struct uart_port *port, unsigned int iir)
>  	unsigned char status;
>  	int dma_err;
>  
> +	/*
> +	 * It has been seen that spurious interrupts are generated when the
> +	 * DMA engine is in use. By disabling timeout interrupts (~IER_RDI)
> +	 * this phenomenon goes away, but this driver relies on the timeout
> +	 * interrupts, so we just consume the spurious interrupts.
> +	 */
>  	if (iir & UART_IIR_NO_INT)
> -		return 0;
> +		return 1;
>  
>  	spin_lock(&port->lock);
>  
> 

  reply	other threads:[~2016-01-22 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-22 10:27 [PATCH 4/4] tty: serial: 8250: omap: consume spurious interrupts John Ogness
2016-01-22 10:27 ` John Ogness
2016-01-22 16:48 ` Peter Hurley [this message]
2016-01-23 20:30   ` Sebastian Andrzej Siewior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A25D77.7090000@hurleysoftware.com \
    --to=peter@hurleysoftware.com \
    --cc=bigeasy@linutronix.de \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=john.ogness@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=tony@atomide.com \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.