From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?6ams5by6?= References: <001501ccfcd9$67d9ede0$378dc9a0$@q@domain.hid> <4F58788F.5070103@domain.hid> <000601ccfdba$c36b8650$4a4292f0$@q@domain.hid> <4F59C92B.5080705@domain.hid> In-Reply-To: <4F59C92B.5080705@domain.hid> Date: Tue, 13 Mar 2012 14:32:07 +0800 Message-ID: <001001cd00e3$03565c60$0a031520$@q@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Subject: Re: [Xenomai-help] Xenomai stop working List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gilles Chanteperdrix' Cc: xenomai@xenomai.org Hi, Gilles. I could not find "mxc_min_delay =3D 0xff" in linux source tree=20 and xenomai directory. mxc_min_delay comes from ipipe,=20 there is also no such statement in latest patch downloaded=20 from website. If mxc_min_delay is 0xff, in my system this means 32us for 8MHz=20 ipipe tsc. For a real time system, It seems a little bit longer. I used mxc_min_delay=3D16(2us) to do a test during last weekend,=20 until now and no stall have happened again. So mxc_min_delay =3D 0x10=20 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 =3D __raw_readl(timer_base + MX1_2_TCN) + delay; __raw_writel(tcmp, timer_base + MX1_2_TCMP); } else { tcmp =3D __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=E5=B9=B43=E6=9C=889=E6=97=A5 17:11 To: =E9=A9=AC=E5=BC=BA Cc: xenomai@xenomai.org Subject: Re: [Xenomai-help] Xenomai stop working You can try mxc_min_delay =3D 0xff, since it is what linux does in the latest release. --=20 Gilles.