[lkml]   [2000]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Fwd: CPU detection revamp (Request for comments)]

Hi hpa,

First test, the AMD K6-2.

Before your patch..
cpu family : 5
model : 8
stepping : 12


cpu family : 5
model : 8
stepping : 4

Line 1826 of setup.c

c->x86_mask = tfms & 7;

Should be..

c->x86_mask = tfms & 15;

I think?

Also, look at the feature flags:
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mmx 3dnow

features : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow

Note, I lost MTRR & sep. This may be related to the stepping bug
though. I'll recompile a kernel with the &15 fix, and see if that cures

btw, whilst all this is getting a shakedown, how about renaming
that 'x86_mask' field to the more obvious 'x86_stepping' ?
c->x86 would make more sense as c->x86_family too thinking about it.



| Dave Jones <>
| SuSE Labs

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.080 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site