All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Christensen <jbc@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] kernel threads crash
Date: Tue, 19 Apr 2011 11:34:37 +0200	[thread overview]
Message-ID: <4DAD572D.9070309@domain.hid> (raw)
In-Reply-To: <1303205415.2096.35.camel@domain.hid>

Okay

/Jesper


On 2011-04-19 11:30, Philippe Gerum wrote:
> On Tue, 2011-04-19 at 11:29 +0200, Philippe Gerum wrote:
>   
>> On Tue, 2011-04-19 at 10:42 +0200, Gilles Chanteperdrix wrote:
>>     
>>> Philippe Gerum wrote:
>>>       
>>>> On Tue, 2011-04-19 at 09:58 +0200, Jesper Christensen wrote:
>>>>         
>>>>> Great thanks, but i can't help wondering if the problems i'm seeing are
>>>>> related to some of my userspace programs using fp.
>>>>>           
>>>> I don't think so. The switchtest programs exercises the FPU hardware in
>>>> a certain way to make sure it is available in real-time mode from kernel
>>>> space (which is an utterly crappy legacy, but we will have to deal with
>>>> it until Xenomai 3.x). As far as I can see from your .config, you can't
>>>> have such support, so switchtest was basically trying to test an
>>>> inexistent feature.
>>>>         
>>> In fact, switchtest whether Xenomai FPU switch routines work when the
>>> Linux kernel itself uses FPU in kernel-space. Currently, the only place
>>> when this happens is in the RAID code: x86 uses mmx/sse, and some power
>>> pcs use altivec. Some powerpc also fix unaligned accesses to floating
>>> point data in kernel-space, I do not know if this may interfere, which
>>> is why the powerpc code is compiled even without RAID.
>>>
>>>
>>>       
>> AFAICS, fp_regs_set() on ppc is issuing a load float instruction in
>> kernel space which could be unaligned, and therefore trap. Looking at
>> the .config for the target system, hw FPU support is disabled in the
>> alignment code, so basically, this would beget a nop.
>>     
> A nop in fixing the issue, I mean.
>
>   



  reply	other threads:[~2011-04-19  9:34 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 12:58 [Xenomai-core] kernel threads crash Jesper Christensen
2011-04-08 13:12 ` Philippe Gerum
2011-04-08 13:20   ` Jesper Christensen
2011-04-08 13:39     ` Philippe Gerum
2011-04-08 13:47       ` Jesper Christensen
2011-04-08 14:33       ` Jesper Christensen
2011-04-11 14:13   ` Jesper Christensen
2011-04-11 14:18     ` Philippe Gerum
2011-04-11 14:20       ` Jesper Christensen
2011-04-11 14:27         ` Philippe Gerum
2011-04-11 14:32           ` Jesper Christensen
2011-04-11 14:39             ` Philippe Gerum
2011-04-11 14:49               ` Jesper Christensen
2011-04-11 15:31                 ` Jesper Christensen
2011-04-12 13:31                   ` Jesper Christensen
2011-04-12 13:39                     ` Gilles Chanteperdrix
2011-04-12 13:40                       ` Jesper Christensen
2011-04-12 13:40                     ` Jan Kiszka
2011-04-12 13:45                       ` Jesper Christensen
2011-04-12 14:09                       ` Jesper Christensen
2011-04-12 14:14                         ` Jan Kiszka
2011-04-12 14:21                           ` Jesper Christensen
2011-04-12 15:24                             ` Jan Kiszka
2011-04-12 15:50                               ` Jesper Christensen
2011-04-19  7:26                             ` Jesper Christensen
2011-04-19  7:39                               ` Philippe Gerum
2011-04-19  7:58                                 ` Jesper Christensen
2011-04-19  8:02                                   ` Philippe Gerum
2011-04-19  8:42                                     ` Gilles Chanteperdrix
2011-04-19  9:29                                       ` Philippe Gerum
2011-04-19  9:30                                         ` Philippe Gerum
2011-04-19  9:34                                           ` Jesper Christensen [this message]
2011-04-11 14:34         ` Philippe Gerum
2011-04-11 14:35           ` Jesper Christensen
2011-04-11 14:23       ` Philippe Gerum
2011-04-11 14:36     ` Gilles Chanteperdrix
2011-04-08 19:15 ` Richard Cochran
2011-04-11  6:52   ` Jesper Christensen
2011-04-11  6:55     ` Richard Cochran
2011-04-11  6:59       ` Jesper Christensen
2011-04-11  9:18         ` Jan Kiszka
2011-04-11  9:26           ` Jesper Christensen

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=4DAD572D.9070309@domain.hid \
    --to=jbc@domain.hid \
    --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.