From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A8EACD0.40405@domain.hid> Date: Fri, 21 Aug 2009 16:18:56 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4A8C23BE.8050904@domain.hid> <4A8E628C.8010001@domain.hid> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] RE : Native message queue and synchronisation List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Berruer_S=E9bastien?= Cc: xenomai@xenomai.org Berruer S=E9bastien wrote: > Hi, >=20 >>>>> I'm running a kernel 2.6.28 with Xenomai 2.4.8 on an ARM architecture >>>>> (PXA255). >>>> >>>>Could you try Xenomai 2.4.9? >>> >>> I did it yesterday with the version 2.4.9. But, I still issue the same >>> problem with the same code. >>> >> >>Ok. Please keep 2.4.8. I did not try to reproduce the bug yet, but in the >>mean time, could you try the following patch? >> >>diff --git a/ksrc/skins/native/queue.c b/ksrc/skins/native/queue.c >>index 8b7c43e..9184da6 100644 >>--- a/ksrc/skins/native/queue.c >>+++ b/ksrc/skins/native/queue.c >>@@ -228,7 +228,8 @@ int rt_queue_create(RT_QUEUE *q, >> >> err =3D xnheap_init_mapped(&q->bufpool, >> poolsize, >>- (mode & Q_DMA) ? GFP_DMA : 0); >>+ XNARCH_SHARED_HEAP_FLAGS | >>+ ((mode & Q_DMA) ? GFP_DMA : 0)); >> if (err) >> return err; >=20 > I've applied the patch against library's sources. The code modified by the patch is kernel only, not library. So, in particular you should recompile Xenomai kernel-space support. Did you do this. >=20 > In fact, if I remove the sleep from the "display" routine, it works. > But, I can't assert what was the scheduling of threads. Maybe, it was > favourable to the other thread to write the data. >=20 > If I enable the sleep call in "mesure" routine, I still issue the same > problem that before: the system hangs. How does it hang? Do you get a message on the serial console? --=20 Gilles