* [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll
@ 2011-11-20 1:54 Edward Donovan
2011-11-20 1:54 ` Edward Donovan
0 siblings, 1 reply; 3+ messages in thread
From: Edward Donovan @ 2011-11-20 1:54 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, maciej.rutecki
Hi Thomas -
I did isolate another regression in the bad-irq handling, and this
patch sets things right on my machines. After bisecting it, I've just
been troubleshooting to find which code was making the difference.
This is my attempt to restore it, in a reasonable place.
I don't know if this is the way you'd like to do it in the reworked
IRQ code, since I'm not very familiar with the system yet. This is
the most C I've dealt with, and partly I'm just moving puzzle pieces
around. I have tested it a good bit, though, and functionally it has
been fine.
So, let me know if you have a preferred patch, and I'll test it on
these machines. Thanks!
Edward
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll
2011-11-20 1:54 [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll Edward Donovan
@ 2011-11-20 1:54 ` Edward Donovan
0 siblings, 0 replies; 3+ messages in thread
From: Edward Donovan @ 2011-11-20 1:54 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, maciej.rutecki
commit fa2727("genirq: Fixup poll handling") introduced a
regression that broke irqfixup/irqpoll for some hardware
configurations. That patch removed a test that checked for
'action->handler' returning IRQ_HANDLED, before acting on the
IRQ. Putting this test back restores the functionality lost
since 2.6.39. In the current set of tests after 'action' is set,
it must precede '!action->next' to take effect.
With this and the previous patch to spurious.c, c75d720fca8a, all
IRQ regressions that I have encountered are fixed.
Signed-off-by: Edward Donovan <edward.donovan@numble.net>
---
kernel/irq/spurious.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index b5f4742..dc813a9 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -84,7 +84,9 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force)
*/
action = desc->action;
if (!action || !(action->flags & IRQF_SHARED) ||
- (action->flags & __IRQF_TIMER) || !action->next)
+ (action->flags & __IRQF_TIMER) ||
+ (action->handler(irq, action->dev_id) == IRQ_HANDLED) ||
+ !action->next)
goto out;
/* Already running on another processor */
--
1.7.5.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll
2011-11-27 20:22 ` Linus Torvalds
@ 2011-11-28 4:07 ` Edward Donovan
0 siblings, 0 replies; 3+ messages in thread
From: Edward Donovan @ 2011-11-28 4:07 UTC (permalink / raw)
To: Linus Torvalds
Cc: Thomas Gleixner, Ingo Molnar, Dave Airlie, linux-kernel,
drivers_pci, Rogério Brito, Maciej Rutecki,
Rafael J. Wysocki
commit fa27271bc8d2("genirq: Fixup poll handling") introduced a
regression that broke irqfixup/irqpoll for some hardware
configurations. Amidst reorganizing 'try_one_irq', that patch removed
a test that checked for 'action->handler' returning IRQ_HANDLED,
before acting on the interrupt. Restoring this test back returns the
functionality lost since 2.6.39. In the current set of tests, after
'action' is set, it must precede '!action->next' to take effect.
With this and my previous patch to irq/spurious.c, c75d720fca8a, all
IRQ regressions that I have encountered are fixed.
Signed-off-by: Edward Donovan <edward.donovan@numble.net>
---
kernel/irq/spurious.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index b5f4742..dc813a9 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -84,7 +84,9 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force)
*/
action = desc->action;
if (!action || !(action->flags & IRQF_SHARED) ||
- (action->flags & __IRQF_TIMER) || !action->next)
+ (action->flags & __IRQF_TIMER) ||
+ (action->handler(irq, action->dev_id) == IRQ_HANDLED) ||
+ !action->next)
goto out;
/* Already running on another processor */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-28 4:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-20 1:54 [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll Edward Donovan
2011-11-20 1:54 ` Edward Donovan
[not found] <bug-41132-5003@https.bugzilla.kernel.org/>
[not found] ` <201108160554.p7G5soeq002083@demeter2.kernel.org>
2011-11-22 8:10 ` [Bug 41132] [BISECTED][REGRESSION] Regression with the IRQ subsystem introduced in 2.6.39 (and present in the 3.x version) Rogério Brito
2011-11-27 20:22 ` Linus Torvalds
2011-11-28 4:07 ` [PATCH] genirq: fix second 2.6.39 regression in irqfixup, irqpoll Edward Donovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®