spurious interrupt with latest release
Hi,
I do not manage to run something stable using latest 2.4.5 branch and kernel 2.6.26
for unknown reasons , I got spurious interrupts in my realtime interrupt rtdm driver.
The IRQ is not shared , this happens with LAPIC enabled. I tried without it, but some other problem have happened.
and after a while the computer manages to crash ..
Best Regards
s.ancelot
Hi,
Finally since I did not understand why this happened and to inhibit any driver writing related problems,I made the following architecture :
a single 5ms task triggs a PLX 9050 INTCSR software register to activate INTA (level irq)
the rtdm interupt handler checks if IT comes from the PLX, disable PLX IT, resets the software register , reenable PLX it, and ack irq rtdm
However at random time , I have always spurious interrupt in this handler. The time it occurs is random .
attached my kernel config.gz
Best Regards
S.Ancelot
Quoted 28 lines · stephane ancelot
Hi,
I do not manage to run something stable using latest 2.4.5 branch and kernel 2.6.26
for unknown reasons , I got spurious interrupts in my realtime interrupt rtdm driver.
The IRQ is not shared , this happens with LAPIC enabled. I tried without it, but some other problem have happened.
and after a while the computer manages to crash ..
Best Regards
s.ancelot_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Quoted 7 lines · stephane ancelot
Hi,
Finally since I did not understand why this happened and to inhibit any driver writing related problems,I made the following architecture :a single 5ms task triggs a PLX 9050 INTCSR software register to activate INTA (level irq)
Quoted 8 lines
the rtdm interupt handler checks if IT comes from the PLX, disable PLX IT, resets the software register , reenable PLX it,
and ack irq rtdmHowever at random time , I have always spurious interrupt in this handler. The time it occurs is random .
attached my kernel config.gz
Hi,
Did you check the differences in masking/acking/unmasking interrupts for the interrupt controller you use between the I-pipe patch that works and the I-pipe patch that does not work ?
Regards.
Signature · 1 line
Gilles.
Quoted 15 lines · Gilles Chanteperdrix
Quoted 14 lines · stephane ancelot
Hi,
Finally since I did not understand why this happened and to inhibit any driver writing related problems,I made the following architecture :a single 5ms task triggs a PLX 9050 INTCSR software register to activate INTA (level irq)
the rtdm interupt handler checks if IT comes from the PLX, disable PLX IT, resets the software register , reenable PLX it,
and ack irq rtdmHowever at random time , I have always spurious interrupt in this handler. The time it occurs is random .
Quoted 8 lines
Quoted 1 line
attached my kernel config.gz
Hi,
Did you check the differences in masking/acking/unmasking interrupts for the interrupt controller you use between the I-pipe patch that works and the I-pipe patch that does not work ?
I know that it rocks with
kernel 2.6.24.2 and adeos-ipipe-2.6.24-x86-2.0-03.patch
it does not with :
kernel 2.6.26.2 and adeos-ipipe-2.6.26-x86-2.0-09.patch
Having a look at the patch I did not manage to find big differencies only in entry_32.S sysenter for enabling hw it, but I am not sure if this part of code may be related to my problem
The routed IRQ number is 18d
enabling ipipe and kernel debugging options does not help.
It would be useful , if I could reproduce the problem using a standard component of the PC to trig an IT like the PLX soft register, in order produce a regression test and some people being able to reproduce it.Supposing the same problem should appear :-)
Best Regards
Steph
Quoted 2 lines
Regards.
Quoted 28 lines · stephane ancelot
Quoted 17 lines · Gilles Chanteperdrix
Quoted 16 lines · stephane ancelot
Hi,
Finally since I did not understand why this happened and to inhibit any driver writing related problems,I made the following architecture :a single 5ms task triggs a PLX 9050 INTCSR software register to activate INTA (level irq)
the rtdm interupt handler checks if IT comes from the PLX, disable PLX IT,
resets the software register , reenable PLX it,
and ack irq rtdmHowever at random time , I have always spurious interrupt in this handler.
The time it occurs is random .Quoted 7 lines
Quoted 1 line
attached my kernel config.gz
Hi,
Did you check the differences in masking/acking/unmasking interrupts for the interrupt controller you use between the I-pipe patch that works and the I-pipe patch that does not work ?
Quoted 5 lines
I know that it rocks with
kernel 2.6.24.2 and adeos-ipipe-2.6.24-x86-2.0-03.patchit does not with :
kernel 2.6.26.2 and adeos-ipipe-2.6.26-x86-2.0-09.patch
Well, it would be nice to try 2.6.25.
Quoted 6 lines
Having a look at the patch I did not manage to find big differencies only in
entry_32.Ssysenter for enabling hw it, but I am not sure if this part of code may be related to my problemThe routed IRQ number is 18d
Quoted 7 lines
enabling ipipe and kernel debugging options does not help.
It would be useful , if I could reproduce the problem using a standard component of the PC to trig an IT like the PLX soft register, in order produce a regression test and some people being able to reproduce it.Supposing the same problem should appear :-)
And if you run cat /proc/interrupts on the two kernels, do you observe any difference, as for instance, irqs changing from edge to level, or from local-apic to IO-apic or to fasteoi, or whatever ?
Signature · 1 line
Gilles.