From owner-freebsd-current@FreeBSD.ORG Fri Jul 27 13:47:55 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E9616A419 for ; Fri, 27 Jul 2007 13:47:55 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 369AB13C457 for ; Fri, 27 Jul 2007 13:47:54 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so791281uge for ; Fri, 27 Jul 2007 06:47:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hDhqzMve5QNfgm2fF/19JKtyIfF9xJ1uCGPQnNbEs0/7CK7KMsO69YxRT2mM1yqT6gwY2wnXvxkSpbzu5mRJY3+qiH+h6jIWJzJqSNm8V/U6TKyWFM4t3XePaOBDalhtCgz1XLL7j8IP1fGw+m00nmyagGjOwYgJ/pKr+B54hhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=i7/urD58TgW9UOX48RoY8M2f0yC9Ik0zq4dOzinpvZwbnHolfcE6DKL0U0wAFyFVyheUTFYrWrEiuCcnKh98+2T4hsUr/b46FHtM8Yvvdy0yunoMBacQl9uwtlWGII2fJvrazislXjSC4wBS1i14HC1fsOZj8eAZ6jsx9Ffh3fU= Received: by 10.78.200.20 with SMTP id x20mr753619huf.1185544073243; Fri, 27 Jul 2007 06:47:53 -0700 (PDT) Received: by 10.78.97.18 with HTTP; Fri, 27 Jul 2007 06:47:53 -0700 (PDT) Message-ID: <3bbf2fe10707270647k434116a2tad4a54a0d71567e5@mail.gmail.com> Date: Fri, 27 Jul 2007 15:47:53 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Peter Wemm" In-Reply-To: <46A9C437.1080504@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070721174631.S561@10.0.0.1> <20070722114846.GA97996@rulez.sk> <20070722121631.GA8336@rulez.sk> <200707261750.19994.peter@wemm.org> <46A9C437.1080504@FreeBSD.org> X-Google-Sender-Auth: cfe9b4dac49e34a4 Cc: Milos Vyletel , current@freebsd.org Subject: Re: ULE status, invalid load, buildkernel times. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 13:47:56 -0000 2007/7/27, Attilio Rao : > Peter Wemm wrote: > > On Sunday 22 July 2007, Milos Vyletel wrote: > >> On Sun, Jul 22, 2007 at 01:48:46PM +0200, Milos Vyletel wrote: > > [...] > >>> No problem, > >>> > >>> I've extracted it and made a patch. If someone is intrested, it's > >>> on > >>> > >>> http://rulez.sk/~mv/cpu.patch > >> Well, i've just updated my kernel and it paniced right after > >> identifying cpu. > >> > >> CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2205.01-MHz > >> K8-class CPU) Origin = "AuthenticAMD" Id = 0x20f32 Stepping = 2 > >> > >> Features=0x178bfbff >> PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > >> Features2=0x1 > >> AMD Features=0xe2500800 > >> AMD Features2=0x3 > >> Cores per package: 2 > >> usable memory = 3211776000 (3062 MB) > >> avail memory = 3105628160 (2961 MB) > >> kernel trap 12 with interrupts disabled > >> > >> > >> Fatal trap 12: page fault while in kernel mode > >> cpuid = 0; apic id = 00 > >> fault virtual address = 0x310 > >> fault code = supervisor read data, page not present > >> instruction pointer = 0x8:0xffffffff8033953c > >> stack pointer = 0x10:0xffffffff80855c70 > >> frame pointer = 0x10:0xffffffff80855c80 > >> code segment = base 0x0, limit 0xfffff, type 0x1b > >> = DPL 0, pres 1, long 1, def32 0, gran 1 > >> processor eflags = resume, IOPL = 0 > >> current process = 0 () > >> > >> this is output from from dmesg. > >> > >> Thanks for suggestions. > >> Milos > > > > Unfortunately this isn't much help. What would be useful would be to > > get a backtrace. If you're not running GENERIC, a copy of your kernel > > config would be useful. Any other patches? > > The patch is not going to work as the slot for SI_ORDER_SECOND was > alredy held by kern/subr_smp.c::mp_start() function. > > Could you please try this comprehensive patch? > It has a fix for the mp_start / lapic_init confusion and some tricks > with CNXT-ID bit which should exactly identify HTT: > http://people.freebsd.org/~attilio/machdep_lapic.diff > > I have still to stress test it, so please use caution. I will update > soon if I will have more information (a 'work for me' / 'don't work for > me' would be very appreciated though). For what can I see it works for me and for 2 users which alredy tested it (which were experiencing problems recently). Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein