From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Reza Arbab <arbab@linux.vnet.ibm.com>,
Bharata B Rao <bharata@linux.vnet.ibm.com>,
Paul Mackerras <paulus@ozlabs.org>
Cc: linuxppc-dev@ozlabs.org, nfont@linux.vnet.ibm.com
Subject: Re: [FIX PATCH v0] powerpc: Fix memory unplug failure on radix guest
Date: Fri, 11 Aug 2017 14:07:51 +0530 [thread overview]
Message-ID: <87y3qqxzxc.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170810165019.unrvv6id2daqazju@arbab-laptop.localdomain>
Reza Arbab <arbab@linux.vnet.ibm.com> writes:
> On Thu, Aug 10, 2017 at 02:53:48PM +0530, Bharata B Rao wrote:
>>diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
>>index f830562..24ecf53 100644
>>--- a/arch/powerpc/kernel/prom.c
>>+++ b/arch/powerpc/kernel/prom.c
>>@@ -524,6 +524,7 @@ static int __init early_init_dt_scan_drconf_memory(unsigned long node)
>> size = 0x80000000ul - base;
>> }
>> memblock_add(base, size);
>>+ memblock_mark_hotplug(base, size);
>> } while (--rngs);
>> }
>> memblock_dump_all();
>
> Doing this has the effect of putting all the affected memory into
> ZONE_MOVABLE. See find_zone_movable_pfns_for_nodes(). This means no
> kernel allocations can occur there. Is that okay?
>
So the thinking here is any memory identified via ibm,dynamic-memory can
be hot removed later. Hence the need to add them lmb size, because our
hotplug framework remove them in lmb size. If we want to support
hotunplug, then we will have to make sure kernel allocation doesn't
happen in that region right ?
With the above i would consider not marking it hotplug was a bug before
?
-aneesh
next prev parent reply other threads:[~2017-08-11 8:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 9:23 [FIX PATCH v0] powerpc: Fix memory unplug failure on radix guest Bharata B Rao
2017-08-10 16:50 ` Reza Arbab
2017-08-10 20:38 ` Reza Arbab
2017-08-11 8:37 ` Aneesh Kumar K.V [this message]
2017-08-11 16:28 ` Reza Arbab
2017-08-11 8:42 ` Aneesh Kumar K.V
2017-08-17 9:58 ` Bharata B Rao
2017-09-01 6:53 ` Bharata B Rao
2017-09-01 14:11 ` Nathan Fontenot
2017-09-05 4:20 ` Bharata B Rao
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=87y3qqxzxc.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=arbab@linux.vnet.ibm.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=nfont@linux.vnet.ibm.com \
--cc=paulus@ozlabs.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 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).