Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2009 00:15:05 -0600
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: 8.0-RC2 on Rackmac3,1 - fatal kernel trap
Message-ID:  <4AFA5669.1010307@freebsd.org>
In-Reply-To: <4AFA47E1.3080206@freebsd.org>
References:  <aff3f9930911041456o732ea890n6cda52783e8db286@mail.gmail.com> <4AF219DF.2040309@freebsd.org> <B06424FF-FE87-441E-A8C3-ED401A8561FE@gmail.com> <aff3f9930911060851l12e52e87n653b8f96ba8cb7d7@mail.gmail.com> <4AF46399.20803@freebsd.org> <aff3f9930911061219g61be95a9l40884c854c7b4971@mail.gmail.com> <4AF575D2.5020101@freebsd.org> <4AF577F6.2080708@freebsd.org> <4AF90970.4080708@freebsd.org> <4AF9E9F5.8000207@freebsd.org> <4AFA3E5C.4060003@freebsd.org> <4AFA47E1.3080206@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AFA5669.1010307>