2.6.15 failure on power4 iSeries
Michael Ellerman
michael at ellerman.id.au
Tue Jan 24 15:08:55 EST 2006
On Tue, 24 Jan 2006 16:18, will schmidt wrote:
> > On my box at least, we're trying to allocate 0 bytes in
> > finish_device_tree(). lmb_alloc() happily does that, and reserves the 0
> > bytes for us. On my machine that reserved region gets coallesced with
> > another and so there's no bug, but perhaps on yours it doesn't get
> > coallesced and eventually it blows up in reserve_bootmem().
> >
> > Prior to benh's n_addrs patch finish_device_tree() wants to allocate 24
> > bytes, whereas with it it allocates 0 (for iSeries). So that's exposed
> > the bug in the lmb code.
>
> I narrowed down the bad lmb entry with size 0 to the finish_device_tree
> code,. so my test tree now contains this..
>
> #ifdef CONFIG_PPC_ISERIES
> end = start = 0;
> #else
> end = start = (unsigned long) __va(lmb_alloc(size, 128));
> #endif
>
> and I boot the rest of the way up. Am not sure what the real fix should
> be, pretty sure this isnt it. :-)
Cool - we both tracked it to the same piece of code, which is always nice :)
I've got a patch that seems to do the trick, I'll post it in a sec.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060124/fc5e4147/attachment.pgp
More information about the Linuxppc64-dev
mailing list