[PATCH 2/8] v2 Add section count to memory_block struct

2010-09-27 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. This allows us to know when the last memory section of a memory block has been removed so we can remove the memory block. Signed-off-by: Nathan Fontenot

[PATCH 1/8] v2 Move find_memory_block() routine

2010-09-27 Thread Nathan Fontenot
Move the find_memory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) Index: linux-next/drivers

[PATCH 0/8] v2 De-Couple sysfs memory directories from memory sections

2010-09-27 Thread Nathan Fontenot
phys_index. Additionally, the patch that adds the end_phys_index sysfs file is now patch 5/8 instead of being patch 2/8 as in the previous version of the patches. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

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

2010-09-24 Thread Nathan Fontenot
On 09/23/2010 01:40 PM, Balbir Singh wrote: > * Nathan Fontenot [2010-09-22 09:15:43]: > >> This set of patches decouples the concept that a single memory >> section corresponds to a single directory in >> /sys/devices/system/memory/. On systems >> with large a

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

2010-09-22 Thread Nathan Fontenot
On 09/22/2010 10:20 AM, Dave Hansen wrote: > On Wed, 2010-09-22 at 09:15 -0500, Nathan Fontenot wrote: >> For architectures that define their own version of this routine, >> as is done for powerpc in this patchset, the view in userspace >> would change such that each memoryXXX

[PATCH 8/8] Update memory hotplug documentation

2010-09-22 Thread Nathan Fontenot
Update the memory hotplug documentation to reflect the new behaviors of memory blocks reflected in sysfs. Signed-off-by: Nathan Fontenot --- Documentation/memory-hotplug.txt | 46 +-- 1 file changed, 30 insertions(+), 16 deletions(-) Index: linux-next

[PATCH 7/8] Define memory_block_size_bytes() for powerpc/pseries

2010-09-22 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 --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13 deletions(-) Index: linux

[PATCH 6/8] Update node sysfs code

2010-09-22 Thread Nathan Fontenot
Update the node sysfs code to be aware of the new capability for a memory block to span multiple memory sections. 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

[PATCH 5/8] Allow a memory block to span multiple memory sections

2010-09-22 Thread Nathan Fontenot
block (i.e. one sysfs directory per memory section). For architectures that want to have memory blocks span multiple memory sections they need only define their own memory_block_size_bytes() routine. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 148

[PATCH 4/8] Add mutex for adding/removing memory blocks

2010-09-22 Thread Nathan Fontenot
Add a new mutex for use in adding and removing of memory blocks. This is needed to avoid any race conditions in which the same memory block could be added and removed at the same time. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c |7 +++ 1 file changed, 7 insertions

[PATCH 3/8] Add section count to memory_block struct

2010-09-22 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. This allows us to know when the last memory section of a memory block has been removed so we can remove the memory block. Signed-off-by: Nathan Fontenot

[PATCH 2/8] Update memory block struct to have start and end phys index

2010-09-22 Thread Nathan Fontenot
start and end values. This also adds an 'end_phys_index' property to indicate the id of the last section in th memory block. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 28 include/linux/memory.h |3 ++- 2 files changed, 22 insertions(

[PATCH 1/8] Move find_memory_block() routine

2010-09-22 Thread Nathan Fontenot
Move the find_memory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) Index: linux-next/drivers

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

2010-09-22 Thread Nathan Fontenot
id of the last memory section covered by the sysfs directory. For the default case, the value in 'end_phys_index' will be the same as in the existing 'phys_index' file. -Nathan Fontenot ___ Linuxppc-dev mailing list Linux

[PATCH 3/3] Partition migration in the kernel

2010-09-10 Thread Nathan Fontenot
@@ +/* + * Support for Partition Mobility/Migration + * + * Copyright (C) 2010 Nathan Fontenot + * Copyright (C) 2010 IBM Corporation + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version + * 2 as published by the Free

[PATCH 2/3] Export rtas_ibm_suspend_me()

2010-09-10 Thread Nathan Fontenot
Export the rtas_ibm_suspend_me() routine. This is needed to perform partition migration in the kernel. Signed-off-by: Nathan Fontenot --- arch/powerpc/include/asm/rtas.h |1 + arch/powerpc/kernel/rtas.c |4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) Index: linux-next

[PATCH 1/3] Export pseries device tree updating routines

2010-09-10 Thread Nathan Fontenot
Export routines associated with adding and removing device tree nodes on pseries needed for device tree updating. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c |4 ++-- arch/powerpc/platforms/pseries/pseries.h |9 + 2 files changed, 11 insertions

[PATCH 0/3] Enable partition migration in the kernel

2010-09-10 Thread Nathan Fontenot
updating and firmware activation required post-migration. The first two patches simply export routines needed by the migration and device tree updating code. The third patch contains the implementation of migration and device tree updating. -Nathan Fontenot

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

2010-09-02 Thread Nathan Fontenot
On 08/31/2010 04:57 PM, Anton Blanchard wrote: > > Hi Nathan, > >> This set of patches de-couples the idea that there is a single >> directory in sysfs for each memory section. The intent of the >> patches is to reduce the number of sysfs directories created to >> resolve a boot-time performance

[PATCH] Correct rtas_data_buf locking in dlpar code

2010-08-18 Thread Nathan Fontenot
. This patch alleviates this issue by copying the contents of the rtas_data_buf to a local buffer before parsing. This allows us to only hold the rtas_data_buf_lock around the RTAS configure-connector calls. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/dlpar.c | 42

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

2010-08-16 Thread Nathan Fontenot
On 08/12/2010 02:08 PM, Andrew Morton wrote: > On Mon, 09 Aug 2010 12:53:00 -0500 > Nathan Fontenot wrote: > >> This set of patches de-couples the idea that there is a single >> directory in sysfs for each memory section. The intent of the >> patches is to reduce the

Re: [PATCH 8/8] v5 Update memory-hotplug documentation

2010-08-10 Thread Nathan Fontenot
On 08/09/2010 03:44 PM, Nishanth Aravamudan wrote: > On Monday, August 09, 2010 11:43:46 am Nathan Fontenot wrote: >> Update the memory hotplug documentation to reflect the new behaviors of >> memory blocks reflected in sysfs. > > > >> Index: linux-2.6/Do

[PATCH 8/8] v5 Update memory-hotplug documentation

2010-08-09 Thread Nathan Fontenot
Update the memory hotplug documentation to reflect the new behaviors of memory blocks reflected in sysfs. Signed-off-by: Nathan Fontent --- Documentation/memory-hotplug.txt | 46 +-- 1 file changed, 30 insertions(+), 16 deletions(-) Index: linux-2.6/Docume

[PATCH 7/8] v5 Define memory_block_size_bytes() for ppc/pseries

2010-08-09 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 --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13 deletions(-) Index: linux

[PATCH 6/8] v5 Update the node sysfs code

2010-08-09 Thread Nathan Fontenot
Update the node sysfs code to be aware of the new capability for a memory block to contain multiple memory sections. 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

[PATCH 5/8] v5 Allow memory_block to span multiple memory sections

2010-08-09 Thread Nathan Fontenot
(i.e. one sysfs directory per memory section). For architectures that want to have memory blocks span multiple memory sections they need only define their own memory_block_size_bytes() routine. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 148

[PATCH 4/8] v5 Add mutex for add/remove of memory blocks

2010-08-09 Thread Nathan Fontenot
Add a new mutex for use in adding and removing of memory blocks. This is needed to avoid any race conditions in which the same memory block could be added and removed at the same time. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c |7 +++ 1 file changed, 7 insertions

[PATCH 3/8] v5 Add section count to memory_block

2010-08-09 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. This alolws us to know when the lasat memory section of a memory block has been removed so we can remove the memory block. Signed-off-by: Nathan

[PATCH 2/8] v5 Add new phys_index properties

2010-08-09 Thread Nathan Fontenot
start and end values. This also adds an 'end_phys_index' property to indicate the id of the last section in th memory block. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 28 include/linux/memory.h |3 ++- 2 files changed, 22 insertions

[PATCH 1/8] v5 Move the find_memory_block() routine up

2010-08-09 Thread Nathan Fontenot
Move the find_me mory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) Index: linux-2.6/drivers

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

2010-08-09 Thread Nathan Fontenot
phys_index..end_phys_index. Thanks, Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 6/9] v4 Update the find_memory_block declaration

2010-08-09 Thread Nathan Fontenot
On 08/04/2010 11:59 PM, KAMEZAWA Hiroyuki wrote: > On Tue, 03 Aug 2010 08:41:45 -0500 > Nathan Fontenot wrote: > >> Update the find_memory_block declaration to to take a struct mem_section * >> so that it matches the definition. >> >> Signed-off-by: Nathan

Re: [PATCH 4/9] v4 Add mutex for add/remove of memory blocks

2010-08-09 Thread Nathan Fontenot
On 08/04/2010 11:53 PM, KAMEZAWA Hiroyuki wrote: > On Tue, 03 Aug 2010 08:39:50 -0500 > Nathan Fontenot wrote: > >> Add a new mutex for use in adding and removing of memory blocks. This >> is needed to avoid any race conditions in which the same memory block could >>

[PATCH] Correct smt_enabled=X boot option for > 2 threads per core

2010-08-05 Thread Nathan Fontenot
The 'smt_enabled=X' boot option does not handle values of X > 2. For Power 7 processors with smt modes of 0,1,2,3, and 4 this does not work. This patch allows the smt_enabled option to be set to any value limited to a max equal to the number of threads per core. Signed-off-by: Na

[PATCH 9/9] v4 Update memory-hotplug documentation

2010-08-03 Thread Nathan Fontenot
Update the memory hotplug documentation to reflect the new behaviors of memory blocks reflected in sysfs. Signed-off-by: Nathan Fontenot --- Documentation/memory-hotplug.txt | 40 +++ 1 file changed, 24 insertions(+), 16 deletions(-) Index: linux-2.6

[PATCH 8/9] v4 Define memory_block_size_bytes() for ppc/pseries

2010-08-03 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 --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13 deletions(-) Index: linux-2.6

[PATCH 7/9] v4 Update the node sysfs code

2010-08-03 Thread Nathan Fontenot
Update the node sysfs code to be aware of the new capability for a memory block to contain multiple memory sections. 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

[PATCH 6/9] v4 Update the find_memory_block declaration

2010-08-03 Thread Nathan Fontenot
Update the find_memory_block declaration to to take a struct mem_section * so that it matches the definition. Signed-off-by: Nathan Fontenot --- include/linux/memory.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/include/linux/memory.h

[PATCH 5/9] v4 Allow memory_block to span multiple memory sections

2010-08-03 Thread Nathan Fontenot
(i.e. one sysfs directory per memory section). For architectures that want to have memory blocks span multiple memory sections they need only define their own memory_block_size_bytes() routine. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 148

[PATCH 4/9] v4 Add mutex for add/remove of memory blocks

2010-08-03 Thread Nathan Fontenot
Add a new mutex for use in adding and removing of memory blocks. This is needed to avoid any race conditions in which the same memory block could be added and removed at the same time. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c |9 + 1 file changed, 9 insertions

[PATCH 3/9] v4 Add section count to memory_block

2010-08-03 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. This allows us to know when the last memory section of a memory block has been removed so we can remove the memory block. Signed-off-by: Nathan Fontenot

[PATCH 2/9] v4 Add new phys_index properties

2010-08-03 Thread Nathan Fontenot
start and end values. This also adds an 'end_phys_index' property to indicate the id of the last section in th memory block. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 28 include/linux/memory.h |3 ++- 2 files changed, 22 insertions

[PATCH 1/9] v4 Move the find_memory_block() routine up

2010-08-03 Thread Nathan Fontenot
Move the find_memory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) Index: linux-2.6/drivers

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

2010-08-03 Thread Nathan Fontenot
8/9 Define memory_block_size_bytes() for ppc/pseries - Use an unsigned long for getting property value. Patch 9/9 Update memory-hotplug documentation - Minor updates for reversion of phys_index property name. Thanks, Nathan Fontenot ___ Linuxppc-dev mailing list Li

Re: [PATCH] powerpc: ONLINE to OFFLINE CPU state transition during removal

2010-07-26 Thread Nathan Fontenot
On 07/22/2010 11:13 PM, Vaidyanathan Srinivasan wrote: > * Robert Jennings [2010-07-22 21:43:44]: > >> If a CPU remove is attempted using the 'release' interface on hardware >> which supports extended cede, the CPU will be put in the INACTIVE state >> rather than the OFFLINE state due to the defa

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-26 Thread Nathan Fontenot
On 07/20/2010 02:18 PM, Dave Hansen wrote: > On Mon, 2010-07-19 at 22:55 -0500, Nathan Fontenot wrote: >> +static int add_memory_section(int nid, struct mem_section *section, >> + unsigned long state, enum mem_add_context context) >> +{ >> +

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-23 Thread Nathan Fontenot
On 07/20/2010 02:18 PM, Dave Hansen wrote: > On Mon, 2010-07-19 at 22:55 -0500, Nathan Fontenot wrote: >> +static int add_memory_section(int nid, struct mem_section *section, >> + unsigned long state, enum mem_add_context context) >> +{ >> +

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-20 Thread Nathan Fontenot
(i.e. one sysfs directory per memory section). For architectures that want to have memory blocks span multiple memory sections they need only define their own memory_block_size_bytes() routine. Patch refreshed to apply cleanly with previous two patch updates. Signed-off-by: Nathan Fontenot

Re: [PATCH 3/8] v3 Add section count to memory_block

2010-07-20 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. Updated to use atomic_dec_and_test(). Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 18 +++--- include/linux/memory.h

Re: [PATCH 2/8] v3 Add new phys_index properties

2010-07-20 Thread Nathan Fontenot
dated to keep the name of the phys_index property instead of renaming it to start_phys_index. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 28 include/linux/memory.h |3 ++- 2 files changed, 22 insertions(+), 9 deletions(-)

[PATCH 8/8] v3 Update memory-hotplug documentation

2010-07-19 Thread Nathan Fontenot
Update the memory hotplug documentation to reflect the new behaviors of memory blocks reflected in sysfs. Signed-off-by: Nathan Fontent --- Documentation/memory-hotplug.txt | 40 +++ 1 file changed, 24 insertions(+), 16 deletions(-) Index: linux-2.6/Docume

[PATCH 7/8] v3 Define memory_block_size_bytes() for ppc/pseries

2010-07-19 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 --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13 deletions(-) Index: linux-2.6

[PATCH 6/8] v3 Update the node sysfs code

2010-07-19 Thread Nathan Fontenot
Update the node sysfs code to be aware of the new capability for a memory block to contain multiple memory sections. 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

[PATCH 5/8] v3 Update the find_memory_block declaration

2010-07-19 Thread Nathan Fontenot
Update the find_memory_block declaration to to take a struct mem_section * so that it matches the definition. Signed-off-by: Nathan Fontenot --- include/linux/memory.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/include/linux/memory.h

[PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-19 Thread Nathan Fontenot
(i.e. one sysfs directory per memory section). For architectures that want to have memory blocks span multiple memory sections they need only define their own memory_block_size_bytes() routine. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 141

[PATCH 3/8] v3 Add section count to memory_block

2010-07-19 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a emory block. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 19 --- include/linux/memory.h |2 ++ 2 files changed, 14 insertions

[PATCH 2/8] v3 Add new phys_index properties

2010-07-19 Thread Nathan Fontenot
Update the 'phys_index' properties of a memory block to include a 'start_phys_index' which is the same as the current 'phys_index' property. This also adds an 'end_phys_index' property to indicate the id of the last section in th memory block. Signed-of

[PATCH 1/8] v3 Move the find_memory_block() routine up

2010-07-19 Thread Nathan Fontenot
Move the find_me mory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) Index: linux-2.6/drivers

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

2010-07-19 Thread Nathan Fontenot
ermine the memory section range of a directory. -Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 1/5] v2 Split the memory_block structure

2010-07-16 Thread Nathan Fontenot
On 07/16/2010 12:15 PM, Dave Hansen wrote: > On Thu, 2010-07-15 at 13:37 -0500, Nathan Fontenot wrote: >> @@ -123,13 +130,20 @@ >> static ssize_t show_mem_removable(struct sys_device *dev, >> struct sysdev_attribute *attr, char *buf) >> { >&

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

2010-07-16 Thread Nathan Fontenot
On 07/16/2010 02:13 AM, Greg KH wrote: > On Mon, Jul 12, 2010 at 10:27:02AM -0500, Nathan Fontenot wrote: >> This set of patches de-couples the idea that there is a single >> directory in sysfs for each memory section. > > Any reason you didn't cc: the sysfs maintainer o

Re: [PATCH 4/5] v2 Update sysfs node routines for new sysfs memory directories

2010-07-16 Thread Nathan Fontenot
On 07/15/2010 07:12 PM, KAMEZAWA Hiroyuki wrote: > On Thu, 15 Jul 2010 13:40:40 -0500 > Nathan Fontenot wrote: > >> Update the node sysfs directory routines that create >> links to the memory sysfs directories under each node. >> This update makes the node cod

Re: [PATCH 2/5] v2 Create new 'end_phys_index' file

2010-07-16 Thread Nathan Fontenot
On 07/15/2010 07:08 PM, KAMEZAWA Hiroyuki wrote: > On Thu, 15 Jul 2010 13:38:52 -0500 > Nathan Fontenot wrote: > >> Add a new 'end_phys_index' file to each memory sysfs directory to >> report the physical index of the last memory section >> covered by the

Re: [PATCH 1/5] v2 Split the memory_block structure

2010-07-16 Thread Nathan Fontenot
Thanks for taking a look a this Kame, answers below... -Nathan On 07/15/2010 07:06 PM, KAMEZAWA Hiroyuki wrote: > On Thu, 15 Jul 2010 13:37:51 -0500 > Nathan Fontenot wrote: > >> Split the memory_block struct into a memory_block >> struct to cover each sysf

[PATCH 5/5] v2 Enable multiple sections per directory for ppc

2010-07-15 Thread Nathan Fontenot
Update the powerpc/pseries code to initialize the memory sysfs directory block size to be the same size as a LMB. Signed-off-by; Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file changed, 53 insertions(+), 13 deletions(-) Index: linux

[PATCH 4/5] v2 Update sysfs node routines for new sysfs memory directories

2010-07-15 Thread Nathan Fontenot
Update the node sysfs directory routines that create links to the memory sysfs directories under each node. This update makes the node code aware that a memory sysfs directory can cover multiple memory sections. Signed-off-by: Nathan Fontenot --- drivers/base/node.c | 12 1 file

[PATCH 3/5] v2 Change the mutex name in the memory_block struct

2010-07-15 Thread Nathan Fontenot
Change the name of the memory_block mutex since it is now used for more than just gating changes to the status of the memory sections covered by the memory sysfs directory. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 20 ++-- include/linux/memory.h |9

[PATCH 2/5] v2 Create new 'end_phys_index' file

2010-07-15 Thread Nathan Fontenot
Add a new 'end_phys_index' file to each memory sysfs directory to report the physical index of the last memory section covered by the sysfs directory. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 14 +- include/linux/memory.h |3 +++ 2 files c

[PATCH 1/5] v2 Split the memory_block structure

2010-07-15 Thread Nathan Fontenot
beneficial in that it can reduce the number of memory sysfs directories created at boot. This also allows different architectures to define how many memory sections are covered by a sysfs directory. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 222

[PATCH 0/5] v2 De-couple sysfs memory directories from memory section size

2010-07-15 Thread Nathan Fontenot
ermine the memory section range of a directory. For version 2 of this patchset the capability to split a directory has been removed. Thanks, Nathan Fontenot ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 4/7] Allow sysfs memory directories to be split

2010-07-14 Thread Nathan Fontenot
On 07/13/2010 10:26 PM, Dave Hansen wrote: > On Wed, 2010-07-14 at 09:35 +0900, KAMEZAWA Hiroyuki wrote: >> 2. I'd like to write a configfs module for handling memory hotplug even >> when >> sysfs directroy is not created. >> Because configfs support rmdir/mkdir, the user (ppc's daemon

Re: [PATCH 4/7] Allow sysfs memory directories to be split

2010-07-13 Thread Nathan Fontenot
On 07/13/2010 07:35 PM, KAMEZAWA Hiroyuki wrote: > On Tue, 13 Jul 2010 10:51:58 -0500 > Nathan Fontenot wrote: > >>> >>> And for what purpose this interface is ? Does this split memory block into >>> 2 pieces >>> of the same size ?? sounds __ve

Re: [PATCH 1/7] Split the memory_block structure

2010-07-13 Thread Nathan Fontenot
On 07/13/2010 09:00 AM, Brian King wrote: > On 07/12/2010 10:42 AM, Nathan Fontenot wrote: >> @@ -123,13 +130,20 @@ >> static ssize_t show_mem_removable(struct sys_device *dev, >> struct sysdev_attribute *attr, char *buf) >> { >> -unsigne

Re: [PATCH 4/7] Allow sysfs memory directories to be split

2010-07-13 Thread Nathan Fontenot
On 07/13/2010 01:28 AM, KAMEZAWA Hiroyuki wrote: > On Mon, 12 Jul 2010 10:45:25 -0500 > Nathan Fontenot wrote: > >> This patch introduces the new 'split' file in each memory sysfs >> directory and the associated routines needed to handle splitting >> a d

Re: [PATCH 3/7] Update the [register,unregister]_memory routines

2010-07-13 Thread Nathan Fontenot
On 07/13/2010 01:20 AM, KAMEZAWA Hiroyuki wrote: > On Mon, 12 Jul 2010 10:44:10 -0500 > Nathan Fontenot wrote: > >> This patch moves the register/unregister_memory routines to >> avoid a forward declaration. It also moves the sysfs file >> creation and deletion

Re: [PATCH 1/7] Split the memory_block structure

2010-07-13 Thread Nathan Fontenot
Thanks for the review, answers below... -Nathan On 07/13/2010 01:18 AM, KAMEZAWA Hiroyuki wrote: > > plz cc linux-mm in the next time... > And please incudes updates for Documentation/memory-hotplug.txt. > will do. > > On Mon, 12 Jul 2010 10:42:06 -0500 > Nathan Fonten

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

2010-07-12 Thread Nathan Fontenot
On 07/12/2010 02:30 PM, Bodo Eggert wrote: > Nathan Fontenot wrote: > >> The file 'split' allows for splitting the >> directory in two, with each new directory covering half as many >> memory sections as the previous directory. > > Just some random though

[PATCH 7/7] Enable multiple memory sections per sysfs memory directory for powerpc/pseries

2010-07-12 Thread Nathan Fontenot
This patch updates the powerpc/pseries code to initialize the memory sysfs directory creation to create sysfs directories that each cover an LMB's worth of memory. Signed-off-by; Nathan Fontenot --- arch/powerpc/platforms/pseries/hotplug-memory.c | 66 +++- 1 file ch

[PATCH 6/7] Update sysfs node routines for new sysfs memory directories

2010-07-12 Thread Nathan Fontenot
This patch updates the node sysfs directory routines that create links to the memory sections under each node. This update makes the node code aware that a memory sysfs directory can cover multiple memory sections. Signed-off-by: Nathan Fontenot --- drivers/base/node.c | 12 1

[PATCH 5/7] update the mutex name in the memory_block struct

2010-07-12 Thread Nathan Fontenot
This patch updates the name of the memory_block mutex since it is now used for more than just gating changes to the status of the memory section coveerd by the memory sysfs directory. Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 20 ++-- include/linux/memory.h

[PATCH 4/7] Allow sysfs memory directories to be split

2010-07-12 Thread Nathan Fontenot
This patch introduces the new 'split' file in each memory sysfs directory and the associated routines needed to handle splitting a directory. Signed-off-by; Nathan Fontenot --- drivers/base/memory.c | 99 +- 1 file changed, 98 insert

[PATCH 3/7] Update the [register,unregister]_memory routines

2010-07-12 Thread Nathan Fontenot
This patch moves the register/unregister_memory routines to avoid a forward declaration. It also moves the sysfs file creation and deletion for each directory into the register/ unregister routines to avoid duplicating it with these updates. Signed-off-by: Nathan Fontenot --- drivers/base

[PATCH 2/7] Create the new 'end_phys_index' file

2010-07-12 Thread Nathan Fontenot
This patch adds a new 'end_phys_index' file to each memory sysfs directory to report the physical index of the last memory section coverd by the sysfs directory. Signed -off-by: Nathan Fontenot --- drivers/base/memory.c | 14 +- include/linux/memory.h |3 +++ 2 fil

[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

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

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

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

[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

[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

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,

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

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

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

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

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

[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

[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

<    1   2   3   4   5   6   7   8   >