Re: [PATCH] warn about shared irqs requesting IRQF_DISABLED registeredwith setup_irq

From: Thomas Gleixner
Date: Fri Nov 27 2009 - 17:19:04 EST


On Fri, 27 Nov 2009, Uwe Kleine-König wrote:

> IRQF_DISABLED is not guaranteed on shared irqs. There is already a
> warning in place for irqs registered with request_irq (introduced in
> 470c66239ef03). Move it to __setup_irq, this way it triggers for both
> request_irq and setup_irq.
>
> One irq that is now warned about is the timer tick on at91 (ARCH=arm).

And how does that help ? The interrupt is shared between the timer and
the debug port. There is nothing you can do about that.

The interupt handlers are called in order of setup. The AT91 timer
irq is set up first and if that's not the case then it needs to be
fixed and the only way to catch it is in the affected interrupt
handler.

Applying your patch does not change the hardware and will just result
in useless, annoying and confusing dmesg warnings.

> Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
> Cc: Remy Bohmer <linux@xxxxxxxxxx>,
> Cc: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx>,
> Cc: Andrea Gallo <andrea.gallo@xxxxxxxxxxxxxx>,

Nice that you added me (and others) to that long list, but ...

> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>,
------------------------------------------^

Thanks,

tglx