Defunct Abatron / BDI2000?

2019-11-01 Thread Nathan
is *one* board *one* time), or to find somebody who can desolder the flash chip so that I can reflash it with an offline programmer (which I'd really prefer to avoid). Thanks so much, -- Nathan

[PATCH] Correct memory hotplug locking

2015-04-07 Thread Nathan Fontenot
Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c index 742ef88..5cefcad 100644 --- a

Re: [PATCH kernel] powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE

2015-04-14 Thread Nathan Fontenot
on next week. > Signed-off-by: Alexey Kardashevskiy Acked-by: Nathan Fontenot > --- > > This is made against ad30cb99465 (mpe/next) and can be squashed into > 51925fb3c5 > if not too late. > > > --- > arch/powerpc/platforms/pseries/hotplug-memory.c | 13 ++

[PATCH] Correct cpu affinity for dlpar added cpus

2015-04-28 Thread Nathan Fontenot
-connector before making the set-indicator calls which results in invalid data in the ibm,associativity property for the cpu we're adding. This patch corrects the order of operations to make the set-indicator calls (done in acquire_drc) before calling configure-connector. Signed-off-by: Nathan Fon

Re: [PATCH] Correct cpu affinity for dlpar added cpus

2015-04-29 Thread Nathan Fontenot
On 04/28/2015 11:53 PM, Michael Ellerman wrote: > Subject should be "powerpc/pseries: ..." please. ok > > On Tue, 2015-04-28 at 10:37 -0500, Nathan Fontenot wrote: >> The incorrect ordering of operations during cpu dlpar causes the affinity >> of cpus being add

[PATCH v2] powerpc/pseries: Correct cpu affinity for dlpar added cpus

2015-04-29 Thread Nathan Fontenot
calls (done in dlpar_acquire_drc) before calling rtas configure-connector. Fixes: 1a8061c46c46 ("powerpc/pseries: Add kernel based CPU DLPAR handling") Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 10 -- 1 file changed, 4 insertions(+), 6

[PATCH] powerpc/pseries: Fix possible leaked device node reference

2015-04-29 Thread Nathan Fontenot
arent node aware") Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 019d34a..47d9cebe 100644 --- a/ar

Re: [PATCH] powerpc/pseries: hibernation/migration should honor topology update policy

2015-05-05 Thread Nathan Fontenot
by storing the current policy and only calling > start_topology_update() in the case where either PRRN/VPHN were enabled to > start with. > > Fixes: e04fa61214a3 (powerpc/pseries: Add /proc interface to control topology > updates) > > Signed-off-by: Tyrel Datwyler >

Re: of/dynamic: Fix test for PPC_PSERIES

2015-06-04 Thread Nathan Fontenot
ving or updating a device tree node we look up the node by ibm,phandle and without this patch we wouldn't find these nodes. I have not seen any issues because of this but I think pushing this to stable would be good. -Nathan ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v2] powerpc: Fix warning reported by verify_cpu_node_mapping()

2014-08-26 Thread Nathan Fontenot
On 08/25/2014 02:22 AM, Li Zhong wrote: > With commit 2fabf084b, during boottime, cpu_numa_callback() is called > earlier(before their online) for each cpu, and verify_cpu_node_mapping() > uses cpu_to_node() to check whether siblings are in the same node. > > It skips the checking for siblings th

Re: [PATCH] pseries: Make CPU hotplug path endian safe

2014-09-05 Thread Nathan Fontenot
drc_index value passed to dlpar_configure_connector is pulled directly out of a buffer we get from firmware. This would mean the drc_index value is already in BE format. Whereas for cpu hotplug the drc_index value is passed in from userspace via the cpu probe interface in sysfs. I assume that you

Re: [PATCH] pseries: Fix endianness in cpu hotplug and hotremove

2014-09-08 Thread Nathan Fontenot
ot;, path, name); > if (!dn->full_name) { > kfree(dn); > @@ -148,7 +148,7 @@ struct device_node *dlpar_configure_connector(u32 > drc_index, > return NULL; > > ccwa = (struct cc_workarea *)&data_buf[0]; > - ccwa->drc_index = drc_in

[PATCH 0/5] pseries: Move memory hotplug to the kernel

2014-09-15 Thread Nathan Fontenot
routine for handling rtas hotplug events. -Nathan Patch 1/5 - Add definition of hotplug rtas event sections. Patch 2/5 - export the dlpar_[acquire|release]drc() routines. Patch 3/5 - Create the new /proc/powerpc/dlpar interface Patch 4/5 - Implement memory hotplug add in the kernel. Patch 5/5

[PATCH 1/5] pseries: Define rtas hotplug event sections

2014-09-15 Thread Nathan Fontenot
In order to handle device hotplug in the kernel on pseries the hotplug notification will be communicated to the kernel in the form of a rtas hotplug event. This patch adds the definition of rtas hotplug event sections. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/rtas.h | 26

[PATCH 2/5] pseries: Export drc_[acquire|release]_drc() routines

2014-09-15 Thread Nathan Fontenot
Export the routines to acquire and release a drc index. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/pseries.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 361add6

[PATCH 3/5] pseries: Create device hotplug entry point

2014-09-15 Thread Nathan Fontenot
handling stub. For PowerVM this patch also creates a new /proc file that the drmgr command will use to write rtas hotplug events to. For future PowerKVM handling the rtas check-exception code can pass any rtas hotplug events received to handle_dlpar_errorlog(). Signed-off-by: Nathan Fontenot

[PATCH 4/5] pseries: Implement memory hotplug add in the kernel

2014-09-15 Thread Nathan Fontenot
all of the work to the kernel we can do the add and remove faster, and provide a common place to do memory hotplug for both the PowerVM and PowerKVM environments. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 170 +++ 1 file changed, 170

[PATCH 5/5] pseries: Implement memory hotplug remove in the kernel

2014-09-15 Thread Nathan Fontenot
all of the work to the kernel we can do the add and remove faster, and provide a common place to do memory hotplug for both the PowerVM and PowerKVM environments. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 140 +++ 1 file changed, 139

Re: [PATCH 1/4] powerpc: Make a bunch of things static

2014-09-16 Thread Nathan Fontenot
gt; @@ -54,7 +54,7 @@ static void pnv_smp_setup_cpu(int cpu) > #endif > } > > -int pnv_smp_kick_cpu(int nr) > +static int pnv_smp_kick_cpu(int nr) > { > unsigned int pcpu = get_hard_smp_processor_id(nr); > unsigned long start_here = > diff --git a/arch/p

Re: [RFC PATCH] powerpc/numa: add ability to disable and debug topology updates

2014-09-16 Thread Nathan Fontenot
; { > - start_topology_update(); > - proc_create("powerpc/topology_updates", 0644, NULL, &topology_ops); > + if (topology_updates_enabled) { > + start_topology_update(); > + proc_create("powerp

Re: [1/5] pseries: Define rtas hotplug event sections

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:06 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:29 -0500, Nathan Fontenot wrote: >> diff --git a/arch/powerpc/include/asm/rtas.h >> b/arch/powerpc/include/asm/rtas.h >> index b390f55..a01879e 100644 >> --- a/arch/powerpc/include/as

Re: [2/5] pseries: Export drc_[acquire|release]_drc() routines

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:30 -0500, Nathan Fontenot wrote: >> diff --git a/arch/powerpc/platforms/pseries/pseries.h >> b/arch/powerpc/platforms/pseries/pseries.h >> index 361add6..b94516b 100644 >> --- a/arch/power

Re: [3/5] pseries: Create device hotplug entry point

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:31 -0500, Nathan Fontenot wrote: >> For pseries system the kernel will be notified of hotplug requests in >> the form of rtas hotplug events. > > Can you flesh that design out a bit for me,

Re: [4/5] pseries: Implement memory hotplug add in the kernel

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:32 -0500, Nathan Fontenot wrote: >> This patch adds the ability to do memory hotplug adding in the kernel. >> >> Currently the hotplug add/remove of memory is handled by the drmgr >> comma

Re: [5/5] pseries: Implement memory hotplug remove in the kernel

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:33 -0500, Nathan Fontenot wrote: >> This patch adds the ability to do memory hotplug remove in the kernel. >> >> Currently the hotplug add/remove of memory is handled by the drmgr >> comma

Re: [3/5] pseries: Create device hotplug entry point

2014-09-23 Thread Nathan Fontenot
On 09/22/2014 08:15 PM, Tyrel Datwyler wrote: > On 09/17/2014 12:15 PM, Nathan Fontenot wrote: >> On 09/17/2014 02:07 AM, Michael Ellerman wrote: >>> >>> On Mon, 2014-09-15 at 15:31 -0500, Nathan Fontenot wrote: >>>> For pseries system the kernel will be n

Re: [PATCH v2 1/3] pseries: Make CPU hotplug path endian safe

2014-09-24 Thread Nathan Fontenot
Rao > Signed-off-by: Thomas Falcon Acked-by: Nathan Fontenot > --- > > Changes in v2: > - Don't convert drc_index to BE in dlpar_configure_connector() but instead > convert in the caller dlpar_cpu_probe() so that migration path isn't > affected. > - Mark

Re: [PATCH v2 2/3] pseries: Fix endian issues in onlining cpu threads

2014-09-24 Thread Nathan Fontenot
On 09/16/2014 03:15 PM, Thomas Falcon wrote: > The ibm,ppc-interrupt-server#s property is in big endian format. > These values need to be converted when used by little endian > architectures. > > Signed-off-by: Thomas Falcon Acked-by: Nathan Fontenot > --- > Changes

Re: [PATCH v3 3/3] pseries: Fix endian issues in cpu hot-removal

2014-09-24 Thread Nathan Fontenot
On 09/16/2014 03:15 PM, Thomas Falcon wrote: > When removing a cpu, this patch makes sure that values > gotten from or passed to firmware are in the correct > endian format. > > Signed-off-by: Thomas Falcon Acked-by: Nathan Fontenot > --- > Changes in v3: > > drc

Re: [4/5] pseries: Implement memory hotplug add in the kernel

2014-09-24 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: > > On Mon, 2014-09-15 at 15:32 -0500, Nathan Fontenot wrote: >> This patch adds the ability to do memory hotplug adding in the kernel. >> >> Currently the hotplug add/remove of memory is handled by the drmgr >> comma

Re: [PATCH] MAINTAINERS: nx-842 driver maintainer change

2014-10-17 Thread Nathan Fontenot
On 10/17/2014 06:19 PM, Dan Streetman wrote: > Change maintainer of nx-842 compression coprocessor driver > to Dan Streetman. > > Signed-off-by: Dan Streetman > Cc: Nathan Fontenot Acked-by: Nathan Fontenot > --- > MAINTAINERS | 2 +- > 1 file changed, 1

Re: [PATCH] powerpc: use device_online/offline() instead of cpu_up/down()

2014-11-03 Thread Nathan Fontenot
rom cpu_probe|release_store. > > This patch fixes errors on PowerVM systems that have cpu(s) added/removed > using dlpar operations; without this patch, the > /sys/devices/system/cpu/cpuN/online nodes do not correctly show the > online state of added/removed cpus. > > Signed-off-by:

[PATCH v2 0/6] pseries: Move memory hotplug to the kernel

2014-11-17 Thread Nathan Fontenot
routine for handling rtas hotplug events. -Nathan Patch 1/6 - Add definition of hotplug rtas event sections. Patch 2/6 - Update struct of_drconf_cell to use __be64/__be32 Patch 3/6 - Export the dlpar_[acquire|release]drc() routines. Patch 4/6 - Create the new /sys/kernel/dlpar interface Patch

[PATCH v2 1/6] pseries: Define rtas hotplug event sections

2014-11-17 Thread Nathan Fontenot
In order to handle device hotplug in the kernel on pseries hotplug notifications will be communicated to the kernel in the form of a rtas hotplug events. This patch adds the definition of rtas hotplug event sections. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/rtas.h | 26

[PATCH v2 2/6] pseries: Update of_drconf_cell struct for endian-ness

2014-11-17 Thread Nathan Fontenot
The of_drconf_cell defines each LMB for a system in the device tree property ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory. The values are in BE format by definition, this patch updates the of_drconf_cell struct to reflect the proper endian-ness. Signed-off-by: Nathan Fontenot --- arch

[PATCH v2 3/6] pseries: Create new device hotplug entry point

2014-11-17 Thread Nathan Fontenot
requests on PowerVM systems. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 72 ++- arch/powerpc/platforms/pseries/hotplug-memory.c | 19 ++ arch/powerpc/platforms/pseries/pseries.h| 10 +++ 3 files changed, 99 insertions(+), 2

[PATCH v2 4/6] pseries: Export the acquire/release drc index routines

2014-11-17 Thread Nathan Fontenot
Export the routines to acquire and release a drc index. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/pseries.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 1796c54

[PATCH v2 5/6] pseries: Implement memory hotplug add in the kernel

2014-11-17 Thread Nathan Fontenot
hotplug event. This is needed because we do not need to do the work in the of notifier, this work is already performed in handling the hotplug request. At a later time we can remove this when we deprecate the previous method of memory hotplug. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms

[PATCH v2 6/6] pseries: Implement memory hotplug remove in the kernel

2014-11-17 Thread Nathan Fontenot
via rtas hotplug events. This allows us to perform the operation faster and provide a common memory hotplug remove path for PowerVM and PowerKVM systems. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 206 ++- 1 file changed, 201

Re: [PATCH v2 3/6] pseries: Create new device hotplug entry point

2014-11-18 Thread Nathan Fontenot
On 11/17/2014 04:53 PM, Gavin Shan wrote: > On Mon, Nov 17, 2014 at 03:51:42PM -0600, Nathan Fontenot wrote: >> Create a new entry point for device hotplug on pseries that will >> work for both PowerVM and PowerKVM systems. >> >> The current process to hotplug (or dl

Re: [PATCH v2 0/6] pseries: Move memory hotplug to the kernel

2014-11-18 Thread Nathan Fontenot
On 11/17/2014 08:00 PM, Cyril Bur wrote: > Hi Nathan, > > I tried to apply these to Linus' tree and Mpes tree and to stable and > got several problems, I got stuck at the third hunk in patch 5. I based these patches off of mpe's -next tree. I did a fresh pull of mpe's

Re: [PATCH v2 3/6] pseries: Create new device hotplug entry point

2014-11-24 Thread Nathan Fontenot
On 11/21/2014 01:49 AM, Cyril Bur wrote: > > On Mon, 2014-11-17 at 15:51 -0600, Nathan Fontenot wrote: >> Create a new entry point for device hotplug on pseries that will >> work for both PowerVM and PowerKVM systems. >> >> The current process to hotplug (or dlpa

Re: [PATCH v2 5/6] pseries: Implement memory hotplug add in the kernel

2014-11-24 Thread Nathan Fontenot
On 11/21/2014 01:49 AM, Cyril Bur wrote: > > On Mon, 2014-11-17 at 15:54 -0600, Nathan Fontenot wrote: >> Move handling of memory hotplug add on pseries completely into the kernel. >> >> The current memory hotplug add path involves the drmgr command doing part >>

Re: [PATCH v2 6/6] pseries: Implement memory hotplug remove in the kernel

2014-11-24 Thread Nathan Fontenot
On 11/21/2014 01:49 AM, Cyril Bur wrote: > > On Mon, 2014-11-17 at 15:56 -0600, Nathan Fontenot wrote: >> Move handling of memory hotplug remove on pseries completely into the kernel. >> >> The current memory hotplug remove path involves the drmgr command doing part >

Re: [PATCH v2 07/14] of/reconfig: Always use the same structure for notifiers

2014-11-25 Thread Nathan Fontenot
rt/bug on !update->dn / update->prop ? > > (Same for the rest of the patch) > > Or do you reckon it's pointless ? > I'm not sure it's worth it, if those are NULL pointers the drivers/of code would have tried t

Re: Right location in sysfs for dlpar file

2014-12-01 Thread Nathan Fontenot
On 11/26/2014 09:12 PM, Benjamin Herrenschmidt wrote: > Hi Greg, > > So Nathan is working on a patch series to cleanup and improve our > "DLPAR" infrastructure which is basically our hotplug mechanism when > running under the PowerVM (aka pHyp) and KVM hypervisors.

Re: Right location in sysfs for dlpar file

2014-12-03 Thread Nathan Fontenot
On 12/01/2014 11:09 PM, Michael Ellerman wrote: > On Mon, 2014-12-01 at 09:41 -0600, Nathan Fontenot wrote: >> On 11/26/2014 09:12 PM, Benjamin Herrenschmidt wrote: >>> Hi Greg, >>> >>> So Nathan is working on a patch series to cleanup and improve our >>&

Re: Right location in sysfs for dlpar file

2014-12-03 Thread Nathan Fontenot
On 12/01/2014 10:26 PM, Greg KH wrote: > On Mon, Dec 01, 2014 at 09:41:03AM -0600, Nathan Fontenot wrote: >> On 11/26/2014 09:12 PM, Benjamin Herrenschmidt wrote: >>> Hi Greg, >>> >>> So Nathan is working on a patch series to cleanup and improve our >>&

Re: Right location in sysfs for dlpar file

2014-12-08 Thread Nathan Fontenot
On 12/03/2014 10:31 PM, Greg KH wrote: > On Wed, Dec 03, 2014 at 09:07:27PM -0600, Nathan Fontenot wrote: >> On 12/01/2014 10:26 PM, Greg KH wrote: >>> On Mon, Dec 01, 2014 at 09:41:03AM -0600, Nathan Fontenot wrote: >>>> On 11/26/2014 09:12 PM, Benjamin Herr

Re: [PATCH] arch: powerpc: platforms: ps3: repository.c: Remove unused function

2014-12-22 Thread Nathan Whitehorn
directly instead of FDT. Thanks for noticing this. We could adapt FreeBSD to use FDT (this is the only non-device-tree PowerPC port), but there hasn't been any reason to do that thus far given the availability of the repository information. -N

[PATCH] powerpc/pseries: correct builds break when CONFIG_SMP not defined

2013-04-29 Thread Nathan Fontenot
ument 3 of ‘cpumask_or’ makes pointer from integer without a cast make[1]: *** [arch/powerpc/mm/numa.o] Error 1 Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/numa.c |8 1 file changed, 8 insertions(+) Index: ppc-next/arch/powerpc

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Nathan Fontenot
ll H_JOIN, this is > required by the hypervisor. Without this patch, threads that are offline > (H_CEDE'd) will not be woken to make the H_JOIN call and the OS will be > deadlocked (all threads either JOIN'd or CEDE'd). > This fixes a long standing bug in partition mi

[PATCH] Do not update sysfs cpu registration from invalid context

2013-06-24 Thread Nathan Fontenot
The topology update code that updates the cpu node registration in sysfs should not be called while in stop_machine(). The register/unregister calls take a lock and may sleep. This patch moves these calls outside of the call to stop_machine(). Signed-off-by:Nathan Fontenot --- arch/powerpc/mm/n

[PATCH] Correct build warnings with CONFIG_TRANSPARENT_HUGEPAGE disabled

2013-06-24 Thread Nathan Fontenot
return -1 to the static inline for __hash_page_thp() to correct the warnings. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/mmu-hash64.h |1 + 1 file changed, 1 insertion(+) Index: powerpc/arch/powerpc/include/asm/mmu-hash64.h

Re: [PATCH] Do not update sysfs cpu registration from invalid context

2013-06-24 Thread Nathan Fontenot
On 06/24/2013 02:16 PM, Seth Jennings wrote: > On Mon, Jun 24, 2013 at 12:18:04PM -0500, Seth Jennings wrote: >> On Mon, Jun 24, 2013 at 09:14:23AM -0500, Nathan Fontenot wrote: >>> The topology update code that updates the cpu node registration in sysfs >>> sh

Re: [PATCH] Do not update sysfs cpu registration from invalid context

2013-06-24 Thread Nathan Fontenot
On 06/24/2013 08:50 PM, Michael Ellerman wrote: > On Mon, Jun 24, 2013 at 02:25:59PM -0500, Nathan Fontenot wrote: >> On 06/24/2013 02:16 PM, Seth Jennings wrote: >>> On Mon, Jun 24, 2013 at 12:18:04PM -0500, Seth Jennings wrote: >>>> On Mon, Jun 24, 2013 at 09:14:23A

Re: [PATCH] Do not update sysfs cpu registration from invalid context

2013-06-24 Thread Nathan Fontenot
On 06/24/2013 08:50 PM, Michael Ellerman wrote: > On Mon, Jun 24, 2013 at 09:14:23AM -0500, Nathan Fontenot wrote: >> The topology update code that updates the cpu node registration in sysfs >> should not be called while in stop_machine(). The register/unregister >> calls take

[PATCH v2] Do not update sysfs cpu registration from invalid context

2013-06-24 Thread Nathan Fontenot
The topology update code that updates the cpu node registration in sysfs should not be called while in stop_machine(). The register/unregister calls take a lock and may sleep. This patch moves these calls outside of the call to stop_machine(). Signed-off-by:Nathan Fontenot --- arch/powerpc/mm/n

[PATCH 0/8] Correct memory hot add/remove for powerpc

2013-07-24 Thread Nathan Fontenot
added or removed to be performed. The remaining patches in the patch set update the powerpc to properly do memory hot add and remove in the kernel. Nathan Fontenot --- Documentation/memory-hotplug.txt | 26 arch/powerpc/mm/mem.c | 35

[PATCH 1/8] register bootmem pages for powerpc when sparse vmemmap is not defined

2013-07-24 Thread Nathan Fontenot
patch we get a BUG_ON for memory hot remove in put_page_bootmem(). This also adds a stub for register_page_bootmem_memmap to allow powerpc to build with sparse vmemmap defined. Signed-off-by: Nathan Fontenot --- --- arch/powerpc/mm/init_64.c |6 ++ arch/powerpc/mm/mem.c |9

[PATCH 2/8] Mark powerpc memory resources as busy

2013-07-24 Thread Nathan Fontenot
Memory I/O resources need to be marked as busy or else we cannot remove them when doing memory hot remove. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/mem.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/arch/powerpc/mm/mem.c

[PATCH 3/8] Add all memory via sysfs probe interface at once

2013-07-24 Thread Nathan Fontenot
ned-off-by: Nathan Fontenot --- drivers/base/memory.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) Index: linux/drivers/base/memory.c === --- linux.orig/drivers/base/memory.c +++ linux/drivers/bas

[PATCH 4/8] Create a sysfs release file for hot removing memory

2013-07-24 Thread Nathan Fontenot
updates the name of this option to CONFIG_ARCH_MEMORY_PROBE_RELEASE to indicate that it controls the probe and release sysfs interfaces. Signed-off-by: Nathan Fontenot --- Documentation/memory-hotplug.txt | 34 arch/powerpc/Kconfig |2 arch/x86/Kconfig

[PATCH 5/8] Add notifiers for memory hot add/remove

2013-07-24 Thread Nathan Fontenot
In order to allow architectures or other subsystems to do any needed work prior to hot adding or hot removing memory the memory notifier chain should be updated to provide notifications of these events. This patch adds the notifications for memory hot add and hot remove. Signed-off-by: Nathan

[PATCH 6/8] Update the powerpc arch specific memory add/remove handlers

2013-07-24 Thread Nathan Fontenot
-reconfiguration-memory node of the device tree this is not an issue. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/mem.c | 33 +++--- arch/powerpc/platforms/pseries/hotplug-memory.c | 35 2 files changed, 29 insertions(+), 39

[PATCH 7/8] Add memory hot add/remove notifier handlers for pwoerpc

2013-07-24 Thread Nathan Fontenot
memory is specified in the ibm,dynamic-reconfiguration-memory device tree node so the memory notifiers are registered contingent on its existence. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 103 + 1 file changed, 103 insertions

[PATCH 8/8] Remove no longer needed powerpc memory node update handler

2013-07-24 Thread Nathan Fontenot
for powerpc/pseries. This patch also conditionally registers the handler for of node remove if we are not using the ibm,dynamic-reconfiguration-memory device tree layout. That handler is only needed for handling memory@XXX nodes in the device tree. Signed-off-by: Nathan Fontenot --- arch/powerpc

Re: [PATCH 1/8] register bootmem pages for powerpc when sparse vmemmap is not defined

2013-08-02 Thread Nathan Fontenot
On 08/01/2013 09:27 PM, Michael Ellerman wrote: > On Wed, Jul 24, 2013 at 01:35:11PM -0500, Nathan Fontenot wrote: >> Previous commit 46723bfa540... introduced a new config option >> HAVE_BOOTMEM_INFO_NODE that ended up breaking memory hot-remove for powerpc >> when sparse v

Re: [PATCH 2/8] Mark powerpc memory resources as busy

2013-08-02 Thread Nathan Fontenot
On 08/01/2013 09:28 PM, Michael Ellerman wrote: > On Wed, Jul 24, 2013 at 01:36:34PM -0500, Nathan Fontenot wrote: >> Memory I/O resources need to be marked as busy or else we cannot remove >> them when doing memory hot remove. > > I would have thought it was the opposite?

Re: [PATCH 3/8] Add all memory via sysfs probe interface at once

2013-08-02 Thread Nathan Fontenot
On 08/01/2013 09:32 PM, Michael Ellerman wrote: > On Wed, Jul 24, 2013 at 01:37:47PM -0500, Nathan Fontenot wrote: >> When doing memory hot add via the 'probe' interface in sysfs we do not >> need to loop through and add memory one section at a time. I think this >>

[PATCH 0/6] pseries: Move CPU dlpar into the kernel

2015-06-22 Thread Nathan Fontenot
patch set that moved memory hotplug into the kernel. The entry point accepts a rtas hotplug event which is either constructed when using the /sys/kernel/dlpar interface or is passed to the kernel when handling a ras epow interrupt. -Nathan Patch 1/6: - Consolidate cpu hotplug code from pseries

[PATCH 1/6] pseries: Consolidate CPU hotplug code to hotplug-cpu.c

2015-06-22 Thread Nathan Fontenot
No functional changes, this patch is simply a move of the cpu hotplug code from pseries/dlpar.c to pseries/hotplug-cpu.c. This is in an effort to consolidate all of the cpu hotplug code in a common place. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 189

[PATCH 2/6] pseries: Factor out common cpu hotplug code

2015-06-22 Thread Nathan Fontenot
. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 83 ++ 1 file changed, 46 insertions(+), 37 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c index c55cdbc..f58d902

[PATCH 3/6] pseries: Update CPU hotplug error recovery

2015-06-22 Thread Nathan Fontenot
Update the cpu dlpar add/remove paths to do better error recovery when a failure occurs during the add/remove operation. This includes adding some pr_info and pr_debug statements. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 34

[PATCH 4/6] pseries: Add CPU dlpar remove functionality

2015-06-22 Thread Nathan Fontenot
remove and easily clean up in any cases of failure. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 202 ++ arch/powerpc/platforms/pseries/pseries.h |5 + 2 files changed, 207 insertions(+) diff --git a/arch/powerpc/platforms/pseries

[PATCH 5/6] pseries: Add CPU dlpar add functionality

2015-06-22 Thread Nathan Fontenot
Add the ability to hotplug add cpus via rtas hotplug events by either specifying the drc index of the CPU to add, or providing a count of the number of CPUs to add. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 76 ++ 1 file changed

[PATCH 6/6] pseries: Enable kernel CPU dlpar from sysfs

2015-06-22 Thread Nathan Fontenot
Enable new kernel cpu hotplug functionality by allowing cpu dlpar requests to be initiated from sysfs. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc

Re: powerpc,numa: Memory hotplug to memory-less nodes ?

2015-06-24 Thread Nathan Fontenot
eing online instead of checking to see if it has any memory. -Nathan > On Mon, Jun 22, 2015 at 10:18 AM, Bharata B Rao wrote: >> Hi, >> >> While developing memory hotplug support in QEMU for PoweKVM, I >> realized that guest kernel has specific checks to prevent hot add

Re: BUG: sleeping function called from ras_epow_interrupt context

2015-07-15 Thread Nathan Fontenot
vert 587f83e8dd50d > which would be quite similar, I think) > Looking at the PAPR, the get-sensor-state rtas call for the EPOW sensor is listed as a fast call and should not return a busy indication. I'm curious as to why we're getting a busy return indication when making this

Re: BUG: sleeping function called from ras_epow_interrupt context

2015-07-16 Thread Nathan Fontenot
On 07/16/2015 01:23 AM, Thomas Huth wrote: > On 07/15/2015 09:58 PM, Nathan Fontenot wrote: >> On 07/15/2015 09:35 AM, Thomas Huth wrote: >>> On 07/14/2015 11:22 PM, Benjamin Herrenschmidt wrote: >>>> On Tue, 2015-07-14 at 20:43 +0200, Thomas Huth wrote: >>

Re: [PATCH] powerpc/rtas: Introduce rtas_get_sensor_fast() for IRQ handlers

2015-07-20 Thread Nathan Fontenot
SY condition (which should be the case > for the sensor that is queried by the EPOW IRQ handler). > > Signed-off-by: Thomas Huth Reviewed-by: Nathan Fontenot > --- > arch/powerpc/include/asm/rtas.h | 1 + > arch/powerpc/kernel/rtas.c | 17 ++

Re: [3/6] pseries: Update CPU hotplug error recovery

2015-07-21 Thread Nathan Fontenot
On 07/20/2015 11:46 PM, Michael Ellerman wrote: > On Mon, 2015-22-06 at 20:59:20 UTC, Nathan Fontenot wrote: >> Update the cpu dlpar add/remove paths to do better error recovery when >> a failure occurs during the add/remove operation. This includes adding >> some pr_info an

Re: [4/6] pseries: Add CPU dlpar remove functionality

2015-07-21 Thread Nathan Fontenot
On 07/21/2015 04:27 AM, Michael Ellerman wrote: > On Mon, 2015-22-06 at 21:00:49 UTC, Nathan Fontenot wrote: >> Add the ability to dlpar remove CPUs via hotplug rtas events, either by >> specifying the drc-index of the CPU to remove or providing a count of cpus >> to remove

Re: [4/6] pseries: Add CPU dlpar remove functionality

2015-07-22 Thread Nathan Fontenot
On 07/21/2015 08:11 PM, Michael Ellerman wrote: > On Tue, 2015-07-21 at 16:34 -0500, Nathan Fontenot wrote: >> On 07/21/2015 04:27 AM, Michael Ellerman wrote: >>> On Mon, 2015-22-06 at 21:00:49 UTC, Nathan Fontenot wrote: >>>> +static int dlpar_cpu_remove_by_co

Re: [PATCH 05/31] arch/powerpc/nvram: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Nathan Fontenot
On 08/07/2015 02:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda Reviewed-b

Re: [PATCH 06/31] arch/powerpc/pseries: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Nathan Fontenot
On 08/07/2015 02:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda Reviewed-b

Re: [PATCH 3/8] Add all memory via sysfs probe interface at once

2013-08-06 Thread Nathan Fontenot
On 08/04/2013 10:13 PM, Michael Ellerman wrote: > On Fri, Aug 02, 2013 at 02:13:06PM -0500, Nathan Fontenot wrote: >> On 08/01/2013 09:32 PM, Michael Ellerman wrote: >>> On Wed, Jul 24, 2013 at 01:37:47PM -0500, Nathan Fontenot wrote: >>>> When doing memory hot ad

[PATCH 0/2] Correct memory hotplug remove

2013-08-09 Thread Nathan Fontenot
implementation on Power. Nathan Fontenot --- arch/powerpc/mm/mem.c |2 +- powerpc/arch/powerpc/mm/init_64.c |6 ++ powerpc/arch/powerpc/mm/mem.c |9 + powerpc/mm/Kconfig|2 +- 4 files changed, 17 insertions(+), 2 deletions

[PATCH 1/2] Mark memory resources as busy

2013-08-09 Thread Nathan Fontenot
: Nathan Fontenot --- arch/powerpc/mm/mem.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: powerpc/arch/powerpc/mm/mem.c === --- powerpc.orig/arch/powerpc/mm/mem.c +++ powerpc/arch/powerpc/mm/mem.c @@ -514,7 +514,7

[PATCH 2/2] Register bootmem pages at boot on powerpc

2013-08-09 Thread Nathan Fontenot
needed for building with SPARSE_VMEMMAP enabled. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/init_64.c |6 ++ arch/powerpc/mm/mem.c |9 + mm/Kconfig|2 +- 3 files changed, 16 insertions(+), 1 deletion(-) Index: powerpc/arch/powerpc/mm/init_64.c

Re: [PATCH 2/2] Register bootmem pages at boot on powerpc

2013-08-12 Thread Nathan Fontenot
On 08/11/2013 07:19 PM, Benjamin Herrenschmidt wrote: > On Fri, 2013-08-09 at 10:32 -0500, Nathan Fontenot wrote: > >> +void register_page_bootmem_memmap(unsigned long section_nr, >> + struct page *start_page, unsigned long size) >> +{ >&g

Re: [PATCH 2/2] Register bootmem pages at boot on powerpc

2013-08-12 Thread Nathan Fontenot
On 08/12/2013 04:13 PM, Benjamin Herrenschmidt wrote: > On Mon, 2013-08-12 at 08:01 -0500, Nathan Fontenot wrote: >>> Can you tell me a bit more, the above makes me nervous... >> >> Ok, I agree. that message isn't quite right. >> >> What I wanted to c

Re: [PATCH 1/8] powerpc/pseries: fix creation of loop in device node property list

2013-08-19 Thread Nathan Fontenot
; the device node being updated is corrupted and becomes a loop since the same > property structure is used repeatedly. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/mobility.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH 2/8] powerpc/pseries: fix over writing of rtas return code in update_dt_node

2013-08-19 Thread Nathan Fontenot
ever, the rc variable is overwritten by a call to update_dt_prop > which returns 0 on success. This results in ibm,update-properties not being > called again for the given node when the rtas call rc was previously 1. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --

Re: [PATCH 3/8] powerpc/pseries: pack update_props_workarea to map correctly to rtas buffer header

2013-08-19 Thread Nathan Fontenot
buffer. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/mobility.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/pseries/mobility.c > b/arch/powerpc/platforms/pseries/

Re: [PATCH 4/8] powerpc/pseries: fix parsing of initial node path in update_dt_node

2013-08-19 Thread Nathan Fontenot
sts of > the property name, property value length, and property value. The property > name is an empty string, property length is encoded in 4 byte integer, and > the property value is the node path. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch

Re: [PATCH 5/8] powerpc/pseries: do all node initialization in dlpar_parse_cc_node

2013-08-19 Thread Nathan Fontenot
-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/dlpar.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/platforms/pseries/dlpar.c > b/arch/powerpc/platforms/pseries/dlpar.c > index a1a7b9

Re: [PATCH 6/8] powerpc/pseries: make dlpar_configure_connector parent node aware

2013-08-19 Thread Nathan Fontenot
ll > only contains the node name and not the entire node path. Passing the parent > node where the new subtree will be created to dlpar_configure_connector allows > the correct node path to be prefixed in the full_name field. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot

Re: [PATCH 7/8] powerpc/pseries: add mising of_node_put in delete_dt_node

2013-08-19 Thread Nathan Fontenot
; > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/mobility.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/platforms/pseries/mobility.c > b/arch/powerpc/platforms/pseries/mobility.c > index ff102

Re: [PATCH 8/8] powerpc/pseries: child nodes are not detached by dlpar_detach_node

2013-08-19 Thread Nathan Fontenot
gt; the node will be freed from memory by of_node_release. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/dlpar.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/powerpc/platforms/pseries/dlpar.c &

  1   2   3   4   5   6   7   8   9   10   >