Skip to contentSkip to conversation

nodiv xnarch_ns_to_tsc for x86-64

Xenomai-core Jan Kiszka 2 participants 4 messages Nov 21, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 5 lines · Jan Kiszka

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.

Signature · 1 line
                                                 Gilles.
author
#2 lore raw
Quoted 11 lines · Gilles Chanteperdrix
Quoted 5 lines · Jan Kiszka

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

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 7 lines · Jan Kiszka
Quoted 6 lines · Gilles Chanteperdrix
Quoted 5 lines · Jan Kiszka

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?

Quoted 7 lines
Quoted 4 lines

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.

Signature · 1 line
                                                 Gilles.