[PATCH 1/4] allow memory blocks to span multiple memory sections

2011-01-10 Thread Nathan Fontenot
sysfs. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-by: KAMEZAWA Hiroyuki --- Documentation/memory-hotplug.txt | 47 +++ drivers/base/memory.c| 155 +++ 2 files changed, 139 insertions(+), 63 deletions(-) Index: linux

[PATCH 2/4] Update phys_index to [start|end]_section_nr

2011-01-10 Thread Nathan Fontenot
ons and be aware of the memory block structure name changes (start_section_nr). This requires an additional parameter to unregister_mem_sect_under_nodes so that we know which memory section of the memory block to unregister. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-by

[PATCH 3/4] Define memory_block_size_bytes for powerpc/pseries

2011-01-10 Thread Nathan Fontenot
Define a version of memory_block_size_bytes() for powerpc/pseries such that a memory block spans an entire lmb. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13

[PATCH 4/4] Define memory_block_size_bytes for x86_64 with CONFIG_X86_UV defined

2011-01-10 Thread Nathan Fontenot
Define a version of memory_block_size_bytes for x86_64 when CONFIG_X86_UV is set. Signed-off-by: Robin Holt Signed-off-by: Jack Steiner Signed-off-by: Nathan Fontenot --- arch/x86/mm/init_64.c | 14 ++ 1 file changed, 14 insertions(+) Index: linux-2.6/arch/x86/mm/init_64.c

Re: [PATCH 0/4] De-couple sysfs memory directories from memory sections

2011-01-10 Thread Nathan Fontenot
On 01/10/2011 12:44 PM, Greg KH wrote: > On Mon, Jan 10, 2011 at 12:08:56PM -0600, Nathan Fontenot wrote: >> This is a re-send of the remaining patches that did not make it >> into the last kernel release for de-coupling sysfs memory >> directories from memory sections. The f

[PATCH 0/4] De-couple sysfs memory directories from memory sections

2011-01-20 Thread Nathan Fontenot
that each memoryXXX directory would span multiple memory sections. The number of sections spanned would depend on the value reported by memory_block_size_bytes. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

[PATCH 1/4] Allow memory blocks to span multiple memory sections

2011-01-20 Thread Nathan Fontenot
sysfs. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-by: KAMEZAWA Hiroyuki --- Documentation/memory-hotplug.txt | 47 +++ drivers/base/memory.c| 155 +++ 2 files changed, 139 insertions(+), 63 deletions(-) Index: linux

[PATCH 2/4] Update phys_index to [start|end]_section_nr

2011-01-20 Thread Nathan Fontenot
ons and be aware of the memory block structure name changes (start_section_nr). This requires an additional parameter to unregister_mem_sect_under_nodes so that we know which memory section of the memory block to unregister. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-by

[PATCH 3/4]Define memory_block_size_bytes for powerpc/pseries

2011-01-20 Thread Nathan Fontenot
Define a version of memory_block_size_bytes() for powerpc/pseries such that a memory block spans an entire lmb. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13

[PATCH 4/4] Define memory_block_size_bytes for x86_64 with CONFIG_X86_UV

2011-01-20 Thread Nathan Fontenot
Define a version of memory_block_size_bytes for x86_64 when CONFIG_X86_UV is set. Signed-off-by: Robin Holt Signed-off-by: Jack Steiner Signed-off-by: Nathan Fontenot --- arch/x86/mm/init_64.c | 14 ++ 1 file changed, 14 insertions(+) Index: linux-2.6/arch/x86/mm/init_64.c

Re: [PATCH 0/4] De-couple sysfs memory directories from memory sections

2011-01-20 Thread Nathan Fontenot
On 01/20/2011 10:45 AM, Greg KH wrote: > On Thu, Jan 20, 2011 at 10:36:40AM -0600, Nathan Fontenot wrote: >> The root of this issue is in sysfs directory creation. Every time >> a directory is created a string compare is done against sibling >> directories ( see sysfs_find_di

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

[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

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

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

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

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

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

[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

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

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

[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

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

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

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

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

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

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

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

2009-11-24 Thread Nathan Fontenot
CONFIG_ARCH_CPU_PROBE_RELEASE option 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

[PATCH v2 3/3]CPU DLPAR handling

2009-11-24 Thread Nathan Fontenot
This patch adds the specific routines to probe and release (add and remove) cpu resource for the powerpc pseries platform and registers these handlers with the ppc_md callout structure. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 88

Re: [PATCH v3 2/3] sysfs cpu probe/release files

2009-11-25 Thread Nathan Fontenot
stubs to handle the arch callouts from writes to the sysfs files. The creation and use of these files is regulated by the CONFIG_ARCH_CPU_PROBE_RELEASE option so that only architectures that need the capability will have the files created. Signed-off-by: Nathan Fontenot --- Documentation

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

2009-11-30 Thread Nathan Fontenot
Eric W. Biederman wrote: Nathan Fontenot writes: version 2 of the patch set with updates from comments. 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

[PATCH] pseries: Correct pseries/dlpar.c build break without CONFIG_SMP

2009-12-08 Thread Nathan Fontenot
changes should help clarify that. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 188 - 1 file changed, 94 insertions(+), 94 deletions(-) Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c

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

2009-12-18 Thread Nathan Fontenot
Andreas Schwab wrote: Nathan Fontenot writes: Index: powerpc/arch/powerpc/Kconfig === --- powerpc.orig/arch/powerpc/Kconfig 2009-10-28 15:21:47.0 -0500 +++ powerpc/arch/powerpc/Kconfig2009-10-28 15:21

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

2009-12-21 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: On Fri, 2009-12-18 at 15:33 +0100, Andreas Schwab wrote: Nathan Fontenot writes: Index: powerpc/arch/powerpc/Kconfig === --- powerpc.orig/arch/powerpc/Kconfig 2009-10-28 15:21:47.0 -0500

[PATCH] Make cpu hotplug driver lock part of ppc_md

2009-12-22 Thread Nathan Fontenot
1 Signed-of-by: Nathan Fontenot --- arch/powerpc/include/asm/machdep.h |2 ++ arch/powerpc/kernel/smp.c | 14 ++ arch/powerpc/platforms/pseries/dlpar.c |6 -- 3 files changed, 20 insertions(+), 2 deletions(-) Index: powerpc/arch/powerpc/includ

Re: [PATCH] Make cpu hotplug driver lock part of ppc_md

2009-12-23 Thread Nathan Fontenot
Michael Ellerman wrote: On Tue, 2009-12-22 at 08:45 -0600, Nathan Fontenot wrote: The recently introduced cpu_hotplug_driver_lock used to serialize cpu hotplug operations, namely for the pseries platform, causes a build issue for other platforms. The base cpu hotplug code attempts to take this

Re: [PATCH] Make cpu hotplug driver lock part of ppc_md

2010-01-12 Thread Nathan Fontenot
Benjamin Herrenschmidt wrote: The intention of the cpu_hotplug_driver_locks to add additional serialization during cpu hotplug operations. For pseries this is used during DLPAR of cpu operations so that cpu hotplug actions cannot be initiated whiloe a DLPAR operation is in flight. For example,

[PATCH] Move /proc/ppc64 to /proc/powerpc update

2010-01-14 Thread Nathan Fontenot
files to be created under /proc/powerpc. Signed-off-by: Nathan Fontenot --- arch/powerpc/kernel/rtas-proc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Index: powerpc/arch/powerpc/kernel/rtas-proc.c

[PATCH] Move cpu hotplug driver lock from pseries to powerpc

2010-01-14 Thread Nathan Fontenot
Move the defintion and lock helper routines for the cpu hotplug driver lock from pseries to powerpc code to avoid build breaks for platforms other than pseries that use cpu hotplug. Signed-off-by: Nathan Fontenot --- arch/powerpc/kernel/smp.c | 12 arch/powerpc

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

2008-06-13 Thread Nathan Fontenot
Stephen Rothwell wrote: Hi Robert, On Thu, 12 Jun 2008 17:08:58 -0500 Robert Jennings <[EMAIL PROTECTED]> wrote: - seq_printf(m, "R4=0x%lx\n", h_entitled); - seq_printf(m, "R5=0x%lx\n", h_unallocated); - seq_printf(m, "R6=0x%lx\n", h_aggregation); -

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

2008-06-16 Thread Nathan Fontenot
Split the retrieval and setting of processor entitlement and weight into helper routines. This also removes the printing of the raw values returned from h_get_ppp, the values are already parsed and printed. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lpa

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

2008-06-16 Thread Nathan Fontenot
interface to allow setting memory entitlement and weight. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lparcfg.c | 139 +++--- include/asm-powerpc/hvcall.h | 18 + 2 files changed, 147 insertions(+), 10 deletions(-) Index:

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

2008-06-16 Thread Nathan Fontenot
memory entitlement and weight. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- arch/powerpc/kernel/lparcfg.c | 139 +++--- include/asm-powerpc/hvcall.h | 18 + 2 files changed, 147 insertions(+), 10 deletions(-) Index: linux-2.6.git/arch/p

[PATCH 0/5] Updates for memory dlpar and dynamic reconfiguration memory

2008-06-20 Thread Nathan Fontenot
hotplug add of memory needs a seperate version for parsing the new device tree layout. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

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

2008-06-20 Thread Nathan Fontenot
Allow the drc index passed to the /proc/ppc64/ofdt file to be specified in formats other than decimal. This allows us to easily specify drc indexes in hex that would otherwise appears as negative integers. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/arch/p

[PATCH 2/5] Use the base address of lmbs instead of drc index for dlpar

2008-06-20 Thread Nathan Fontenot
starting page frame number from the base address of an lmb instead of the drc index. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/arch/powerpc/platforms/pseries/hotplug-memory.c === --- linux-2.6.gi

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

2008-06-20 Thread Nathan Fontenot
information for lmbs represented under the ibm,dynamic-reconfiguration-memory node and have the lmbs added/removed. Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]> --- Index: linux-2.6.git/include/asm-powerpc/pSeries_reco

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

2008-06-20 Thread Nathan Fontenot
. 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-03 16:29:04.0 -0500 +++ linux-2.6.git/arch/powerpc/mm/

[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

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 _

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

[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

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

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/

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

[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

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] 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] 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] 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 1/6] arch/powerpc/platforms/pseries: Use kasprintf

2010-03-11 Thread Nathan Fontenot
= - \(kmalloc\|kzalloc\)(...,flag) + kasprintf(flag,args) <... when != a if (a == NULL || ...) S ...> - sprintf(a,args); // Looks good, thanks. Signed-off-by: Julia Lawall Acked-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c |7 ++- 1 file changed, 2 inse

Re: [PATCH 1/2] powerpc: Partition hibernation support

2010-03-11 Thread Nathan Fontenot
Brian King wrote: Enables support for HMC initiated partition hibernation. This is a firmware assisted hibernation, since the firmware handles writing the memory out to disk, along with other partition information, so we just mimic suspend to ram. Signed-off-by: Brian King --- arch/powerpc/Kc

[PATCH] Update smt_enabled=X handling for cores with more than two threads

2010-05-12 Thread Nathan Fontenot
the smp_setup_cpu_maps() call. This is done so that we can use the threads_per_core variable when validating the smt boot option specified. Signed-off-by: Nathan Fontenot --- arch/powerpc/kernel/setup_64.c | 61 --- arch/powerpc/platforms/pseries/smp.c

[PATCH 0/7] De-couple sysfs memory directories from memory sections

2010-07-12 Thread Nathan Fontenot
red by the directory. The file 'split' allows for splitting the directory in two, with each new directory covering half as many memory sections as the previous directory. Thanks, Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@li

[PATCH 1/7] Split the memory_block structure

2010-07-12 Thread Nathan Fontenot
structures. Signed -off-by: Nathan Fontenot --- drivers/base/memory.c | 228 +++-- include/linux/memory.h | 11 +- 2 files changed, 172 insertions(+), 67 deletions(-) Index: linux-2.6/drivers/base/memory.c

<    1   2   3   4   5   6   7   8   >