All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Peter Pan <pppeterpppan@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] cyclictest gives out segmentation fault with xenomai 2.5.2 in powerpc arch
Date: Fri, 30 Apr 2010 10:29:54 +0200	[thread overview]
Message-ID: <1272616194.24705.36.camel@domain.hid> (raw)
In-Reply-To: <y2x48abf2c21004291716m769fc355ld978b2da54d4ea1d@domain.hid>

On Fri, 2010-04-30 at 08:16 +0800, Peter Pan wrote:
> It's an EVM board of PPC460GT.
> 
> I think the processor is very powerful, that may make xenomai workable
> on our system.

> I'll try to reduce the latency to a proper value.

When you are done, I'd be interested in knowing the proper calibration
value for this platform, so that I can pre-set it in
include/asm-powerpc/calibration.h for future users.

PS: echo 0 > /proc/xenomai/latency is the way to disable the
anticipation in setting timer shots, so that you can determine the
minimum latency of your platform, i.e. abs(min-lat) from the latency
test output, on an idle system.

TIA,

> 
> Thanks alot.
> 
> 2010/4/29 Philippe Gerum <rpm@xenomai.org>:
> > On Thu, 2010-04-29 at 23:20 +0800, Peter Pan wrote:
> >> I searched through the archive, some one says that there is a git
> >> commit to sole the problem. I downloaded the latest xenomai-2.5 git,
> >> the problem is gone.
> >>
> >> But I found another problem. When I use the "latency" test, all the
> >> min latency time gives out a minus value. Is that normal?
> >
> > Yes. Your board has better internal latency than the default calibration
> > expects (i.e. time to traverse the Xenomai stack from IRQ receipt to
> > activating the thread), so the timer shot is anticipated too much.
> > Try reducing the value stored in /proc/xenomai/latency, until your
> > system is calibrated. You can wire this value in your Kconfig
> > afterwards.
> >
> > Which ppc hw are you running Xenomai on?
> >
> >>
> >> 2010/4/29 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>:
> >> > Peter Pan wrote:
> >> >> I downloaded the ipipe-2.6 from git.denx.de, head     is
> >> >> "ipipe-2.6.32-powerpc". Then I downloaded xenomai-2.5.2 and patch the
> >> >> kernel. Then I install the xenomai applications into our rootfs. I
> >> >> just run cyclictest in /usr/xenomai/share/xenomai/testsuit/cyclic/run,
> >> >> it gives out following line:
> >> >>
> >> >> *
> >> >> *
> >> >> * Type ^C to stop this application.
> >> >> *
> >> >> *
> >> >> 0.00 0.05 0.03 2/24 1010
> >> >>
> >> >> T: 0 (    0) P:99 I: 1000000 C:       0 Min: 1000000 Act:       0 Avg:
> >> >>       0 Max:-1000000
> >> >> Segmentation fault
> >> >
> >> > Probably a stack overflow. Could you run the application inside gdb to
> >> > check that?
> >> >
> >> > --
> >> >                                            Gilles.
> >> >
> >>
> >> _______________________________________________
> >> Xenomai-help mailing list
> >> Xenomai-help@domain.hid
> >> https://mail.gna.org/listinfo/xenomai-help
> >
> >
> > --
> > Philippe.
> >
> >
> >


-- 
Philippe.




  reply	other threads:[~2010-04-30  8:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29  6:09 [Xenomai-help] cyclictest gives out segmentation fault with xenomai 2.5.2 in powerpc arch Peter Pan
2010-04-29 15:02 ` Gilles Chanteperdrix
2010-04-29 15:20   ` Peter Pan
2010-04-29 15:25     ` Philippe Gerum
2010-04-30  0:16       ` Peter Pan
2010-04-30  8:29         ` Philippe Gerum [this message]
     [not found]           ` <s2g48abf2c21004300217q31bce099g588cb0bdc4bf380f@domain.hid>
     [not found]             ` <1272619558.24705.40.camel@domain.hid>
2010-04-30 12:03               ` Peter Pan
2010-04-30 12:41                 ` Philippe Gerum
2010-04-30 13:18                   ` Peter Pan
2010-05-04  1:41                     ` Peter Pan

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=1272616194.24705.36.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=pppeterpppan@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.