Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757869AbcLBJNu (ORCPT ); Fri, 2 Dec 2016 04:13:50 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35642 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbcLBJNq (ORCPT ); Fri, 2 Dec 2016 04:13:46 -0500 Subject: Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support To: Scott Branden , Arnd Bergmann , Russell King , Catalin Marinas , Will Deacon , Ard Biesheuvel , Mark Rutland , Xishi Qiu References: <1480637999-4320-1-git-send-email-scott.branden@broadcom.com> Cc: BCM Kernel Feedback , Tang Chen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrea Reale2 , Kostas Katrinis , Christian Pinto From: Maciej Bielski Message-ID: <18021c70-a4a0-3007-c861-82ede74f965e@virtualopensystems.com> Date: Fri, 2 Dec 2016 10:13:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1480637999-4320-1-git-send-email-scott.branden@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 48 Hello, Recently we have announced our effort on that: https://lkml.org/lkml/2016/11/17/49 For now we have a working solution for hotplug and we are performing code cleanup to push the patches soon. BR, On 02/12/2016 01:19, Scott Branden wrote: > This patchset is sent for comment to add memory hotplug support for ARM64 > based platforms. It follows hotplug code added for other architectures > in the linux kernel. > > I tried testing the memory hotplug feature following documentation from > Documentation/memory-hotplug.txt. I don't think it is working as expected > - see below: > > To add memory to the system I did the following: > echo 0x400000000 > /sys/devices/system/memory/probe > > The memory is displayed as system ram: > cat /proc/iomem: > 74000000-77ffffff : System RAM > 74080000-748dffff : Kernel code > 74950000-749d2fff : Kernel data > 400000000-43fffffff : System RAM > > But does not seem to be added to the kernel memory. > /proc/meminfo did not change. > > What else needs to be done so the memory is added to the kernel memory > pool for normal allocation? > > Scott Branden (2): > arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, > MEMORY_PROBE > arm64: defconfig: enable MEMORY_HOTPLUG config options > > arch/arm64/Kconfig | 10 ++++++++++ > arch/arm64/configs/defconfig | 3 +++ > arch/arm64/mm/init.c | 42 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 55 insertions(+) > -- Maciej Bielski