All of lore.kernel.org
 help / color / mirror / Atom feed
From: 马强 <ma.q@domain.hid>
To: 'Gilles Chanteperdrix' <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai stop working
Date: Tue, 13 Mar 2012 14:32:07 +0800	[thread overview]
Message-ID: <001001cd00e3$03565c60$0a031520$@q@domain.hid> (raw)
In-Reply-To: <4F59C92B.5080705@domain.hid>

Hi, Gilles.

I could not find "mxc_min_delay = 0xff" in linux source tree 
and xenomai directory. mxc_min_delay comes from ipipe, 
there is also no such statement in latest patch downloaded 
from website.

If mxc_min_delay is 0xff, in my system this means 32us for 8MHz 
ipipe tsc. For a real time system, It seems a little bit longer.

I used mxc_min_delay=16(2us) to do a test during last weekend, 
until now and no stall have happened again. So mxc_min_delay = 0x10 
maybe enough for my test CPU, I can't decide which value should be used.

The following code copy from the time.c file that patched by xenomai.
void __ipipe_mach_set_dec(unsigned long delay)
{
	if (delay > mxc_min_delay) {
		unsigned long tcmp;

		if (!timer_is_v2()) {
			tcmp = __raw_readl(timer_base + MX1_2_TCN) + delay;
			__raw_writel(tcmp, timer_base + MX1_2_TCMP);
		} else {
			tcmp = __raw_readl(timer_base + V2_TCN) + delay;
			__raw_writel(tcmp, timer_base + V2_TCMP);
		}
	} else
		ipipe_trigger_irq(__ipipe_mach_timerint);
}

My question is whether this function will be interrupted by other high priority interrupts.

--
																Ma.
-----Original Message-----
From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Sent: 2012年3月9日 17:11
To: 马强
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai stop working

You can try mxc_min_delay = 0xff, since it is what linux does in the
latest release.

-- 
                                                                Gilles.




  reply	other threads:[~2012-03-13  6:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08  3:13 [Xenomai-help] Xenomai stop working ??
2012-03-08  9:14 ` Gilles Chanteperdrix
2012-03-09  6:06   ` 马强
2012-03-09  9:11     ` Gilles Chanteperdrix
2012-03-13  6:32       ` 马强 [this message]
2012-03-13  7:10         ` 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='001001cd00e3$03565c60$0a031520$@q@domain.hid' \
    --to=ma.q@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.