Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1534623

Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support

From Scott Branden <scott.branden@broadcom.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support
Date 2016-12-02 03:40 +0100
Message-ID <sJLVv-5Ru-7@gated-at.bofh.it> (permalink)
References <sJJTH-4xc-5@gated-at.bofh.it> <sJLiN-5hh-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Xishi,

Thanks for the reply - please see comments below.

On 16-12-01 05:49 PM, Xishi Qiu wrote:
> On 2016/12/2 8: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?
>>
>
> Hi Scott,
>
> Do you mean it still don't support hod-add after apply this patchset?

After applying the patch it appears to partially support hot-add. 
Please let me know if you think it is working as expected?

The memory probe functions in that the memory is registered with the 
system and shows up in /proc/iomem.  But, the memory is not available in 
/proc/meminfo.  Do you think something else needs to be adjusted for 
ARM64 to hotadd the memory

I just found another clue:
under /sys/devices/system/memory I only see one memory entry (before or 
after I try to hotadd additional memory).

/sys/devices/system/memory # ls
auto_online_blocks  memory0            uevent
block_size_bytes    probe

In arch/arm64/include/asm/sparsemem.h if I change SECTION_SIZE_BITS from 
30 to 28 and recompile I get the following:
/sys/devices/system/memory # ls
auto_online_blocks  memory7            uevent
block_size_bytes    probe


In arch/arm64/include/asm/sparsemem.h if I change SECTION_SIZE_BITS from 
30 to 27 and recompile I get the following:
/sys/devices/system/memory # ls
auto_online_blocks  memory14            uevent
block_size_bytes    probe

If looks to me like something is not working properly in the ARM64 
implementation.  I should expect to see multiple memoryX entries under 
/sys/devices/system/memory?



>
> Thanks,
> Xishi Qiu
>
>> 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(+)
>>
>
>
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Scott Branden <scott.branden@broadcom.com> - 2016-12-02 01:30 +0100
  [RFC PATCH 2/2] arm64: defconfig: enable MEMORY_HOTPLUG config options Scott Branden <scott.branden@broadcom.com> - 2016-12-02 01:30 +0100
  [RFC PATCH 1/2] arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE Scott Branden <scott.branden@broadcom.com> - 2016-12-02 01:30 +0100
  Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Xishi Qiu <qiuxishi@huawei.com> - 2016-12-02 03:00 +0100
    Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Scott Branden <scott.branden@broadcom.com> - 2016-12-02 03:40 +0100
      Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Xishi Qiu <qiuxishi@huawei.com> - 2016-12-02 04:20 +0100
        Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Scott Branden <scott.branden@broadcom.com> - 2016-12-07 09:50 +0100
          Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Xishi Qiu <qiuxishi@huawei.com> - 2016-12-07 12:30 +0100
  Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Maciej Bielski <m.bielski@virtualopensystems.com> - 2016-12-02 10:20 +0100
    Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Will Deacon <will.deacon@arm.com> - 2016-12-02 11:50 +0100
      Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Maciej Bielski <m.bielski@virtualopensystems.com> - 2016-12-02 12:00 +0100
        Re: [RFC PATCH 0/2] arm64: memory-hotplug: Add Memory Hotplug support Scott Branden <scott.branden@broadcom.com> - 2016-12-02 18:50 +0100

csiph-web