Question about threadobj_irq_prio
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?
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...
Thanks for clarification,
regards,
Matthias
Quoted 6 lines · Matthias Schneider
Hi all,
I was under the expression that the max cobal scheduling prio in forge was now 256 and that
SCHED_COBALThad been replaced withSCHED_FIFO. Is this correct?
Yes.
Quoted 7 lines
Anyway,
threadobj_pkg_init(void)initializesthreadobj_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).
Quoted 10 lines
Thanks for clarification,
regards,
Matthias_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
Signature · 1 line
Philippe.
----- Original Message -----
Quoted 18 lines
From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>; "[email protected]" <[email protected]> Cc:
Sent: Sunday, July 6, 2014 11:23 AM
Subject: Re: [Xenomai] Question aboutthreadobj_irq_prioQuoted 6 lines · Matthias Schneider
Hi all,
I was under the expression that the max cobal scheduling prio in forge was now 256 and that
SCHED_COBALThad been replaced withSCHED_FIFO. Is this correct?Yes.
Quoted 2 lines
Anyway,
Quoted 15 lines
Quoted 5 lines
threadobj_pkg_init(void)initializesthreadobj_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).
Quoted 5 lines
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?
Regards,
Matthias
Quoted 42 lines · Matthias Schneider
----- Original Message -----
Quoted 18 lines
From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>; "[email protected]" <[email protected]> Cc:
Sent: Sunday, July 6, 2014 11:23 AM
Subject: Re: [Xenomai] Question aboutthreadobj_irq_prioQuoted 6 lines · Matthias Schneider
Hi all,
I was under the expression that the max cobal scheduling prio in forge was now 256 and that
SCHED_COBALThad been replaced withSCHED_FIFO. Is this correct?Yes.
Quoted 2 lines
Anyway,
Quoted 15 lines
Quoted 5 lines
threadobj_pkg_init(void)initializesthreadobj_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).
Quoted 5 lines
Thanks for clarification,
regards,
MatthiasI get
threadobj_high_prio= 258threadobj_irq_prio= 259threadobj_agent_prio= 258
Quoted 7 lines
and
e.g. int
psos_task_normalize_priority(unsigned long psos_prio)clips the prio to
threadobj_high_prio. However it should clip prio atthreadobj_high_prio- 2, shouldnt it?
Even 256 explicitly, since pSOS specifies this limit.
Signature · 1 line
Philippe.
Quoted 46 lines · Philippe Gerum
Quoted 45 lines · Matthias Schneider
----- Original Message -----
Quoted 19 lines
From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>; "[email protected]" <[email protected]>
Cc:
Sent: Sunday, July 6, 2014 11:23 AM
Subject: Re: [Xenomai] Question aboutthreadobj_irq_prioQuoted 6 lines · Matthias Schneider
Hi all,
I was under the expression that the max cobal scheduling prio in forge was now 256 and that
SCHED_COBALThad been replaced withSCHED_FIFO. Is this correct?Yes.
Quoted 2 lines
Anyway,
Quoted 15 lines
Quoted 5 lines
threadobj_pkg_init(void)initializesthreadobj_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).
Quoted 5 lines
Thanks for clarification,
regards,
MatthiasI get
threadobj_high_prio= 258threadobj_irq_prio= 259threadobj_agent_prio= 258and
Quoted 8 lines
Quoted 5 lines
e.g. int
psos_task_normalize_priority(unsigned long psos_prio)clips the prio to
threadobj_high_prio. However it should clip prio atthreadobj_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.
Signature · 1 line
Philippe.
----- Original Message -----
Quoted 64 lines
From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>; "[email protected]" <[email protected]> Cc:
Sent: Sunday, July 6, 2014 11:57 AM
Subject: Re: [Xenomai] Question aboutthreadobj_irq_prioQuoted 5 lines · Philippe Gerum
Quoted 4 lines · Matthias Schneider
----- Original Message -----
Quoted 2 lines
From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>;Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
<[email protected]>
Cc:
Sent: Sunday, July 6, 2014 11:23 AM
Subject: Re: [Xenomai] Question aboutthreadobj_irq_prioQuoted 3 lines · Matthias Schneider
Hi all,
I was under the expression that the max cobal scheduling prio
in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
forge was now 256 and that
SCHED_COBALThad been replacedwith
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
SCHED_FIFO. Is this correct?Yes.
Quoted 4 lines
Anyway,
threadobj_pkg_init(void)initializes
threadobj_irq_prio=__RT(sched_get_priority_max(SCHED_CORE));
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
which is still mapping to 258 - however I would rather expect 256...
256 regular FIFO levels, +2 special levels for scheduler lock
(mercury
Quoted 23 lines
Quoted 22 lines
Quoted 8 lines
only) and interrupt service emulation (both cores).
Quoted 5 lines
Thanks for clarification,
regards,
MatthiasI get
threadobj_high_prio= 258
threadobj_irq_prio= 259
threadobj_agent_prio= 258and
e.g. int
psos_task_normalize_priority(unsigned long psos_prio)clips the prio to
threadobj_high_prio. However it should clip prio atthreadobj_high_prio- 2, shouldnt it?
Quoted 11 lines
Quoted 2 lines
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, buthigh_priofor Mercury. copperplate should be fixed on the Cobalt side.Signature · 1 line
Philippe.
Thanks for the fix..
Matthias