All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai 2.5.6 with PPC-Kernel 2.4.25
Date: Sat, 18 Jun 2011 15:44:58 +0200	[thread overview]
Message-ID: <4DFCABDA.6000702@domain.hid> (raw)
In-Reply-To: <1308387052.2122.14.camel@domain.hid>

On 06/18/2011 10:50 AM, Philippe Gerum wrote:
> On Tue, 2011-06-14 at 14:47 +0200, roderik.wildenburg@domain.hid
> wrote:
>> Perhaps this may help:
>> I instrumented src/common/sem_heap.c   and ksrc/nucleus/heap.c with printf and printk (see appended files) and this is the output:
>>
>> 1:mrconfig:~ # latency
>> 2:xeno_init_private_heap
>> 3:map_sem_heap syscall 0
>> 4:xeno_map_heap open 3
>> 5:xnheap_ioctl private data: 00000000
>> 6:xeno_map_heap ioctl 0 handle 0xc7dd9210
>> 7:xnheap_mmap 00000000 00000000
>> 8:xeno_map_heap 0xffffffff
>> 9:Xenomai: mmap local sem heap: No such device or address
>> 10:mrconfig:~ #
>>
>>
>> It looks like (if I figured it out correctly) as if in function sem_heap.c->xeno_map_heap()  (which is called from xeno_init_privat_heap() via function map_sem_heap())  the ioctl-Call fails. 
>> xeno_map_heap() passes correctly an argument unequal NULL as third parameter to ioctl() (line6), but in kernel space function xnheap_ioctl() the 3. parameter arrives as NULL(line 5). This sets file->private_data to NULL which in turn lets xnheap_mmap() fail, as this function expects file->private_data != NULL (line7).
>> Therefore xnheap_mmap() returns -ENIXIO to xeno_map_heap() which outputs the error message " Xenomai: mmap local sem heap: No such device or address".
>> The one million dollar question is, why the 3. parameter of ioctl() mutates to NULL. Any idea?
>>
>> If I can do anything else, let me know.
>>
> 
> You will need these patches to run linux 2.4.25 over 2.5.6. The first
> one fixes the ioctl() issue.
> http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=c2a24b90667e12d0614e5d8442dba74f137f9d4d
> http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=bebc2a8e6b430c99041800330dc6061665371d90
> 
> Note: the switch test does not seem to be running correctly on my
> icecube (albeit the latency one does), somehow linux reschedule events
> get lost. For this reason, I would not consider the current state as
> being production-grade.

How do you see that reschedule events are lost? Does this happen also on
other systems?

-- 
                                                                Gilles.


  reply	other threads:[~2011-06-18 13:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14  8:52 [Xenomai-help] Xenomai 2.5.6 with PPC-Kernel 2.4.25 roderik.wildenburg
2011-06-14  9:39 ` Philippe Gerum
2011-06-14 12:47   ` roderik.wildenburg
2011-06-18  8:50     ` Philippe Gerum
2011-06-18 13:44       ` Gilles Chanteperdrix [this message]
2011-06-18 14:21         ` Philippe Gerum
2011-06-21 10:04           ` roderik.wildenburg
2011-06-21 10:35             ` Philippe Gerum
2011-06-21 11:22               ` roderik.wildenburg
2011-06-21 11:33                 ` Gilles Chanteperdrix
2011-06-21 13:05                   ` roderik.wildenburg
2011-06-21 13:15                     ` Philippe Gerum
2011-06-21 13:51                       ` roderik.wildenburg
2011-06-21 14:05                       ` Gilles Chanteperdrix
2011-06-21 14:35                         ` Philippe Gerum
2011-07-03 15:48               ` Philippe Gerum
2011-07-04  9:43                 ` roderik.wildenburg
2011-06-18 14:35         ` Philippe Gerum
2011-06-18 14:44           ` Philippe Gerum

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=4DFCABDA.6000702@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --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.