[PATCH] powerpc/devtree: Parse new DRC mem/cpu/dev device tree elements

2016-03-03 Thread Michael Bringmann
v2". The new element structures, "ibm,dynamic-memory-v2" and "ibm,drc-info", should completely replace the previously used structures at execution. Signed-off-by: Michael Bringmann --- diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h in

[RFC] powerpc/devtree: Parse new DRC mem/cpu/dev device tree elements

2016-03-13 Thread Michael Bringmann
s to one or both of the device tree structures "ibm,drc-info" and "ibm,dynamic-memory-v2". The new element structures, "ibm,dynamic-memory-v2" and "ibm,drc-info", should completely replace the previously used structures at execution. Signed-off-by: Michael Bringma

[RFC v2] powerpc/devtree: Parse new DRC mem/cpu/dev device tree elements

2016-03-25 Thread Michael Bringmann
v2". The new element structures, "ibm,dynamic-memory-v2" and "ibm,drc-info", should completely replace the previously used structures at execution. Signed-off-by: Michael Bringmann --- diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h in

[RFC v3] powerpc/devtree: Parse new DRC mem/cpu/dev device tree elements

2016-04-05 Thread Michael Bringmann
v2". The new element structures, "ibm,dynamic-memory-v2" and "ibm,drc-info", should completely replace the previously used structures at execution. Signed-off-by: Michael Bringmann --- diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h in

Re: [RFC] powerpc/devtree: Parse new DRC mem/cpu/dev device, tree elements

2016-04-19 Thread Michael Bringmann
On 03/15/2016 12:15 AM, linuxppc-dev-requ...@lists.ozlabs.org wrote: > Documentation/devicetree/bindings ? or link to PAPR where it's specified? > > -- > Stewart Smith < OPAL Architect, IBM. Here's the link to the Notes PAPR database's issue: notes://D01DBR12/86256680004635D2/565907e362ce41e

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 v02] powerpc/mobility: Fix node detach/rename problem

2018-08-08 Thread Michael Bringmann
On 08/08/2018 09:02 AM, Michael Ellerman wrote: > Michael Bringmann writes: >> diff --git a/arch/powerpc/platforms/pseries/mobility.c >> b/arch/powerpc/platforms/pseries/mobility.c >> index e245a88..efc9442 100644 >> --- a/arch/powerpc/platforms/pseries/mobility.c >

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

2018-08-08 Thread Michael Bringmann
I will update the header files 'of_private.h' and 'of.h' and repost. Michael On 08/08/2018 10:37 AM, Michael Bringmann wrote: > On 08/08/2018 09:02 AM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> diff --git a/arch/powerpc/platforms/pseries/mo

Re: [PATCH v3] powerpc/topology: Check at boot for topology updates

2018-08-10 Thread Michael Bringmann
On 08/10/2018 08:21 AM, Srikar Dronamraju wrote: > * Michael Ellerman [2018-08-10 21:42:28]: > >> Srikar Dronamraju writes: >>> diff --git a/arch/powerpc/include/asm/topology.h >>> b/arch/powerpc/include/asm/topology.h >>> index 16b077801a5f..70f2d2285ba7 100644 >>> --- a/arch/powerpc/include/as

[PATCH v02] REPOST powerpc/migration: Handle unitialized timer reset

2018-09-20 Thread Michael Bringmann
> e9230008 2fa9 419e0278 [ 2571.674176] ---[ end trace 0c7939657d5522df ]--- Signed-off-by: Michael Bringmann --- Changes in patch: -- Revised patch description. --- arch/powerpc/mm/numa.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/numa.c b/arch/p

Re: [v02] REPOST powerpc/migration: Handle unitialized timer reset

2018-09-26 Thread Michael Bringmann
CPUs https://lists.ozlabs.org/pipermail/linuxppc-dev/2018-July/176301.html as we think it is covered now by other code. Thanks for your attention and assistance. Michael On 09/26/2018 07:13 AM, Michael Ellerman wrote: > On Thu, 2018-09-20 at 16:45:13 UTC, Michael Bringmann wrote: >&

RESCIND Re: [v02] REPOST powerpc/migration: Handle unitialized timer reset

2018-09-26 Thread Michael Bringmann
though. Very sorry for the inconvenience. Michael On 09/26/2018 09:44 AM, Michael Bringmann wrote: > Hello, Michael: > Please look at v03 of the patch set which was posted > just on 09/25/2018. We had a last minute brainstorm of how > to simplify the code after the v02 REPOST

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

2018-10-01 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 v03 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-01 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 --- arch/powerpc/include/asm/rtas.h |1 + arch/powerpc/mm/drmem.c |1 + 2 files

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

2018-10-01 Thread Michael Bringmann
letely new structures. * Combine common code for parsing and evaluating memory description properties based on the DRMEM LMB array model to greatly simplify extension from the older property 'ibm,dynamic-memory' to the new property model of 'ibm,dynamic-memory-v2'. Signed

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

2018-10-01 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 v03 2/5] powerpc/drmem: Add internal_flags feature

2018-10-01 Thread Michael Bringmann
array itself without requiring the allocation and maintainance of additional data structures. Signed-off-by: Michael Bringmann --- arch/powerpc/include/asm/drmem.h | 18 ++ arch/powerpc/mm/drmem.c |2 ++ 2 files changed, 20 insertions(+) diff --git a/arch/powerpc

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

2018-10-01 Thread Michael Bringmann
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 --- arch/powerpc/include/asm/drmem.h | 15 arch/powerpc/mm/drmem.c | 75 -- 2 files changed,

[PATCH] powerpc/mobility: Extend start/stop topology update scope

2018-10-01 Thread Michael Bringmann
he device-tree to be applied prior to accepting and applying any PRRN requests. For tracking purposes, pr_info notices are added to the functions start_topology_update() and stop_topology_update() of 'numa.c'. Signed-off-by: Michael Bringmann --- arch/powerpc/kernel/rtas.c

[PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-01 Thread Michael Bringmann
the nid as currently interpreted from the device tree. Signed-off-by: Michael Bringmann --- mm/memory_hotplug.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 38d94b7..e48a4d0 100644 --- a/mm/memory_hotplug.c +++ b/mm

Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-02 Thread Michael Bringmann
See below. On 10/01/2018 06:20 PM, Tyrel Datwyler wrote: > On 10/01/2018 01:27 PM, Michal Hocko wrote: >> On Mon 01-10-18 13:56:25, Michael Bringmann wrote: >>> In some LPAR migration scenarios, device-tree modifications are >>> made to the affinity of the memory i

Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-02 Thread Michael Bringmann
On 10/02/2018 09:59 AM, Michal Hocko wrote: > On Tue 02-10-18 09:51:40, Michael Bringmann wrote: > [...] >> When the device-tree affinity attributes have changed for memory, >> the 'nid' affinity calculated points to a different node for the >> memory blo

Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-02 Thread Michael Bringmann
On 10/02/2018 11:04 AM, Michal Hocko wrote: > On Tue 02-10-18 10:14:49, Michael Bringmann wrote: >> On 10/02/2018 09:59 AM, Michal Hocko wrote: >>> On Tue 02-10-18 09:51:40, Michael Bringmann wrote: >>> [...] >>>> When the device-tree affinity attributes

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

2018-10-03 Thread Michael Bringmann
On 10/02/2018 03:56 PM, Tyrel Datwyler wrote: > On 10/01/2018 05:59 AM, 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

Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-03 Thread Michael Bringmann
On 10/02/2018 02:45 PM, Tyrel Datwyler wrote: > On 10/02/2018 11:13 AM, Michael Bringmann wrote: >> >> >> On 10/02/2018 11:04 AM, Michal Hocko wrote: >>> On Tue 02-10-18 10:14:49, Michael Bringmann wrote: >>>> On 10/02/2018 09:59 AM, Michal Hocko wrot

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

2018-10-03 Thread Michael Bringmann
On 10/02/2018 04:03 PM, Tyrel Datwyler wrote: > On 10/01/2018 05:59 AM, 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 operati

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

2018-10-03 Thread Michael Bringmann
On 10/02/2018 04:08 PM, Tyrel Datwyler wrote: > On 10/01/2018 06:00 AM, Michael Bringmann wrote: >> migration/memory: This patch adds code that recognizes changes to >> the associativity of memory blocks described by the device-tree >> properties in order to drive equivalent

Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node

2018-10-03 Thread Michael Bringmann
On 10/03/2018 06:05 PM, Tyrel Datwyler wrote: > On 10/03/2018 06:27 AM, Michael Bringmann wrote: >> On 10/02/2018 02:45 PM, Tyrel Datwyler wrote: >>> On 10/02/2018 11:13 AM, Michael Bringmann wrote: >>>> >>>> >>>> On 10/02/2018 11:04 AM, Micha

[PATCH] powerpc/migration: Init nodes before remove memory

2018-10-04 Thread Michael Bringmann
ode in the memory_add_physaddr_to_nid -> hot_add_scn_to_nid functions used by powerpc DLPAR memory operations to compute the node of a emory address based on the device-tree affinity configuration after migration. This occurs before try_offline_node is used by remove_memory. Signed-off-by: Michael Bringma

[PATCH v02] powerpc/mobility: Extend start/stop topology update scope

2018-10-09 Thread Michael Bringmann
he device-tree to be applied prior to accepting and applying any PRRN requests. For tracking purposes, pr_info notices are added to the functions start_topology_update() and stop_topology_update() of 'numa.c'. Signed-off-by: Michael Bringmann --- Changes in v02: -- Rebase to lates

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

2018-10-09 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 v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-09 Thread Michael Bringmann
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 --- arch/powerpc/include/asm/drmem.h | 15 arch/powerpc/mm/drmem.c | 75 -- 2 files changed,

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

2018-10-09 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 v04 3/5] migration/memory: Add hotplug READD_MULTIPLE

2018-10-09 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 v04: -- Move init of 'lmb->internal_flags' in init_drmem_v2_lmbs to pr

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

2018-10-09 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 v04: -- Move dlpar_memory_readd_multiple() function definition and use into previous patch along with action constant

[PATCH v04 4/4] migration/memory: Support 'ibm,dynamic-memory-v2'

2018-10-09 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

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

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 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 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

[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

[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 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 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 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 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] 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 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 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

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 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

[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 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 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

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

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-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

[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

[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 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 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 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 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

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] 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] 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 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

[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

[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 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 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] 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] 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: 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: 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: 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

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

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 >

[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

[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 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 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 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] 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

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 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 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

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

[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

[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 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 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

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 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

[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 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 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 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 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 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

  1   2   3   4   5   6   >