Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1483613 > unrolled thread
| Started by | Reza Arbab <arbab@linux.vnet.ibm.com> |
|---|---|
| First post | 2016-09-14 22:10 +0200 |
| Last post | 2016-09-21 08:00 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-14 22:10 +0200
Re: [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node Balbir Singh <bsingharora@gmail.com> - 2016-09-19 14:00 +0200
Re: [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-21 08:00 +0200
| From | Reza Arbab <arbab@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-09-14 22:10 +0200 |
| Subject | [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node |
| Message-ID | <shoFk-5qB-37@gated-at.bofh.it> |
Remove the check which prevents us from hotplugging into an empty node.
This limitation has been questioned before [1], and judging by the
response, there doesn't seem to be a reason we can't remove it. No issues
have been found in light testing.
[1] http://lkml.kernel.org/r/CAGZKiBrmkSa1yyhbf5hwGxubcjsE5SmkSMY4tpANERMe2UG4bg@mail.gmail.com
http://lkml.kernel.org/r/20160511215051.GF22115@arbab-laptop.austin.ibm.com
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
---
arch/powerpc/mm/numa.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 75b9cd6..d7ac419 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1121,7 +1121,7 @@ static int hot_add_node_scn_to_nid(unsigned long scn_addr)
int hot_add_scn_to_nid(unsigned long scn_addr)
{
struct device_node *memory = NULL;
- int nid, found = 0;
+ int nid;
if (!numa_enabled || (min_common_depth < 0))
return first_online_node;
@@ -1137,17 +1137,6 @@ int hot_add_scn_to_nid(unsigned long scn_addr)
if (nid < 0 || !node_online(nid))
nid = first_online_node;
- if (NODE_DATA(nid)->node_spanned_pages)
- return nid;
-
- for_each_online_node(nid) {
- if (NODE_DATA(nid)->node_spanned_pages) {
- found = 1;
- break;
- }
- }
-
- BUG_ON(!found);
return nid;
}
--
1.8.3.1
[toc] | [next] | [standalone]
| From | Balbir Singh <bsingharora@gmail.com> |
|---|---|
| Date | 2016-09-19 14:00 +0200 |
| Subject | Re: [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node |
| Message-ID | <sj5oS-4Xz-9@gated-at.bofh.it> |
| In reply to | #1483613 |
On 15/09/16 06:06, Reza Arbab wrote: > Remove the check which prevents us from hotplugging into an empty node. > > This limitation has been questioned before [1], and judging by the > response, there doesn't seem to be a reason we can't remove it. No issues > have been found in light testing. > > [1] http://lkml.kernel.org/r/CAGZKiBrmkSa1yyhbf5hwGxubcjsE5SmkSMY4tpANERMe2UG4bg@mail.gmail.com > http://lkml.kernel.org/r/20160511215051.GF22115@arbab-laptop.austin.ibm.com > > Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com> > Acked-by: Balbir Singh <bsingharora@gmail.com> > Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com> > Cc: Bharata B Rao <bharata@linux.vnet.ibm.com> > --- > arch/powerpc/mm/numa.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > I presume you've tested with CONFIG_NODES_SHIFT of 8 (255 nodes?) Balbir Singh.
[toc] | [prev] | [next] | [standalone]
| From | Reza Arbab <arbab@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-09-21 08:00 +0200 |
| Subject | Re: [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node |
| Message-ID | <sjIJz-4YC-9@gated-at.bofh.it> |
| In reply to | #1486412 |
On Mon, Sep 19, 2016 at 09:53:49PM +1000, Balbir Singh wrote: >I presume you've tested with CONFIG_NODES_SHIFT of 8 (255 nodes?) Oh yes, definitely. The large number of possible nodes does not come into play here. -- Reza Arbab
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web