From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 21 21:44:44 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17FFE106566B for ; Mon, 21 Mar 2011 21:44:44 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 8499C8FC16 for ; Mon, 21 Mar 2011 21:44:42 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id p2LLNolV042390; Mon, 21 Mar 2011 22:23:51 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <4D87C1E6.2000107@fgznet.ch> Date: Mon, 21 Mar 2011 22:23:50 +0100 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20110321215101.6e6a71a4.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110321215101.6e6a71a4.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-ppc@freebsd.org Subject: Re: FreeBSD 8.2-release: SMP? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 21:44:44 -0000 On 21.03.11 21:51, Torfinn Ingolfsen wrote: > Hello, > > I have FreeBSD 8.2-release installed on my G5 Quad: > root@kg-g5# uname -a > FreeBSD kg-g5.kg4.no 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Feb 19 01:18:47 UTC 2011 root@xserve.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC powerpc > > And I wanted to build a SMP kernel, so I used this kernel config file: > root@kg-g5# more /sys/powerpc/conf/G5 > # > # G5 - GENERIC kernel, plus SMP > # based on > # GENERIC -- Generic kernel configuration file for FreeBSD/powerpc > # > include GENERIC > > ident G5-GENERIC > > options SMP > > The kernel builds and installs ok, I used > cd /usr/src > make buildkernel KERNCONF=G5 > make installkernel KERNCONF=G5 > > However, when I boot the new kernel, I get this: > avail memory = 1996509184 (1904 MB) > SMP: cpu2: skipped -- ID out of range > SMP: cpu3: skipped -- ID out of range > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0: dev=ff89d680 (BSP) > cpu1: dev=ff89eb70 > panic: Built bad topology at 0x866aec. CPU mask 0xF != 0x3 > cpuid = 0 > KDB stack backtrace: > #0 0x309040 at panic+0x1a4 > #1 0x3503ac at smp_topo+0x12c > #2 0x3335e8 at sched_setup+0x48 > #3 0x2af9cc at mi_startup+0x134 > #4 0x100198 at btext+0x98 > > Am I missing something in my kernel config file? No, this is not on 8.2 yet. See here: http://svn.freebsd.org/viewvc/base?view=revision&revision=212170 You might try to apply the above to 8.2 and rebuild your kernel. Otherwise -CURRENT is calling :) Gruss, Andreas