All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Johan Borkhuis <j.borkhuis@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Moving from 2.6.14(ppc) to 2.6.20(powerpc): illicit calls detected by ipipe
Date: Fri, 14 Mar 2008 14:57:02 +0100	[thread overview]
Message-ID: <47DA842E.3070305@domain.hid> (raw)
In-Reply-To: <47DA7CCD.40901@domain.hid>

Johan Borkhuis wrote:
> Hello,
> 
> I am trying to move from 2.6.14(ppc) to 2.6.20(powerpc). On ppc I am 
> using Xenomai 2.4.1 and I-Pipe version 1.5-03, on powerpc I am using 
> Xenomai 2.4.1, I-Pipe version 1.7-12.
> Most of the system is working, but I am having some problems with one 
> device driver. This is a "standard" Linux driver, that I converted into 
> a Xenomai driver. This driver does a very limited initialization, the 
> main init is done when the device is opened and after some IOCTL calls.
> 
> The problem is that I am getting "Detected illicit call from domain 
> 'Xenomai' into a service reserved for domain 'Linux' and below." 
> messages from Adeos, which I did not get when using 2.6.14. The code I 
> use is identical, except for some small areas where the API kernel 
> changed between 2.6.14 and 2.6.20. Has there been a change between the 
> versions of Adeos or Xenomai which could cause this change in behavior?
> (BTW: this message is generated when the option IPIPE_DEBUG_CONTEXT is 
> on, when this option is off I get a kernel Oops in kernel/ipipe/core.c:210.
> 
> The affected calls are calls like kmalloc and kfree, but also calls like 
> check_mem_region, which uses kmem_cache_zalloc inside the function. 
> Normally these should not be used inside a RT application, but this is 
> the startup phase of the application and there are no RT restraints at 
> this point.
>

2.6.14 did not provide any invalid call context detection, so the fact that you
start getting those with 2.6.20 is just the sign that your driver had a problem
since 2.6.14, but they went unnoticed so far.

You may want to send the stack backtrace dumped by the detector, so that we
could clearly identify what the calling context is.

> Kind regards,
>     Johan Borkhuis
> 


-- 
Philippe.


  reply	other threads:[~2008-03-14 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 13:25 [Xenomai-help] Moving from 2.6.14(ppc) to 2.6.20(powerpc): illicit calls detected by ipipe Johan Borkhuis
2008-03-14 13:57 ` Philippe Gerum [this message]
2008-03-14 14:15   ` Johan Borkhuis
2008-03-14 14:32     ` Philippe Gerum
2008-03-14 14:58       ` Johan Borkhuis

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=47DA842E.3070305@domain.hid \
    --to=rpm@xenomai.org \
    --cc=j.borkhuis@domain.hid \
    --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.