Re: [PATCH v2] Fix display of Maximum Memory

2020-01-16 Thread Michael Bringmann
On 1/15/20 11:53 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> Correct overflow problem in calculation+display of Maximum Memory >> value to syscfg where 32bits is insufficient. >> >> Signed-off-by: Michael Bringmann >> --- >> arch/

[PATCH v2] Fix display of Maximum Memory

2020-01-15 Thread Michael Bringmann
Correct overflow problem in calculation+display of Maximum Memory value to syscfg where 32bits is insufficient. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/lparcfg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms

Re: [PATCH] Fix display of Maximum Memory

2020-01-15 Thread Michael Bringmann
On 1/14/20 11:41 PM, Christophe Leroy wrote: > > > Le 14/01/2020 à 22:07, Michael Bringmann a écrit : >> Correct overflow problem in calculation+display of Maximum Memory >> value to syscfg where 32bits is insufficient. >> >> Signed-off-by: Michael Bringmann &

[PATCH] Fix display of Maximum Memory

2020-01-14 Thread Michael Bringmann
Correct overflow problem in calculation+display of Maximum Memory value to syscfg where 32bits is insufficient. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/lparcfg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms

REPOST [PATCH v04] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2019-03-05 Thread Michael Bringmann
2018 ] [Replace patch submission: Subject: [PATCH] powerpc/topology: Update numa mask when cpu node mapping changes From: Srikar Dronamraju Date: Wed Oct 10 15:24:46 AEDT 2018 ] Signed-off-by: Michael Bringmann --- Changes in v04: -- Revise tests in topology_timer_fn to check vphn_enabled b

Re: [PATCH] powerpc/pseries: Fix dn reference error in dlpar_cpu_remove_by_index

2019-02-20 Thread Michael Bringmann
On 2/19/19 2:03 PM, Tyrel Datwyler wrote: > On 02/19/2019 07:46 AM, Michael Bringmann wrote: >> powerpc/pseries: Fix dn reference error in dlpar_cpu_remove_by_index() >> >> A reference to the device node of the CPU to be removed is released >> upon successful removal o

[PATCH] powerpc/pseries: Fix dn reference error in dlpar_cpu_remove_by_index

2019-02-19 Thread Michael Bringmann
count will still be decremented. Signed-off-by: Michael Bringmann diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c index 97feb6e..9537bb9 100644 --- a/arch/powerpc/platforms/pseries/hotplug-cpu.c +++ b/arch/powerpc/platforms/pseries/hot

Re: [PATCH v04] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2019-02-18 Thread Michael Bringmann
On 2/18/19 8:15 AM, Michal Suchánek wrote: > On Mon, 18 Feb 2019 11:49:17 +0100 > Michal Suchánek wrote: > > Nevermind > > Looks like some version of the patch is queued in powerpc/next already. Might you be referring to, [PATCH] powerpc/pseries: Perform full re-add of CPU for topology updat

[PATCH v04] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2019-02-14 Thread Michael Bringmann
To: linuxppc-dev@lists.ozlabs.org To: linux-ker...@vger.kernel.org Benjamin Herrenschmidt Paul Mackerras Michael Ellerman Nathan Lynch Corentin Labbe Tyrel Datwyler Srikar Dronamraju Guenter Roeck Michael Bringmann "Oliver O'Halloran" Russell Currey Haren Myneni Al

Re: [PATCH v03] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2019-02-08 Thread Michael Bringmann
On 2/7/19 11:44 PM, Srikar Dronamraju wrote: >> >> int arch_update_cpu_topology(void) >> { >> -return numa_update_cpu_topology(true); >> +int changed = topology_changed; >> + >> +topology_changed = 0; >> +return changed; >> } >> > > Do we need Powerpc override for arch_update_cp

[PATCH v03] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2019-02-06 Thread Michael Bringmann
2018 ] [Replace patch submission: Subject: [PATCH] powerpc/topology: Update numa mask when cpu node mapping changes From: Srikar Dronamraju Date: Wed Oct 10 15:24:46 AEDT 2018 ] Signed-off-by: Michael Bringmann --- Changes in v03: -- Fixed under-scheduling of topo updates. Changes in v02: -- Reuse mo

Re: [PATCH v02] powerpc/pseries: Check for ceded CPU's during LPAR migration

2019-02-01 Thread Michael Bringmann
See below. On 1/31/19 3:53 PM, Michael Bringmann wrote: > On 1/30/19 11:38 PM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> This patch is to check for cede'ed CPUs during LPM. Some extreme >>> tests encountered a problem ehere Linux has put some t

Re: [PATCH v02] powerpc/pseries: Check for ceded CPU's during LPAR migration

2019-01-31 Thread Michael Bringmann
On 1/31/19 4:21 PM, Tyrel Datwyler wrote: > On 01/31/2019 01:53 PM, Michael Bringmann wrote: >> On 1/30/19 11:38 PM, Michael Ellerman wrote: >>> Michael Bringmann writes: >>>> This patch is to check for cede'ed CPUs during LPM. Some extreme >>>>

Re: [PATCH v02] powerpc/pseries: Check for ceded CPU's during LPAR migration

2019-01-31 Thread Michael Bringmann
On 1/30/19 11:38 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> This patch is to check for cede'ed CPUs during LPM. Some extreme >> tests encountered a problem ehere Linux has put some threads to >> sleep (possibly to save energy or something), LPM was a

[PATCH v02] powerpc/pseries: Check for ceded CPU's during LPAR migration

2019-01-30 Thread Michael Bringmann
This patch is to check for cede'ed CPUs during LPM. Some extreme tests encountered a problem ehere Linux has put some threads to sleep (possibly to save energy or something), LPM was attempted, and the Linux kernel didn't awaken the sleeping threads, but issued the H_JOIN for the active threads.

[REPOST PATCH v07 5/5] migration/memory: Support 'ibm,dynamic-memory-v2'

2019-01-29 Thread Michael Bringmann
uilds upon previous enhancements that scan the device-tree "ibm,dynamic-memory" properties using the base LMB array, and a copy derived from the updated properties. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-memory.c |3 ++- 1 file changed, 2 inser

[REPOST PATCH v07 4/5] migration/memory: Evaluate LMB assoc changes

2019-01-29 Thread Michael Bringmann
analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v07: -- Ensure return value from dlpar_memory_readd_multiple Changes in v06: -- Rebase to powerpc next branch to account

[REPOST PATCH v07 3/5] migration/memory: Add hotplug READD_MULTIPLE

2019-01-29 Thread Michael Bringmann
-tree analysis of updates by RTAS events analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v05: -- Provide dlpar_memory_readd_helper routine to compress some common code Chan

[REPOST PATCH v07 2/5] powerpc/drmem: Add internal_flags feature

2019-01-29 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- Changes in v04: -- Add another initialization of 'lmb->internal_flags' to init_drmem_v2_lmbs. --- arch/powerpc/include/asm/d

[REPOST PATCH v07 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2019-01-29 Thread Michael Bringmann
ck function to apply specific tests. * Modify DRMEM code to replace usages of dt_root_addr_cells, and dt_mem_next_cell, as these are only available at first boot. Signed-off-by: Michael Bringmann --- Changes in v05: -- Add walk_drmem_lmbs_pairs to replace macro for_each_pair_lmb --- arch

[REPOST PATCH v07 0/5] powerpc/migration: Affinity fix for memory

2019-01-29 Thread Michael Bringmann
d into the target system. This code builds upon features introduced in a previous patch set that updates CPUs for affinity changes that may occur during LPM. Signed-off-by: Michael Bringmann Michael Bringmann (5): powerpc/drmem: Export 'dynamic-memory' loader powerpc/drmem: Add in

Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2019-01-29 Thread Michael Bringmann
On 1/29/19 3:31 AM, Michael Ellerman wrote: > Tyrel Datwyler writes: >> On 12/14/2018 12:50 PM, Michael Bringmann wrote: >>> Define interface to acquire arch-specific drc info to match against >>> hotpluggable devices. The current implementation exposes several &

Re: [PATCH] powerpc/pseries: Perform full re-add of CPU for topology update post-migration

2019-01-29 Thread Michael Bringmann
On 1/29/19 3:37 AM, Michael Ellerman wrote: > Michael Bringmann writes: > >> On 10/29/18 1:43 PM, Nathan Fontenot wrote: >>> On pseries systems, performing a partition migration can result in >>> altering the nodes a CPU is assigned to on the destination system.

Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2019-01-28 Thread Michael Bringmann
On 1/25/19 10:09 AM, Michael Bringmann wrote: > Adding Nathan Lynch > > On 1/24/19 6:04 PM, Tyrel Datwyler wrote: >> On 12/14/2018 12:50 PM, Michael Bringmann wrote: >>> Define interface to acquire arch-specific drc info to match against >>> hotpluggable dev

Re: [REPOST PATCH v08 0/5] powerpc/hotplug: Update affinity for migrated CPUs

2019-01-28 Thread Michael Bringmann
he 'changed' entities into the target system. > Re-registration of CPUs mostly entails acting as if they have been > newly hot-added into the target system. > > Signed-off-by: Michael Bringmann Retract this series in preference to [PATCH] powerpc/pseries: Perform fu

Re: [PATCH] powerpc/pseries: Perform full re-add of CPU for topology update post-migration

2019-01-28 Thread Michael Bringmann
On 10/29/18 1:43 PM, Nathan Fontenot wrote: > On pseries systems, performing a partition migration can result in > altering the nodes a CPU is assigned to on the destination system. For > exampl, pre-migration on the source system CPUs are in node 1 and 3, > post-migration on the destination system

Re: [RFC 5/6] powerpc/pci/hotplug: Use common drcinfo parsing

2019-01-25 Thread Michael Bringmann
Adding Nathan Lynch. On 1/24/19 6:29 PM, Tyrel Datwyler wrote: > On 01/14/2019 04:28 PM, Bjorn Helgaas wrote: >> On Fri, Dec 14, 2018 at 02:51:31PM -0600, Michael Bringmann wrote: >>> The implementation of the pseries-specific drc info properties >>> is currently impl

Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2019-01-25 Thread Michael Bringmann
Adding Nathan Lynch. On 1/24/19 6:10 PM, Tyrel Datwyler wrote: > On 12/14/2018 12:50 PM, Michael Bringmann wrote: >> Define interface to acquire arch-specific drc info to match against >> hotpluggable devices. The current implementation exposes several >> pseries-sp

Re: [RFC 3/6] pseries/drcinfo: Pseries impl of arch_find_drc_info

2019-01-25 Thread Michael Bringmann
Adding Nathan Lynch. Yes. We can amend the title. On 1/24/19 6:04 PM, Tyrel Datwyler wrote: > On 12/14/2018 12:51 PM, Michael Bringmann wrote: >> This patch provides a common interface to parse ibm,drc-indexes, >> ibm,drc-names, ibm,drc-types, ibm,drc-power-domains, or ibm,d

Re: [RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2019-01-25 Thread Michael Bringmann
Adding Nathan Lynch On 1/24/19 6:04 PM, Tyrel Datwyler wrote: > On 12/14/2018 12:50 PM, Michael Bringmann wrote: >> Define interface to acquire arch-specific drc info to match against >> hotpluggable devices. The current implementation exposes several >> pseries-sp

[PATCH] powerpc/pseries: Check for ceded CPU's during LPAR migration

2019-01-23 Thread Michael Bringmann
This patch is to check for cede'ed CPUs during LPM. Some extreme tests encountered a problem ehere Linux has put some threads to sleep (possibly to save energy or something), LPM was attempted, and the Linux kernel didn't awaken the sleeping threads, but issued the H_JOIN for the active threads.

Re: [PATCH] pseries/hotplug: Add more delay in pseries_cpu_die while waiting for rtas-stop

2019-01-14 Thread Michael Bringmann
On 1/9/19 12:08 AM, Gautham R Shenoy wrote: > I did some testing during the holidays. Here are the observations: > > 1) With just your patch (without any additional debug patch), if I run > DLPAR on /off operations on a system that has SMT=off, I am able to > see a crash involving RTAS stack corr

[PATCH] powerpc/pseries: Split CPU readd for single CPU systems

2019-01-11 Thread Michael Bringmann
We have encountered cases where DLPAR CPU 'readd' fails on single CPU platforms, because the system needs a minimum amount of resources to keep operating. The current implementation attempts to add, and remove all of the threads of a specified core at once, and will fail if there is a problem remo

[PATCH] powerpc/pseries: Split CPU readd for single CPU systems

2019-01-10 Thread Michael Bringmann
[FYI: Please post to linuxppc-dev mailing list when you are ready. Good luck.] We have encountered cases where DLPAR CPU 'readd' fails on single CPU platforms, because the system needs a minimum amount of resources to keep operating. The current implementation attempts to add, and remove al

Re: [PATCH v03] powerpc/mobility: Fix node detach/rename problem

2018-12-14 Thread Michael Bringmann
On 12/12/2018 08:57 PM, Michael Ellerman wrote: > Frank Rowand writes: >> On 12/11/18 8:07 AM, Rob Herring wrote: >>> On Tue, Dec 11, 2018 at 7:29 AM Michael Ellerman >>> wrote: > ... diff --git a/drivers/of/base.c b/drivers/of/base.c index 09692c9b32a7..d8e4534c0686 100644 --- a/

Re: [PATCH 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-14 Thread Michael Bringmann
; will incorrectly find the stale entry. Remove the node from the >> cache. >> >> Add paranoia checks in of_find_node_by_phandle() as a second level >> of defense (do not return cached node if detached, do not add node >> to cache if detached). >> >> Reported-by

[RFC 6/6] powerpc: Enable support for ibm, drc-info devtree property

2018-12-14 Thread Michael Bringmann
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 --- arch/powerpc/kernel/prom_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ar

[RFC 5/6] powerpc/pci/hotplug: Use common drcinfo parsing

2018-12-14 Thread Michael Bringmann
arch_find_drc_match. All functions that were used just to support the previous parsing implementation have been moved. Signed-off-by: Michael Bringmann --- drivers/pci/hotplug/rpaphp_core.c | 232 - 1 file changed, 28 insertions(+), 204 deletions(-) diff --git a

[RFC 4/6] powerpc/pseries: Use common drcinfo parsing

2018-12-14 Thread Michael Bringmann
pseries_energy.c and hotplug-cpu.c to use the common parser. Changes include creating appropriate callback functions and passing callback-specific data blocks into arch_find_drc_match. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-cpu.c| 83 +++- arch

[RFC 3/6] pseries/drcinfo: Pseries impl of arch_find_drc_info

2018-12-14 Thread Michael Bringmann
: Michael Bringmann --- arch/powerpc/include/asm/prom.h |3 arch/powerpc/platforms/pseries/of_helpers.c | 299 +++ include/linux/topology.h|2 3 files changed, 298 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/include/asm

[RFC 2/6] pseries/drcinfo: Fix bug parsing ibm,drc-info

2018-12-14 Thread Michael Bringmann
Replace use of of_prop_next_u32() in when parsing 'ibm,drc-info' structure to simplify and reduce parsing code. Signed-off-by: Michael Bringmann Fixes: 3f38000eda48 ("powerpc/firmware: Add definitions for new drc-info firmware feature" -- end of patch series applied to pow

[RFC 1/6] powerpc:/drc Define interface to acquire arch-specific drc info

2018-12-14 Thread Michael Bringmann
: Michael Bringmann --- include/linux/topology.h |9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/topology.h b/include/linux/topology.h index cb0775e..df97f5f 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h @@ -44,6 +44,15 @@ int

[RFC 0/6] powerpc/pseries: Refactor code to centralize drcinfo parsing

2018-12-14 Thread Michael Bringmann
-domains, and the compressed ibm,drc-info into the platform-specific code for the Pseries features. Signed-off-by: Michael W. Bringmann Michael Bringmann (6): powerpc:/drc Define interface to acquire arch-specific drc info pseries/drcinfo: Fix bug parsing ibm,drc-info pseries/drcinfo: Pseries

Re: [PATCH] pseries/hotplug: Add more delay in pseries_cpu_die while waiting for rtas-stop

2018-12-11 Thread Michael Bringmann
code from PHYP's H_SET_DR_STATE h-call. On 12/10/2018 02:31 PM, Thiago Jung Bauermann wrote: > > Hello Michael, > > Michael Bringmann writes: > >> I have asked Scott Mayes to take a look at one of these crashes from >> the phyp side. I will let you know if he fin

[RFC 3/3] powerpc/numa: Apply mapping between HW and kernel cpus

2018-12-11 Thread Michael Bringmann
changes during the lifetime of a system. These interfaces exchange the thread_index provided by the 'ibm,ppc-interrupt-server#s' properties, for an internal index to be used by kernel scheduling interfaces. Signed-off-by: Michael Bringmann --- arch/powerpc/mm/numa.c

[RFC 2/3] powerpc/numa: Define mapping between HW and kernel cpus

2018-12-11 Thread Michael Bringmann
during the lifetime of a system. These interfaces will be used entirely within the powerpc kernel code to maintain separation between the machine and kernel contexts. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h | 31 +++ arch/powerpc/platforms/pseries

[RFC 1/3] powerpc/numa: Conditionally online new nodes

2018-12-11 Thread Michael Bringmann
Add argument to allow caller to determine whether the node identified for a cpu after an associativity / affinity change should be inited. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h |2 +- arch/powerpc/mm/numa.c |6

[RFC 0/3] powerpc/pseries: Remap hw to kernel cpu indexes

2018-12-11 Thread Michael Bringmann
associativity changes during the lifetime of a system. These interfaces exchange the thread_index provided by the 'ibm,ppc-interrupt-server#s' properties, for an internal index to be used by kernel scheduling interfaces. Signed-off-by: Michael Bringmann Michael Bringmann (3): po

Re: [PATCH v03] powerpc/mobility: Fix node detach/rename problem

2018-12-11 Thread Michael Bringmann
--- Snip --- >> >> The mobility.c code continues on during the second migration, accepts >> the definitions of the new nodes from the PHYP and ends up renaming >> the new properties e.g. >> >> [ 4565.827296] Duplicate name in base, renamed to "ibm,platform-facilities#1" >> >> There is no check lik

Re: [PATCH v03] powerpc/mobility: Fix node detach/rename problem

2018-12-11 Thread Michael Bringmann
frowand.l...@gmail.com > devicet...@vger.kernel.org > linux-ker...@vger.kernel.org Thanks. > > Michael Bringmann writes: >> The PPC mobility code receives RTAS requests to delete nodes with >> platform-/hardware-specific attributes when restarting the kernel >> aft

[PATCH v03] powerpc/mobility: Fix node detach/rename problem

2018-12-10 Thread Michael Bringmann
_of_detach_node() to invalidate phandle_cache for the node being detached. Alternatively, we can manually invalidate / rebuild the phandle_cache at the point of LPAR migration. The latter solution is presented here. Signed-off-by: Michael Bringmann --- Changes in v03: -- Move pr

Re: [PATCH] pseries/hotplug: Add more delay in pseries_cpu_die while waiting for rtas-stop

2018-12-10 Thread Michael Bringmann
I have asked Scott Mayes to take a look at one of these crashes from the phyp side. I will let you know if he finds anything notable. Michael On 12/07/2018 08:40 PM, Thiago Jung Bauermann wrote: > > Gautham R Shenoy writes: >> On Fri, Dec 07, 2018 at 04:13:11PM +0530, Gautham R Shenoy wrote: >

[PATCH] powerpc/numa: Ensure nodes are inited for mem changes

2018-11-27 Thread Michael Bringmann
invalid. Signed-off-by: Michael Bringmann --- arch/powerpc/mm/numa.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index d9109e0..f3714fa 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -1026,6 +1026,11 @@ int

[PATCH 4/4] powerpc/pseries: Relocate drmem.h to pseries

2018-11-27 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. This patch moves drmem.h from directory arch/powerpc/include/asm to arch/powerpc/platforms/pseries, and fixing include file references in pseries files. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/drmem.h

[PATCH 4/4] powerpc/pseries: Move DRMEM processing out of numa.c

2018-11-27 Thread Michael Bringmann
function platform_parse_numa_properties that any powerpc platform may implement. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h| 13 + arch/powerpc/mm/numa.c | 238 +++ arch/powerpc/platforms/pseries/drmem.c | 330

[PATCH 2/4] powerpc/pseries: Move DRMEM processing out of prom.c

2018-11-27 Thread Michael Bringmann
moving a support function to powerpc/include/asm/sparsemem.h Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/platform.h| 23 arch/powerpc/include/asm/prom.h|3 + arch/powerpc/include/asm/sparsemem.h | 19 +++ arch/powerpc/kernel/prom.c

[PATCH 1/4] powerpc/pseries: Relocate drmem.c to pseries

2018-11-27 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. This patch moves drmem.c from kernel directory arch/powerpc/mm to powerpc/platforms/pseries. Signed-off-by: Michael Bringmann --- arch/powerpc/mm/Makefile|2 arch/powerpc/mm/drmem.c | 447

[PATCH 0/4] powerpc/pseries: Refactor code to centralize drmem feature

2018-11-27 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. Signed-off-by: Michael Bringmann Michael Bringmann (4): powerpc/pseries: Relocate drmem.c to pseries powerpc/pseries: Move DRMEM processing out of prom.c powerpc/pseries: Move DRMEM processing out of numa.c powerpc/pseries

Re: [Internal Review PATCH] powerpc/pseries: Refactor code to centralize drmem feature

2018-11-27 Thread Michael Bringmann
Wrong Subject. Will repost. On 11/26/2018 02:36 PM, Michael Bringmann wrote: > The implementation of the pseries-specific dynamic memory features > is currently implemented in several non-pseries-specific files. > This patch set moves the implementation of the device-tree parsing >

Re: [Internal Review PATCH] powerpc/pseries: Remap hw to kernel cpu indexes

2018-11-27 Thread Michael Bringmann
This should have been posted as RFC. Will repost. On 11/26/2018 02:33 PM, Michael Bringmann wrote: > Define and apply new interface to map hardware-specific powerpc cpu > ids to a kernel specific range of cpu values. Mapping is intended > to prevent confusion within the kernel abou

[Internal Review PATCH] powerpc/pseries: Relocate drmem.h to pseries

2018-11-26 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. This patch moves drmem.h from directory arch/powerpc/include/asm to arch/powerpc/platforms/pseries, and fixing include file references in pseries files. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/drmem.h

[Internal Review PATCH] powerpc/pseries: Move DRMEM processing out of numa.c

2018-11-26 Thread Michael Bringmann
function platform_parse_numa_properties that any powerpc platform may implement. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h| 13 + arch/powerpc/mm/numa.c | 238 +++ arch/powerpc/platforms/pseries/drmem.c | 330

[Internal Review PATCH] powerpc/pseries: Move DRMEM processing out of prom.c

2018-11-26 Thread Michael Bringmann
moving a support function to powerpc/include/asm/sparsemem.h Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/platform.h| 23 arch/powerpc/include/asm/prom.h|3 + arch/powerpc/include/asm/sparsemem.h | 19 +++ arch/powerpc/kernel/prom.c

[Internal Review PATCH] powerpc/pseries: Relocate drmem.c to pseries

2018-11-26 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. This patch moves drmem.c from kernel directory arch/powerpc/mm to powerpc/platforms/pseries. Signed-off-by: Michael Bringmann --- arch/powerpc/mm/Makefile|2 arch/powerpc/mm/drmem.c | 447

[Internal Review PATCH] powerpc/pseries: Refactor code to centralize drmem feature

2018-11-26 Thread Michael Bringmann
kernel into the platform-specific directory to the Pseries features. Signed-off-by: Michael Bringmann Michael Bringmann (4): powerpc/pseries: Relocate drmem.c to pseries powerpc/pseries: Move DRMEM processing out of prom.c powerpc/pseries: Move DRMEM processing out of numa.c powerpc/pseries

[Internal Review PATCH 2/3] powerpc/numa: Define mapping between HW and kernel cpus

2018-11-26 Thread Michael Bringmann
during the lifetime of a system. These interfaces will be used entirely within the powerpc kernel code to maintain separation between the machine and kernel contexts. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h | 31 +++ arch/powerpc/platforms/pseries

[Internal Review PATCH 3/3] powerpc/numa: Apply mapping between HW and kernel cpus

2018-11-26 Thread Michael Bringmann
changes during the lifetime of a system. These interfaces exchange the thread_index provided by the 'ibm,ppc-interrupt-server#s' properties, for an internal index to be used by kernel scheduling interfaces. Signed-off-by: Michael Bringmann --- arch/powerpc/mm/numa.c

[Internal Review PATCH 1/3] powerpc/numa: Conditionally online new nodes

2018-11-26 Thread Michael Bringmann
Add argument to allow caller to determine whether the node identified for a cpu after an associativity / affinity change should be inited. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h |2 +- arch/powerpc/mm/numa.c |6

[Internal Review PATCH] powerpc/pseries: Remap hw to kernel cpu indexes

2018-11-26 Thread Michael Bringmann
associativity changes during the lifetime of a system. These interfaces exchange the thread_index provided by the 'ibm,ppc-interrupt-server#s' properties, for an internal index to be used by kernel scheduling interfaces. Signed-off-by: Michael Bringmann Michael Bringmann (3): po

[PATCH v02] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2018-11-17 Thread Michael Bringmann
2018 ] [Replace patch submission: Subject: [PATCH] powerpc/topology: Update numa mask when cpu node mapping changes From: Srikar Dronamraju Date: Wed Oct 10 15:24:46 AEDT 2018 ] Signed-off-by: Michael Bringmann --- Changes in v02: -- Reuse more of the previous implementation to reduce patch

Re: [PATCH] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2018-11-14 Thread Michael Bringmann
On 11/13/2018 02:39 AM, Srikar Dronamraju wrote: >> -static void topology_work_fn(struct work_struct *work) >> -{ >> -rebuild_sched_domains(); >> +if (changed) >> +rebuild_sched_domains(); >> } >> static DECLARE_WORK(topology_work, topology_work_fn); >> >> @@ -1553,7 +1424,

[PATCH] powerpc/numa: Perform full re-add of CPU for PRRN/VPHN topology update

2018-11-12 Thread Michael Bringmann
2018 ] [Replace patch submission: Subject: [PATCH] powerpc/topology: Update numa mask when cpu node mapping changes From: Srikar Dronamraju DAte: Wed Oct 10 15:24:46 AEDT 2018 ] Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/topology.h |6 - arch/powerpc/kernel/rtasd.c |

Re: [PATCH v08 0/5] powerpc/hotplug: Update affinity for migrated CPUs

2018-11-05 Thread Michael Bringmann
On 10/29/2018 02:51 PM, Michal Suchánek wrote: > On Sun, 29 Jul 2018 08:18:34 -0500 > Michael Bringmann wrote: > >> The migration of LPARs across Power systems affects many attributes >> including that of the associativity of CPUs. The patches in this >> set execute

[PATCH v07 5/5] migration/memory: Support 'ibm,dynamic-memory-v2'

2018-10-17 Thread Michael Bringmann
uilds upon previous enhancements that scan the device-tree "ibm,dynamic-memory" properties using the base LMB array, and a copy derived from the updated properties. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-memory.c |3 ++- 1 file changed, 2 inser

[PATCH v07 4/5] migration/memory: Evaluate LMB assoc changes

2018-10-17 Thread Michael Bringmann
analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v06: -- Rebase to powerpc next branch to account for recent code changes. -- Fix prototype problem when CONFIG_MEMORY_HOTP

[PATCH v07 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-17 Thread Michael Bringmann
-tree analysis of updates by RTAS events analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v07: -- Provide more useful return value from dlpar_memory_readd_multiple Chan

[PATCH v07 2/5] powerpc/drmem: Add internal_flags feature

2018-10-17 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- Changes in v04: -- Add another initialization of 'lmb->internal_flags' to init_drmem_v2_lmbs. --- arch/powerpc/include/asm/d

[PATCH v07 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-17 Thread Michael Bringmann
ck function to apply specific tests. * Modify DRMEM code to replace usages of dt_root_addr_cells, and dt_mem_next_cell, as these are only available at first boot. Signed-off-by: Michael Bringmann --- Changes in v05: -- Add walk_drmem_lmbs_pairs to replace macro for_each_pair_lmb --- arch

[PATCH v07 0/5] powerpc/migration: Affinity fix for memory

2018-10-17 Thread Michael Bringmann
d into the target system. This code builds upon features introduced in a previous patch set that updates CPUs for affinity changes that may occur during LPM. Signed-off-by: Michael Bringmann Michael Bringmann (5): powerpc/drmem: Export 'dynamic-memory' loader powerpc/drmem: Add in

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-17 Thread Michael Bringmann
On 10/16/2018 07:48 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> On 10/16/2018 02:57 PM, Tyrel Datwyler wrote: >>> On 10/15/2018 05:39 PM, Michael Ellerman wrote: >>>> Michael Bringmann writes: >>>>> diff --git a/arch/powerpc/platforms/p

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Bringmann
On 10/16/2018 02:57 PM, Tyrel Datwyler wrote: > On 10/15/2018 05:39 PM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >>> b/arch/powerpc/platforms/pseries/hotplug-memory.c >>> index 2b

Re: [PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-16 Thread Michael Bringmann
On 10/15/2018 07:39 PM, Michael Ellerman wrote: > Michael Bringmann writes: >> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c >> b/arch/powerpc/platforms/pseries/hotplug-memory.c >> index 2b796da..9c76345 100644 >> --- a/arch/powerpc/platforms/pseries/hot

[PATCH v06 2/5] powerpc/drmem: Add internal_flags feature

2018-10-15 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- Changes in v04: -- Add another initialization of 'lmb->internal_flags' to init_drmem_v2_lmbs. --- arch/powerpc/include/asm/d

[PATCH v06 5/5] migration/memory: Support 'ibm,dynamic-memory-v2'

2018-10-15 Thread Michael Bringmann
uilds upon previous enhancements that scan the device-tree "ibm,dynamic-memory" properties using the base LMB array, and a copy derived from the updated properties. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-memory.c |3 ++- 1 file changed, 2 inser

[PATCH v06 4/5] migration/memory: Evaluate LMB assoc changes

2018-10-15 Thread Michael Bringmann
analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v06: -- Rebase to powerpc next branch to account for recent code changes. -- Fix prototype problem when CONFIG_MEMORY_HOTP

[PATCH v06 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-15 Thread Michael Bringmann
-tree analysis of updates by RTAS events analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v05: -- Provide dlpar_memory_readd_helper routine to compress some common code Chan

Fwd: [PATCH v06 2/5] powerpc/drmem: Add internal_flags feature

2018-10-15 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- Changes in v04: -- Add another initialization of 'lmb->internal_flags' to init_drmem_v2_lmbs. --- arch/powerpc/include/asm/d

[PATCH v06 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-15 Thread Michael Bringmann
ck function to apply specific tests. * Modify DRMEM code to replace usages of dt_root_addr_cells, and dt_mem_next_cell, as these are only available at first boot. Signed-off-by: Michael Bringmann --- Changes in v05: -- Add walk_drmem_lmbs_pairs to replace macro for_each_pair_lmb --- arch

[PATCH v06 0/5] powerpc/migration: Affinity fix for memory

2018-10-15 Thread Michael Bringmann
d into the target system. This code builds upon features introduced in a previous patch set that updates CPUs for affinity changes that may occur during LPM. Signed-off-by: Michael Bringmann Michael Bringmann (5): powerpc/drmem: Export 'dynamic-memory' loader powerpc/drmem: Add in

[PATCH] hotplug/cpu: Extend start/stop cpumap lock scope

2018-10-13 Thread Michael Bringmann
Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c index 2f8e621..fce46c56 100644 --- a/ar

[PATCH v05 5/5] migration/memory: Support 'ibm,dynamic-memory-v2'

2018-10-13 Thread Michael Bringmann
uilds upon previous enhancements that scan the device-tree "ibm,dynamic-memory" properties using the base LMB array, and a copy derived from the updated properties. Signed-off-by: Michael Bringmann --- arch/powerpc/platforms/pseries/hotplug-memory.c |3 ++- 1 file changed, 2 inser

[PATCH v05 4/5] migration/memory: Evaluate LMB assoc changes

2018-10-13 Thread Michael Bringmann
analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v05: -- Move common structure from numa.c + hotplug-memory.c to header file. -- Clarify some comments.

[PATCH v05 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-13 Thread Michael Bringmann
-tree analysis of updates by RTAS events analyzed by 'migation_store' during post-migration processing. It will be used for memory updates, initially. Signed-off-by: Michael Bringmann --- Changes in v05: -- Provide dlpar_memory_readd_helper routine to compress some common code Chan

[PATCH v05 2/5] powerpc/drmem: Add internal_flags feature

2018-10-13 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- Changes in v04: -- Add another initialization of 'lmb->internal_flags' to init_drmem_v2_lmbs. --- arch/powerpc/include/asm/d

[PATCH v05 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-13 Thread Michael Bringmann
ck function to apply specific tests. * Modify DRMEM code to replace usages of dt_root_addr_cells, and dt_mem_next_cell, as these are only available at first boot. Signed-off-by: Michael Bringmann --- Changes in v05: -- Add walk_drmem_lmbs_pairs to replace macro for_each_pair_lmb --- arch

[PATCH v05 0/5] powerpc/migration: Affinity fix for memory

2018-10-13 Thread Michael Bringmann
d into the target system. This code builds upon features introduced in a previous patch set that updates CPUs for affinity changes that may occur during LPM. Signed-off-by: Michael Bringmann Michael Bringmann (5): powerpc/drmem: Export 'dynamic-memory' loader powerpc/drmem: Add in

Re: [PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-11 Thread Michael Bringmann
kernel/drivers/of/fdt.c to the mix. On 10/10/2018 12:34 PM, Michael Bringmann wrote: > On 10/10/2018 11:54 AM, Nathan Fontenot wrote: >> On 10/09/2018 03:36 PM, Michael Bringmann wrote: >>> powerpc/drmem: Export many of the functions of DRMEM to parse >>> "ibm,dynamic

Re: [PATCH v04 3/4] migration/memory: Evaluate LMB assoc changes

2018-10-10 Thread Michael Bringmann
On 10/10/2018 12:24 PM, Nathan Fontenot wrote: > On 10/09/2018 03:37 PM, Michael Bringmann wrote: > >> +static void pseries_update_ala_memory_aai(int aa_index) >> +{ >> +struct drmem_lmb *lmb; >> + >> +/* Readd all LMBs which were previously using the

Re: [PATCH v04 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-10 Thread Michael Bringmann
On 10/10/2018 11:59 AM, Nathan Fontenot wrote: > On 10/09/2018 03:36 PM, Michael Bringmann wrote: >> migration/memory: This patch adds a new pseries hotplug action >> for CPU and memory operations, PSERIES_HP_ELOG_ACTION_READD_MULTIPLE. >> This is a variant of the READD ope

Re: [PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-10 Thread Michael Bringmann
On 10/10/2018 11:54 AM, Nathan Fontenot wrote: > On 10/09/2018 03:36 PM, Michael Bringmann wrote: >> powerpc/drmem: Export many of the functions of DRMEM to parse >> "ibm,dynamic-memory" and "ibm,dynamic-memory-v2" during hotplug >> operations and for Pos

  1   2   3   4   5   6   >