All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai and TSC
@ 2008-07-01 13:00 Guido Moritz
  2008-07-01 14:03 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Guido Moritz @ 2008-07-01 13:00 UTC (permalink / raw)
  To: xenomai

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       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) Processor
stepping        : 4
cpu MHz         : 1045.721
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_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



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

* Re: [Xenomai-help] Xenomai and TSC
  2008-07-01 13:00 [Xenomai-help] Xenomai and TSC Guido Moritz
@ 2008-07-01 14:03 ` Gilles Chanteperdrix
       [not found]   ` <17310289306.20080701161704@domain.hid>
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-07-01 14:03 UTC (permalink / raw)
  To: Guido Moritz; +Cc: xenomai

Guido Moritz wrote:
> 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.

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.

> 
> 
> 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 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_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.

-- 
                                                  Gilles.


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

* Re: [Xenomai-help] Xenomai and TSC
       [not found]   ` <17310289306.20080701161704@domain.hid>
@ 2008-07-01 14:21     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-07-01 14:21 UTC (permalink / raw)
  To: Guido Moritz; +Cc: Xenomai help

Guido Moritz wrote:
> 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).

-- 
                                                  Gilles.


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

end of thread, other threads:[~2008-07-01 14:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 13:00 [Xenomai-help] Xenomai and TSC Guido Moritz
2008-07-01 14:03 ` Gilles Chanteperdrix
     [not found]   ` <17310289306.20080701161704@domain.hid>
2008-07-01 14:21     ` 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.