From owner-freebsd-ppc@FreeBSD.ORG Wed Nov 11 06:15:09 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 759891065679; Wed, 11 Nov 2009 06:15:09 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 421318FC15; Wed, 11 Nov 2009 06:15:09 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7.0-5.01 32bit (built Feb 19 2009)) id <0KSX00G00LD86J00@smtpauth2.wiscmail.wisc.edu>; Wed, 11 Nov 2009 00:15:08 -0600 (CST) Received: from comporellon.tachypleus.net (adsl-75-50-88-113.dsl.mdsnwi.sbcglobal.net [75.50.88.113]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7.0-5.01 32bit (built Feb 19 2009)) with ESMTPSA id <0KSX007Y5LD6XA20@smtpauth2.wiscmail.wisc.edu>; Wed, 11 Nov 2009 00:15:07 -0600 (CST) Date: Wed, 11 Nov 2009 00:15:05 -0600 From: Nathan Whitehorn In-reply-to: <4AFA47E1.3080206@freebsd.org> To: Peter Grehan Message-id: <4AFA5669.1010307@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=75.50.88.113 X-Spam-PmxInfo: Server=avs-11, Version=5.5.5.374460, Antispam-Engine: 2.7.1.369594, Antispam-Data: 2009.11.11.60328, SenderIP=75.50.88.113 References: <4AF219DF.2040309@freebsd.org> <4AF46399.20803@freebsd.org> <4AF575D2.5020101@freebsd.org> <4AF577F6.2080708@freebsd.org> <4AF90970.4080708@freebsd.org> <4AF9E9F5.8000207@freebsd.org> <4AFA3E5C.4060003@freebsd.org> <4AFA47E1.3080206@freebsd.org> User-Agent: Thunderbird 2.0.0.23 (X11/20090905) Cc: FreeBSD PowerPC ML Subject: Re: 8.0-RC2 on Rackmac3,1 - fatal kernel trap 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: Wed, 11 Nov 2009 06:15:09 -0000 Peter Grehan wrote: > Hi Nathan, > >> Drat. I think this is something inside OF that only applies to CD >> booting, since 64 was more than enough for netbooting the kernel or >> booting from a hard drive, so changes to the loader probably won't >> affect anything. Also, it is now too late to get any changes to this >> code into 8.0, which is unfortunate. I guess the size of the buffer >> just needs to be bumped to 128 (or more?). > > It's due to a bunch of extra allocations needed for the md root fs > image that is loaded pre-boot. > > The allocations can be seen by breaking into the loader just before > boot and issuing a 'memmap'. Lots of 16-page allocations there. OK, that makes sense. It's nice to understand what's going on. >> I'm a little concerned about bloating the kernel here. I think there >> is enough headroom in the stack that it can be moved to the local >> stack frame, so that's a possibility. It can't be allocated >> dynamically, since there is no way to add memory that OF can use at >> that point in the boot process. > > There's no elegant way to do it :( You could claim some pages from > ofw to hold all of the mappings, or even pass off the work back to the > loader and get it to put all of the mappings into metadata, or to at > least pass some pages to you that could be used for the allocation. Yeah, it's just icky. In the meantime, I've put some new ISOs with the number of translation entries bumped again (they should fit yours, finally) at http://people.freebsd.org/~nwhitehorn/9.0-20091111-SNAP. Hopefully your collection of coasters won't grow much larger. -Nathan