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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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);
-
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
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:
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
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
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
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
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
.
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/
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
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
_
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
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
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
-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 +-
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
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
: 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
() 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/
. 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/
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, "
.
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
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
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
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
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
=
- \(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
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
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
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
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
401 - 500 of 714 matches
Mail list logo