From: "Petr Cervenka" <grugh@centrum.cz>
To: "Philippe Gerum" <rpm@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] non-blocking rt_task_suspend(NULL)
Date: Tue, 20 May 2014 14:27:29 +0200 [thread overview]
Message-ID: <20140520142729.DABA4B8B@centrum.cz> (raw)
In-Reply-To: <5370C807.7050809@xenomai.org>
> Od: Philippe Gerum
>
>>>
>>> Thanks. Could you drop the previous instrumentation patches, and give a try at this one? It fixes a flaw in the logic for maintaining the thread information bits, which may have caused the issue you observed:
>>>
>>> diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
>>> index 0a2ee19..22fa91d 100644
>>> --- a/ksrc/nucleus/pod.c
>>> +++ b/ksrc/nucleus/pod.c
>>> @@ -1391,7 +1391,8 @@ void xnpod_suspend_thread(xnthread_t *thread, xnflags_t mask,
>>> }
>>> #endif /* CONFIG_XENO_OPT_PERVASIVE */
>>>
>>> - xnthread_clear_info(thread, XNRMID | XNTIMEO | XNBREAK | XNWAKEN | XNROBBED);
>>> + xnthread_clear_info(thread, XNRMID | XNTIMEO | XNBREAK | \
>>> + XNWAKEN | XNROBBED | XNKICKED);
>>> }
>>>
>>> /* Don't start the timer for a thread indefinitely delayed by
>>>
>>
>> I applied the new patch and I was not able to reproduce the -EINTR problem to this moment. But one of the machines I tried during long term test over the weekend got frozen. But it could be also from different reason. What do you think?
>
>Could you enable all debug features (CONFIG_XENO_OPT_DEBUG), and
>particularly CONFIG_XENO_OPT_WATCHDOG? The system will be significantly
>slowed down due to the consistency checks on all internal lists (i.e.
>DEBUG_QUEUES), but this may give us some hints about the freeze.
>
I have enabled almost all debug features and tortured several PCs for a week without a single problem. Thank you all for your help.
Petr
next prev parent reply other threads:[~2014-05-20 12:27 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 12:13 [Xenomai] non-blocking rt_task_suspend(NULL) Petr Cervenka
2014-05-02 12:30 ` Gilles Chanteperdrix
2014-05-02 13:16 ` Philippe Gerum
2014-05-06 8:17 ` Petr Cervenka
2014-05-06 8:39 ` Philippe Gerum
2014-05-06 8:56 ` Philippe Gerum
2014-05-06 9:29 ` Petr Cervenka
2014-05-06 12:57 ` Philippe Gerum
2014-05-07 13:13 ` Petr Cervenka
2014-05-08 15:53 ` Philippe Gerum
2014-05-12 12:37 ` Petr Cervenka
2014-05-12 13:09 ` Philippe Gerum
2014-05-20 12:27 ` Petr Cervenka [this message]
2014-05-20 12:54 ` Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2014-04-16 16:02 Petr Cervenka
2014-04-16 16:17 ` Gilles Chanteperdrix
2014-04-18 8:51 ` Petr Cervenka
2014-04-22 17:20 ` Gilles Chanteperdrix
2014-04-24 15:06 ` Petr Cervenka
2014-04-24 17:53 ` Gilles Chanteperdrix
2014-04-25 8:38 ` Petr Cervenka
2014-04-16 14:20 Petr Cervenka
2014-04-16 14:28 ` Gilles Chanteperdrix
2014-04-15 12:42 Petr Cervenka
2014-04-16 9:08 ` Gilles Chanteperdrix
2014-04-16 12:22 ` Petr Cervenka
2014-04-16 12:26 ` Gilles Chanteperdrix
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=20140520142729.DABA4B8B@centrum.cz \
--to=grugh@centrum.cz \
--cc=rpm@xenomai.org \
--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.