[PATCH v2 1/3] Kernel DLPAR Infrastructure

2009-11-24 Thread Nathan Fontenot
it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/pSeries_reconfig.h |1 arch/powerpc/platforms/pseries/Makefile |2 arch/powerpc/platforms/pseries/dlpar.c | 344 arch/powerpc/platfor

Re: [PATCH 0/3] Kernel handling of Dynamic Logical Partitioning

2009-11-24 Thread Nathan Fontenot
Paul Mackerras wrote: Nathan Fontenot writes: The Dynamic Logical Partitioning (DLPAR) capabilities of the powerpc pseries platform allows for the addition and removal of resources (i.e. cpus, memory, pci devices) from a partition. The removal of a resource involves removing the resource&#

[PATCH v2 0/3] Kernel handling of Dynamic Logical Partitioning

2009-11-24 Thread Nathan Fontenot
itate arch-specific call-outs to handle addition and removal of cpus to the system. -Nathan Fontenot 1/3 - powerpc/pseries kernel DLPAR infrastructure 2/3 - Create probe/release sysfs files and the powerpc handlers 3/3 - powerpc/pseries CPU DLPAR handling arch/powerpc/Kconfig

[PATCH 3/3] CPU DLPAR handling

2009-11-24 Thread Nathan Fontenot
Register the pseries specific handlers for the powerpc architecture handlers for the cpu probe and release files. This also implements the cpu DLPAR addition and removal of CPUS from the system. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 88

[PATCH 2/3] sysfs cpu probe/release files

2009-11-24 Thread Nathan Fontenot
so that only architectures that need the capability will have the files created. Signed-off-by: Nathan Fontenot --- arch/powerpc/Kconfig |4 arch/powerpc/include/asm/machdep.h |5 + arch/powerpc/kernel/sysfs.c| 19 +++ drivers/base/cpu.c

[PATCH 1/3] Kernel DLPAR infrastructure

2009-11-24 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- --- arch/powerpc/include/asm/pSeries_reconfig.h |1 arch/powerpc/platforms/pseries/Makefile |2 arch/powerpc/platforms/pseries/dlpar.c | 324

[PATCH 0/3] Kernel handling of Dynamic Logical Partitioning

2009-11-24 Thread Nathan Fontenot
al of cpus to the system. -Nathan Fontenot 1/3 - powerpc/pseries kernel DLPAR infrastructure 2/3 - Create probe/release sysfs files and the powerpc handlers 3/3 - powerpc/pseries CPU DLPAR handling arch/powerpc/Kconfig|4 arch/powerpc/include/asm/machdep.h |

Re: [PATCH 0/4 v2] Merge OF dynamic patches

2009-11-23 Thread Nathan Fontenot
Grant Likely wrote: But I'm really close to posting my 3rd series, so it may be better to wait until that is published and build a patch on top of that to move them into of_dynamic.c Works for me. -Nathan Fontenot ___ Linuxppc-dev mailing

[PATCH 4/4 v2] Include of_dynamic.h in pseries/reconfig.c

2009-11-20 Thread Nathan Fontenot
Include the newly created linux/of_dynamic.h to pick up the of_[attach,detach]_node declarations. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/reconfig.c |1 + 1 file changed, 1 insertion(+) Index: test-devicetree/arch/powerpc/platforms/pseries/reconfig.c

[PATCH 3/4 v2] Makefile and Kconfig updates

2009-11-20 Thread Nathan Fontenot
Update the Kconfig and Makefile files for drivers/of, powerpc and microblaze to properly configure for CONFIG_OF_DYNAMIC to build the of_dynamic code. Signed-off-by: Nathan Fontenot --- arch/microblaze/Kconfig |1 + arch/powerpc/Kconfig|1 + drivers/of/Kconfig |4

[PATCH 2/4 v2] Merge of_detach_node

2009-11-20 Thread Nathan Fontenot
Merge the common of_detach_node() from powerpc and microblaze into the common drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- arch/microblaze/include/asm/prom.h |3 -- arch/microblaze/kernel/prom.c | 44 - arch/powerpc/include/asm/prom.h

[PATCH 1/4 v2] Merge of_attach_node

2009-11-20 Thread Nathan Fontenot
Merge the common of_attach_node() routine from powerpc and microblaze to drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- arch/microblaze/include/asm/prom.h |1 - arch/microblaze/kernel/prom.c | 15 --- arch/powerpc/include/asm/prom.h|1 - arch/powerpc

[PATCH 0/4 v2] Merge OF dynamic patches

2009-11-20 Thread Nathan Fontenot
This set of patches merges the common dynamic device tree updating routines of_attach_node() and of_detach_node() to drivers/of/of_dynamic.c. Built and tested on powerpc, I have no access to build/test this on microblaze. -Nathan Fontenot --- 1/4 - Merge of_attach_node 2/4 - Merge

Re: [PATCH 0/4] Merge OF dynamic patches

2009-11-18 Thread Nathan Fontenot
Wolfram Sang wrote: On Tue, Nov 17, 2009 at 03:04:02PM -0600, Nathan Fontenot wrote: This set of patches merges the common dynamic device tree updating routines of_attach_node() and of_detach_node() to drivers/of/of_dynamic.c. Built and tested on powerpc, I have no access to build/test this on

[PATCH 4/4] Move of_node[attach,detach] declarations to linux/of.h

2009-11-17 Thread Nathan Fontenot
Merge the declarations of of_attach_node and of_detach_node from the asm/prom.h headers of powerpc and microblaze into linux/of.h. This update also requires adding linux/of.h to the include list for powerpc/platforms/pseries/reconfig.h. Signed-off-by: Nathan Fontenot --- Index: test

[PATCH 3/4] Makefile and Kconfig updates for of_dynamci

2009-11-17 Thread Nathan Fontenot
Update the Kconfig and Makefile files for drivers/of, powerpc and microblaze to properly configure for CONFIG_OF_DYNAMIC to build the of_dynamic code. Signed-off-by: Nathan Fontenot --- Index: test-devicetree/arch/microblaze/Kconfig

[PATCH 2/4] Merge of_detach_node

2009-11-17 Thread Nathan Fontenot
Merge the common of_detach_node() from powerpc and microblaze into the common drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- Index: test-devicetree/arch/microblaze/kernel/prom.c === --- test-devicetree.orig/arch

[PATCH 1/4] Merge of_attach_node

2009-11-17 Thread Nathan Fontenot
Merge the common of_attach_node() routine from powerpc and microblaze to drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- Index: test-devicetree/arch/microblaze/kernel/prom.c === --- test-devicetree.orig/arch/microblaze

[PATCH 0/4] Merge OF dynamic patches

2009-11-17 Thread Nathan Fontenot
This set of patches merges the common dynamic device tree updating routines of_attach_node() and of_detach_node() to drivers/of/of_dynamic.c. Built and tested on powerpc, I have no access to build/test this on microblaze. -Nathan Fontenot 1/4 - Merge of_attach_node 2/4 - Merge of_detach_node 3

Re: [PATCH 09/11] of: merge prom_{add,remove,modify}_property

2009-11-10 Thread Nathan Fontenot
renamed them to of_{add,remove,update}_property since they are part of the of code. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[RFC PATCH 5/5] powerpc/iseries updates for new OF dynamic code

2009-11-04 Thread Nathan Fontenot
Update the powerpc/iseries vio code to use the new generic OF dynamic code. NOTE: I have no means of testing iseries kernels, this does at least pass the compile test for me. Signed-off-by: Nathan Fontenot --- Index: linux-next/arch/powerpc/platforms/iseries/vio.c

[RFC PATCH 4/5] Microblaze updates for OF dynamic code

2009-11-04 Thread Nathan Fontenot
test yet. Signed-off-by: Nathan Fontenot --- Index: linux-next/arch/microblaze/kernel/prom.c === --- linux-next.orig/arch/microblaze/kernel/prom.c 2009-11-03 13:20:25.0 -0600 +++ linux-next/arch/microblaze/kernel/p

[RFC PATCH 3/5] powerpc and pseries updates for new OF dynamic code

2009-11-04 Thread Nathan Fontenot
Updates to powerpc generic and powerpc/pseries. This patch removes the dynamic device tree updating code from prom.c and deletes the no longer neccessary pSeries_reconfig.h file, all of the functionality is now in the generic OF code. The remaining changes deal with updating code for name chang

[RFC PATCH 2/5] Merge dynamic OF code to of_dynamic.c

2009-11-04 Thread Nathan Fontenot
. Signed-off-by: Nathan Fontenot --- Index: linux-next/drivers/of/of_dynamic.c === --- /dev/null 1970-01-01 00:00:00.0 + +++ linux-next/drivers/of/of_dynamic.c 2009-11-04 14:45:11.0 -0600 @@ -0,0 +1,387

[RFC PATCH 1/5] Move devtree_lock and allnodes declaration to of.h

2009-11-04 Thread Nathan Fontenot
Move the declaration of devtree_lock and allnodes from powerpc/microblaze asm/prom.h to linux/of.h Signed-off-by: Nathan Fontenot --- Index: linux-next/include/linux/of.h === --- linux-next.orig/include/linux/of.h 2009-11-02 13:39

[RFC PATCH 0/5] Merge common dynamic OF device tree code

2009-11-04 Thread Nathan Fontenot
onfig option. Additionally this makes the necessary updates to powerpc and microblaze arch's for this move. Nathan Fontenot (5) - Move the declaration of devtree_lock and allnodes to linux/of.h - Create drivers/of/of_dynamic.c from common code. - powerpc and pseri

Re: [PATCH 1/6 v5] Kernel DLPAR Infrastructure

2009-11-02 Thread Nathan Fontenot
Grant Likely wrote: On Mon, Nov 2, 2009 at 9:27 AM, Nathan Fontenot wrote: I saw that Grant Likely is doing updates to all of the of_* stuff right now, would it be ok to have these routines here, renamed as dlpar_*, and look to merge them in with Grant's updates when he finishes? No be

Re: [PATCH 1/6 v5] Kernel DLPAR Infrastructure

2009-11-02 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: On Wed, 2009-10-28 at 15:53 -0500, Nathan Fontenot wrote: This patch provides the kernel DLPAR infrastructure in a new filed named dlpar.c. The functionality provided is for acquiring and releasing a resource from firmware and the parsing of information returned

Re: [PATCH 6/6 v5] CPU DLPAR Handling

2009-11-02 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: On Wed, 2009-10-28 at 15:59 -0500, Nathan Fontenot wrote: +#ifdef CONFIG_ARCH_CPU_PROBE_RELEASE +static ssize_t cpu_probe(const char *buf, size_t count) dlpar_cpu_probe() pls +static ssize_t cpu_release(const char *buf, size_t count) +{ Ditto. Or else in

Re: [PATCH 3/6 v5] Memory probe/release files

2009-11-02 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: On Wed, 2009-10-28 at 15:55 -0500, Nathan Fontenot wrote: This patch creates the release sysfs file for memory and updates the exisiting probe file so both make arch-specific callouts to handle removing and adding memory to the system. This also creates the

[PATCH 1/6 v5] Kernel DLPAR Infrastructure

2009-10-28 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- /dev/null 1970-01-01 00:00:00.0 +

[PATCH 4/6 v5] Memory DLPAR Handling

2009-10-28 Thread Nathan Fontenot
This adds the capability to DLPAR add and remove memory from the kernel. The patch registers handlers for the arch-specific probe and release memory callouts to handle addition/removal of memory to the system and the associated device tree updates. Signed-off-by: Nathan Fontenot --- Index

[PATCH 5/6 v5] CPU probe/release files

2009-10-28 Thread Nathan Fontenot
so that only architectures that need the capability will have the files created. Signed-off-by: Nathan Fontenot --- Index: powerpc/drivers/base/cpu.c === --- powerpc.orig/drivers/base/cpu.c 2009-10-28 15:20:34.0 -0500

[PATCH 6/6 v5] CPU DLPAR Handling

2009-10-28 Thread Nathan Fontenot
Register the pseries specific handler for the powerpc architecture handlers for the cpu probe and release files. This also implements the cpu DLPAR addition and removal of CPUS from the system. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c

[PATCH 2/6 v5] Move of_drconf_cell to prom.h

2009-10-28 Thread Nathan Fontenot
Move the definition of the of_drconf_cell struct from numa.c to prom.h. This is needed so that we can parse the ibm,dynamic-memory device-tree property when DLPAR adding and removing memory. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/include/asm/prom.h

[PATCH 0/6 v5] Kernel handling of Dynamic Logical Partitioning

2009-10-28 Thread Nathan Fontenot
be/release files and the powerpc handlers for them 4/6 - Memory DLPAR handling 5/6 - Create sysfs cpu probe/release files and the powerpc handlers for them 6/6 - CPU DLPAR handling -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs

[PATCH 3/6 v5] Memory probe/release files

2009-10-28 Thread Nathan Fontenot
governed by the exisitng CONFIG_ARCH_MEMORY_PROBE and new CONFIG_ARCH_MEMORY_RELEASE config options. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/mm/mem.c === --- powerpc.orig/arch/powerpc/mm/mem.c 2009-10-28 15:20

Re: [PATCH 3/5 v4] Export memory_sysdev_class

2009-10-22 Thread Nathan Fontenot
Dave Hansen wrote: On Wed, 2009-10-21 at 09:44 -0500, Nathan Fontenot wrote: Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powe

[PATCH 5/5 v4] Kernel Handling of cpu DLPAR

2009-10-21 Thread Nathan Fontenot
the probe file, and removal is done by writing the device-tree path of the cpu to the release file. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms

[PATCH 4/5 v4] Kernel Handling of memory DLPAR

2009-10-21 Thread Nathan Fontenot
R release of memory back to firmware and updating of the device-tree. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms/pseries/dlpar.c 2009-10-19 11:5

[PATCH 3/5 v4] Export memory_sysdev_class

2009-10-21 Thread Nathan Fontenot
Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powerpc/pseries platform. The new 'release' file will be powerpc/pserie

[PATCH 2/5 v4] move of_drconf_cell definition to prom.h

2009-10-21 Thread Nathan Fontenot
Move the definition of the of_drconf_cell struct from numa.c to prom.h. This is needed so that we can parse the ibm,dynamic-memory device-tree property when DLPAR adding and removing memory. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/include/asm/prom.h

[PATCH 1/5 v4] Kernel Handling of Dynamic Logical Partitioning

2009-10-21 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- /dev/null 1970-01-01 00:00:00.0 +

[PATCH 0/5 v4] Kernel Handling of Dynamic Logical Partitioning

2009-10-21 Thread Nathan Fontenot
n this set: 1/5 - DLPAR infracstructure for powerpc/pseries platform. 2/5 - Move the of_drconf_cell struct to prom.h 3/5 - Export the memory sysdev class 4/5 - Memory DLPAR handling 5/5 - CPU DLPAR handling -Nathan Fontenot ___ Linuxppc-dev mailing li

Re: [PATCH 5/5 v2] kernel handling of CPU DLPAR

2009-10-15 Thread Nathan Fontenot
Michael Ellerman wrote: On Tue, 2009-10-13 at 13:14 -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs

Re: [PATCH 4/5 v3] kernel handling of memory DLPAR

2009-10-15 Thread Nathan Fontenot
Michael Ellerman wrote: On Tue, 2009-10-13 at 13:13 -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove memory from the kernel. The Hi Nathan, Sorry to only get around to reviewing version 3, time is a commodity in short supply :) Index: powerpc/arch/powerpc

Re: [PATCH 5/5 v2] kernel handling of CPU DLPAR

2009-10-13 Thread Nathan Fontenot
the probe file, and removal is done by writing the device-tree path of the cpu to the release file. Updated to include #ifdef CONFIG_HOTPLUG_CPU around the cpu hotplug specific bits so that it will build without CONFIG_HOTPLUG_CPU defined. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch

Re: [PATCH 4/5 v3] kernel handling of memory DLPAR

2009-10-13 Thread Nathan Fontenot
lease of memory back to firmware and updating of the device-tree. Updated to add #ifdef CONFIG_MEMORY_HOTPLUG around the memory hotplug specific updates. This allows the file to be built without CONFIG_MEMORY_HOTPLUG defined. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platf

Re: [PATCH 1/5 v3] dynamic logical partitioning infrastructure

2009-10-13 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Updated to remove an extraneous of_node_put() in the removal of a device tree node path. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c

Re: [PATCH 1/2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-01 Thread Nathan Fontenot
Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accommodate memory hotplug remove. Prior to calling the memory hotplug notifier chain the memory in the pageblock is isolated. If the migrate type is not MIGRATE_MOVABL

[PATCH 5/5 v2] kernel handling of CPU DLPAR

2009-09-18 Thread Nathan Fontenot
the probe file, and removal is done by writing the device-tree path of the cpu to the release file. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms

[PATCH 4/5 v2] kernel handling of memory DLPAR

2009-09-18 Thread Nathan Fontenot
lease of memory back to firmware and updating of the device-tree. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms/pseries/dlpar.c 2009-09-17 11:3

[PATCH 3/5 v2] Export memory_sysdev_class

2009-09-18 Thread Nathan Fontenot
Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powerpc/pseries platform. The new 'release' file will be powerpc/pserie

[PATCH 2/5 v2] move of_drconf_cell definition to prom.h

2009-09-18 Thread Nathan Fontenot
Move the definition of the of_drconf_cell struct from numa.c to prom.h. This is needed so that we can parse the ibm,dynamic-memory device-tree property when DLPAR adding and removing memory. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/include/asm/prom.h

[PATCH 1/5 v2] dynamic logical partitioning infrastructure

2009-09-18 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- /dev/null 1970-01-01 00:00:00.0 +

[PATCH 0/5 v2] kernel handling of dynamic logical partitioning

2009-09-18 Thread Nathan Fontenot
e_store() - Use strict_strtoul - Correct checkpatch failures. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 1/5] dynamic logical partitioning infrastructure

2009-09-17 Thread Nathan Fontenot
Michael Ellerman wrote: On Fri, 2009-09-11 at 16:10 -0500, Nathan Fontenot wrote: This patch provides the kernel DLPAR infrastructure in a new filed named dlpar.c. The functionality provided is for acquiring and releasing a resource from firmware and the parsing of information returned from

Re: [PATCH 1/5] dynamic logical partitioning infrastructure

2009-09-15 Thread Nathan Fontenot
Brian King wrote: Nathan Fontenot wrote: +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#define CFG_CONN_WORK_SIZE4096 +static char workarea[CFG_CONN_WORK_SIZE]; +spinlock_t workarea_lock; This can be: static

Re: [PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-14 Thread Nathan Fontenot
Daniel Walker wrote: On Fri, 2009-09-11 at 16:08 -0500, Nathan Fontenot wrote: am cc'ing lkml. Patches include in this set: 1/5 - DLPAR infrastructure for powerpc/pseries platform. 2/5 - Move the of_drconf_cell struct to prom.h 3/5 - Export the memory sysdev class 4/5 - Memory DLPAR han

Re: [PATCH 5/5] kernel handling of CPU DLPAR

2009-09-14 Thread Nathan Fontenot
Andrey Panin wrote: On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove CPUs from the kernel. The creates two new files /sys/devices/system/cpu/probe and /sys/devices/system/cpu/release to handle the DLPAR addition and removal of CPUs

Re: [PATCH 4/5] kernel handling of memory DLPAR

2009-09-14 Thread Nathan Fontenot
Andrey Panin wrote: On 254, 09 11, 2009 at 04:14:35PM -0500, Nathan Fontenot wrote: This adds the capability to DLPAR add and remove memory from the kernel. The patch extends the powerpc handling of memory_add_physaddr_to_nid(), which is called from the sysfs memory 'probe' fil

[PATCH 5/5] kernel handling of CPU DLPAR

2009-09-11 Thread Nathan Fontenot
the probe file, and removal is done by writing the device-tree path of the cpu to the release file. Signed-off-by: Nathan Fontenot Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms

[PATCH 4/5] kernel handling of memory DLPAR

2009-09-11 Thread Nathan Fontenot
R release of memory back to firmware and updating of the device-tree. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- powerpc.orig/arch/powerpc/platforms/pseries/dlpar.c 2009-09-11 12:5

[PATCH 3/5] Export memory_sysdev_class

2009-09-11 Thread Nathan Fontenot
Export the memory_sysdev_class structure. This is needed so we can create a 'release' file in sysfs in addition to the existing 'probe' file in order to support DLPAR removal of memory on the powerpc/pseries platform. The new 'release' file will be powerpc/pserie

[PATCH 2/5] move of_drconf_cell definition to prom.h

2009-09-11 Thread Nathan Fontenot
Move the definition of the of_drconf_cell struct from numa.c to prom.h. This is needed so that we can parse the ibm,dynamic-memory device-tree property when DLPAR adding and removing memory. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/include/asm/prom.h

[PATCH 1/5] dynamic logical partitioning infrastructure

2009-09-11 Thread Nathan Fontenot
reconfiguration notifier chain so that it can be invoked when device tree updates are made. Signed-off-by: Nathan Fontenot --- Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c === --- /dev/null 1970-01-01 00:00:00.0 +

Re: [PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-11 Thread Nathan Fontenot
Disregard. Re-sending with corrections. -Nathan Nathan Fontenot wrote: The Dynamic Logical Partitioning (DLPAR) capabilities of the powerpc pseries platform allows for the addition and removal of resources (i.e. cpus, memory, pci devices) from a partition. The removal of a resource involves

[PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-11 Thread Nathan Fontenot
dling 5/5 - CPU DLPAR handling Please pardon the re-send, I borked the lkml address on cc the first time. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 0/5] kernel handling of dynamic logical partitioning

2009-09-11 Thread Nathan Fontenot
dling 5/5 - CPU DLPAR handling -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] v2: Display processor virtualization resource allocations in lparcfg

2009-05-27 Thread Nathan Fontenot
property is >= 1 to ensure that the information is valid. Signed-off-by: Nathan Fontenot --- Index: linux-2.6/arch/powerpc/kernel/lparcfg.c === --- linux-2.6.orig/arch/powerpc/kernel/lparcfg.c2009-05-21 10:24:57.0 -0

Re: [PATCH] Display processor virtualization resource allocations in lparcfg

2009-05-27 Thread Nathan Fontenot
Michael Ellerman wrote: + root = of_find_node_by_path("/"); + if (root) { + perf_level = of_get_property(root, + "ibm,partition-performance-parameters-level", +NULL); What if there is no such pro

[PATCH] Display processor virtualization resource allocations in lparcfg

2009-05-26 Thread Nathan Fontenot
property is >= 1 to ensure that the information is valid. Signed-off-by: Nathan Fontenot --- Index: linux-2.6/arch/powerpc/kernel/lparcfg.c === --- linux-2.6.orig/arch/powerpc/kernel/lparcfg.c2009-05-21 10:24:57.0 -0

Re: [PATCH] powerpc/pseries failed reconfig notifier chain call cleanup

2009-03-11 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: On Thu, 2009-03-05 at 13:53 -0600, Nathan Fontenot wrote: The return code from invoking the notifier chain when updating the ibm,dynamic-memory property is not handled properly. In failure cases (rc == NOTIFY_BAD) we should be restoring the original value of the

[PATCH] powerpc/pseries failed reconfig notifier chain call cleanup

2009-03-05 Thread Nathan Fontenot
. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/reconfig.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) Index: linux-2.6/arch/powerpc/platforms/pseries/reconfig.c === --- linux-2.6.orig/arch

[PATCH] Cleanup hot_add_scn_to_nid

2009-02-17 Thread Nathan Fontenot
patch that introduced support for hotplug memory add on systems whose memory was represented by the ibm,dynamic-memory property of the device tree only left the code more unintelligible. This will hopefully makes things easier to understand. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm

[PATCH] Allocate resources for PHB DLPAR add

2008-10-23 Thread Nathan Fontenot
ft in the pcibios_allocate_bus_resources routine. The big functionality change in this routine is only that the list_for_each_entry() loop is pulled out and moved to the necessary calling routine. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6/arch/powerpc/kernel/p

Re: [PATCH 2/16] xics: update default_server during migrate_irqs_away

2008-10-13 Thread Nathan Fontenot
, since xics_update_irq_servers only reads device tree information, we can call it before xics_init_host in xics_init_IRQ and then default_server will always be valid when we can reach get_irq_server via the host ops. Signed-off-by: Milton Miller <[EMAIL PROTECTED]> Acked-by: Nathan Fontenot &

[PATCH] powerpc: pseries_remove_lmb() should validate pfn

2008-10-13 Thread Nathan Fontenot
The pfn of the memory to be removed should be validated prior to attempting to remove the memory. In cases where the probe of a memory section fails during hotplug add, the pfn for the lmb may not be valid. Signed-off-by: Badari Pulavarty <[EMAIL PROTECTED]> Signed-off-by: Nathan Fo

[PATCH] powerpc: oops in pseries_lmb_remove()

2008-10-01 Thread Nathan Fontenot
without large pages enabled. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6-paulus/arch/powerpc/platforms/pseries/hotplug-memory.c === --- linux-2.6-paulus.orig/arch/powerpc/platforms/pseries/hotplug-me

[PATCH] powerpc: Check rc of notifier chain for memory remove

2008-08-25 Thread Nathan Fontenot
notifier chain. This happens specifically when we remove/add memory from the device tree on machines using memory specified in the ibm,dynamic-reconfiguration-memory property of the device tree. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6-paulus/arch/powerpc/pla

[PATCH] Zero fill the return values of rtas arg buffer

2008-07-30 Thread Nathan Fontenot
rtas call. I am seeing an issue in testing partition mobility, where the return value fields of the rtas args struct contain stale data. This causes it to appear as thought the rtas call fails, when it actually succeeds. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2

[PATCH] Memset the kernel copy of rtas args before using

2008-07-25 Thread Nathan Fontenot
ition mobility, where the parts of the rtas args struct that return status top the user contain stale data. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED],ibm.com> --- Index: linux-2.6.git/arch/powerpc/kernel/rtas.c === --

[PATCH] Allow non-hcall return values for lparcfg writes

2008-07-25 Thread Nathan Fontenot
: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/arch/powerpc/kernel/lparcfg.c === --- linux-2.6.git.orig/arch/powerpc/kernel/lparcfg.c2008-07-23 13:40:50.0 -0500 +++ linux-2.6.git/arch/powerpc/kernel/lpa

[PATCH] Remove kmalloc call in handling writes to lparcfg

2008-07-23 Thread Nathan Fontenot
There are only 4 valid name=value pairs for writes to /proc/ppc64/lparcfg. Current code allocates a buffer to copy this information in from the user. Since the longest name=value pair will easily fit into a buffer of 64 characters, simply put the buffer on the stack instead of allocating the buf

Re: [PATCH 04/16 v3] powerpc: Split retrieval of processor entitlement data into a helper routine

2008-07-22 Thread Nathan Fontenot
Updated patch to correct the reporting of pool_capcity. Split the retrieval of processor entitlement data returned in the H_GET_PPP hcall into its own helper routine. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- arch/po

Re: [PATCH 03/16 v3] powerpc: Add memory entitlement capabilities to /proc/ppc64/lparcfg

2008-07-22 Thread Nathan Fontenot
: Nathan Fontenot <[EMAIL PROTECTED]> Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lparcfg.c | 119 ++ include/asm-powerpc/hvcall.h | 18 ++ 2 files changed, 136 insertions(+), 1 deletion(-) Index: linux-

Re: [PATCH 02/16 v3] powerpc: Split processor entitlement retrieval and gathering to helper routines

2008-07-22 Thread Nathan Fontenot
, the values are already parsed and printed. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lparcfg.c | 168 ++--- 1 file changed, 90 insertions(+), 78 deletions(-) Inde

Re: [PATCH 04/16 v3] powerpc: Split retrieval of processor entitlement data into a helper routine

2008-07-22 Thread Nathan Fontenot
Paul Mackerras wrote: Robert Jennings writes: Split the retrieval of processor entitlement data returned in the H_GET_PPP hcall into its own helper routine. This seems to change the value reported for pool_capacity radically: /* report pool_capacity in percentage */ -

Re: [PATCH 1/4] kdump : add support for ibm, dynamic-reconfiguration-memory for kexec/kdump

2008-07-10 Thread Nathan Fontenot
Hello Chandru, static int __init early_init_dt_scan_drconf_memory(unsigned long node) { - cell_t *dm, *ls; + cell_t *dm, *ls, *endp, *usm; unsigned long l, n, flags; u64 base, size, lmb_size; + char buf[32], t[8]; ls = (cell_t *)of_get_flat_dt_prop(node, "

Re: [PATCH 4/5 v2] Split code into helper routines for drconf memory

2008-07-02 Thread Nathan Fontenot
. There are no functional changes in this patch. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/mm/numa.c | 209 +++-- 1 file changed, 170 insertions(+), 39 deletions(-) Index: linux-2.6.git/arch/powerpc/mm/

[PATCH 5/5 v2] Update numa association of hotplug memory add for drconf memory

2008-07-02 Thread Nathan Fontenot
() routines. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/mm/numa.c | 101 - 1 file changed, 83 insertions(+), 18 deletions(-) Index: linux-2.6.git/arch/powerpc/mm/

[PATCH 4/5 v2] Split code into helper routines for drconf memory

2008-07-02 Thread Nathan Fontenot
: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/mm/numa.c | 209 +++-- 1 file changed, 170 insertions(+), 39 deletions(-) Index: linux-2.6.git/arch/powerpc/mm/numa.c === --- lin

[PATCH 3/5 v2] Update the device tree correctly for drconf memory add/remove

2008-07-02 Thread Nathan Fontenot
hotplug notifier chain. This also updates the pseries hotplug notifier to be able to gather information for lmbs represented under the ibm,dynamic-reconfiguration-memory node and have the lmbs added/removed. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pseries/h

[PATCH 2/5 v2] Use base address to derive starting page frame number

2008-07-02 Thread Nathan Fontenot
where lmbs are represented under the ibm,dynamic-reconfiguration-memory node in the ibm,dynamic-memory property do not have this correlation between the drc index and base address of the lmb. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pseries/hotplug-me

[PATCH 1/5 v2] Allow phandle to be specified in formats other than decimal

2008-07-02 Thread Nathan Fontenot
-reconfiguration-memory.ibm,phandle is fff9. Having to pass this to the ofdt file as a string results in a large negative number, and simple_strtoul() does not handle negative numbers. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pseries/reconfig.c |2 +-

[PATCH 0/5 v2] Update memory dlpar for dynamic reconfiguration memory

2008-07-02 Thread Nathan Fontenot
ut and properly call the memory hotplug notifier chains. Additionally, numa associativity done during hotplug add of memory needs an update for parsing the new device tree layout. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> ___ Linuxppc-dev

Re: [PATCH 4/5] Helper routines for parsing drconf memory

2008-07-01 Thread Nathan Fontenot
Paul Mackerras wrote: Nathan Fontenot writes: This patch pulls several pieces of exisitng code for parsing memory under the ibm,dynamic-reconfiguration-memory node of the device tree into helper routines. This is in preparation for the next patch that will also use these same helper routines

Re: [PATCH 03/19] powerpc: Add memory entitlement capabilities to /proc/ppc64/lparcfg

2008-06-24 Thread Nathan Fontenot
also updates the lparcfg interface to allow setting memory entitlement and weight. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lparcfg.c | 119 ++ include/asm

Re: [PATCH 1/5] Allow drc indexes to be specified in formats other than decimal

2008-06-22 Thread Nathan Fontenot
Sergei Shtylyov wrote: I guess checkpatch.pl told you to consider switching to strict_strtol()? :-) WBR, Sergei Yes, it did warn about not switching. There other places in this file that use simple_strtoul so I was hoping to submit a followon patch that converts everything. -Nathan _

[PATCH 5/5] Add ability to associate drconf memory sections in hotplug memory add

2008-06-20 Thread Nathan Fontenot
proper associations. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/arch/powerpc/mm/numa.c === --- linux-2.6.git.orig/arch/powerpc/mm/numa.c 2008-06-20 13:58:09.0 -0500 +++ linux-2.6.gi

<    2   3   4   5   6   7   8   >