Xenomai and TSC
Hi.
I have tried to install Xenomai on a standard PC, but I still have some problems I couldn't solve up to now.
I installed Xenomai in two different Versions with two different Linux Kernel versions. I tried Linux 2.6.17.2+Xenomai 2.3.2 and Linux 2.6.25.9+Xenomai 2.4.4. In both cases, I couldn't run the xeno-test completly, because the "TSC" feature is missing.
By using Google to solve this problem I found some hints using the ./configure --enable-x86-tsc --enable-x86-sep command e.g. But this also didn't help. I also didn't found any options for TSC in the .config file for the kernel. My CPU flags (see below) show that both, SEP and TSC, are available.
Is this a known problem with this kind of CPU? If anybody has a useful hint how to solve this, I would be appreciate.
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 4
cpu MHz : 1045.721
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up
bogomips : 2093.70
Kind Regards
Guido Moritz
-------------------------
Dipl. Ing. Guido Moritz
Universitaet Rostock, Fakultaet f. Informatik und Elektrotechnik Institut f. Angewandte Mikroelektronik und Datentechnik University of Rostock, Department of CS and EE Institute of Applied Microelectronics and CE Richard-Wagner Str. 31, 18119 Rostock-Warnemuende Phone: +49 (0)381 498 - 7269
http://www.imd.uni-rostock.de
Quoted 15 lines · Guido Moritz
Hi.
I have tried to install Xenomai on a standard PC, but I still have some problems I couldn't solve up to now.
I installed Xenomai in two different Versions with two different Linux Kernel versions. I tried Linux 2.6.17.2+Xenomai 2.3.2 and Linux 2.6.25.9+Xenomai 2.4.4. In both cases, I couldn't run the xeno-test completly, because the "TSC" feature is missing.
By using Google to solve this problem I found some hints using the ./configure --enable-x86-tsc --enable-x86-sep command e.g. But this also didn't help. I also didn't found any options for TSC in the .config file for the kernel. My CPU flags (see below) show that both, SEP and TSC, are available.
Quoted 2 lines
Is this a known problem with this kind of CPU? If anybody has a useful hint how to solve this, I would be appreciate.
The problem is that the TSC feature must be enabled in kernel-space if you want to enable it in user-space. So, you have two choices:
- either you enable the TSC in kernel-space by selecting the processor in kernel configuration which fits your processor (as suggested in Xenomai FAQ);
- either you disable usage of TSC in user-space by passing --disable-tsc to configure.
Quoted 12 lines
processor : 0
vendor_id: AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 4
cpu MHz : 1045.721
cache size : 256 KBfdiv_bug: nohlt_bug: no
Quoted 8 lines
f00f_bug: nocoma_bug: no
fpu : yesfpu_exception: yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up
bogomips : 2093.70
This means that your processor supports the "rdtsc" instruction, it does not mean that the kernel is configured to use it.
Signature · 1 line
Gilles.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Guido Moritz
Thank you for this fast reply.
So I would like to enable TSC. But unfortunately it seems as if I am to stupid to understand the FAQ and what you mean with "selecting the processor
in kernel configuration which fits your processor". Please give me a more detailed hint how to solve this. I'm sorry but I'm a newbie...
The kernel configuration proposes you several processor. Instead of selecting "Intel 386" or another processor without a TSC, just select the procesor you really have (AMD Athlon).
Signature · 1 line
Gilles.