From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Lukasz Zemla <Lukasz.Zemla@woodward.com>
Cc: "Xenomai@xenomai.org" <Xenomai@xenomai.org>
Subject: Re: [Xenomai] Xenomai installation on P1020RDB
Date: Thu, 26 Jul 2012 14:00:03 +0200 [thread overview]
Message-ID: <50113143.50101@xenomai.org> (raw)
In-Reply-To: <CE2E43470FE5444A811B580382FE5EDF2113EA8FD2@KEMPMAIL2.woodward.com>
On 07/26/2012 01:20 PM, Lukasz Zemla wrote:
>> -----Original Message-----
>> From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
>> Sent: Wednesday, July 25, 2012 10:42 PM
>> To: Lukasz Zemla
>> Cc: Xenomai@xenomai.org
>> Subject: Re: [Xenomai] Xenomai installation on P1020RDB
>>
>> On 07/25/2012 10:15 PM, Lukasz Zemla wrote:
>>
>>>
>>>> -----Original Message-----
>>>> From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
>>>> Sent: Wednesday, July 25, 2012 7:36 PM
>>>> To: Lukasz Zemla
>>>> Cc: Xenomai@xenomai.org
>>>> Subject: Re: [Xenomai] Xenomai installation on P1020RDB
>>>>
>>>> On 07/25/2012 07:11 PM, Gilles Chanteperdrix wrote:
>>>>
>>>>> On 07/25/2012 06:18 PM, Lukasz Zemla wrote:
>>>>>
>>>>>> I tried to install Xenomai on 3.2.21 - it boots, but waits about
>> 76
>>>> seconds after initialization of first eth0 controller:
>>>>>>
>>>>>> [ 0.905820] fsl-gianfar ethernet.1: eth0: TX BD ring size for
>>>> Q[7]: 256
>>>>>> [ 77.451135] fsl-gianfar ethernet.2: eth1: mac:
>>>> 00:04:9f:02:2d:11
>>>>>>
>>>>>> There is no delay between eth1 and eth2.
>>>>>>
>>>>>> The vanilla 3.2.21 does not have any delays - it initializes eth0,
>>>> eth1, eth2 immediately.
>>>>>>
>>>>>> [...]
>>>>>
>>>>>
>>>>> It is very much likely a timer issue. At the time it happens, is
>>>>> xenomai started ?
>>>>>
>>>>
>>>>
>>>> Also, it would be interesting to know a bit more about your kernel
>>>> configuration, at least whether the following options are enabled:
>>>> CONFIG_HIGH_RES_TIMERS
>>>> CONFIG_NO_HZ
>>>> CONFIG_XENO_OPT_WATCHDOG
>>>>
>>>> If the first two are on and the third is off, try the following
>> patch:
>>>
>>> The Xenomai is running at that time.
>>> [ 0.385023] type=2000 audit(0.324:1): initialized
>>> [ 0.389902] I-pipe: head domain Xenomai registered.
>>> [ 0.394795] Xenomai: hal/powerpc started.
>>> [ 0.398762] Xenomai: scheduling class idle registered.
>>> [ 0.403848] Xenomai: scheduling class rt registered.
>>> [ 0.415567] Xenomai: real-time nucleus v2.6.1 (Light Years Away)
>> loaded.
>>> [ 0.422217] Xenomai: debug mode enabled.
>>> [ 0.426434] Xenomai: starting native API services.
>>> [ 0.431160] Xenomai: starting POSIX services.
>>> [ 0.435609] Xenomai: starting RTDM services.
>>> [ 0.448964] Installing knfsd (copyright (C) 1996
>> okir@monad.swb.de).
>>>
>>> Here are the values of mentioned parameters:
>>> CONFIG_HIGH_RES_TIMERS=y
>>> CONFIG_NO_HZ=y
>>> CONFIG_XENO_OPT_WATCHDOG=y
>>> CONFIG_XENO_OPT_WATCHDOG_TIMEOUT=4
>>>
>>
>>> The third one is on, eventually I could try patch, but I'll have
>>
>>> access to hardware in the morning (I'm working in Europe).
>>
>>
>> No, the patch is probably needed for correctness, but will not solve
>> the issue you observe (with the watchdog on, there is always a timer
>> running, so, the decrementer is always programmed by xenomai).
>>
>> What you can try is:
>> - putting a printk in __ipipe_grab_timer (say, print a dot every HZ
>> ticks)
>> - and a similar printk in the "timer_interrupt" in
>> arch/powerpc/kernel/time.c
>>
>> Now run the kernel and see if the two of them are ticking during the
>> 76s period.
>
> __ipipe_grab_timer seems to be not called during that 76s period. It’s called before and after.
> The timer_interrupt is working all the time.
That is strange, whether xenomai intercepts the timer or not, the timer
interrupt normally always go through __ipipe_grab_timer first.
--
Gilles.
next prev parent reply other threads:[~2012-07-26 12:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 14:31 [Xenomai] Xenomai installation on P1020RDB Lukasz Zemla
2012-07-20 18:25 ` Wolfgang Grandegger
2012-07-23 8:48 ` Richard Cochran
2012-07-23 12:01 ` Wolfgang Grandegger
2012-07-25 16:18 ` Lukasz Zemla
2012-07-25 17:11 ` Gilles Chanteperdrix
2012-07-25 17:36 ` Gilles Chanteperdrix
2012-07-25 20:15 ` Lukasz Zemla
2012-07-25 20:42 ` Gilles Chanteperdrix
2012-07-26 11:20 ` Lukasz Zemla
2012-07-26 12:00 ` Gilles Chanteperdrix [this message]
2012-07-27 15:53 ` Lukasz Zemla
2012-07-27 16:00 ` Gilles Chanteperdrix
2012-07-27 16:08 ` Philippe Gerum
2012-07-27 16:12 ` Lukasz Zemla
2012-07-27 16:19 ` Philippe Gerum
2012-07-29 14:30 ` Philippe Gerum
2012-07-29 14:10 ` Philippe Gerum
2012-07-25 19:26 ` Wolfgang Grandegger
2012-07-25 20:26 ` Lukasz Zemla
2012-07-25 20:55 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50113143.50101@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Lukasz.Zemla@woodward.com \
--cc=Xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.