All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [BUG] timerbench tests don't work with SVN
@ 2007-01-04 14:52 Jan Kiszka
  2007-01-04 15:16 ` [Xenomai-core] " Philippe Gerum
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jan Kiszka @ 2007-01-04 14:52 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Hi Philippe,

likely a regression of latest timer base patches: with periodic support
enabled (haven't tested the off case yet), latency -t1/2 no longer work.
I have no time to look at this, so I just dump my report here. :)

Jan


PS: Is there an official nucleus API to convert dates between timebases?
I'm asking because of the open question how to share RTDM drivers
between skins on different timer bases. Right now it looks to me like
RTDM is locked to one base (configured at compile or module load time)
and cannot be shared.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Xenomai-core] Re: [BUG] timerbench tests don't work with SVN
  2007-01-04 14:52 [Xenomai-core] [BUG] timerbench tests don't work with SVN Jan Kiszka
@ 2007-01-04 15:16 ` Philippe Gerum
  2007-01-04 15:21   ` Philippe Gerum
  2007-01-04 15:17 ` Philippe Gerum
  2007-01-05 10:17 ` Philippe Gerum
  2 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2007-01-04 15:16 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Thu, 2007-01-04 at 15:52 +0100, Jan Kiszka wrote:
> Hi Philippe,
> 
> likely a regression of latest timer base patches: with periodic support
> enabled (haven't tested the off case yet), latency -t1/2 no longer work.
> I have no time to look at this, so I just dump my report here. :)
> 
> Jan
> 
> 
> PS: Is there an official nucleus API to convert dates between timebases?
> I'm asking because of the open question how to share RTDM drivers
> between skins on different timer bases. Right now it looks to me like
> RTDM is locked to one base (configured at compile or module load time)
> and cannot be shared.
> 

This is the same situation than before, except that now, RTDM can choose
the timebase it is locked on. There is no conversion API right now, but
we could define xntbase_convert(inbase, rtdm_base), with inbase being
extracted from xnthread_timebase(xnpod_current_thread()) for primary
context services. The question remains open on how to get the inbase
pointer for seconday mode callers though.

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Xenomai-core] Re: [BUG] timerbench tests don't work with SVN
  2007-01-04 14:52 [Xenomai-core] [BUG] timerbench tests don't work with SVN Jan Kiszka
  2007-01-04 15:16 ` [Xenomai-core] " Philippe Gerum
@ 2007-01-04 15:17 ` Philippe Gerum
  2007-01-05 10:17 ` Philippe Gerum
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2007-01-04 15:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Thu, 2007-01-04 at 15:52 +0100, Jan Kiszka wrote:
> Hi Philippe,
> 
> likely a regression of latest timer base patches: with periodic support
> enabled (haven't tested the off case yet), latency -t1/2 no longer work.
> I have no time to look at this, so I just dump my report here. :)
> 

Btw, it works fine on my testboxes UP/SMP, so this may be a
config-dependent issue which I have overlooked. Please send me
your .config. TIA,

> Jan
> 
> 
> PS: Is there an official nucleus API to convert dates between timebases?
> I'm asking because of the open question how to share RTDM drivers
> between skins on different timer bases. Right now it looks to me like
> RTDM is locked to one base (configured at compile or module load time)
> and cannot be shared.
> 
-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] Re: [BUG] timerbench tests don't work with SVN
  2007-01-04 15:16 ` [Xenomai-core] " Philippe Gerum
@ 2007-01-04 15:21   ` Philippe Gerum
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2007-01-04 15:21 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Thu, 2007-01-04 at 16:16 +0100, Philippe Gerum wrote:
> On Thu, 2007-01-04 at 15:52 +0100, Jan Kiszka wrote:
> > Hi Philippe,
> > 
> > likely a regression of latest timer base patches: with periodic support
> > enabled (haven't tested the off case yet), latency -t1/2 no longer work.
> > I have no time to look at this, so I just dump my report here. :)
> > 
> > Jan
> > 
> > 
> > PS: Is there an official nucleus API to convert dates between timebases?
> > I'm asking because of the open question how to share RTDM drivers
> > between skins on different timer bases. Right now it looks to me like
> > RTDM is locked to one base (configured at compile or module load time)
> > and cannot be shared.
> > 
> 
> This is the same situation than before, except that now, RTDM can choose
> the timebase it is locked on. There is no conversion API right now, but
> we could define xntbase_convert(inbase, rtdm_base), with inbase being
> extracted from xnthread_timebase(xnpod_current_thread()) for primary
> context services. The question remains open on how to get the inbase
> pointer for seconday mode callers though.
> 

Mm, silly me: xnthread_timebase(xnshadow_thread(current)) if the
argument is non-null, or we would force the master time base if current
is not a real-time shadow, IOW plain Linux tasks would always call -nrt
services with nanosecond based timeout and delays. So this should be a
no-brainer.

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Xenomai-core] Re: [BUG] timerbench tests don't work with SVN
  2007-01-04 14:52 [Xenomai-core] [BUG] timerbench tests don't work with SVN Jan Kiszka
  2007-01-04 15:16 ` [Xenomai-core] " Philippe Gerum
  2007-01-04 15:17 ` Philippe Gerum
@ 2007-01-05 10:17 ` Philippe Gerum
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2007-01-05 10:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On Thu, 2007-01-04 at 15:52 +0100, Jan Kiszka wrote:
> Hi Philippe,
> 
> likely a regression of latest timer base patches: with periodic support
> enabled (haven't tested the off case yet), latency -t1/2 no longer work.
> I have no time to look at this, so I just dump my report here. :)

Ok, fixed by #2054.

-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-05 10:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 14:52 [Xenomai-core] [BUG] timerbench tests don't work with SVN Jan Kiszka
2007-01-04 15:16 ` [Xenomai-core] " Philippe Gerum
2007-01-04 15:21   ` Philippe Gerum
2007-01-04 15:17 ` Philippe Gerum
2007-01-05 10:17 ` Philippe Gerum

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.