From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Nima Nourozi <n.nourozi@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] rtdm_task_init call freezes the system
Date: Sun, 05 Jan 2014 14:09:50 +0100 [thread overview]
Message-ID: <52C9599E.1070805@xenomai.org> (raw)
In-Reply-To: <CAFnctWFiFM4KV04siquXk=ZCQggztwb_TYVwmQ8Une1Yoan7mQ@mail.gmail.com>
On 01/05/2014 01:31 AM, Nima Nourozi wrote:
> On Sat, Jan 4, 2014 at 3:01 PM, Gilles Chanteperdrix <
> gilles.chanteperdrix@xenomai.org> wrote:
>
>> On 01/04/2014 10:31 PM, Nima Nourozi wrote:
>>> On Sat, Jan 4, 2014 at 1:24 PM, Gilles Chanteperdrix <
>>> gilles.chanteperdrix@xenomai.org> wrote:
>>>
>>>> On 01/04/2014 09:29 PM, Nima Nourozi wrote:
>>>>> Here is the task function. But I'm not seeing the printout.
>>>>>
>>>>> void xx_start_transfer(void *arg) {
>>>>> rtdm_wait_period();
>>>>> rtdm_printk("hello world\n");
>>>>> }
>>>>
>>>> Two things to try:
>>>> - see if:
>>>> latency -t 1 -p 100000
>>>> has the same issue?
>>>> - xenomai 2.6.3 instead of 2.6.1
>>>>
>>>>
>>>> --
>>>> Gilles.
>>>>
>>>
>>> Will do when I get back to the office on Monday. I don't have the
>> hardware
>>> at the house.
>>>
>>> I noticed xenomai 2.6.3 does not contain the adeos patch for linux
>>> 2.6.38.8. Should I just put the patch I downloaded from adeos in the
>> patch
>>> folder and patch the vanilla kernel that way?
>>>
>>
>> Yes, it should work.
>>
>> Also, the bug you mention reminds me of an old issue, which I am afraid
>> got forgotten.
>>
>> Could you try disabling CONFIG_HIGH_RES_TIMERS ?
>>
>> --
>> Gilles.
>>
>
> OK I'll try 2.6.3 on Monday and I'll disable CONFIG_HIGH_RES_TIMERS which
> is currently enabled.
>
> I'm curious to hear more about the bug you mentioned.
The AT91 clocksource is based on a 16 bits counter which wraps fast. To
get the clocksource working, we need to "update" the clocksource at
least once for every wrap. The solution found to do this which has the
lowest overhead is to do this in Linux timer interrupt. But with
CONFIG_HIGH_RES_TIMERS (and a real one-shot timer, which not all the
AT91 have), we have no guarantee that the Linux timer interrupt will
tick often enough.
I am not sure this is the issue you see, since you mentioned that you
could start a timer.
--
Gilles.
next prev parent reply other threads:[~2014-01-05 13:09 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 0:48 [Xenomai] rtdm_task_init call freezes the system Nima Nourozi
2014-01-04 9:06 ` Philippe Gerum
2014-01-04 18:18 ` Gilles Chanteperdrix
2014-01-04 19:27 ` Philippe Gerum
2014-01-04 20:29 ` Nima Nourozi
2014-01-04 21:24 ` Gilles Chanteperdrix
2014-01-04 21:31 ` Nima Nourozi
2014-01-04 23:01 ` Gilles Chanteperdrix
2014-01-05 0:31 ` Nima Nourozi
2014-01-05 13:09 ` Gilles Chanteperdrix [this message]
2014-01-04 22:57 ` Philippe Gerum
2014-01-05 0:25 ` Nima Nourozi
2014-01-05 12:02 ` Philippe Gerum
2014-01-05 19:28 ` Gilles Chanteperdrix
2014-01-06 7:58 ` Philippe Gerum
2014-01-06 19:10 ` Nima Nourozi
2014-01-06 20:00 ` Gilles Chanteperdrix
2014-01-06 21:25 ` Nima Nourozi
2014-01-06 21:25 ` Gilles Chanteperdrix
2014-01-06 21:40 ` Nima Nourozi
2014-01-06 21:42 ` Gilles Chanteperdrix
2014-01-06 21:45 ` Gilles Chanteperdrix
2014-01-06 21:52 ` Nima Nourozi
2014-01-06 21:54 ` Gilles Chanteperdrix
2014-01-06 22:11 ` Gilles Chanteperdrix
2014-01-06 22:47 ` Nima Nourozi
2014-01-06 22:48 ` Gilles Chanteperdrix
2014-01-09 2:51 ` Nima Nourozi
2014-01-09 8:33 ` Gilles Chanteperdrix
2014-01-09 9:21 ` Gilles Chanteperdrix
2014-01-09 9:56 ` Gilles Chanteperdrix
2014-01-06 22:46 ` Nima Nourozi
2014-01-05 20:54 ` Nima Nourozi
-- strict thread matches above, loose matches on Subject: below --
2014-01-04 0:54 Nima Nourozi
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=52C9599E.1070805@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=n.nourozi@gmail.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.