Port-i386 archive

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

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



On Wed, 30 Sep 2009 01:14:35 +0200
Tobias Nygren <tnn%NetBSD.org@localhost> wrote:

> Looks like we explode in rdmsr() on recent intel processors.
> The value of the %cx register is 0xcd which corresponds to MSR_FSB_FREQ.

I got my system to boot with the following hacks applied.
Will fix it properly later ...

cheers,
-Tobias

Index: coretemp.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/coretemp.c,v
retrieving revision 1.12
diff -u -r1.12 coretemp.c
--- coretemp.c  25 Mar 2009 22:53:51 -0000      1.12
+++ coretemp.c  30 Sep 2009 00:53:06 -0000
@@ -113,11 +113,13 @@
         * from the Linux coretemp driver.
         */
        sc->sc_tjmax = 100;
+#if 0
        if ((cpumodel == 0xf && cpumask >= 2) || cpumodel == 0xe) {
                msr = rdmsr(MSR_IA32_EXT_CONFIG);
                if (msr & (1 << 30))
                        sc->sc_tjmax = 85;
        }
+#endif
 
        /* 
         * Check if the MSR contains thermal reading valid bit, this
Index: intel_busclock.c
===================================================================
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) */


Home | Main Index | Thread Index | Old Index