Skip to content

Commit

Permalink
[POWERPC] PS3: Fix memory hotplug
Browse files Browse the repository at this point in the history
A change was made to walk_memory_resource() in commit
4b119e2 that added a
check of find_lmb().  Add the coresponding lmb_add()
call to ps3_mm_add_memory() so that that check will
succeed.

This fixes the condition where the PS3 boots up with
only the 128 MiB of boot memory, and doesn't see the
other 128MiB that is available.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed May 23, 2008
1 parent 75d3bce commit ecc240f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/ps3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ static int __init ps3_mm_add_memory(void)
return result;
}

lmb_add(start_addr, map.r1.size);
lmb_analyze();

result = online_pages(start_pfn, nr_pages);

if (result)
Expand Down

0 comments on commit ecc240f

Please sign in to comment.