[PATCH V6 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-12-01 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V6: -- Simplify of_prop_next_u32 invocation -- Fix some spacing within expressions -- Revise drc_type/drc_name checks in

[PATCH V6 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-12-01 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

[PATCH V6 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-12-01 Thread Michael Bringmann
w property is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

[PATCH V6 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-12-01 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

Re: Resend: [PATCH V5 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-12-01 Thread Michael Bringmann
See below. On 11/30/2017 01:51 PM, Nathan Fontenot wrote: > > > On 11/28/2017 05:07 PM, Michael Bringmann wrote: >> rpadlpar_core.c: Provide parallel routines to search the older device- >> tree properties ("ibm,drc-indexes", "ibm,drc-names", &quo

Re: Resend: [PATCH V5 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-12-01 Thread Michael Bringmann
See below. On 11/30/2017 01:28 PM, Nathan Fontenot wrote: > On 11/28/2017 05:07 PM, Michael Bringmann wrote: >> pseries/drc-info: Provide parallel routines to convert between >> drc_index and CPU numbers at runtime, using the older device-tree >> properties ("ibm,dr

Resend: [PATCH V5 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-11-28 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

Resend: [PATCH V5 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-28 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 in

Resend: [PATCH V5 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-28 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V5: -- Simplify of_prop_next_u32 invocation -- Fix some spacing within arguments --- drivers/pci/hotplug/rpadlpar_core.c |

Resend: [PATCH V5 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-28 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

Resend: [PATCH V5 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-28 Thread Michael Bringmann
w property is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

[PATCH V8 3/3] hotplug/cpu: Fix crash with memoryless nodes

2017-11-28 Thread Michael Bringmann
... arch_update_cpu_topology ... find_cpu_nid ... try_online_node. This patch ensures that the powerpc node will be initialized as early as possible, even if it was memoryless and CPU-less at the point when we are trying to hot-add a new CPU to it. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.

[PATCH V8 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-28 Thread Michael Bringmann
HMC hot-add/hot-remove operations, we have been able to add and remove CPUs to any possible node without failures. HMC operations involve a degree self-serialization, though. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V8: -- Clarify 'resources' as CPUs in

[PATCH V8 1/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-11-28 Thread Michael Bringmann
powerpc/mm/numa.c:initmem_init(). If the "ibm,max-associativity-domains" property is not present at boot, no operation will be performed to define or enable additional nodes, or enable the above 'nodes_and()'. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V8:

[PATCH V8 0/3] powerpc/nodes: Fix issues with memoryless nodes

2017-11-28 Thread Michael Bringmann
powerpc/nodes: Ensure enough nodes avail for operations powerpc/initnodes: Ensure nodes initialized for hotplug hotplug/cpu: Fix crash with memoryless nodes Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (3): powerpc/nodes: Ensure enough nodes

Re: [PATCH V2 0/3] powerpc/hotplug: Fix affinity assoc for LPAR migration

2017-11-28 Thread Michael Bringmann
and assistance. Michael On 11/16/2017 11:50 AM, Michael Bringmann wrote: > The migration of LPARs across Power systems affects many attributes > including that of the associativity of memory blocks and CPUs. The > patches in this set execute when a system is coming up fresh upon a &g

[PATCH V5 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-28 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

[PATCH V5 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-28 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 in

[PATCH V5 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-28 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V5: -- Simplify of_prop_next_u32 invocation -- Fix some spacing within arguments --- drivers/pci/hotplug/rpadlpar_core.c |

[PATCH V5 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-28 Thread Michael Bringmann
w property is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

[PATCH V5 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-11-28 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

Re: [PATCH V7 3/3] hotplug/cpu: Fix crash with memoryless nodes

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:50 AM, Nathan Fontenot wrote: > On 11/16/2017 11:28 AM, Michael Bringmann wrote: >> On powerpc systems with shared configurations of CPUs and memory and >> memoryless nodes at boot, an event ordering problem was observed on >> a SLES12 build platf

Re: RESEND [PATCH V7 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:45 AM, Nathan Fontenot wrote: > On 11/16/2017 11:27 AM, Michael Bringmann wrote: >> On powerpc systems which allow 'hot-add' of CPU, it may occur that >> the new resources are to be inserted into nodes that were not used >> for memory resou

Re: [PATCH V7 1/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-11-27 Thread Michael Bringmann
See below. On 11/22/2017 05:17 AM, Michael Ellerman wrote: > Nathan Fontenot <nf...@linux.vnet.ibm.com> writes: >> On 11/16/2017 11:24 AM, Michael Bringmann wrote: > ... >>> diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c >>> index eb604b3..334a

Re: [PATCH V7 1/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:33 AM, Nathan Fontenot wrote: > > > On 11/16/2017 11:24 AM, Michael Bringmann wrote: >> On powerpc systems which allow 'hot-add' of CPU or memory resources, >> it may occur that the new resources are to be inserted into nodes >> that were n

Re: [PATCH V2 3/3] postmigration/memory: Associativity & ibm,dynamic-memory-v2

2017-11-27 Thread Michael Bringmann
n routine for affinity updates. > > -Nathan > > On 11/16/2017 11:51 AM, Michael Bringmann wrote: >> postmigration/memory: Now apply changes to the associativity of memory >> blocks described by the 'ibm,dynamic-memory-v2' property regarding >> the topology of LPARS i

Re: [PATCH V2 1/3] hotplug/mobility: Apply assoc updates for Post Migration Topo

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:04 AM, Nathan Fontenot wrote: > On 11/16/2017 11:50 AM, Michael Bringmann wrote: >> hotplug/mobility: Recognize more changes to the associativity of >> memory blocks described by the 'ibm,dynamic-memory' and 'cpu' >> properties when processing

Re: Subject: [PATCH V4 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 09:38 AM, Nathan Fontenot wrote: > On 11/16/2017 02:11 PM, Michael Bringmann wrote: >> rpadlpar_core.c: Provide parallel routines to search the older device- >> tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,

Re: [PATCH V4 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 09:35 AM, Nathan Fontenot wrote: > On 11/16/2017 02:11 PM, Michael Bringmann wrote: >> pseries/drc-info: Provide parallel routines to convert between >> drc_index and CPU numbers at runtime, using the older device-tree >> properties ("ibm,dr

[PATCH V3 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-16 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 in

Subject: [PATCH V4 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-16 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V4: -- Rename of_one_drc_info to of_read_drc_info_cell -- Fix some spacing within arguments --- drivers/pci/hotplug/rpadlp

[PATCH V4 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-16 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

[PATCH V4 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-16 Thread Michael Bringmann
w property is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

[PATCH V4 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-11-16 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

Re: RESEND [PATCH V3 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-16 Thread Michael Bringmann
>> + >> +static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, >> +char *drc_type, unsigned int my_index) >> +{ >> +struct property *info; >> +unsigned int entries; >> +struct of_drc_info drc; >> +void *value; > > This should be

[PATCH V2 3/3] postmigration/memory: Associativity & ibm,dynamic-memory-v2

2017-11-16 Thread Michael Bringmann
, the memory block may be removed, added, or updated depending upon the state of the new device tree property and differences from the migrated value of the property. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V2: -- Remove unnecessary spacing changes from patch. -- I

[PATCH V2 2/3] postmigration/memory: Review assoc lookup array changes

2017-11-16 Thread Michael Bringmann
he process of the 're-add', the appropriate entry of the property 'ibm,dynamic-memory' would be updated as well as any other applicable system data structures. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V2: -- Remove unnecessary spacing changes --- arch/powerpc/p

[PATCH V2 1/3] hotplug/mobility: Apply assoc updates for Post Migration Topo

2017-11-16 Thread Michael Bringmann
' operations. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V2: -- Try to improve patch header documentation. --- arch/powerpc/platforms/pseries/hotplug-cpu.c| 64 +++ arch/powerpc/platforms/pseries/hotplug-memory.c |6 ++ arch/p

[PATCH V2 0/3] powerpc/hotplug: Fix affinity assoc for LPAR migration

2017-11-16 Thread Michael Bringmann
as if they have been newly hot-added into the target system. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (3): hotplug/mobility: Apply assoc lookup updates for Post Migration Topo postmigration/memory: Review assoc lookup array changes postmigration/

Re: RESEND [PATCH V3 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-16 Thread Michael Bringmann
See below. On 11/16/2017 11:34 AM, Nathan Fontenot wrote: > On 11/15/2017 12:09 PM, Michael Bringmann wrote: >> pseries/drc-info: Provide parallel routines to convert between >> drc_index and CPU numbers at runtime, using the older device-tree >> properties ("ibm,dr

Re: RESEND [PATCH V3 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-16 Thread Michael Bringmann
On 11/16/2017 11:06 AM, Nathan Fontenot wrote: > On 11/15/2017 12:09 PM, Michael Bringmann wrote: >> Firmware Features: Define new bit flag representing the presence of >> new device tree property "ibm,drc-info". The flag is used to tell >> the front end pro

Re: [PATCH 2/2] powerpc/hotplug: Ensure nodes initialized for hotplug

2017-11-16 Thread Michael Bringmann
>>> + if ((NODE_DATA(nid) == NULL) || + (NODE_DATA(nid)->node_spanned_pages == 0)) { + if (try_online_node(nid)) >>> >>> .. to do something like online a node. >> >> We have changed the function name to 'find_cpu_nid'. > > Ok, but I would still not expect

[PATCH V7 3/3] hotplug/cpu: Fix crash with memoryless nodes

2017-11-16 Thread Michael Bringmann
... arch_update_cpu_topology ... find_cpu_nid ... try_online_node. This patch ensures that the powerpc node will be initialized as early as possible, even if it was memoryless and CPU-less at the point when we are trying to hot-add a new CPU to it. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.

RESEND [PATCH V7 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-16 Thread Michael Bringmann
CPUs to any possible node without failures. HMC operations involve a degree self-serialization, though. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V6: -- Add some needed node initialization to runtime code that maps CPUs based on VPHN associativity -- Add

[PATCH V7 1/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-11-16 Thread Michael Bringmann
powerpc/mm/numa.c:initmem_init(). If the "ibm,max-associativity-domains" property is not present at boot, no operation will be performed to define or enable additional nodes, or enable the above 'nodes_and()'. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V6: -- Remov

[PATCH V7 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-16 Thread Michael Bringmann
To: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Michael Bringmann <m...@linux.vnet.ibm.com> Cc: John Allen <jal...@linux.vnet.ibm.com> Cc: Nathan Fontenot <nf...@linux.vnet.ibm.com> Cc: Tyrel Datwyler <tyr...@linux.vnet.ibm.co

[PATCH V7 0/2] powerpc/nodes: Fix issues with memoryless nodes

2017-11-16 Thread Michael Bringmann
powerpc/nodes: Ensure enough nodes avail for operations powerpc/initnodes: Ensure nodes initialized for hotplug hotplug/cpu: Fix crash with memoryless nodes Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (3): powerpc/nodes: Ensure enough nodes

Re: [PATCH 2/2] powerpc/hotplug: Ensure nodes initialized for hotplug

2017-11-15 Thread Michael Bringmann
Hello: See below. On 10/16/2017 07:54 AM, Michael Ellerman wrote: > Michael Bringmann <m...@linux.vnet.ibm.com> writes: > >> powerpc/hotplug: On systems like PowerPC which allow 'hot-add' of CPU, >> it may occur that the new resources are to be inserted into nod

RESEND [PATCH V3 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-15 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

RESEND [PATCH V3 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-15 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 in

RESEND [PATCH V3 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-15 Thread Michael Bringmann
w property is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

RESEND [PATCH V3 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-15 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V3: -- Now passing more values by structure reducing use of local declarations / initialization. -- Improve some code

RESEND [PATCH V3 0/4] powerpc/devtree: Add support for 'ibm, drc-info' property

2017-11-15 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

Re: [PATCH V2 2/3] pseries/findnodes: Find nodes with memory for memoryless nodes

2017-11-15 Thread Michael Bringmann
Hi Michael, > > Michael Bringmann <m...@linux.vnet.ibm.com> writes: >> pseries/findnodes: On pseries systems which allow 'hot-add' of > > This isn't a powerpc or pseries patch, so the subject/prefix is wrong. > > Also because you're changing generic code you need to pr

[PATCH 3/3] postmigration/memory: Associativity & ibm,dynamic-memory-v2

2017-11-02 Thread Michael Bringmann
requires us to compare the 'aa_index' values of the old/new properties and 'readd' any block for which the setting has changed. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/prom.h | 12 ++ arch/powerpc/platforms/pseries/hotplug-me

[PATCH 2/3] postmigration/memory: Review assoc lookup array changes

2017-11-02 Thread Michael Bringmann
he process of the 're-add', the appropriate entry of the property 'ibm,dynamic-memory' would be updated as well as any other applicable system data structures. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/platforms/pseries/hotplug-memory.c | 123 +++

[PATCH 1/3] hotplug/memory: Apply assoc mem updates Post Migration Topo

2017-11-02 Thread Michael Bringmann
requires us to compare the aa_index values of the old/new properties and 'readd' any block for which the setting has changed. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/platforms/pseries/hotplug-cpu.c| 64 +++ arch/powerpc/platforms/p

[PATCH 0/3] powerpc/hotplug: Fix affinity assoc for LPAR migration

2017-11-02 Thread Michael Bringmann
layers to reset the associativity of the blocks and any other related data structures. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (3): powerpc/hotplug/memory: Apply assoc mem updates from 'ibm,dynamic-memory' Post LPAR Migration powerpc/hotplug/memory:

[PATCH V6 2/2] pseries/initnodes: Ensure nodes initialized for hotplug

2017-11-01 Thread Michael Bringmann
. This patch fixes some problems encountered at runtime with configurations that support memory-less nodes, or that hot-add CPUs into nodes that are memoryless during system execution after boot. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V6: -- Add some neede

[PATCH V6 1/2] pseries/nodes: Ensure enough nodes avail for operations

2017-11-01 Thread Michael Bringmann
performed to define or enable additional nodes. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V6: -- Remove some node initialization/allocation from boot setup --- arch/powerpc/mm/numa.c | 40 +--- 1 file changed, 37 insertions

[PATCH V6 0/2] pseries/nodes: Fix issues with memoryless nodes

2017-11-01 Thread Michael Bringmann
pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure nodes initialized for hotplug Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (2): pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure

[PATCH V5 2/2] pseries/initnodes: Ensure nodes initialized for hotplug

2017-10-26 Thread Michael Bringmann
. This patch fixes some problems encountered at runtime with configurations that support memory-less nodes, or that hot-add resources during system execution after boot. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V5: -- Reorganize code used to associatively map CPUs to

[PATCH V5 1/2] pseries/nodes: Ensure enough nodes avail for operations

2017-10-26 Thread Michael Bringmann
performed to define or enable additional nodes. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V5: -- Remove unnecessary error check --- arch/powerpc/mm/numa.c | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a

[PATCH V5 0/2] pseries/nodes: Fix issues with memoryless nodes

2017-10-26 Thread Michael Bringmann
pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure nodes initialized for hotplug Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (2): pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure

[PATCH V4 0/2] pseries/nodes: Fix issues with memoryless nodes

2017-10-24 Thread Michael Bringmann
From: Michael Bringmann <m...@linux.vnet.ibm.com> To: linuxppc-dev@lists.ozlabs.org To: linux-ker...@vger.kernel.org Cc: Michael Bringmann <m...@linux.vnet.ibm.com> Cc: Nathan Fontenot <nf...@linux.vnet.ibm.com> Cc: Michael Ellerman <m...@ellerman.id.au> Cc: John Allen &l

[PATCH V3 2/2] pseries/initnodes: Ensure nodes initialized for hotplug

2017-10-23 Thread Michael Bringmann
To: linuxppc-dev@lists.ozlabs.org To: linux-ker...@vger.kernel.org Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Michael Bringmann <m...@linux.vnet.ibm.com> Cc: John Allen <jal...@linux.vnet.ibm.com> Cc: Nathan Fontenot <nf...@linux.vnet.ibm.com> Subject: [PATCH V3 2/2] p

[PATCH V3 1/2] pseries/nodes: Ensure enough nodes avail for operations

2017-10-23 Thread Michael Bringmann
performed to define or enable additional nodes. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa

[PATCH V3 0/2] pseries/nodes: Fix issues with memoryless nodes

2017-10-23 Thread Michael Bringmann
pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure nodes initialized for hotplug Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (2): pseries/nodes: Ensure enough nodes avail for operations pseries/initnodes: Ensure

[PATCH V2 3/3] pseries/initnodes: Ensure nodes initialized for hotplug

2017-10-18 Thread Michael Bringmann
. This patch fixes some problems encountered at runtime with configurations that support memory-less nodes, or that hot-add resources during system execution after boot. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c | 27 --- 1 file c

[PATCH V2 2/3] pseries/findnodes: Find nodes with memory for memoryless nodes

2017-10-18 Thread Michael Bringmann
that are allocating node-specific memory at boot, and allows such references to find available memory in another node. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- block/blk-mq-cpumap.c |3 ++- mm/page_alloc.c |1 + 2 files changed, 3 insertions(+), 1 deletion(-)

[PATCH V2 1/3] pseries/nodes: Ensure enough nodes avail for operations

2017-10-18 Thread Michael Bringmann
performed to define or enable additional nodes. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa

[PATCH V2 0/3] pseries/nodes: Fix issues with memoryless nodes

2017-10-18 Thread Michael Bringmann
pseries/nodes: Ensure enough nodes avail for operations pseries/findnodes: Find nodes with memory when booting memoryless nodes pseries/initnodes: Ensure nodes initialized for hotplug Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (3): pseries/nodes:

Re: [PATCH 1/2] powerpc/nodes: Ensure enough nodes avail for operations

2017-10-17 Thread Michael Bringmann
On 10/17/2017 12:02 PM, Nathan Fontenot wrote: > On 10/17/2017 11:14 AM, Michael Bringmann wrote: >> See below. >> >> On 10/16/2017 07:33 AM, Michael Ellerman wrote: >>> Michael Bringmann <m...@linux.vnet.ibm.com> writes: >>> >>>> po

Re: [PATCH 1/2] powerpc/nodes: Ensure enough nodes avail for operations

2017-10-17 Thread Michael Bringmann
See below. On 10/16/2017 07:33 AM, Michael Ellerman wrote: > Michael Bringmann <m...@linux.vnet.ibm.com> writes: > >> powerpc/nodes: On systems like PowerPC which allow 'hot-add' of CPU > > This is a powerpc-only patch, so saying "systems like PowerPC" is >

Re: [PATCH 2/2] powerpc/hotplug: Ensure nodes initialized for hotplug

2017-10-17 Thread Michael Bringmann
On 10/16/2017 07:54 AM, Michael Ellerman wrote: > Michael Bringmann <m...@linux.vnet.ibm.com> writes: > >> powerpc/hotplug: On systems like PowerPC which allow 'hot-add' of CPU, >> it may occur that the new resources are to be inserted into nodes >> that were

[PATCH 2/2] powerpc/hotplug: Ensure nodes initialized for hotplug

2017-09-18 Thread Michael Bringmann
. This patch fixes some problems encountered at runtime with configurations that support memory-less nodes, but which allow CPUs to be added at and after boot. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c | 17 +++-- 1 file chang

[PATCH 1/2] powerpc/nodes: Ensure enough nodes avail for operations

2017-09-18 Thread Michael Bringmann
able additional nodes. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index ec098b3..b385cd0 10064

[PATCH 0/2] powerpc/nodes/hotplug: Fix problem with memoryless nodes

2017-09-18 Thread Michael Bringmann
rent configurations of PowerPC resources may need to be supported depending upon the environment. This patch fixes some problems encountered at runtime with configurations that support memory-less nodes, but which allow CPUs to be added at and after boot. Signed-off-by: Michael Bringmann <m...@linux

[PATCH] powerpc/kernel: Add 'ibm,thread-groups' property for CPU allocation

2017-09-12 Thread Michael Bringmann
t-server#s" in the system device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/cputhreads.h|2 + arch/powerpc/kernel/prom.c | 76 ++ arch/powerpc/kernel/setup-common.c | 30 +++

[PATCH V3 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-09-12 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 in

[PATCH V3 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-09-12 Thread Michael Bringmann
ks into a single function without requiring the user to verify whether a search was successful. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V3: -- Some code compression and passing values by structure --- drivers/pci/hotplug/rpadlpar_core.c | 13 ++-- drivers/pci/

Subject: [PATCH V3 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-09-12 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,dr

[PATCH V3 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-09-12 Thread Michael Bringmann
is present in the device tree. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/firmware.h |3 ++- arch/powerpc/include/asm/prom.h |1 + arch/powerpc/platforms/pseries/firmware.c |1 + 3 files changed, 4 insertions(+), 1 d

[PATCH V3 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-09-12 Thread Michael Bringmann
this case, we are indicating that the host system can support the new device tree structure "ibm,drc-info". Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/firmware: Add definitions for new drc-info firmware feature. pseries/drc-info

[PATCH V14 4/4] powerpc/vphn: Fix numa update end-loop bug

2017-09-08 Thread Michael Bringmann
(). Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V14: -- More code cleanup --- arch/powerpc/mm/numa.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 32f5f8d..ec098b3 100644 ---

[PATCH V14 3/4] powerpc/hotplug: Improve responsiveness of hotplug change

2017-09-08 Thread Michael Bringmann
value to better ensure that the CPU topology is detected and configured sooner. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V14: -- Restore accidentally deleted reset of topology timer. --- arch/powerpc/include/asm/topology.h |8 arch/powe

[PATCH V14 2/4] powerpc/vphn: Improve recognition of PRRN/VPHN

2017-09-08 Thread Michael Bringmann
-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V14: -- Code cleanup to reduce patch sizes --- arch/powerpc/mm/numa.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 3ae031d..5f5ff46 100644 ---

[PATCH V14 1/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-08 Thread Michael Bringmann
for the CPU. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V14: -- Cleanup some duplicate code. Change a trace stmt to debug. --- arch/powerpc/mm/numa.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/nu

[PATCH V14 0/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-08 Thread Michael Bringmann
is detected and configured sooner. Also, fix an end-of-updates processing problem observed occasionally in numa_update_cpu_topology(). Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/vphn: Update CPU topology when VPHN enabled powerpc/vphn: I

Re: [PATCH V13 4/4] powerpc/vphn: Fix numa update end-loop bug

2017-09-07 Thread Michael Bringmann
updates[i-1].next = NULL; Link all of the updates together, and NULL the link pointer in the last entry to be filled in. No worries about invalid comparisons. Reduced code. Michael On 09/07/2017 08:35 AM, Nathan Fontenot wrote: > On 09/06/2017 05:03 PM, Michael Bringmann wrote: >> &

Re: [PATCH V13 4/4] powerpc/vphn: Fix numa update end-loop bug

2017-09-06 Thread Michael Bringmann
On 09/06/2017 09:45 AM, Nathan Fontenot wrote: > On 09/01/2017 10:48 AM, Michael Bringmann wrote: >> powerpc/vphn: On Power systems with shared configurations of CPUs >> and memory, there are some issues with the association of additional >> CPUs and memory to nodes when

[PATCH V13 4/4] powerpc/vphn: Fix numa update end-loop bug

2017-09-01 Thread Michael Bringmann
(). Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/mm/numa.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 3a5b334..fccf23f 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -

[PATCH V13 3/4] powerpc/hotplug: Improve responsiveness of hotplug change

2017-09-01 Thread Michael Bringmann
value to better ensure that the CPU topology is detected and configured sooner. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/topology.h |8 arch/powerpc/mm/numa.c | 21 - arch/powerpc/pla

[PATCH V13 2/4] powerpc/vphn: Improve recognition of PRRN/VPHN

2017-09-01 Thread Michael Bringmann
-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V13: -- Split patch to improve review --- arch/powerpc/mm/numa.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 312f6ee..c08d736 100644 --- a/arch/p

[PATCH V13 1/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-01 Thread Michael Bringmann
for the CPU. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V13: -- Split patch for improved review --- arch/powerpc/mm/numa.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powe

[PATCH V13 0/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-01 Thread Michael Bringmann
is detected and configured sooner. Also, fix an end-of-updates processing problem observed occasionally in numa_update_cpu_topology(). Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> Michael Bringmann (4): powerpc/vphn: Update CPU topology when VPHN enabled powerpc/vphn: I

[PATCH V12] powerpc/vphn: Update CPU topology when VPHN enabled

2017-08-31 Thread Michael Bringmann
is detected and configured sooner. Also, fix an end-of-updates processing problem observed occasionally in numa_update_cpu_topology(). Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V12: -- Reorganize some of the updates to minimize kernel impact. -- Improve documen

[PATCH V11 3/3] powerpc/vphn: Better integrate vphn source code

2017-08-28 Thread Michael Bringmann
powerpc/vphn: Reorganize source code in order to better distinguish the VPHN code from the NUMA code better, by moving relevant functions to appropriate files. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/topology.h|6 arch/powerpc/mm/

[PATCH V11 2/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-08-28 Thread Michael Bringmann
tion, nodes_and(node_possible_map, node_possible_map, node_online_map); presently seen in the function arch/powerpc/mm/numa.c:initmem_init(). If the property is not present at boot, no operation will be performed to define or enable additional nodes. Signed-off-by: Michael Bringmann <

[PATCH V11 1/3] powerpc/numa: Update CPU topology when VPHN enabled

2017-08-28 Thread Michael Bringmann
information provided by the pHyp. Also, update initialization checks for device-tree attributes to independently recognize PRRN or VPHN usage. Signed-off-by: Michael Bringmann <m...@linux.vnet.ibm.com> --- Changes in V11: -- Cleanup presentation of patch changes --- arch/powerpc/include/asm/topo

<    1   2   3   4   5   6   >