Re: 2.2.18pre and Duron detection

2000-10-06 Thread davej


> 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
> fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:
>
>flags: fpu vme de pse tsc msr 6 mce cx8 sep mtrr pge 14 cmov pat 17
>   psn mmxext mmx fxsr 3dnowext 3dnow

Try the patch below, this brings things up to date with 2.4

regards,

Dave.

-- 
| Dave Jones <[EMAIL PROTECTED]>  http://www.suse.de/~davej
| SuSE Labs

--- setup.c~Fri Oct  6 18:13:35 2000
+++ setup.c Fri Oct  6 18:19:13 2000
@@ -1142,10 +1142,10 @@
char *p = buffer;
int sep_bug;
static char *x86_cap_flags[] = {
-   "fpu", "vme", "de", "pse", "tsc", "msr", "6", "mce",
-   "cx8", "9", "10", "sep", "mtrr", "pge", "14", "cmov",
-   "16", "17", "psn", "19", "20", "21", "22", "mmx",
-   "24", "kni", "26", "27", "28", "29", "30", "31"
+   "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
+   "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov",
+   "16", "pse36", "psn", "19", "20", "21", "22", "mmx",
+   "24", "xmm", "26", "27", "28", "29", "30", "31"
};
struct cpuinfo_x86 *c = cpu_data;
int i, n;
@@ -1200,17 +1200,11 @@
break;
   
   
   
   
case X86_VENDOR_INTEL:
-   x86_cap_flags[6] = "pae";
-   x86_cap_flags[9] = "apic";
-   x86_cap_flags[14] = "mca";
x86_cap_flags[16] = "pat";
-   x86_cap_flags[17] = "pse36";
-   x86_cap_flags[18] = "psn";
x86_cap_flags[19] = "cflush";
x86_cap_flags[21] = "dtrace";
x86_cap_flags[22] = "acpi";
x86_cap_flags[24] = "fxsr";
-   x86_cap_flags[25] = "xmm";
x86_cap_flags[26] = "xmm2";
x86_cap_flags[27] = "ssnp";
x86_cap_flags[29] = "acc";

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: 2.2.18pre and Duron detection

2000-10-06 Thread davej


 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
 fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:

flags: fpu vme de pse tsc msr 6 mce cx8 sep mtrr pge 14 cmov pat 17
   psn mmxext mmx fxsr 3dnowext 3dnow

Try the patch below, this brings things up to date with 2.4

regards,

Dave.

-- 
| Dave Jones [EMAIL PROTECTED]  http://www.suse.de/~davej
| SuSE Labs

--- setup.c~Fri Oct  6 18:13:35 2000
+++ setup.c Fri Oct  6 18:19:13 2000
@@ -1142,10 +1142,10 @@
char *p = buffer;
int sep_bug;
static char *x86_cap_flags[] = {
-   "fpu", "vme", "de", "pse", "tsc", "msr", "6", "mce",
-   "cx8", "9", "10", "sep", "mtrr", "pge", "14", "cmov",
-   "16", "17", "psn", "19", "20", "21", "22", "mmx",
-   "24", "kni", "26", "27", "28", "29", "30", "31"
+   "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
+   "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov",
+   "16", "pse36", "psn", "19", "20", "21", "22", "mmx",
+   "24", "xmm", "26", "27", "28", "29", "30", "31"
};
struct cpuinfo_x86 *c = cpu_data;
int i, n;
@@ -1200,17 +1200,11 @@
break;
   
   
   
   
case X86_VENDOR_INTEL:
-   x86_cap_flags[6] = "pae";
-   x86_cap_flags[9] = "apic";
-   x86_cap_flags[14] = "mca";
x86_cap_flags[16] = "pat";
-   x86_cap_flags[17] = "pse36";
-   x86_cap_flags[18] = "psn";
x86_cap_flags[19] = "cflush";
x86_cap_flags[21] = "dtrace";
x86_cap_flags[22] = "acpi";
x86_cap_flags[24] = "fxsr";
-   x86_cap_flags[25] = "xmm";
x86_cap_flags[26] = "xmm2";
x86_cap_flags[27] = "ssnp";
x86_cap_flags[29] = "acc";

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: 2.2.18pre and Duron detection

2000-10-05 Thread Erik Andersen

On Thu Oct 05, 2000 at 02:09:24PM +0200, Meelis Roos wrote:
> 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
> fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:
> 

I see the same thing on my Athlon.  Funny I never noticed
it before...

andersen@slag:~$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 6
model   : 2
model name  : AMD Athlon(tm) Processor
stepping: 2
cpu MHz : 704.949
cache size  : 512 KB
fdiv_bug: no
hlt_bug : no
sep_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 6 mce cx8 sep mtrr pge 14 cmov pat 17 mmxext 
mmx fxsr 3dnowext 3dnow
bogomips: 1405.75

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: 2.2.18pre and Duron detection

2000-10-05 Thread Jeff Epler

On Thu, Oct 05, 2000 at 02:09:24PM +0200, Meelis Roos wrote:
> 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
> fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:

According to the documentation I have,
6PAE
14   Machine Check Architecture
17   PSE-36 (Page Size Extensions)
I don't know if we also potentially detect
9APIC
since I don't have a source tree handy.

The Duron should return 0x0183f9ff (or possibly 0x0183fbff if the BIOS
enables the APIC) in EDX from CPUID with EAX==1, so bits 6, 14 and 17
should be reported as set.

I don't know what PSE-36 is, but it appears on all Athlons but Model 1.
It is apparently different from bit 3, "Page Size Extensions (4-Mbyte pages).

(from "AMD Processor Recognition Application Note", Publication #20734 Rev. R)

Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



2.2.18pre and Duron detection

2000-10-05 Thread Meelis Roos

2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:

processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 6
model   : 3
model name  : AMD Duron(tm) Processor
stepping: 0
cpu MHz : 600.041
cache size  : 64 KB
fdiv_bug: no
hlt_bug : no
sep_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 6 mce cx8 sep mtrr pge 14 cmov pat 17 psn 
mmxext mmx fxsr 3dnowext 3dnow
bogomips: 1196.03


---
Meelis Roos ([EMAIL PROTECTED])

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: 2.2.18pre and Duron detection

2000-10-05 Thread Jeff Epler

On Thu, Oct 05, 2000 at 02:09:24PM +0200, Meelis Roos wrote:
 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
 fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:

According to the documentation I have,
6PAE
14   Machine Check Architecture
17   PSE-36 (Page Size Extensions)
I don't know if we also potentially detect
9APIC
since I don't have a source tree handy.

The Duron should return 0x0183f9ff (or possibly 0x0183fbff if the BIOS
enables the APIC) in EDX from CPUID with EAX==1, so bits 6, 14 and 17
should be reported as set.

I don't know what PSE-36 is, but it appears on all Athlons but Model 1.
It is apparently different from bit 3, "Page Size Extensions (4-Mbyte pages).

(from "AMD Processor Recognition Application Note", Publication #20734 Rev. R)

Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: 2.2.18pre and Duron detection

2000-10-05 Thread Erik Andersen

On Thu Oct 05, 2000 at 02:09:24PM +0200, Meelis Roos wrote:
 2.2.18pre12 detects Duron 600 almost fine (even reports 64K cache) but
 fails to identify some cpu flags (6, 14, 17). /proc/cpuinfo output:
 

I see the same thing on my Athlon.  Funny I never noticed
it before...

andersen@slag:~$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 6
model   : 2
model name  : AMD Athlon(tm) Processor
stepping: 2
cpu MHz : 704.949
cache size  : 512 KB
fdiv_bug: no
hlt_bug : no
sep_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 6 mce cx8 sep mtrr pge 14 cmov pat 17 mmxext 
mmx fxsr 3dnowext 3dnow
bogomips: 1405.75

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/