From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Michael Lausch <michael.lausch@omicron.at>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] xenomai 2.6.1 on ixp4xx hangs on boot
Date: Mon, 30 Jul 2012 18:28:15 +0200 [thread overview]
Message-ID: <5016B61F.5050702@xenomai.org> (raw)
In-Reply-To: <6B3AC2788014DD49B43AF9611365BBAA21B0C0D253@mary.at.omicron.at>
On 07/30/2012 06:03 PM, Michael Lausch wrote:
> Sorry for the delay, but holiday season takes its toll (needed to cover a 2nd project as well).
> I've successfully booted a kernel with userspace tsc emulation enabled.
> The output from the "tsc" testprogram looks like:
>
> min: 12, max: 21, avg: 12
> min: 12, max: 21, avg: 12
> min: 12, max: 18, avg: 12
> min: 12, max: 21, avg: 12
> min: 12, max: 21, avg: 12
> min: 12, max: 21, avg: 12
> ......
> Min: 12, max: 26, avg: 12 ->0.180002 us
>
> Does this look correct to you?
Yes, it means that there were no problems when the counter wrapped (if
you ran the tsc program with the "-w" argument). A 180ns latency does
not look bad.
>
> I have one question though:
> What is the meaning of the min_delay_tick element of the ipipe_timer struct? i just
> Used a random value here.
It is not related with the tsc. It is the ipipe_timer implementation,
and it is normally already set. For ixp4xx, there is normally:
#ifdef CONFIG_IPIPE
static struct ipipe_timer ixp4xx_itimer = {
.irq = IRQ_IXP4XX_TIMER1,
.min_delay_ticks = 333, /* 5 usec with the 66.66 MHz system clock */
};
#endif /* CONFIG_IPIPE */
min_delay_ticks is explained here:
http://www.xenomai.org/index.php/I-pipe-core:ArmPorting#The_general_case
It is the delay below which the timer can not be programmed successfully
(this happens for timers based on free-running counters and match
registers, but also as a documented limitation of some other hardware
timers).
>
> If the result of the test program looks good to you, i'm going to clean up the patch and i can post it against a
> xenomai 2.6.1 patched 3.2.23 vanilla linux kernel.
Please stay with 3.2.21, as the update to 3.2.23 may bring new conflicts.
--
Gilles.
next prev parent reply other threads:[~2012-07-30 16:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 11:27 [Xenomai] xenomai 2.6.1 on ixp4xx hangs on boot Michael Lausch
2012-07-20 17:06 ` Gilles Chanteperdrix
2012-07-23 10:28 ` Michael Lausch
2012-07-23 10:38 ` Gilles Chanteperdrix
2012-07-23 10:48 ` Michael Lausch
2012-07-24 6:49 ` Michael Lausch
2012-07-24 6:51 ` Gilles Chanteperdrix
2012-07-26 20:22 ` Gilles Chanteperdrix
2012-07-30 16:03 ` Michael Lausch
2012-07-30 16:28 ` Gilles Chanteperdrix [this message]
2012-07-31 6:15 ` Michael Lausch
2012-08-05 22:15 ` 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=5016B61F.5050702@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=michael.lausch@omicron.at \
--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.