Skip to contentSkip to conversation

Moving inband work off stack - remaing cases

DISCUSSION Jan Kiszka 2 participants 3 messages Jun 11, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Philippe,

I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.

To my understanding, this is not needed for xnthread_map (to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.

Looking at xnthread_relax(), the same should apply to post_wakeup - provided it is inlined into xnthread_relax - because, again, we won't leave that function before the signal was sent, thus the work consumed.

Am I missing something?

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 10 lines · Jan Kiszka

Hi Philippe,

I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.

To my understanding, this is not needed for xnthread_map (to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.

Correct.

Quoted 4 lines

Looking at xnthread_relax(), the same should apply to post_wakeup - provided it is inlined into xnthread_relax - because, again, we won't leave that function before the signal was sent, thus the work consumed.

Correct.

Quoted 2 lines

Am I missing something?

Nope.

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 21 lines · Philippe Gerum
Quoted 10 lines · Jan Kiszka

Hi Philippe,

I'm trying to understand the reasoning for moving inband work struct for the remaining cases of the triggering stack.

To my understanding, this is not needed for xnthread_map (to be privatized soon, so only for the in-tree case) because the caller providing the struct waits for the completion which will be triggered via the inband handler.

Correct.

Quoted 4 lines

Looking at xnthread_relax(), the same should apply to post_wakeup - provided it is inlined into xnthread_relax - because, again, we won't leave that function before the signal was sent, thus the work consumed.

Quoted 7 lines

Correct.

Quoted 2 lines

Am I missing something?

Nope.

Perfect.

I'm finalizing the patches to merge dovetail completely into next. With your unicore-SMP fix, we should even get a green test pipeline soon.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux