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


Groups > linux.kernel > #1491614

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

From Reza Arbab <arbab@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 5/5] mm: enable CONFIG_MOVABLE_NODE on powerpc
Date 2016-09-27 02:20 +0200
Message-ID <slOhP-2ju-9@gated-at.bofh.it> (permalink)
References <slmvf-1Fh-7@gated-at.bofh.it> <slmvf-1Fh-21@gated-at.bofh.it> <slLtE-wZ-11@gated-at.bofh.it>
Organization IBM Linux Technology Center

Show all headers | View raw


On Tue, Sep 27, 2016 at 07:15:41AM +1000, Benjamin Herrenschmidt wrote:
>What is that business with a command line argument ? Do that mean that
>we'll need some magic command line argument to properly handle LPC memory
>on CAPI devices or GPUs ? If yes that's bad ... kernel arguments should
>be a last resort.

Well, movable_node is just a boolean, meaning "allow nodes which contain 
only movable memory". It's _not_ like "movable_node=10,13-15,17", if 
that's what you were thinking.

>We should have all the information we need from the device-tree.
>
>Note also that we shouldn't need to create those nodes at boot time,
>we need to add the ability to create the whole thing at runtime, we may know
>that there's an NPU with an LPC window in the system but we won't know if it's
>used until it is and for CAPI we just simply don't know until some PCI device
>gets turned into CAPI mode and starts claiming LPC memory...

Yes, this is what is planned for, if I'm understanding you correctly.

In the dt, the PCI device node has a phandle pointing to the memory 
node. The memory node describes the window into which we can hotplug at 
runtime.

-- 
Reza Arbab

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