public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* OF tree flattening.
@ 2006-03-15 15:10 David Updegraff
  0 siblings, 0 replies; only message in thread
From: David Updegraff @ 2006-03-15 15:10 UTC (permalink / raw)
  To: linuxppc-embedded

Hi.

When OF device tree is flattened, the resultant struct has pointers into
the 'initial_boot_params' area.

I think that area needs 'reserving', since the text of various
properties are contained therein.

One could perhaps argue that the BootRom should do that, in the provided
OF-tree reserve maps... but if we're gonna keep pointers into the area,
seems we should protect it.  Adding a
--------
lmb_reserve(__pa(initial_boot_params), initial_boot_params->totalsize);
------------
to early_init_devtree() worked for me.

There is of course then the problem alluded to in
kdump_move_device_tree(), that then this old DT should be un-reserved..
   I don't have a suggestion for that problem; hope some of you do?

thnx.

-dbu.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-15 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-15 15:10 OF tree flattening David Updegraff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox