All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Harco Kuppens <h.kuppens@cs.ru.nl>
Cc: Jan Kiszka <jan.kiszka@siemens.com>, xenomai@xenomai.org
Subject: Re: rt_task_set_priority does not increase priority of other task
Date: Thu, 17 Sep 2020 15:26:08 +0200	[thread overview]
Message-ID: <87wo0s7cwf.fsf@xenomai.org> (raw)
In-Reply-To: <5faff965-afc6-f70a-8d10-8f55c570fbf6@cs.ru.nl>


Harco Kuppens via Xenomai <xenomai@xenomai.org> writes:

> On 17/09/2020 13:51, Jan Kiszka wrote:
>> On 16.09.20 20:12, Harco Kuppens via Xenomai wrote:
>>> Hi,
>>>
>>> I found a problem with rt_task_set_priority function which does not
>>> increase priority of another task.
>>> However it works fine if you increase the priority of another task.
>>>
>>> Below is an en example program and its output, and we run this program
>>> on xenomai 3.08.
>>> The problem appears if we run the program on our xenomai image for the
>>> raspberry pi 3,
>>> and is also appears in our virtual box image.
>>> Both images can be found at :
>>>
>>>    * http://www.cs.ru.nl/lab/xenomai/raspberrypi.html
>>>    * http://www.cs.ru.nl/lab/xenomai/virtualbox.html
>>>
>>> The easiest way is to run the virtualbox image.
>>>
>>> The final question I have: is there an wrong usage of xenomai API in the
>>> example program,
>>> or is this a bug in xenomai?
>>>
>> Something is inconsistent here. Did you also check via
>> /proc/xenomai/sched/threads if that view is consistent with the result
>> of inquire?
> yes, and they also said the priority was not increased.
> You can repeat the experiment in the virtualbox image.
> Note: we use virtualbox so that students can do some exercise at
> home. The exerecises on hardware they must do on raspberry pi 3 in the
> lab.
> Normally a rt os on virtualbox would make no sense.
>> I vaguely recall issues of the latter but I also do not
>> recall any fix to 3.1, not to speak of anything that was not backported.
>
>> BTW, tried 3.1 as well?
> no, because I don't have it  installed. Could someone who has it
> running try this example on it, and check whether this   problem also
> occurs there?
>
> Anyway it was pretty difficult to get xenomai 3.08 with gpio support
> to work on the raspberry pi 3.
> Took me a long time, and I rather stick with 3.0.8.
> We use raspberry pi's in a course on the radboud university where
> students get exercises in learning to use xenomai.
> Switching to new version would mean lot of work for me.
>

Ok, I'll have a look asap in the coming days and follow up on this.

-- 
Philippe.


  reply	other threads:[~2020-09-17 13:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 18:12 rt_task_set_priority does not increase priority of other task Harco Kuppens
2020-09-17 11:51 ` Jan Kiszka
     [not found] ` <916ef19a754d4e42b0eaefa8a1a26060@EXPRD08.hosting.ru.nl>
2020-09-17 12:01   ` Harco Kuppens
2020-09-17 13:26     ` Philippe Gerum [this message]
2020-09-17 13:31     ` Jan Kiszka
2020-09-17 17:49       ` Philippe Gerum
     [not found]       ` <0efdb308f2414013882d20061d07a2d7@EXPRD08.hosting.ru.nl>
2020-09-23 12:58         ` Harco Kuppens
2020-09-27  9:24           ` Philippe Gerum
     [not found]     ` <6318b8f4918243c891732fc8f79d11ab@EXPRD08.hosting.ru.nl>
2020-09-17 13:59       ` Harco Kuppens

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=87wo0s7cwf.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=h.kuppens@cs.ru.nl \
    --cc=jan.kiszka@siemens.com \
    --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.