All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] "watchdog triggered" error & irq interrupt
@ 2016-05-26 15:57 Ran Shalit
  2016-05-26 16:28 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2016-05-26 15:57 UTC (permalink / raw)
  To: xenomai

Hello,

On testing interrupt within kernel it seems to work ok.
I then moved to userspace rt thread waiting on events coming from the
rtfm kernel driver (witch signals with rtd_event_signal)

But then I get the following errors:

dma0chan1-copy0: #15195: got completion callback, but status is 'in progress'
dma0chan3-copy0: #14335: test timed out
dma0chan3-copy0: #14336: got completion callback, but status is 'in progress'
Xenomai: watchdog triggered -- signaling runaway thread 'rtdm'
[sched_delayed] sched: RT throttling activated
Xenomai: RTDM: closing file descriptor 0.
CPU time limit exceeded

I understand that it mean that cpu is probably in busy wait.
The interrupt is done on raising edge, and I configure it as following:
rtdm driver:
========
ret = rtdm_irq_request(&ctx->irq_handle,
 91, PFI_IRQHandler, RTDM_IRQTYPE_EDGE,
 DRVNAM, ctx);

userspace real-time thread
===============

while (1) {
    rt_printf("11\n");
    if (ioctl(file_desc, RTTST_RTIOC_GPIOIRQ_WAIT_IRQ))
    {
           rt_printf("failed!");
     };
     rt_printf("22\n");
      mymmap[0xe4] = 1;  //mymmap is memory mapped io to 0x80010000
      writel(1, rtdm_fpga_base_addr + 0xe4);
      g_value[g_index] = readl( rtdm_fpga_base_addr+ 0x8010);
     pCnt = &(ledRegister[0x8010]);
      mymmap[0xe4] = 0;

   }

I've been debugging it for some hours in vain. I have no idea, any
suggestion will help.

complete sources (driver & app)
https://drive.google.com/folderview?id=0B22GsWueReZTS3RaV3gzRk9aZzQ&usp=sharing

Regards,
Ran


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

end of thread, other threads:[~2016-05-27 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 15:57 [Xenomai] "watchdog triggered" error & irq interrupt Ran Shalit
2016-05-26 16:28 ` Gilles Chanteperdrix
2016-05-26 16:52   ` Ran Shalit
2016-05-27 11:36     ` Gilles Chanteperdrix

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.