All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Interrupt Shield Hangs
@ 2008-11-26 15:27 Laurent.POYART
  2008-11-26 15:42 ` Gilles Chanteperdrix
  2008-11-26 16:53 ` Philippe Gerum
  0 siblings, 2 replies; 3+ messages in thread
From: Laurent.POYART @ 2008-11-26 15:27 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

Hello,

I'm running some tests on a powerpc MPC8347 with Xenomai 2.4.1 and Linux
2.6.23. I use the interrupt shield. I have find one case in which my
application hangs. 
I've plugged my JTAG and it seems that I enter an infinite loop at the end
of the function engage_irq_shield. It seems to be in the function
rthal_local_irq_restore_hw (see the screenshot in the file below. Infinite
loop between adresses 0xC0056110 and 0xC0056124. Registers r0 and r11 values
are 1).

I manage to produce the problem in the following context:
. I've got a periodic RT task of 5ms which performs a linux system calls and
swithes to secondary mode : takes a lock, print a message , gives the lock
and then wait for a period. It was not the initial code but I manage to get
the problem easily with this new code.
. In the same time, I've got a RT task which performs data transfer towards
a FPGA FIFO using a RTDM driver. The task writes data until the Almost Full
flag of the FPGA FIFO is set. The FPGA read the data at 200Kbits/s and
generates an interrupt (registered in xenomai) when the Fifo is almost
empty. Then the task continues to write data to the FPGA. 
After a while, the system hangs. Each time, the timer task is between 2
calls of rt_task_wait_period.

I've made the test with the interrupt shield disabled and the target doesn't
hangs.

Do you have any idea?

Thanks in advance.

L.Poyart



[-- Attachment #2: capture8.jpg --]
[-- Type: image/jpeg, Size: 203307 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-26 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 15:27 [Xenomai-help] Interrupt Shield Hangs Laurent.POYART
2008-11-26 15:42 ` Gilles Chanteperdrix
2008-11-26 16:53 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.