* [PATCH] powerpc: minor fix of numa message
@ 2006-09-14 15:17 Geoff Levand
2006-09-15 1:04 ` Michael Ellerman
0 siblings, 1 reply; 3+ messages in thread
From: Geoff Levand @ 2006-09-14 15:17 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev, anton
This is a very minor fix that effects no current system. The NUMA startup
message values for 'Top of RAM' and 'Memory hole size' were reported
incorrectly if more than one lmb region was added.
A comment in the lmb code states that lmb_analyze() must be called before
lmb_phys_mem_size().
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
Index: cell--common--4/arch/powerpc/mm/numa.c
===================================================================
--- cell--common--4.orig/arch/powerpc/mm/numa.c
+++ cell--common--4/arch/powerpc/mm/numa.c
@@ -483,10 +483,14 @@
static void __init setup_nonnuma(void)
{
- unsigned long top_of_ram = lmb_end_of_DRAM();
- unsigned long total_ram = lmb_phys_mem_size();
+ unsigned long top_of_ram;
+ unsigned long total_ram;
unsigned int i;
+ lmb_analyze();
+ top_of_ram = lmb_end_of_DRAM();
+ total_ram = lmb_phys_mem_size();
+
printk(KERN_DEBUG "Top of RAM: 0x%lx, Total RAM: 0x%lx\n",
top_of_ram, total_ram);
printk(KERN_DEBUG "Memory hole size: %ldMB\n",
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] powerpc: minor fix of numa message
2006-09-14 15:17 [PATCH] powerpc: minor fix of numa message Geoff Levand
@ 2006-09-15 1:04 ` Michael Ellerman
2006-09-16 17:35 ` Geoff Levand
0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2006-09-15 1:04 UTC (permalink / raw)
To: Geoff Levand; +Cc: linuxppc-dev, paulus, anton
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
On Thu, 2006-09-14 at 08:17 -0700, Geoff Levand wrote:
> This is a very minor fix that effects no current system. The NUMA startup
> message values for 'Top of RAM' and 'Memory hole size' were reported
> incorrectly if more than one lmb region was added.
>
> A comment in the lmb code states that lmb_analyze() must be called before
> lmb_phys_mem_size().
But we've already called it in early_init_devtree()?
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: minor fix of numa message
2006-09-15 1:04 ` Michael Ellerman
@ 2006-09-16 17:35 ` Geoff Levand
0 siblings, 0 replies; 3+ messages in thread
From: Geoff Levand @ 2006-09-16 17:35 UTC (permalink / raw)
To: michael; +Cc: linuxppc-dev, paulus, anton
Michael Ellerman wrote:
> On Thu, 2006-09-14 at 08:17 -0700, Geoff Levand wrote:
>> This is a very minor fix that effects no current system. The NUMA startup
>> message values for 'Top of RAM' and 'Memory hole size' were reported
>> incorrectly if more than one lmb region was added.
>>
>> A comment in the lmb code states that lmb_analyze() must be called before
>> lmb_phys_mem_size().
>
> But we've already called it in early_init_devtree()?
Yes, of course you are correct. Updated patch follows.
-Geoff
This is a very minor comment change to the powerpc lbm code reflect current
usage.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
Index: cell--common--4/arch/powerpc/mm/lmb.c
===================================================================
--- cell--common--4.orig/arch/powerpc/mm/lmb.c
+++ cell--common--4/arch/powerpc/mm/lmb.c
@@ -285,7 +285,9 @@
return base;
}
-/* You must call lmb_analyze() before this. */
+/* You must call lmb_analyze() sometime before this, typcally just after
+ * adding regions.
+ */
unsigned long __init lmb_phys_mem_size(void)
{
return lmb.memory.size;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-16 17:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 15:17 [PATCH] powerpc: minor fix of numa message Geoff Levand
2006-09-15 1:04 ` Michael Ellerman
2006-09-16 17:35 ` Geoff Levand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).