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


Groups > linux.kernel > #1491374

Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc

From "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc
Date 2016-09-26 17:50 +0200
Message-ID <slGki-5BO-9@gated-at.bofh.it> (permalink)
References <slmvf-1Fh-7@gated-at.bofh.it> <slmvf-1Fh-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Reza Arbab <arbab@linux.vnet.ibm.com> writes:

> To create a movable node, we need to hotplug all of its memory into
> ZONE_MOVABLE.
>
> Note that to do this, auto_online_blocks should be off. Since the memory
> will first be added to the default zone, we must explicitly use
> online_movable to online.
>
> Because such a node contains no normal memory, can_online_high_movable()
> will only allow us to do the onlining if CONFIG_MOVABLE_NODE is set.
> Enable the use of this config option on PPC64 platforms.
>

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>

> Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
> ---
>  Documentation/kernel-parameters.txt | 2 +-
>  mm/Kconfig                          | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
> index a4f4d69..3d8460d 100644
> --- a/Documentation/kernel-parameters.txt
> +++ b/Documentation/kernel-parameters.txt
> @@ -2344,7 +2344,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
>  			that the amount of memory usable for all allocations
>  			is not too small.
>
> -	movable_node	[KNL,X86] Boot-time switch to enable the effects
> +	movable_node	[KNL,X86,PPC] Boot-time switch to enable the effects
>  			of CONFIG_MOVABLE_NODE=y. See mm/Kconfig for details.
>
>  	MTD_Partition=	[MTD]
> diff --git a/mm/Kconfig b/mm/Kconfig
> index be0ee11..4b19cd3 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -153,7 +153,7 @@ config MOVABLE_NODE
>  	bool "Enable to assign a node which has only movable memory"
>  	depends on HAVE_MEMBLOCK
>  	depends on NO_BOOTMEM
> -	depends on X86_64
> +	depends on X86_64 || PPC64
>  	depends on NUMA
>  	default n
>  	help
> -- 
> 1.8.3.1

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


Thread

[PATCH v3 0/5] powerpc/mm: movable hotplug memory nodes Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
  [PATCH v3 2/5] drivers/of: do not add memory for unavailable nodes Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
  [PATCH v3 4/5] powerpc/mm: restore top-down allocation when using movable_node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
    Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when using movable_node "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-09-26 17:50 +0200
      Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when  using movable_node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-26 22:50 +0200
    Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when  using movable_node Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2016-09-26 23:20 +0200
      Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when  using movable_node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-27 02:20 +0200
        Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when using  movable_node Balbir Singh <bsingharora@gmail.com> - 2016-10-04 02:50 +0200
          Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when  using movable_node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-10-04 22:30 +0200
  [PATCH v3 3/5] powerpc/mm: allow memory hotplug into a memoryless node Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
  [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
    Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-09-26 17:50 +0200
    Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2016-09-26 23:20 +0200
      Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-27 02:20 +0200
  [PATCH v3 1/5] drivers/of: introduce of_fdt_is_available() Reza Arbab <arbab@linux.vnet.ibm.com> - 2016-09-25 20:40 +0200
    Re: [PATCH v3 1/5] drivers/of: introduce of_fdt_is_available() Rob Herring <robh+dt@kernel.org> - 2016-10-03 17:30 +0200

csiph-web