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

Reza Arbab arbab at linux.vnet.ibm.com
Fri Aug 11 06:38:48 AEST 2017


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:
>>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



More information about the Linuxppc-dev mailing list