* [Xenomai] timer "host-timer" gets stopped
@ 2015-08-21 9:44 Seeßlen, Maximilian
2015-08-21 9:56 ` Gilles Chanteperdrix
2015-08-21 16:54 ` Philippe Gerum
0 siblings, 2 replies; 3+ messages in thread
From: Seeßlen, Maximilian @ 2015-08-21 9:44 UTC (permalink / raw)
To: xenomai@xenomai.org
Hi all,
we are using kernel 3.5.7 with xenomai 2.6.2.1 on an MPC5121 PPC architecture. With xenomai 2.6.3 the problem also appeared.
The problem appears in combination with high system- and interrupt-load (via keys/gpio inputs). The keyboard-driver is non-xenomai.
Without key-input the problem did not appear.
There are 2 timer;
~ # cat /proc/xenomai/timerstat/master
CPU SCHEDULED FIRED TIMEOUT INTERVAL HANDLER NAME STATUS
0 242075 232673 450150 - NULL [host-timer] 0
0 232245 232244 175250 - xnthread_ti cycle 0
For some reason the timer "[host-timer]" (aperiodic) stops after random time (statistically in an experiment set-up every 4 hours).
The status switches to "1" which means "XNTIMER_DEQUEUED".
As a result in the non-realtime-part no timing functions are usable any more. The system clock on console ("date") freezes.
Once the "host-timer" gets restarted manually the system runs again without any problems.
We don't know where the host-timer usually gets restarted since it is an aperiodic timer.
Thanks for your help,
Max
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai] timer "host-timer" gets stopped
2015-08-21 9:44 [Xenomai] timer "host-timer" gets stopped Seeßlen, Maximilian
@ 2015-08-21 9:56 ` Gilles Chanteperdrix
2015-08-21 16:54 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2015-08-21 9:56 UTC (permalink / raw)
To: Seeßlen, Maximilian; +Cc: xenomai@xenomai.org
On Fri, Aug 21, 2015 at 09:44:52AM +0000, Seeßlen, Maximilian wrote:
> Hi all,
>
> we are using kernel 3.5.7 with xenomai 2.6.2.1 on an MPC5121 PPC
> architecture. With xenomai 2.6.3 the problem also appeared.
Xenomai latest stable version is 2.6.4.
What data structure do you use for Xenomai timers, list, heap, or
wheel?
> The problem appears in combination with high system- and interrupt-load (via keys/gpio inputs). The keyboard-driver is non-xenomai.
> Without key-input the problem did not appear.
>
> There are 2 timer;
>
> ~ # cat /proc/xenomai/timerstat/master
> CPU SCHEDULED FIRED TIMEOUT INTERVAL HANDLER NAME STATUS
> 0 242075 232673 450150 - NULL [host-timer] 0
> 0 232245 232244 175250 - xnthread_ti cycle 0
>
>
> For some reason the timer "[host-timer]" (aperiodic) stops after random time (statistically in an experiment set-up every 4 hours).
> The status switches to "1" which means "XNTIMER_DEQUEUED".
> As a result in the non-realtime-part no timing functions are usable any more. The system clock on console ("date") freezes.
>
> Once the "host-timer" gets restarted manually the system runs again without any problems.
>
> We don't know where the host-timer usually gets restarted since it
> is an aperiodic timer.
It is aperiodic if you selected one-shot mode in Linux
configuration, periodic if you are running Linux in periodic mode.
In one-shot mode, Linux reprogramming its timer ends-up requeuing the
timer at Xenomai level. When Xenomai takes over the management of
the host timer, it installs its own callbacks in the Linux
clockevents structure, the installed callback is
xnarch_next_htick_shot, which you can find in
include/asm-generic/bits/pod.h
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai] timer "host-timer" gets stopped
2015-08-21 9:44 [Xenomai] timer "host-timer" gets stopped Seeßlen, Maximilian
2015-08-21 9:56 ` Gilles Chanteperdrix
@ 2015-08-21 16:54 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2015-08-21 16:54 UTC (permalink / raw)
To: Seeßlen, Maximilian, xenomai@xenomai.org
On 08/21/2015 11:44 AM, Seeßlen, Maximilian wrote:
> Hi all,
>
> we are using kernel 3.5.7 with xenomai 2.6.2.1 on an MPC5121 PPC architecture.
Which I-pipe patch release number for 3.5.7?
You may want to adapt this fix from 3.10 to 3.5.7, in case the issue is
with a timer IRQ being lost:
commit dad0edc5c84722b16abb24a1f669361522e7277d
Author: Philippe Gerum <rpm@xenomai.org>
Date: Wed Mar 19 15:02:58 2014 +0100
powerpc/ipipe: safe transition to cpu-idle mode
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-21 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 9:44 [Xenomai] timer "host-timer" gets stopped Seeßlen, Maximilian
2015-08-21 9:56 ` Gilles Chanteperdrix
2015-08-21 16:54 ` 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.