[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ttnbfw9f.ffs@tglx>
Date: Wed, 17 Jan 2024 23:08:44 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Leonardo Bras <leobras@...hat.com>, Greg Kroah-Hartman
<gregkh@...uxfoundation.org>, Jiri Slaby <jirislaby@...nel.org>, Ilpo
Järvinen <ilpo.jarvinen@...ux.intel.com>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, Florian Fainelli
<f.fainelli@...il.com>, John Ogness <john.ogness@...utronix.de>, Tony
Lindgren <tony@...mide.com>, Marcelo Tosatti <mtosatti@...hat.com>
Cc: linux-kernel@...r.kernel.org, linux-serial@...r.kernel.org, Sebastian
Andrzej Siewior <bigeasy@...utronix.de>
Subject: Re: [RESEND RFC PATCH v1 1/2] irq/spurious: Reset irqs_unhandled if
an irq_thread handles one IRQ request
On Tue, Jan 16 2024 at 04:36, Leonardo Bras wrote:
> This IRQ line disable bug can be easily reproduced with a serial8250
> console on a PREEMPT_RT kernel: it only takes the user to print a lot
> of text to the console (or to ttyS0): around 300k chars should be
> enough.
That has nothing to do with RT, it's a problem of force threaded
interrupts in combination with an edge type interrupt line and a
hardware which keeps firing interrupts forever.
> To fix this bug, reset irqs_unhandled whenever irq_thread handles at least
> one IRQ request.
This papers over the symptom and makes runaway detection way weaker for
all interrupts or breaks it completely.
The problem with edge type interrupts is that we cannot mask them like
we do with level type interrupts in the hard interrupt handler and
unmask them once the threaded handler finishes.
So yes, we need special rules here when:
1) The interrupt handler is force threaded
2) The interrupt line is edge type
3) The accumulated unhandled interrupts are within a sane margin
Thanks,
tglx
Powered by blists - more mailing lists