<br>
<br><font size=2><tt>linuxppc-dev-bounces+hbabu=us.ibm.com@ozlabs.org wrote
on 04/03/2006 10:40:48 PM:<br>
<br>
> On Mon, 2006-04-03 at 11:18 -0700, Haren Myneni wrote:<br>
> > Basically, kexec-tools looks the platform property to determine
whether <br>
> > to read tce-base, tce-size and htab-* properties. The attached
patch <br>
> > find out the platform info based on /proc/device-tree/chosen/htab-base
<br>
> > property. Not tested yet.<br>
> <br>
> Why don't we get rid of the platform variable entirely in kexec-ppc64.c,<br>
> if the tce-* and htab-* properties are there, then we read them, if
not<br>
> we don't.</tt></font>
<br><font size=2><tt><br>
> <br>
> There's also:<br>
> <br>
> if (platform == PLATFORM_PSERIES) {<br>
> if (rmo_top > 0x30000000UL)<br>
> rmo_top =
0x30000000UL;<br>
> }<br>
> <br>
> I'm not sure where that number comes from, perhaps we need to export
the<br>
> RMO value like we do for the htab?</tt></font>
<br>
<br><font size=2><tt>Yes, we can remove this PLATFORM_* and read these
properties if exists. I believe, this large number is copied from prom_init.c.
I am not sure whether exporting rmo_top is needed since it is always the
size of first memory node unless the size is greater than 0x30000000UL.
PLATFORM_PSERIES is not needed anyway for this comparison.</tt></font>
<br>
<br><font size=2><tt><br>
> <br>
> While we're there that code could use a function to read<br>
> a /proc/device-tree file and do error handling, there's a lot of<br>
> duplicate code at the moment.<br>
> </tt></font>
<br><font size=2><tt>Yes, there is some cleanup needed in kexec-tools.</tt></font>
<br>
<br><font size=2><tt>Thanks</tt></font>
<br><font size=2><tt>Haren</tt></font>
<br><font size=2><tt><br>
> cheers<br>
> <br>
> -- <br>
> Michael Ellerman<br>
> IBM OzLabs<br>
> <br>
> wwweb: http://michael.ellerman.id.au<br>
> phone: +61 2 6212 1183 (tie line 70 21183)<br>
> <br>
> We do not inherit the earth from our ancestors,<br>
> we borrow it from our children. - S.M.A.R.T Person<br>
> <br>
> _______________________________________________<br>
> Linuxppc-dev mailing list<br>
> Linuxppc-dev@ozlabs.org<br>
> https://ozlabs.org/mailman/listinfo/linuxppc-dev<br>
</tt></font>