lkml.org 
[lkml]   [1998]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: amd3d flag listed as flag 31
On Fri, 11 Dec 1998, Thomas Wouters wrote:

> On Thu, Dec 10, 1998 at 08:02:35PM +0100, Robbert Muller wrote:
>
> > like i said in the subject with 2.1.131-ac6 my cpuinfo contains the
> > following in
<SNIPED rest of /proc/cpuinfo>B
> > flags : fpu vme de pse tsc msr mce cx8 sep mmx 31
> > bogomips : 598.02
> > ------
>
> > and i think that 31 must be amd3d, If search the code but i cant't find
> > the error, it seems that the code is correct.
>
> Wat you are looking for is in arch/i386/kernel/setup.c:
>
> static char *x86_cap_flags[] = {
> "fpu", "vme", "de", "pse", "tsc", "msr", "6", "mce",
> "cx8", "9", "10", "sep", "12", "pge", "14", "cmov",
> "16", "17", "18", "19", "20", "21", "22", "mmx",
> "24", "25", "26", "27", "28", "29", "30", "31"
> };
>
some lower in setup.c stands the code
****
/* Modify the capabilities according to chip type */
if (c->x86_mask) {
if (c->x86_vendor == X86_VENDOR_CYRIX) {
x86_cap_flags[24] = "cxmmx";
} else if (c->x86_vendor == X86_VENDOR_AMD) {
x86_cap_flags[16] = "fcmov";
x86_cap_flags[31] = "amd3d";
} else if (c->x86_vendor == X86_VENDOR_INTEL) {
x86_cap_flags[6] = "pae";
x86_cap_flags[9] = "apic";
x86_cap_flags[12] = "mtrr";
x86_cap_flags[14] = "mca";
x86_cap_flags[16] = "pat";
x86_cap_flags[17] = "pse36";
x86_cap_flags[24] = "osfxsr";
}
}
****
where you can see that it should be addapted so that 31 == amd3d only when
your processor is a AMD

the problem is that it don't work

> If you wish for your kernel to show '3dnow!' instead of '31', you can change
> the string in that piece of code. I suspect, however, that it isn't done in
> the stock kernel because flag 31 isn't 'officially' 3dnow!, and intel might
> use it for itself in some way (and screw 3dnow! drivers/applications that
> dont check if the cpu is, indeed, an AMD.) -- This is just a guess though, I
> dont know enough about ia32 and who specifies what to say anything
> meaningful about it.
see above code from setup.c where that is prevented

--

Robbert Muller



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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