All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64
@ 2008-11-21 15:26 Jan Kiszka
  2008-11-21 15:29 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2008-11-21 15:26 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

Hi Gilles,

I assumed you armed nodiv ns-to-tsc for x86-64, given that the services
are in place now. But my test case just crashed another box even though
latest SVN was installed. Any reason for not converting yet?

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux


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

* Re: [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64
  2008-11-21 15:26 [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64 Jan Kiszka
@ 2008-11-21 15:29 ` Gilles Chanteperdrix
  2008-11-21 15:31   ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-11-21 15:29 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Hi Gilles,
> 
> I assumed you armed nodiv ns-to-tsc for x86-64, given that the services
> are in place now. But my test case just crashed another box even though
> latest SVN was installed. Any reason for not converting yet?

Yes, I only tested the routine performance, not tested xenomai running
on it.  I am in the middle of a reorganization of my test boxes, which
is taking more time than I initially thought, so could not test the
routine as soon as I would have liked.

-- 
                                                 Gilles.


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

* Re: [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64
  2008-11-21 15:29 ` Gilles Chanteperdrix
@ 2008-11-21 15:31   ` Jan Kiszka
  2008-11-21 15:42     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2008-11-21 15:31 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> Hi Gilles,
>>
>> I assumed you armed nodiv ns-to-tsc for x86-64, given that the services
>> are in place now. But my test case just crashed another box even though
>> latest SVN was installed. Any reason for not converting yet?
> 
> Yes, I only tested the routine performance, not tested xenomai running
> on it.  I am in the middle of a reorganization of my test boxes, which
> is taking more time than I initially thought, so could not test the
> routine as soon as I would have liked.

Ah, ok. What's the rough schedule (few days, a week, ...)? And will you
also take care of the 32-bit case or should I have a look?

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux


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

* Re: [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64
  2008-11-21 15:31   ` Jan Kiszka
@ 2008-11-21 15:42     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-11-21 15:42 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> Jan Kiszka wrote:
>>> Hi Gilles,
>>>
>>> I assumed you armed nodiv ns-to-tsc for x86-64, given that the services
>>> are in place now. But my test case just crashed another box even though
>>> latest SVN was installed. Any reason for not converting yet?
>> Yes, I only tested the routine performance, not tested xenomai running
>> on it.  I am in the middle of a reorganization of my test boxes, which
>> is taking more time than I initially thought, so could not test the
>> routine as soon as I would have liked.
> 
> Ah, ok. What's the rough schedule (few days, a week, ...)? And will you
> also take care of the 32-bit case or should I have a look?

Probably by the end of the week. And yes, I will take care of the 32
bits case. In fact, my plan is to have XNARCH_WANT_NODIV_MULDIV on all
architectures so that I can use this for the posix division needed to
convert between nanoseconds and timespecs or timevals.

Actually, I compiled the 32 bits version (just implementing
rthal_add96and64, and using the generic implementation of the nodiv
routine), but the result is just plain ugly, cluttered with many moves
between registers and stack, probably due to the lack of registers on
x86 coupled with gcc doing a really bad job at allocating registers.

If you really want to avoid the fault in the division, you can also
modify x86 div96by32 so that it does 3 64/32 divisions instead of 2.

-- 
                                                 Gilles.


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

end of thread, other threads:[~2008-11-21 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 15:26 [Xenomai-core] nodiv xnarch_ns_to_tsc for x86-64 Jan Kiszka
2008-11-21 15:29 ` Gilles Chanteperdrix
2008-11-21 15:31   ` Jan Kiszka
2008-11-21 15:42     ` Gilles Chanteperdrix

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.