Skip to contentSkip to conversation

Question about threadobj_irq_prio

Xenomai Matthias Schneider 2 participants 6 messages Jul 6, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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_COBALT had been replaced with SCHED_FIFO. Is this correct?

Yes.

Quoted 7 lines

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

Quoted 10 lines

Thanks for clarification,

regards,
Matthias

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.
#2 lore raw

----- 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 about threadobj_irq_prio

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_COBALT had been replaced with SCHED_FIFO. Is this correct?

Yes.

Quoted 2 lines

Anyway,

Quoted 15 lines
Quoted 5 lines

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

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

#3 lore raw
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 about threadobj_irq_prio

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_COBALT had been replaced with SCHED_FIFO. Is this correct?

Yes.

Quoted 2 lines

Anyway,

Quoted 15 lines
Quoted 5 lines

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

Quoted 5 lines

Thanks for clarification,

regards,
Matthias

I get

threadobj_high_prio = 258
threadobj_irq_prio = 259
threadobj_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 at threadobj_high_prio - 2, shouldnt it?

Even 256 explicitly, since pSOS specifies this limit.

Signature · 1 line
Philippe.
#4 lore raw
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 about threadobj_irq_prio

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_COBALT had been replaced with SCHED_FIFO. Is this correct?

Yes.

Quoted 2 lines

Anyway,

Quoted 15 lines
Quoted 5 lines

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

Quoted 5 lines

Thanks for clarification,

regards,
Matthias

I get

threadobj_high_prio = 258
threadobj_irq_prio = 259
threadobj_agent_prio = 258

and

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

Signature · 1 line
Philippe.
#5 lore raw

----- 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 about threadobj_irq_prio

Quoted 5 lines · Philippe Gerum
Quoted 4 lines · Matthias Schneider

----- Original Message -----

Quoted 2 lines

From: Philippe Gerum <[email protected]>
To: Matthias Schneider <[email protected]>;

"[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 about threadobj_irq_prio

Quoted 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_COBALT had been replaced

with

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

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, but high_prio for Mercury. copperplate should be fixed on the Cobalt side.

Signature · 1 line
Philippe.

Thanks for the fix..
Matthias