From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Paul Mackerras <paulus@samba.org>
Cc: davem@davemloft.net, "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: PS3: Fix memory hotplug
Date: Wed, 21 May 2008 11:31:36 -0700 [thread overview]
Message-ID: <48346A88.40608@am.sony.com> (raw)
In-Reply-To: <18476.1203.459931.530585@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
> Benjamin Herrenschmidt writes:
>
>> When you do an lmb_add you should probably also do an lmb_analyze to
>> update the total memory count etc...
>>
>> That leads to some interesting issues such as the LMB stuff wasn't
>> really meant to be dynamically modified after boot, and thus the kernel
>> has no locks in there. That can be an issue...
>>
>> Paul, any thoughts here ? Should we add a lock ? That would mean being
>> careful as the LMB stuff can be called very early, and spinlock wants
>> things like PACA and possibly lockdep to be around..
>
> Either that, or we give in and use iomem_resource to track where
> system RAM is, as well as the other things in the physical address
> space, like other architectures do...
The generic hot plug routines already use iomem_resource
(mm/memory_hotplug.c). Both __add_pages() and add_memory()
add the new mem to iomem_resource, and so it seems there
is no need for the powerpc specific walk_memory_resource(),
since the generic one does its check with iomem_resource.
I need to look a little closer at how the pSeries does
its memory hot plug, but I think removing the powerpc
specific walk_memory_resource() won't effect pSeries since
it seems to have its own hot plug routines that do their
own thing entirely with lmb.
It doesn't seem that it would be difficult to make the
pSeries hot plug code to use iomem_resource, but some of the
generic hot plug routines cannot be called until fairly
late in the startup.
The other thing to do then would be to change the other
powerpc startup code to use iomem_resource instead of lmb.
-Geoff
next prev parent reply other threads:[~2008-05-21 18:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 16:23 PS3: Fix memory hotplug Geoff Levand
2008-05-15 6:48 ` Benjamin Herrenschmidt
2008-05-15 6:51 ` Benjamin Herrenschmidt
2008-05-15 7:02 ` David Miller
2008-05-20 0:40 ` [rfc] [patch] LMB: Add basic spin locking to lmb Geoff Levand
2008-05-20 0:40 ` Geoff Levand
2008-05-20 0:55 ` [patch v2] " Geoff Levand
2008-05-20 0:55 ` Geoff Levand
2008-05-20 2:22 ` David Miller
2008-05-20 2:22 ` David Miller
2008-05-20 2:32 ` Benjamin Herrenschmidt
2008-05-20 2:32 ` Benjamin Herrenschmidt
2008-05-20 2:34 ` David Miller
2008-05-20 2:34 ` David Miller
2008-05-15 9:38 ` PS3: Fix memory hotplug Paul Mackerras
2008-05-21 18:31 ` Geoff Levand [this message]
2008-05-15 20:09 ` [patch v2] " Geoff Levand
2008-05-21 16:41 ` Geoff Levand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48346A88.40608@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=davem@davemloft.net \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.