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

Re: [PATCH 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-08-19 Thread Nathan Fontenot
nabled on powerpc. > > This patch removes the cpu_hotplug_driver_lock() interface. As > a result, ARCH_CPU_PROBE_RELEASE only enables / disables the cpu > probe & release interface as intended. There is no functional change > in this patch. > > Signed-off-by: Toshi Kani

[PATCH v2] Correct Memory Hotplug for Power

2013-08-19 Thread Nathan Fontenot
implementation on Power. Nathan Fontenot Updates for v2: - The WARN_ONCE is removed from the added register_page_bootmem_memmap() routine. I have been able to verify that memory hotplug works with SPARSE_VMEMMAP enabled and do not think the warning is needed. --- arch/powerpc/mm/mem.c |9

[PATCH v2 1/2] Mark Memory Resources as busy

2013-08-19 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 v2 2/2] Register bootmem pages

2013-08-19 Thread Nathan Fontenot
BUG_ON for memory hot remove in put_page_bootmem(). This also adds a stub for register_page_bootmem_memmap to allow ppc to build with sparse vmemmap defined. Signed-off-by: Nathan Fontenot --- --- arch/powerpc/mm/init_64.c |4 arch/powerpc/mm/mem.c |9 + mm/Kconfig

[PATCH] Correct memory hotplug for ppc with sparse vmemmap

2013-09-27 Thread Nathan Fontenot
-off-by: Nathan Fontenot --- arch/powerpc/mm/init_64.c |4 arch/powerpc/mm/mem.c |9 + mm/Kconfig|2 +- 3 files changed, 14 insertions(+), 1 deletion(-) Index: powerpc/arch/powerpc/mm/init_64.c

Re: [PATCH 1/3] powerpc: sync ppc64, ppc64e and pseries configs

2013-10-22 Thread Nathan Fontenot
On 10/21/2013 07:44 PM, Anton Blanchard wrote: > > Run savedefconfig over the ppc64, ppc64e and pseries config > > Signed-off-by: Anton Blanchard > --- > > Index: b/arch/powerpc/configs/ppc64_defconfig > === > --- a/arch/powerpc/co

[PATCH] powerpc/pseries Use remove_memory() to remove memory

2014-01-27 Thread Nathan Fontenot
at a time which gives us a memory resource for each section. Future patches will aim to address this so will not have to remove memory one section at a time. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/machdep.h |4 + arch/powerpc/mm/mem.c

Re: [PATCH v2 2/3] powerpc/pseries: Update dynamic cache nodes for suspend/resume operation

2014-01-28 Thread Nathan Fontenot
On 01/22/2014 01:58 PM, Tyrel Datwyler wrote: > From: Haren Myneni > > From: Haren Myneni > > pHyp can change cache nodes for suspend/resume operation. The current code > updates the device tree after all non boot CPUs are enabled. Hence, we do not > modify the cache list based on the latest ca

Re: [PATCH v2 1/3] powerpc/pseries: Device tree should only be updated once after suspend/migrate

2014-01-28 Thread Nathan Fontenot
oc entry exists error is reported for the second update while > adding device nodes. > > This patch makes a single rtas call for update-nodes after activating the FW. > It also add rtas_busy delay for the activate-firmware rtas call. > > Signed-off-by: Haren Myneni > Signed

Re: [PATCH v2 3/3] powerpc/pseries: Report in kernel device tree update to drmgr

2014-01-28 Thread Nathan Fontenot
rmgr is responsible. > > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > arch/powerpc/platforms/pseries/suspend.c | 25 - > 1 file changed, 24 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/pseries/suspend.c >

[PATCH] Handle vmalloc addresses

2014-01-29 Thread Nathan Fontenot
adds a routine to convert an address to a physical address by checking for vmalloc addresses and handling them properly. Signed-off-by: Nathan Fontenot --- drivers/crypto/nx/nx-842.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) Index: linux/drivers

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Nathan Fontenot
Greg, There is one more place that needs fixing up, in mobility_rtas_call(), and handle_rtas_event() in arch/powerpc/platforms/pseries/mobility.c. This relates to rtas event handling for PRRN notifications, we need to convert the scope variable (PRRN notifications re-use the extended log length f

Re: [RFC PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Nathan Fontenot
This is the patch that I worked up at the same time as Greg, the biggest difference being that I took the approach of doing and's, and shifting as opposed to re-defining the bit fields for LE. One other difference is that I left out defines for bits in the error log structures that we currently do

Re: [PATCH v2] powerpc/le: enable RTAS events support

2014-04-07 Thread Nathan Fontenot
w patch is largely inspired by Nathan's work: we get rid of all > the bit fields in the RTAS event structures (even the unused ones, for > consistency). We also introduce endian safe accessors for the fields used > by the kernel (trivial rtas_error_type() accessor added for consis

Re: [RFC PATCH powerpc] Protect remove_memory() with device hotplug lock

2014-04-09 Thread Nathan Fontenot
On 04/09/2014 03:54 AM, Li Zhong wrote: > While testing memory hot-remove, I found following dead lock: > > Process #1141 is drmgr, trying to remove some memory, i.e. memory499. > It holds the memory_hotplug_mutex, and blocks when trying to remove file > "online" under dir memory499, in kernfs_dr

[RFC PATCH 0/4] Update hotplug for pseries systems

2014-06-17 Thread Nathan Fontenot
In order to support device hotplug (cpu, memory, and pci) in both the PowerVM and the PowerKVM environments the handling of hotplug events will need to be updated. This patch set adresses this by creating a common entry point for handling hotplug events in the kernel that can be used in both PowerV

[RFC PATCH 1/4] Create interface for rtas hotplug events and move mem hotplug to the kernel

2014-06-17 Thread Nathan Fontenot
In order to support hotplug of memory, cpu and pci devices in the PowerVM and the PowerKVM environments we will need to provide a single entry point. To do this requires updating the way in which we handle hotplug requests in the PowerVM environment. The idea is to have all of the hotplug in the ke

[RFC PATCH 2/4] Migrate cpu hotplug code to pseries/hotplug-cpu.c

2014-06-17 Thread Nathan Fontenot
This patch moves the cpu hotplug handling code from pseries/dlpar.c to pseries/hotplug-cpu.c. Additionally it factors out the work to add/remove a single cpu into its own routine. --- arch/powerpc/platforms/pseries/dlpar.c | 182 - arch/powerpc/platforms/pseries/hotp

[RFC PATCH 3/4] Handle cpu hotplug from rtas hotplug events

2014-06-17 Thread Nathan Fontenot
This patch updates the cpu hotplug handling code so that we can perform cpu hotplug using the new rtas hotplug event interface while still maintaining the ability to use the probe/release sysfs interface for adding and removing cpus. At a later point we could deprecate the use of the probe/release

[RFC PATCH 4/4] Hook into ras epow interrupt handler for hotplug

2014-06-17 Thread Nathan Fontenot
This patch hooks into the ras EPOW interrupt handler so that we can communicate hotplug rtas events to a PowerKVM guest from qemu. The ras epow interrupt wil lnow check for hotplgu rtas events and invoke the common handling routine accordingly. --- arch/powerpc/include/asm/rtas.h | 1 +

Re: OF_DYNAMIC node lifecycle

2014-06-19 Thread Nathan Fontenot
On 06/18/2014 03:07 PM, Grant Likely wrote: > Hi Nathan and Tyrel, > > I'm looking into lifecycle issues on nodes modified by OF_DYNAMIC, and > I'm hoping you can help me. Right now, pseries seems to be the only > user of OF_DYNAMIC, but making OF_DYNAMIC work has a huge impact on > the entire ker

Re: OF_DYNAMIC node lifecycle

2014-06-24 Thread Nathan Fontenot
On 06/23/2014 09:58 AM, Grant Likely wrote: > On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou > wrote: >> Hi Grant, >> >> CCing Thomas Gleixner & Steven Rostedt, since they might have a few >> ideas... >> >> On Jun 18, 2014, at 11:07 PM, Grant Likely wrote: >> >>> Hi Nathan and Tyrel, >>> >

Re: OF_DYNAMIC node lifecycle

2014-06-24 Thread Nathan Fontenot
On 06/23/2014 09:48 AM, Grant Likely wrote: > On Thu, 19 Jun 2014 10:26:15 -0500, Nathan Fontenot > wrote: >> On 06/18/2014 03:07 PM, Grant Likely wrote: >>> Hi Nathan and Tyrel, >>> >>> I'm looking into lifecycle issues on nodes modified by OF_DYNAMI

Re: OF_DYNAMIC node lifecycle

2014-06-26 Thread Nathan Fontenot
On 06/25/2014 03:22 PM, Grant Likely wrote: > On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot > wrote: >> On 06/23/2014 09:58 AM, Grant Likely wrote: >>> On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou >>> wrote: >>>> Hi Grant, >>>&

Re: OF_DYNAMIC node lifecycle

2014-06-26 Thread Nathan Fontenot
On 06/25/2014 03:24 PM, Grant Likely wrote: > On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot > wrote: >> On 06/23/2014 09:48 AM, Grant Likely wrote: >>> On Thu, 19 Jun 2014 10:26:15 -0500, Nathan Fontenot >>> wrote: >>>> On 06/18/2014 03:07 P

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Nathan Fontenot
On 06/27/2014 07:40 AM, Pantelis Antoniou wrote: > Hi Grant, > > On Jun 27, 2014, at 3:32 PM, Grant Likely wrote: > >> On Thu, 26 Jun 2014 14:59:31 -0500, Nathan Fontenot >> wrote: >>> On 06/25/2014 03:22 PM, Grant Likely wrote: >>>> On Tue

Re: OF_DYNAMIC node lifecycle

2014-06-27 Thread Nathan Fontenot
On 06/27/2014 07:41 AM, Grant Likely wrote: > On Thu, 26 Jun 2014 15:01:49 -0500, Nathan Fontenot > wrote: >> On 06/25/2014 03:24 PM, Grant Likely wrote: >>> On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot >>> wrote: >>>>>> heh! I have

Re: [PATCH] powerpc/pseries: dynamically added OF nodes need to call of_node_init

2014-07-10 Thread Nathan Fontenot
On 07/09/2014 09:33 PM, Michael Ellerman wrote: > On Wed, 2014-07-09 at 21:20 -0400, Tyrel Datwyler wrote: >> Commit 75b57ecf9 refactored device tree nodes to use kobjects such that they >> can be exposed via /sysfs. A secondary commit 0829f6d1f furthered this rework >> by moving the kobect initial

Re: [PATCH v2] powerpc/pseries: dynamically added OF nodes need to call of_node_init

2014-07-10 Thread Nathan Fontenot
ernel.org > Signed-off-by: Tyrel Datwyler Acked-by: Nathan Fontenot > --- > V2: > - included stable kernel list on Cc per comment by mpe > > arch/powerpc/platforms/pseries/dlpar.c| 1 + > arch/powerpc/platforms/pseries/reconfig.c | 1 + > 2 files changed, 2 insertions(+

Re: OF_DYNAMIC node lifecycle

2014-07-16 Thread Nathan Fontenot
On 07/16/2014 05:26 PM, Grant Likely wrote: > On Wed, Jul 16, 2014 at 2:57 PM, Grant Likely wrote: >> On Wed, Jul 16, 2014 at 12:30 PM, Tyrel Datwyler >> wrote: >>> On 07/15/2014 10:33 PM, Grant Likely wrote: I've got another question about powerpc reconfiguration. I was looking at the

Re: [PATCH 1/4] powerpc: implement vmemmap_list_free()

2014-07-24 Thread Nathan Fontenot
x27;t exceed the value for the largest memory > configuration. > > Signed-off-by: Li Zhong > Cc: Nathan Fontenot Acked-by: Nathan Fontenot > --- > arch/powerpc/mm/init_64.c | 62 > + > 1 file changed, 52 insertions(+), 10 deletio

Re: [PATCH 2/4] powerpc: implement vmemmap_remove_mapping() for BOOK3S

2014-07-24 Thread Nathan Fontenot
On 06/11/2014 03:23 AM, Li Zhong wrote: > This is to be called in vmemmap_free(), leave the implementation on BOOK3E > empty as before. > > Signed-off-by: Li Zhong > Cc: Nathan Fontenot Acked-by: Nathan Fontenot > --- > arch/powerpc/mm/hash_utils_64.c |2 +- > a

Re: [PATCH 3/4] powerpc: implement vmemmap_free()

2014-07-24 Thread Nathan Fontenot
On 06/11/2014 03:23 AM, Li Zhong wrote: > vmemmap_free() does the opposite of vmemap_populate(). > This patch also puts vmemmap_free() and vmemmap_list_free() into > CONFIG_MEMMORY_HOTPLUG. > > Signed-off-by: Li Zhong > Cc: Nathan Fontenot Acked-by: Nathan Fontenot > -

Re: [PATCH 4/4] powerpc: start loop at section start of start in vmemmap_populated()

2014-07-24 Thread Nathan Fontenot
loop, adjust the start to be the start of the section, so we > don't miss ranges like the above. > > After we adjust start to be the start of the section, it also means it's > aligned with vmemmap as of the sizeof struct page, so we could use > page_to_pfn directly in the

Re: [PATCH 1/2] powerpc/pseries: Failure on removing device node

2014-08-11 Thread Nathan Fontenot
On 08/11/2014 04:16 AM, Gavin Shan wrote: > While running command "drmgr -c phb -r -s 'PHB 528'", following > backtrace jumped out because the target device node isn't marked > with OF_DETACHED by of_detach_node(), which caused by error > returned from memory hotplug related reconfig notifier when

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
On 09/05/2014 04:16 AM, bharata@gmail.com wrote: > From: Bharata B Rao > > - ibm,rtas-configure-connector should treat the RTAS data as big endian. > - Treat ibm,ppc-interrupt-server#s as big-endian when setting > smp_processor_id during hotplug. > > Signed-off-by: Bharata B Rao > --- >

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

2014-09-08 Thread Nathan Fontenot
It looks like you have a lot of the same changes as the patch Bharata sent out last week. Including the one issue I saw in Bharata's patch below. On 09/05/2014 02:09 PM, Thomas Falcon wrote: > This patch attempts to ensure that all values are in the proper > endianness format when both hotadding a

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

2014-09-15 Thread Nathan Fontenot
In order to better support device hotplug (cpu, memory, and pci) in the PowerVM and PowerKVM environments, the handling of device hotplug could be updated so that the act of hotplugging a device occurs entirely in the kernel. This patch set begins to address this by moving memory hotplug to the ker

[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
On 08/19/2014 05:55 PM, Anton Blanchard wrote: > Signed-off-by: Anton Blanchard > --- > arch/powerpc/kernel/hw_breakpoint.c | 2 +- > arch/powerpc/kernel/nvram_64.c| 2 +- > arch/powerpc/kernel/pci-common.c | 2 +- > arch/powerpc/kernel/pci_of_scan.c | 2 +-

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

2014-09-16 Thread Nathan Fontenot
On 09/09/2014 03:09 PM, Nishanth Aravamudan wrote: > We have hit a few customer issues with the topology update code (VPHN > and PRRN). It would be nice to be able to debug the notifications coming > from the hypervisor in both cases to the LPAR, as well as to disable > reacting to the notificati

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:

Re: [3/3] powerpc/pseries: Cleanup property cloning in memory dlpar

2016-03-03 Thread Nathan Fontenot
On 03/01/2016 07:47 PM, Michael Ellerman wrote: > On Wed, 2016-03-02 at 10:02 +1100, Michael Ellerman wrote: >> On Wed, 2016-10-02 at 17:13:29 UTC, Nathan Fontenot wrote: >>> Now that the DLPAR add/remove flow updates the ibm,dynamic-memory device >>> tree property each

Re: [PATCH 2/3] powerpc: make kernel/nvram_64.c explicitly non-modular

2016-03-28 Thread Nathan Fontenot
he file already has that. > > We delete the MODULE_LICENSE tag since that information is already > contained at the top of the file in the comments. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Hari Bathini > Cc: Nathan Fontenot

Re: [RFC FIX PATCH v0] powerpc,numa: Fix memory_hotplug_max()

2016-04-07 Thread Nathan Fontenot
On 04/06/2016 04:44 AM, Bharata B Rao wrote: > memory_hotplug_max() uses hot_add_drconf_memory_max() to get maxmimum > addressable memory by referring to ibm,dyanamic-memory property. There > are three problems with the current approach: > > 1 hot_add_drconf_memory_max() assumes that ibm,dynamic-m

Re: [RFC FIX PATCH v0] powerpc,numa: Fix memory_hotplug_max()

2016-05-04 Thread Nathan Fontenot
On 04/18/2016 10:54 PM, Bharata B Rao wrote: > On Sat, Apr 09, 2016 at 03:44:31PM +0530, Bharata B Rao wrote: >> On Fri, Apr 08, 2016 at 12:27:44AM -0500, Nathan Fontenot wrote: >>> On 04/06/2016 04:44 AM, Bharata B Rao wrote: >>>> memory_hotplug_max() uses hot_

[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
On 06/04/2015 05:57 AM, Michael Ellerman wrote: > On Thu, 2015-04-06 at 09:34:41 UTC, Geert Uytterhoeven wrote: >> "IS_ENABLED(PPC_PSERIES)" always evaluates to false, as IS_ENABLED() is >> supposed to be used with the full Kconfig symbol name, including the >> "CONFIG_" prefix. >> >> Add the missi

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

2015-06-22 Thread Nathan Fontenot
To better support CPU hotplug in PowerKVM and PowerVM environments, the handling of CPU dlpar should be done entirely in the kernel. This will allow a common entry point for PowerVM and PowerKVM CPU dlpar requests. For both environments, the entry point is the same one introduced in a previous patc

[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
On 06/23/2015 11:01 PM, Bharata B Rao wrote: > So will it be correct to say that memory hotplug to memory-less node > isn't supported by PowerPC kernel ? Should I enforce the same in QEMU > for PowerKVM ? > I'm not sure if that is correct. It appears that we initialize all online nodes, even those

Re: BUG: sleeping function called from ras_epow_interrupt context

2015-07-15 Thread Nathan Fontenot
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: >>> Any suggestions how to fix this? Simply revert 587f83e8dd50d? Use >>> mdelay() instead of msleep() in rtas_busy_delay()? Something more >>>

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 FIX] powerpc/pseries: Release DRC when configure_connector fails

2015-09-04 Thread Nathan Fontenot
On 09/04/2015 05:04 AM, Bharata B Rao wrote: > From: Bharata B Rao > > dlpar_cpu_probe() should release the acquired DRC if configure_connector > call fails. > > Signed-off-by: Bharata B Rao > Cc: Nathan Fontenot Reviewed-by: Nathan Fontenot > --- > arch/powerp

[PATCH] powerpc/pseries: Verify CPU doesn't exist before adding

2015-10-23 Thread Nathan Fontenot
probe to be performed on a cpu by writing to the sysfs cpu probe file (/sys/devices/system/cpu/probe). This patch adds a check for the existence of cpu prior to probing the cpu so userspace doing the wrong thing won't trigger a BUG_ON(). Signed-off-by: Nathan Fontenot --- arch/powerpc/plat

<    1   2   3   4   5   6   7   8   >