Re: Error in x86 CPU capabilities starting with test5/6

From: Andi Kleen (ak@suse.de)
Date: Fri Nov 17 2000 - 07:04:18 EST


On Fri, Nov 17, 2000 at 12:39:59PM +0100, Mikael Pettersson wrote:
> Jordan writes:
> > I have been running a plug in for xmms for some time that uses the
> > aviplay program and avifile library...then when upgrading to test5/6 I
> > start getting this error message when running xmms:
> >
> > ERROR: no time-stamp counter found! Quitting.
> > ...
> > contents of /proc/cpuinfo:
> > ...
> > features : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
>
> The 'flags' line in /proc/cpuinfo was recently renamed 'features', due to
> some semantic changes. You have a user-space program which parses /proc/cpuinfo
> instead of executing CPUID itself, so it breaks.

The program would be broken if it executed CPUID itself, because it has no way to guarantee
that the CPUID is executed on all CPUs the scheduler may later move the task too.

I think it is also nasty to break non broken programs this way, looking for
flags in /proc/cpuinfo is the only reliable way to do the checks on 2.2.

-Andi (proud owner of an AMP system with one CPU implementing FXSR and one not,
which causes lots of interesting problems)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:12 EST