From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 24 09:16:03 2009 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 E70AE1065673 for ; Fri, 24 Apr 2009 09:16:03 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id ADADD8FC19 for ; Fri, 24 Apr 2009 09:16:02 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n3O9Fkrx031614; Fri, 24 Apr 2009 03:15:48 -0600 Message-Id: <2947A231-BA83-4B57-8D4F-7D2E0D1641AA@semihalf.com> From: Rafal Jaworowski To: Andreas Tobler In-Reply-To: <49F0C0E9.4030701@fgznet.ch> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 24 Apr 2009 11:15:45 +0200 References: <49E76291.4000002@fgznet.ch> <49EFD957.2010605@freebsd.org> <259915AE-12EF-4887-BB81-D955DDD970B3@semihalf.com> <49F0C0E9.4030701@fgznet.ch> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-ppc@freebsd.org Subject: Re: Fatal kernel trap during boot 8.0-CURRENT 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: Fri, 24 Apr 2009 09:16:04 -0000 On 2009-04-23, at 21:26, Andreas Tobler wrote: >> Perhaps the problem is related to an issue we came across while >> working on Efika support. The issue was that the Altivec-specific >> code was executed, due to PCB_VEC being set when it shouldn't >> (Efika has the MPC5200B SoC, which is e300-based). PCB_VEC turned >> out the be set because thread0.td_pcb contained garbage, and our >> problem went away after zeroing the thread0.td_pcb in >> powerpc_init(), similarly to what booke/machdep.c implementation >> does. >> Please try the attached patch and see if it fixes the problem seen >> on iMac G3. > > Bartlomiej, I did try your suggested fix and it looks good. So far I > was not able to reproduce the trap with your fix. While w/o fix I > can nearly every time trigger the trap on a cold boot, not always > though, but in 8 of 10 tries. This fix is now commited to HEAD (r191455). Thank you for testing on your system. Rafal