* [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
[parent not found: <bug-41132-5003@https.bugzilla.kernel.org/>]
[parent not found: <201108160554.p7G5soeq002083@demeter2.kernel.org>]
* Re: [Bug 41132] [BISECTED][REGRESSION] Regression with the IRQ subsystem introduced in 2.6.39 (and present in the 3.x version) [not found] ` <201108160554.p7G5soeq002083@demeter2.kernel.org> @ 2011-11-22 8:10 ` Rogério Brito 2011-11-27 20:22 ` Linus Torvalds 0 siblings, 1 reply; 3+ messages in thread From: Rogério Brito @ 2011-11-22 8:10 UTC (permalink / raw) To: Linus Torvalds; +Cc: Thomas Gleixner, Dave Airlie, linux-kernel, drivers_pci Hi there. Now that, at least part of kernel.org is up, I would appreciate it more people could help with debugging something that I reported to bugzilla in july of this year, a regression (bisected) that led to a bad commit of Thomas in the 2.6.39 cycle as the first bad one. Bugzilla has more information on the issue, but as it seems to be down, I can, of course, summarize what I found. And, unfortunately, the problem still occurs with a recent pull of Linus tree up to v3.2-rc2-43-gaa1b052. Below is the link to my first message that was archived: > --- Comment #3 from Rogério Brito <rbrito@ime.usp.br> 2011-08-16 05:54:47 --- > Add note that this bug was first reported on 2011-07-04 > > https://lkml.org/lkml/2011/7/24/54 > > As stated on that e-mail, I am willing to perform any tests to help fix this > bug. Just ask me and I will do my best to give you copious amounts of data. Thanks, Rogério Brito. -- Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bug 41132] [BISECTED][REGRESSION] Regression with the IRQ subsystem introduced in 2.6.39 (and present in the 3.x version) 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 0 siblings, 1 reply; 3+ messages in thread From: Linus Torvalds @ 2011-11-27 20:22 UTC (permalink / raw) To: Thomas Gleixner, Ingo Molnar Cc: Dave Airlie, linux-kernel, drivers_pci, Rogério Brito Thomas, Ingo? I haven't seen any response to this one, and while clearly commit fa27271bc8d2 ("genirq: Fixup poll handling") was *supposed* to be a no-op, it isn't. The commit message says "Shorter version with the same functionality.", but since it causes a regression, it clearly is not with the same functionality at all. And I assume that Thomas doesn't have a machine that actually ever triggers the spurious irq issue to begin with, so it probably was never tested. In short, it really sounds like this should just be reverted, since the code clearly doesn't do what the commit message claims it does. Comments? Linus 2011/11/22 Rogério Brito <rbrito@ime.usp.br>: > Hi there. > > Now that, at least part of kernel.org is up, I would appreciate if > more people could help with debugging something that I reported to > bugzilla in july of this year, a regression (bisected) that led to a > bad commit of Thomas in the 2.6.39 cycle as the first bad one. > > Bugzilla has more information on the issue, but as it seems to be > down, I can, of course, summarize what I found. And, unfortunately, > the problem still occurs with a recent pull of Linus tree up to > v3.2-rc2-43-gaa1b052. > > Below is the link to my first message that was archived: > >> --- Comment #3 from Rogério Brito <rbrito@ime.usp.br> 2011-08-16 05:54:47 --- >> Add note that this bug was first reported on 2011-07-04 >> >> https://lkml.org/lkml/2011/7/24/54 >> >> As stated on that e-mail, I am willing to perform any tests to help fix this >> bug. Just ask me and I will do my best to give you copious amounts of data. > > > Thanks, > Rogério Brito. > > -- > Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA > http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de > DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br > ^ 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®