From: Jan Kiszka <jan.kiszka@siemens.com>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] [CRITICAL PATCH] ipipe: Re-read domain context after IRQ processing
Date: Mon, 21 Jan 2013 12:30:19 +0100 [thread overview]
Message-ID: <50FD26CB.2000809@siemens.com> (raw)
In-Reply-To: <50F9ABEC.7070504@siemens.com>
On 2013-01-18 21:09, Jan Kiszka wrote:
> On 2013-01-18 20:04, Jan Kiszka wrote:
>> On 2013-01-18 18:04, Jan Kiszka wrote:
>>> On 2013-01-18 17:37, Philippe Gerum wrote:
>>>> On 01/18/2013 04:38 PM, Jan Kiszka wrote:
>>>>> This fixes a nasty bug on SMP boxes: We may migrate to root in the
>>>>> context of an IRQ handler, and then also to a different CPU. Therefore,
>>>>> we must not use domain contexts read before the invocation but update
>>>>> them afterward or use stable information like the domain reference.
>>>>
>>>> Ack.
>>>>
>>>>>
>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>> ---
>>>>>
>>>>> We are still facing stalled, unkillable RT processes despite this fix,
>>>>
>>>> Is TASK_HARDENING still lingering in task->state despite the recent
>>>> switch_tail fix, or is this something different?
>>>
>>> Patch is applied, but I didn't check this detail yet.
>>>
>>> I just found a potential SMP race in schedule_linux_call, patch follows.
>>> But now I triggered XENO_BUGON(NUCLEUS, need_resched == 0); for unknown
>>> reasons...
>>
>> Probably found the problem - or at least another one: XNINLOCK must be
>> used with xnsched::lflags, not status. It is set/cleared by the RTDM
>> spin locks outside nklock. Will patch that and retest.
>
> Wasn't able to run all tests yet, but it looked promising so far. Will
> finish this on Monday.
Looks stable now according to the testers.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2013-01-21 11:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 15:38 [Xenomai] [CRITICAL PATCH] ipipe: Re-read domain context after IRQ processing Jan Kiszka
2013-01-18 16:37 ` Philippe Gerum
2013-01-18 17:04 ` Jan Kiszka
2013-01-18 19:04 ` Jan Kiszka
2013-01-18 20:09 ` Jan Kiszka
2013-01-21 11:30 ` Jan Kiszka [this message]
2013-01-21 11:57 ` Gilles Chanteperdrix
2013-05-10 15:27 ` Gilles Chanteperdrix
2013-05-10 15:44 ` Gilles Chanteperdrix
2013-05-10 16:22 ` Jan Kiszka
2013-05-10 16:34 ` Gilles Chanteperdrix
2013-05-11 14:53 ` Philippe Gerum
2013-05-11 15:24 ` Gilles Chanteperdrix
2013-05-11 15:28 ` Philippe Gerum
2013-05-11 16:32 ` Gilles Chanteperdrix
2013-05-13 6:38 ` Jan Kiszka
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=50FD26CB.2000809@siemens.com \
--to=jan.kiszka@siemens.com \
--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.