All of lore.kernel.org
 help / color / mirror / Atom feed
From: garryt <garryt@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: garryt <garryt@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-help] imx1 port.
Date: Mon, 29 Oct 2007 17:30:23 +0100	[thread overview]
Message-ID: <1193675423.47260a9f317e3@domain.hid> (raw)
In-Reply-To: <2ff1a98a0710290638i7204c9f7pfe4a26ecbe07af9f@domain.hid>

Hello,

Selon Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>:

> On 10/29/07, garryt <garryt@domain.hid> wrote:
> > Hello all,
> >
> > I had time to try again adeos+xenomai on a imx1 board. (i know this is
> quite
> > old).
>
> Thanks. The imx port should be integrated in the next I-pipe patch.
>
> >
> > This looks stable, i have been testing for several hours.
> >
> > I have followed the wiki documentation and performed some tests with
> xeno-test +
> > ping flooding on this board, again i have no other *similar* board to
> compare
> > results with, but here they are.
> >
> > I wonder if the difference between user-mode and in-kernel mode should be
> as
> > much as this...
>
> From the tests I have seen so far, except those published by Adeneo,
> there is always a great difference between user-mode an kernel-mode.
> This is the price to pay for the comfort of user-space on ARM.
>
> >
> > By the way enabling ipipe tracer increase response time by a factor 2! is
> this
> > ok with such HW ?
>
> I guess so.
>
> >
> > I have attached the patch if someone is interested in, any remarks
> regarding
> > this are welcome.
>
> There is something suspicious, it is the loop:
>
>  		do {
>  			write_seqlock(&xtime_lock);
>  			timer_tick();
> +#ifdef CONFIG_IPIPE
> +			last_jiffy_time += LATCH;
> +#endif				/*  CONFIG_IPIPE */
>  			write_sequnlock(&xtime_lock);
>  			IMX_TCMP(TIMER_BASE) += evt_diff;
>   	    } while (unlikely((int32_t) (IMX_TCMP(TIMER_BASE)
>  					- IMX_TCN(TIMER_BASE)) < 0));
>
> First, you should not touch IMX_TCMP(TIMER_BASE) in the loop, this is
> done by __ipipe_mach_set_dec.
>
> Second, with the current version of the I-pipe, the do/while loop
> should be disabled when CONFIG_IPIPE is enabled. However, this is
> going to change in the next version of I-pipe because of the so-called
> "flat log" optimization, but I think IMX_TCMP(TIMER_BASE) should be
> replaced with last_jiffy_time, because IMX_TCMP(TIMER_BASE) is the
> date of the previous hardware timer tick, but the previous hardware
> timer tick is not necessarily Linux timer previous tick. Anyway, I
> will try and fix this and send a patch for testing.
>

Please correct me if i am wrong, this will help, my understanding from the
comment in the function (in 1.7-06.patch), was that if another domain (xenomai)
has stolen the timer we should do nothing neither ack it (already done), nor
reprogram the timer in linux interrupt handler...just run timer_tick. (should i
used time_lock)

I though that if we enter the loop this means that the timer programming is
still held by linux not xenomai.


> >
> >
> > All tests have been performed with xeno-test +  ping flooding the board.
>
> For a load that give worse figures, run the calibrator
> http://www.cwi.nl/~manegold/Calibrator
>
>
> --
>                                                Gilles Chanteperdrix
>




  reply	other threads:[~2007-10-29 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 12:54 [Xenomai-help] imx1 port garryt
2007-10-29 13:38 ` Gilles Chanteperdrix
2007-10-29 16:30   ` garryt [this message]
2007-10-29 16:46     ` Gilles Chanteperdrix

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=1193675423.47260a9f317e3@domain.hid \
    --to=garryt@domain.hid \
    --cc=gilles.chanteperdrix@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.