From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tFMTh6ql0zDvdJ for ; Fri, 11 Nov 2016 12:17:28 +1100 (AEDT) Received: by mail-pf0-x242.google.com with SMTP id i88so333626pfk.2 for ; Thu, 10 Nov 2016 17:17:28 -0800 (PST) Subject: Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory To: Reza Arbab , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Andrew Morton , Rob Herring , Frank Rowand , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" References: <1478562276-25539-1-git-send-email-arbab@linux.vnet.ibm.com> <1478562276-25539-5-git-send-email-arbab@linux.vnet.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, devicetree@vger.kernel.org, Bharata B Rao , Nathan Fontenot , Stewart Smith , Alistair Popple , "Aneesh Kumar K.V" , linux-kernel@vger.kernel.org From: Balbir Singh Message-ID: <2627373d-b90c-10f6-90b6-2ee74029b74f@gmail.com> Date: Fri, 11 Nov 2016 12:17:18 +1100 MIME-Version: 1.0 In-Reply-To: <1478562276-25539-5-git-send-email-arbab@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/11/16 10:44, Reza Arbab wrote: > When movable nodes are enabled, any node containing only hotpluggable > memory is made movable at boot time. > > On x86, hotpluggable memory is discovered by parsing the ACPI SRAT, > making corresponding calls to memblock_mark_hotplug(). > > If we introduce a dt property to describe memory as hotpluggable, > configs supporting early fdt may then also do this marking and use > movable nodes. > > Signed-off-by: Reza Arbab > --- Tested-by: Balbir Singh I tested this with a custom device tree and it worked quite well for me. It also means that the guest and bare-metal have two different mechanisms of marking something as hotpluggable. But given that your patch enables all architectures using OF, it might be worth it. Balbir Singh.