All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: BARRE Sebastien <sbarre@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Problem with time-out ends
Date: Fri, 22 Aug 2008 14:07:39 +0200	[thread overview]
Message-ID: <48AEAC0B.8000608@domain.hid> (raw)
In-Reply-To: <C1C62166118DFA4A8BBA01A2411F0D170E9BD50078@domain.hid>

BARRE Sebastien wrote:
> * TEST 3 :
> 
> I try to put parentheses to avoid compilation warning :
> 
>                 if (xnthread_user_task(thread)->state == (TASK_INTERRUPTIBLE | TASK_ATOMICSWITCH) ) {
>                         rpi_pop(thread);
>                         xnlock_get_irqsave(&nklock, s);
> #ifdef CONFIG_SMP
>                         /* If the task changed its CPU while in secondary mode,
>                            change the CPU of the underlying Xenomai shadow too. We
>                            do not migrate the thread timers here, it would not
>                            work. For a "full" migration comprising timers, using
>                            xnpod_migrate_thread is required. */
>                         thread->sched = xnpod_sched_slot(cpu);
> #endif /* CONFIG_SMP */
>                         xnpod_resume_thread(thread, XNRELAX);
>                         ishield_off();
>                         xnpod_schedule();
>                         xnlock_put_irqrestore(&nklock, s);
>                 }
>         }
> 
> --> the result is not the same : the test program doesn't really start, nothing is displayed on the console. Control-C stop the program.
> The system is not dammaged. I've added a printf in the test program to check if it begin to execute :

Then we have a problem. With the ipipe-longer-atomicswitch.diff, the
state of the task when the gatekeeper thread is awaken should be
TASK_INTERRUPTIBLE | TASK_ATOMICSWITCH. So, there is something wrong
with the ATOMICSWITCH patch, it does not have the expected effect.

-- 
                                                 Gilles.


  parent reply	other threads:[~2008-08-22 12:07 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <C1C62166118DFA4A8BBA01A2411F0D170BF3D1BE92@domain.hid>
2008-07-25 17:02 ` [Xenomai-help] Problem with time-out ends Gilles Chanteperdrix
     [not found]   ` <C1C62166118DFA4A8BBA01A2411F0D170BF3DB1DB6@domain.hid>
2008-08-19 14:23     ` Gilles Chanteperdrix
     [not found]     ` <48ABDA75.70901@domain.hid>
     [not found]       ` <C1C62166118DFA4A8BBA01A2411F0D170E9BD4FF66@domain.hid>
2008-08-20 14:01         ` Gilles Chanteperdrix
2008-08-20 16:45           ` Gilles Chanteperdrix
     [not found]             ` <C1C62166118DFA4A8BBA01A2411F0D170E9BD4FFDD@PRI-MBX-101.dom1.vinci-energies.net>
2008-08-21 12:34               ` Gilles Chanteperdrix
2008-08-21 12:45               ` Gilles Chanteperdrix
     [not found]                 ` <C1C62166118DFA4A8BBA01A2411F0D170E9BD5002E@PRI-MBX-101.dom1.vinci-energies.net>
2008-08-21 17:29                   ` Gilles Chanteperdrix
     [not found]                     ` <C1C62166118DFA4A8BBA01A2411F0D170E9BD50078@domain.hid>
2008-08-22 12:07                       ` Gilles Chanteperdrix [this message]
2008-05-19 12:14 Fabien MAHOT
2008-05-19 12:32 ` Gilles Chanteperdrix
2008-05-19 12:57   ` Gilles Chanteperdrix
2008-05-19 15:48     ` Fabien MAHOT
2008-05-19 15:57       ` Gilles Chanteperdrix
2008-05-20 14:30         ` Fabien MAHOT
2008-05-20 15:23           ` Gilles Chanteperdrix
2008-05-20 17:42             ` Anders Blomdell
2008-05-20 19:34           ` Gilles Chanteperdrix
2008-05-20 19:38           ` Gilles Chanteperdrix
2008-05-21 14:24             ` Fabien MAHOT
2008-05-21 14:33               ` Gilles Chanteperdrix
2008-05-21 16:18                 ` Fabien MAHOT
2008-05-21 18:44                   ` Gilles Chanteperdrix
2008-05-22 14:51                     ` Fabien MAHOT
2008-05-22 15:09                       ` Gilles Chanteperdrix
2008-05-22 15:19                       ` Gilles Chanteperdrix
2008-05-23 13:31                         ` Fabien MAHOT
2008-05-23 13:55                           ` Gilles Chanteperdrix
2008-05-26  8:14                             ` Fabien MAHOT
2008-05-26 11:55                               ` Gilles Chanteperdrix
2008-05-27  2:30                               ` Gilles Chanteperdrix
2008-05-28 16:29                                 ` Fabien MAHOT
2008-05-28 16:31                                   ` Gilles Chanteperdrix
2008-05-29  6:36                                     ` Fabien MAHOT
2008-05-29 11:26                                     ` Fabien MAHOT
2008-05-29 13:14                                       ` Gilles Chanteperdrix
2008-05-30 13:20                                         ` Fabien MAHOT
2008-05-30 14:08                                           ` Gilles Chanteperdrix
2008-05-30 22:05                                           ` Gilles Chanteperdrix
2008-06-03  9:02                                             ` Fabien MAHOT
2008-06-03  9:12                                               ` Gilles Chanteperdrix
2008-06-03 12:10                                                 ` Gilles Chanteperdrix
2008-06-03 12:48                                                   ` Fabien MAHOT
2008-06-03 12:53                                                     ` Gilles Chanteperdrix
2008-06-03 13:04                                                       ` Fabien MAHOT
2008-06-04  9:38                                                   ` Fabien MAHOT
2008-06-13 14:36                                             ` Fabien MAHOT
2008-06-13 15:03                                               ` Gilles Chanteperdrix
2008-06-13 15:43                                               ` Gilles Chanteperdrix
2008-06-16  6:40                                                 ` Fabien MAHOT
2008-06-16  9:33                                                   ` Gilles Chanteperdrix
2008-06-16 12:04                                                     ` Fabien MAHOT
     [not found]                                                     ` <7379.62.39.72.60.1213803323.squirrel@domain.hid>
2008-06-29 15:29                                                       ` Gilles Chanteperdrix
2008-06-30 14:30                                                         ` Gilles Chanteperdrix
2008-06-22 14:44                                               ` Gilles Chanteperdrix
2008-06-23  7:23                                                 ` Fabien MAHOT
2008-06-23  9:33                                                   ` Gilles Chanteperdrix
2008-06-23 10:04                                                     ` Fabien MAHOT
2008-05-26 23:48                           ` Gilles Chanteperdrix
2008-05-27  1:04                           ` 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=48AEAC0B.8000608@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sbarre@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.