No subject


Fri Oct 22 17:57:35 EDT 2010


Hello Andrew,

mach-at91 makes use of interrupt priority and nesting, which can be
set via a call to at91samXXXX_init_interrupts(). This utilises the
processor's internal IRQ priority mechanism.
This worked fine up to kernel 2.6.34.x, but not since kernel 2.6.35
Kernel 2.6.35 introduced a patch
(http://git.kernel.org/?p=3Dlinux/kernel/git/stable/linux-2.6.35.y.git;a=3D=
commit;h=3De58aa3d2d0cc01ad8d6f7f640a0670433f794922)
(the diff: http://git.kernel.org/?p=3Dlinux/kernel/git/stable/linux-2.6.35.=
y.git;a=3Dblobdiff;f=3Dkernel/irq/handle.c;h=3D27e5c69112235c2f0cebe18981bb=
1f5504ed6807;hp=3D76d5a671bfe1a3db5fd7bb0d2cb4f8b992a3c485;hb=3De58aa3d2d0c=
c01ad8d6f7f640a0670433f794922;hpb=3Dae731f8d0785ccd3380f511bae888933b6562e4=
5)
that disables all IRQs while handling interrupts. This is done by
removing the lines that re-enabled them. As a result, no other
interrupt can nest into the current interrupt. This makes all ARM
interrupt priorities (related to nesting) completely ineffective.
I can add at this point, that as far as I checked, mach-at91 is the
only ARM mach that uses the processor's interrupt priorities (others
like OMAP or IXP do not).

There is a discussion of this patch here:
http://kerneltrap.org/mailarchive/linux-kernel/2010/3/26/4551986/thread

I can think of some ways to deal with this problem:

Give up interrupt priorities as others do + remove the priority code
from arm/mach-at91/...
As Ingo Molnar suggests, re-enable interrupts inside the all the at91
IRQ handlers (drivers etc.), thus preserving the old behaviour. But
now we have to remember to do this for every new driver...
Use threaded-interrupts (handler run as thread) and make use of thread
priorities. Again - change all existing at91 drivers (also, setting
interrupt-thread priority is not supported yet).
Convince the commiters to re-enable the interrupts as before 2.6.35

What do you think?
Maybe you can forward this mail to others. I don't know who should be
addressed in this matter.

Thank's a lot,
Itai.



More information about the linux-arm-kernel mailing list