Thread (10 messages) flat view 10 messages, 4 authors, 2017-09-05

Re: [FIX PATCH v0] powerpc: Fix memory unplug failure on radix guest

From: Reza Arbab <hidden>
Date: 2017-08-10 20:38:58

On Thu, Aug 10, 2017 at 11:50:19AM -0500, Reza Arbab wrote:
On Thu, Aug 10, 2017 at 02:53:48PM +0530, Bharata B Rao wrote:
quoted
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?
I should clarify. The behavior change I mention applies when 
movable_node_is_enabled().

-- 
Reza Arbab
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help