Re: CPU detection broken in 2.5.27?

From: Patrick Mochel (mochel@osdl.org)
Date: Tue Jul 23 2002 - 15:34:37 EST


> Which stepping do you have ?

2.

> > Updated patch appended. This updated version hasn't been tested, as I
> > don't have any of those processors at my disposal...
>
> -ENOAPPENDAGE.

Sorry, it was in the invisible charset.

        -pat

===== arch/i386/kernel/cpu/intel.c 1.3 vs edited =====
--- 1.3/arch/i386/kernel/cpu/intel.c Wed Jul 10 03:46:31 2002
+++ edited/arch/i386/kernel/cpu/intel.c Tue Jul 23 13:25:01 2002
@@ -232,15 +232,19 @@
         if (c->x86 == 6) {
                 switch (c->x86_model) {
                 case 5:
- if (l2 == 0)
- p = "Celeron (Covington)";
- if (l2 == 256)
- p = "Mobile Pentium II (Dixon)";
+ if (c->x86_mask == 0) {
+ if (l2 == 0)
+ p = "Celeron (Covington)";
+ else if (l2 == 256)
+ p = "Mobile Pentium II (Dixon)";
+ }
                         break;
                         
                 case 6:
                         if (l2 == 128)
                                 p = "Celeron (Mendocino)";
+ else if (c->x86_mask == 0 || c->x86_mask == 5)
+ p = "Celeron-A";
                         break;
                         
                 case 8:
@@ -348,6 +352,26 @@
                           [4] "Pentium MMX",
                           [7] "Mobile Pentium 75 - 200",
                           [8] "Mobile Pentium MMX"
+ }
+ },
+ { X86_VENDOR_INTEL, 6,
+ {
+ [0] "Pentium Pro A-step",
+ [1] "Pentium Pro",
+ [3] "Pentium II (Klamath)",
+ [4] "Pentium II (Deschutes)",
+ [5] "Pentium II (Deschutes)",
+ [6] "Mobile Pentium II",
+ [7] "Pentium III (Katmai)",
+ [8] "Pentium III (Coppermine)",
+ [10] "Pentium III (Cascades)",
+ [11] "Pentium III (Tualatin)",
+ }
+ },
+ { X86_VENDOR_INTEL, 15,
+ {
+ [1] "Pentium 4 (Foster)",
+ [5] "Pentium 4 (Foster)",
                   }
                 },
         },

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



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:44 EST