Skip to contentSkip to conversation

Fixed two timer base regressions

Xenomai-core Jan Kiszka 2 participants 5 messages Feb 8, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Philippe,

the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on), and I also found a yet invisible bug in rtdm_toseq_init that would have picked the wrong time base (#2153).

Now just that rtcanrecv issue remains...

Jan

#1 lore raw
Quoted 5 lines · Jan Kiszka

Hi Philippe,

the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on),

Ok.

Quoted 3 lines

and I also found a yet invisible bug in
rtdm_toseq_init that would have picked the wrong time base (#2153).

Using xnpod_current_thread()'s time base in rtdm_toseq_init() will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?

Quoted 4 lines

Now just that rtcanrecv issue remains...

Jan

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

Hi Philippe,

the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on),

Ok.

Quoted 7 lines
Quoted 3 lines

and I also found a yet invisible bug in
rtdm_toseq_init that would have picked the wrong time base (#2153).

Using xnpod_current_thread()'s time base in rtdm_toseq_init() will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?

rtdm_toseq_init will only be called over primary context, it belongs into the same context as rtdm_mutex_timedlock, rtdm_sem_timeddown, etc.

author
#3 lore raw
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka

Hi Philippe,

the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on),

Ok.

Quoted 3 lines

and I also found a yet invisible bug in
rtdm_toseq_init that would have picked the wrong time base (#2153).

Quoted 7 lines
Quoted 3 lines

Using xnpod_current_thread()'s time base in rtdm_toseq_init() will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?

rtdm_toseq_init will only be called over primary context, it belongs into the same context as rtdm_mutex_timedlock, rtdm_sem_timeddown, etc.

OK, got your point: you were referring to the rtdm_toseq_init doc which talks about secondary mode usage - this needs fixing now (and never made any sense :( ).

Jan

#4 lore raw
In reply to Jan Kiszka
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka

Hi Philippe,

the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on),

Ok.

Quoted 3 lines

and I also found a yet invisible bug in
rtdm_toseq_init that would have picked the wrong time base (#2153).

Quoted 7 lines
Quoted 3 lines

Using xnpod_current_thread()'s time base in rtdm_toseq_init() will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?

rtdm_toseq_init will only be called over primary context, it belongs into the same context as rtdm_mutex_timedlock, rtdm_sem_timeddown, etc.

So the doc needs fixing, I guess.

Signature · 1 line
Philippe.