All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc").
@ 2006-04-24 15:29 Deepak Joglekar
  2006-04-24 15:40 ` Philippe Gerum
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Deepak Joglekar @ 2006-04-24 15:29 UTC (permalink / raw)
  To: xenomai

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

Hi,

I am using kernel 2.6.15.7 and Xenomai 2.1

While writing this mail I noticed the probable reason.
parameter
#define CONFIG_X86_TSC 1 should be
#define CONFIG_XENO_X86_TSC 1

I changed this in src/include/xeno_config.h

After recompile testsuit worked.

I changed the same in
src/include/xeno_config.h.in

original line
#undef CONFIG_X86_TSC
changed to.
#undef CONFIG_XENO_X86_TSC

Then normal ./configure ... make etc.

It worked.

Thanks,

Deepak Joglekar

--------------------------------------------------------

I get following error while running test suit.


Xenomai: incompatible feature set
(required="sep tsc", present="sep", missing="tsc").

I configured the xenomai with
./configure --enable-x86-tsc --enable-x86-sep


config.log file entries

configure:20569: checking for x86 TSC support
configure:20579: result: y
#define CONFIG_X86_TSC 1

configure:20556: checking for x86 SEP instructions in syscalls
configure:20566: result: y
#define CONFIG_XENO_X86_SEP 1


cat /proc/cpuinfo shows sep and tsc.

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl est cid cx16 xtpr

---------------------------

[-- Attachment #2: Type: text/html, Size: 1642 bytes --]

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

* Re: [Xenomai-help] Error while running test suit (required="sep tsc",  present="sep", missing="tsc").
  2006-04-24 15:29 [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc") Deepak Joglekar
@ 2006-04-24 15:40 ` Philippe Gerum
  2006-04-24 15:42 ` Gilles Chanteperdrix
  2006-04-24 17:35 ` Jim Cromie
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2006-04-24 15:40 UTC (permalink / raw)
  To: Deepak Joglekar; +Cc: xenomai

Deepak Joglekar wrote:
> Hi,
> 
> I am using kernel 2.6.15.7 <http://2.6.15.7/> and Xenomai 2.1
> 
> While writing this mail I noticed the probable reason.
> parameter
> #define CONFIG_X86_TSC 1 should be
> #define CONFIG_XENO_X86_TSC 1
> 
> I changed this in src/include/xeno_config.h
> 
> After recompile testsuit worked.
> 
> I changed the same in
> src/include/xeno_config.h.in
> 
> original line
> #undef CONFIG_X86_TSC
> changed to.
> #undef CONFIG_XENO_X86_TSC
> 
> Then normal ./configure ... make etc.
> 
> It worked.
> 

By luck since you only circumvented the proper checks, unfortunately. 
The variables as defined in the configure script are perfectly ok, 
CONFIG_X86_TSC is the right option to set.

The message you got initially told you that a discrepancy between the 
CPU selected at kernel level and the user-support has been detected. To 
fix this, you need to select a x86 CPU supporting a timestamp counter 
when configuring your kernel, since by default, the configure script 
assumes --enable-x86-tsc.

In any case, keep in mind that updating the configure script output 
(xeno_config.h) by hand is always the wrong way to fix an issue.

> Thanks,
> 
> Deepak Joglekar
> 
> ------------------------------
> --------------------------
> 
> I get following error while running test suit.
> 
> 
> Xenomai: incompatible feature set
> (required="sep tsc", present="sep", missing="tsc").
> 
> I configured the xenomai with
> ./configure --enable-x86-tsc --enable-x86-sep
> 
> 
> config.log file entries
> 
> configure:20569: checking for x86 TSC support
> configure:20579: result: y
> #define CONFIG_X86_TSC 1
> 
> configure:20556: checking for x86 SEP instructions in syscalls
> configure:20566: result: y
> #define CONFIG_XENO_X86_SEP 1
> 
> 
> cat /proc/cpuinfo shows sep and tsc.
> 
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm 
> pni monitor ds_cpl est cid cx16 xtpr
> 
> ---------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 

Philippe.


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

* Re: [Xenomai-help] Error while running test suit (required="sep tsc",  present="sep", missing="tsc").
  2006-04-24 15:29 [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc") Deepak Joglekar
  2006-04-24 15:40 ` Philippe Gerum
@ 2006-04-24 15:42 ` Gilles Chanteperdrix
  2006-04-24 17:35 ` Jim Cromie
  2 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2006-04-24 15:42 UTC (permalink / raw)
  To: Deepak Joglekar; +Cc: xenomai

Deepak Joglekar wrote:
 > Hi,
 > 
 > I am using kernel 2.6.15.7 and Xenomai 2.1
 > 
 > While writing this mail I noticed the probable reason.
 > parameter
 > #define CONFIG_X86_TSC 1 should be
 > #define CONFIG_XENO_X86_TSC 1

No, the issue is that you enable usage of tsc in user-space by
passing the --enable-x86-tsc to configure, whereas you choosed, in
kernel configuration, a processor without tsc enabled.

-- 


					    Gilles Chanteperdrix.


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

* Re: [Xenomai-help] Error while running test suit (required="sep tsc",  present="sep", missing="tsc").
  2006-04-24 15:29 [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc") Deepak Joglekar
  2006-04-24 15:40 ` Philippe Gerum
  2006-04-24 15:42 ` Gilles Chanteperdrix
@ 2006-04-24 17:35 ` Jim Cromie
  2006-04-25  7:15   ` Deepak Joglekar
  2 siblings, 1 reply; 5+ messages in thread
From: Jim Cromie @ 2006-04-24 17:35 UTC (permalink / raw)
  To: Deepak Joglekar; +Cc: xenomai

Deepak Joglekar wrote:
> Hi,
>
hi.

For the Record, can you post your actual error messages, in context,
so that folks who search the ML (gasp) for the "exact error message string"
will find it in your post ?

And it would be good to post the answer youve recieved also.

tia


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

* Re: [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc").
  2006-04-24 17:35 ` Jim Cromie
@ 2006-04-25  7:15   ` Deepak Joglekar
  0 siblings, 0 replies; 5+ messages in thread
From: Deepak Joglekar @ 2006-04-25  7:15 UTC (permalink / raw)
  To: Jim Cromie; +Cc: xenomai

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

Hi,

For record complete results.

1. Initally I chose i686 processor family in kernel config. and followed
instructions for kernel and xenomai compile and install.
My processor is Pentium IV on build system. My Target processor will be AMD
Geode.

I was getting following error message while running xeno-test.
-----------------------------------------------------------
Xenomai: incompatible feature set
(required="sep tsc", present="sep", missing="tsc").
-----------------------------------------------------------

I checked /proc/cpuinfo
--------------------------------
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl est cid cx16 xtpr
--------------------------------

Then I was bit confused.

Gilles Chanteperdrix correctly pointed out error.

You should have "CONFIG_X86_TSC=y" in kernel ".config" file.  It will be
selected automatically based on the Processor selected for kernel
compilation.

If you don't have this line in ".config" then one should configure the
Xenomai as
-----------------------------------
./configure --disable-tsc
-----------------------------------

When CONFIG_X86_TSC is available in kernel then on "./configure" will work
for Xenomai.

Thanks.


On 4/24/06, Jim Cromie <jim.cromie@domain.hid> wrote:
>
> Deepak Joglekar wrote:
> > Hi,
> >
> hi.
>
> For the Record, can you post your actual error messages, in context,
> so that folks who search the ML (gasp) for the "exact error message
> string"
> will find it in your post ?
>
> And it would be good to post the answer youve recieved also.
>
> tia
>

[-- Attachment #2: Type: text/html, Size: 2268 bytes --]

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

end of thread, other threads:[~2006-04-25  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 15:29 [Xenomai-help] Error while running test suit (required="sep tsc", present="sep", missing="tsc") Deepak Joglekar
2006-04-24 15:40 ` Philippe Gerum
2006-04-24 15:42 ` Gilles Chanteperdrix
2006-04-24 17:35 ` Jim Cromie
2006-04-25  7:15   ` Deepak Joglekar

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.