[PATCH] genirq: fix set_irq_type() when recording trigger type

From: Ingo Molnar
Date: Tue Oct 21 2008 - 03:24:23 EST



* Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 2008-10-20 at 22:05 +0000, Linux Kernel Mailing List wrote:
> > Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0c5d1eb77a8be917b638344a22afe1398236482b
> > Commit: 0c5d1eb77a8be917b638344a22afe1398236482b
> > Parent: d6d5aeb661fc14655c417f3582ae7ec52985d2a8
> > Author: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
> > AuthorDate: Wed Oct 1 14:46:18 2008 -0700
> > Committer: Ingo Molnar <mingo@xxxxxxx>
> > CommitDate: Thu Oct 2 10:24:09 2008 +0200
[...]
> > Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > Acked-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> > Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
>
> This one is obviously broken and breaks booting on a whole bunch of
> machines (including powermac's and thus my G5, it's never good when my
> own machine breaks !).
>
> Nice to see 3 SOB's and one Ack and nobody caught the obvious bug :-)

that patch came from -mm towards us shortly before the merge window.
Once we had it integrated Chris Friesen reported a boot hang on a G5,
and there's a fix pending for the bug, see it below.

Will send it to Linus expressly. Fortunately only a minority of Linux
users will ever run a box that uses set_irq_type() - but yes it needs to
be fixed.

Ingo

------------------------------>