* [PATCH] genirq: recommend irqfxup or irqpoll as needed
@ 2011-12-06 4:03 Edward Donovan
2011-12-06 5:12 ` Edward Donovan
0 siblings, 1 reply; 2+ messages in thread
From: Edward Donovan @ 2011-12-06 4:03 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel
Users with firmware irq problems are better off trying 'irqfixup'
before 'irqpoll'; make the error messages say this, like the docs
do. And since we know which options the user booted with, and
whether they still have a problem, we won't suggest what they've
already tried. If irqpoll has failed, then we have nothing else
to recommend: note that something may be buggy, somewhere.
For clarity's sake, I'd prefer to remove "nobody cared" entirely,
in favor of "not handled", but I wouldn't want to cut the tie to
archived discussions. Not sure what's best.
Signed-off-by: Edward Donovan <edward.donovan@numble.net>
---
kernel/irq/spurious.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index dc813a9..3a1718b 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -194,9 +194,16 @@ __report_bad_irq(unsigned int irq, struct irq_desc *desc,
if (bad_action_ret(action_ret)) {
printk(KERN_ERR "irq event %d: bogus return value %x\n",
irq, action_ret);
+ } else if (irqfixup == 1) {
+ printk(KERN_ERR "irq %d not handled, even with \"irqfixup\": "
+ "try booting with the \"irqpoll\" option\n",
+ irq);
+ } else if (irqfixup == 2) {
+ printk(KERN_ERR "irq %d not handled, even with \"irqpoll\": "
+ "possible bug\n", irq);
} else {
- printk(KERN_ERR "irq %d: nobody cared (try booting with "
- "the \"irqpoll\" option)\n", irq);
+ printk(KERN_ERR "irq %d not handled (nobody cared): try booting"
+ " with the \"irqfixup\" option\n", irq);
}
dump_stack();
printk(KERN_ERR "handlers:\n");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] genirq: recommend irqfxup or irqpoll as needed
2011-12-06 4:03 [PATCH] genirq: recommend irqfxup or irqpoll as needed Edward Donovan
@ 2011-12-06 5:12 ` Edward Donovan
0 siblings, 0 replies; 2+ messages in thread
From: Edward Donovan @ 2011-12-06 5:12 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel
Dammit, "fixup" not "fxup". I stared at it twelve times, but
only see it now. Embarrassing when the point of the patch is to
write clearly. :-/ I think the actual text is spelled fine, but
thank god for review...
Ed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-06 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 4:03 [PATCH] genirq: recommend irqfxup or irqpoll as needed Edward Donovan
2011-12-06 5:12 ` Edward Donovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox