From owner-freebsd-current@FreeBSD.ORG Fri Jul 27 10:09:52 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 82BCC16A41A for ; Fri, 27 Jul 2007 10:09:52 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 3EBB113C45D for ; Fri, 27 Jul 2007 10:09:52 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so632640wxd for ; Fri, 27 Jul 2007 03:09:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=jtGg/bEFZu5WUdxwKTMBO7ugwvd/ttre46QxpTQJceFr1UxntR6wxWCTVHX5iid5kVfyookzjLgNDPX0fYWiIxgKQ2lCVg8pRgITB1zaHa3RgKs/Hqd7zfk6NMw4YrMfvYvGvUC5Vp0UhcALe1GDJ/pheEnqDVHc+haB5vlaUjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=A1RgE1acsCC6xqvMG6tfpDkPOx10ioQlhx6uswVCFFR+Fi26J+CFKXECDgqyFKzLGbQkLrWJDdYzHuEuvmYY3CPSWyMVccqG1W7RGvdoSGX6KHjuSzG81SoWLS43qNCYQtK1gzl/veiVLZFkwn3s6pteod/KW61LSakFf4qCRvw= Received: by 10.78.201.10 with SMTP id y10mr713673huf.1185530990404; Fri, 27 Jul 2007 03:09:50 -0700 (PDT) Received: from ?172.31.5.25? ( [89.97.252.178]) by mx.google.com with ESMTPS id 37sm1426490hua.2007.07.27.03.09.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Jul 2007 03:09:50 -0700 (PDT) Message-ID: <46A9C437.1080504@FreeBSD.org> Date: Fri, 27 Jul 2007 12:08:55 +0200 From: Attilio Rao User-Agent: Thunderbird 1.5 (X11/20060526) MIME-Version: 1.0 To: Peter Wemm References: <20070721174631.S561@10.0.0.1> <20070722114846.GA97996@rulez.sk> <20070722121631.GA8336@rulez.sk> <200707261750.19994.peter@wemm.org> In-Reply-To: <200707261750.19994.peter@wemm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Attilio Rao 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 Reply-To: attilio@FreeBSD.org 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 10:09:52 -0000 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). Thanks, Attilio