All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Berruer Sébastien" <sebastien.berruer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RE :  Native message queue and synchronisation
Date: Fri, 21 Aug 2009 16:18:56 +0200	[thread overview]
Message-ID: <4A8EACD0.40405@domain.hid> (raw)
In-Reply-To: <EB48F2CADC239E44A8598CC0B0571102E4A9C4@domain.hid>

Berruer Sébastien wrote:
> Hi,
> 
>>>>> 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 = 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;
> 
> 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.

> 
> 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.
> 
> 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?


-- 
                                          Gilles



  reply	other threads:[~2009-08-21 14:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17 15:03 [Xenomai-help] Native message queue and synchronisation Berruer Sébastien
2009-08-19 16:09 ` Gilles Chanteperdrix
2009-08-20  7:13   ` [Xenomai-help] RE : " Berruer Sébastien
2009-08-21  9:02     ` Gilles Chanteperdrix
2009-08-21 14:13       ` Berruer Sébastien
2009-08-21 14:18         ` Gilles Chanteperdrix [this message]
2009-08-21 22:23         ` Gilles Chanteperdrix
2009-08-24  9:17           ` Berruer Sébastien
2009-08-24  9:36             ` Gilles Chanteperdrix
2009-08-25  7:26               ` Berruer Sébastien
2009-08-25  8:12                 ` Gilles Chanteperdrix
2009-08-25 14:53                   ` [Xenomai-help] RE : " Berruer Sébastien
2009-08-25 15:19                     ` 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=4A8EACD0.40405@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sebastien.berruer@domain.hid \
    --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.