From: Philippe Gerum <rpm@xenomai.org>
To: Matthias Schneider <ma30002000@yahoo.de>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Question about threadobj_irq_prio
Date: Sun, 06 Jul 2014 11:57:06 +0200 [thread overview]
Message-ID: <53B91D72.8030503@xenomai.org> (raw)
In-Reply-To: <53B91C45.8090802@xenomai.org>
On 07/06/2014 11:52 AM, Philippe Gerum wrote:
> On 07/06/2014 11:36 AM, Matthias Schneider wrote:
>> ----- Original Message -----
>>
>>> From: Philippe Gerum <rpm@xenomai.org>
>>> To: Matthias Schneider <ma30002000@yahoo.de>; "xenomai@xenomai.org"
>>> <xenomai@xenomai.org>
>>> Cc:
>>> Sent: Sunday, July 6, 2014 11:23 AM
>>> Subject: Re: [Xenomai] Question about threadobj_irq_prio
>>>
>>> On 07/06/2014 11:20 AM, Matthias Schneider wrote:
>>>> Hi all,
>>>>
>>>> I was under the expression that the max cobal scheduling prio in
>>>> forge was now 256 and that SCHED_COBALT had been replaced with
>>>> SCHED_FIFO. Is this correct?
>>>>
>>>
>>> Yes.
>>>
>>>> Anyway,
>>>>
>>>> threadobj_pkg_init(void) initializes
>>>> threadobj_irq_prio = __RT(sched_get_priority_max(SCHED_CORE));
>>>> which is still mapping to 258 - however I would rather expect
>>>> 256...
>>>>
>>>
>>> 256 regular FIFO levels, +2 special levels for scheduler lock (mercury
>>> only) and interrupt service emulation (both cores).
>>>
>>>
>>>> Thanks for clarification,
>>>>
>>>> regards,
>>>> Matthias
>>>>
>>
>> I get
>>
>> threadobj_high_prio = 258
>> threadobj_irq_prio = 259
>> threadobj_agent_prio = 258
>>
>> and
>>
>> e.g. int psos_task_normalize_priority(unsigned long psos_prio)
>>
>> clips the prio to threadobj_high_prio. However it should
>> clip prio at threadobj_high_prio - 2, shouldnt it?
>>
>
> Even 256 explicitly, since pSOS specifies this limit.
>
No, we can't do that over Mercury, where we only have the limited 1-97
range available. So that would be high_prio -2 for Cobalt, but high_prio
for Mercury. copperplate should be fixed on the Cobalt side.
--
Philippe.
next prev parent reply other threads:[~2014-07-06 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-06 9:20 [Xenomai] Question about threadobj_irq_prio Matthias Schneider
2014-07-06 9:23 ` Philippe Gerum
2014-07-06 9:36 ` Matthias Schneider
2014-07-06 9:52 ` Philippe Gerum
2014-07-06 9:57 ` Philippe Gerum [this message]
2014-07-06 19:00 ` Matthias Schneider
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=53B91D72.8030503@xenomai.org \
--to=rpm@xenomai.org \
--cc=ma30002000@yahoo.de \
--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.