Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (solved) Re: panic during cpu_attach() on core i7



Just curious - what is your CPU's signature? (And does cpuctl(8) describe it correctly?)

===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/intel_busclock.c,v
retrieving revision 1.7
diff -u -r1.7 intel_busclock.c
--- intel_busclock.c    25 Mar 2009 22:53:51 -0000      1.7
+++ intel_busclock.c    30 Sep 2009 00:53:06 -0000
@@ -77,6 +77,7 @@
 {
        uint64_t msr;
        int bus, bus_clock = 0;
+       return 13333;

        switch (CPUID2MODEL(ci->ci_signature)) {
        case 0x9: /* Pentium M (130 nm, Banias) */

Looking at the code in p3_get_bus_clock() it would appear that it would be broken for my Core i7 920, which has model 0x0a but extmodel 0x01. Since no check is made for the extmodel, it would treat my Core i7 as a

        case 0xa: /* Pentium III Xeon, model A */

It's probably a good thing (tm) that I don't have ENHANCED_SPEEDSTEP in my configuration! It would seem that the *_get_bus_clock() functions are called only from some est code...


-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index