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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
.
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
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
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
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
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
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: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
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 +
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
the
probe file, and removal is done by writing the device-tree path of the cpu
to the release file.
Updated to include #ifdef CONFIG_HOTPLUG_CPU around the cpu hotplug specific
bits so that it will build without CONFIG_HOTPLUG_CPU defined.
Signed-off-by: Nathan Fontenot
---
Index: powerpc/arch
lease of
memory back to firmware and updating of the device-tree.
Updated to add #ifdef CONFIG_MEMORY_HOTPLUG around the memory hotplug specific
updates. This allows the file to be built without CONFIG_MEMORY_HOTPLUG
defined.
Signed-off-by: Nathan Fontenot
---
Index: powerpc/arch/powerpc/platf
reconfiguration notifier chain so that it can be invoked when
device tree updates are made.
Updated to remove an extraneous of_node_put() in the removal of a device
tree node path.
Signed-off-by: Nathan Fontenot
---
Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c
Robert Jennings wrote:
Memory balloon drivers can allocate a large amount of memory which
is not movable but could be freed to accommodate memory hotplug remove.
Prior to calling the memory hotplug notifier chain the memory in the
pageblock is isolated. If the migrate type is not MIGRATE_MOVABL
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
lease of
memory back to firmware and updating of the device-tree.
Signed-off-by: Nathan Fontenot
---
Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c
===
--- powerpc.orig/arch/powerpc/platforms/pseries/dlpar.c 2009-09-17
11:3
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
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
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 +
e_store()
- Use strict_strtoul
- Correct checkpatch failures.
-Nathan Fontenot
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
Michael Ellerman wrote:
On Fri, 2009-09-11 at 16:10 -0500, Nathan Fontenot wrote:
This patch provides the kernel DLPAR infrastructure in a new filed named
dlpar.c. The functionality provided is for acquiring and releasing a
resource from firmware and the parsing of information returned from
Brian King wrote:
Nathan Fontenot wrote:
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+
+#define CFG_CONN_WORK_SIZE4096
+static char workarea[CFG_CONN_WORK_SIZE];
+spinlock_t workarea_lock;
This can be:
static
Daniel Walker wrote:
On Fri, 2009-09-11 at 16:08 -0500, Nathan Fontenot wrote:
am cc'ing lkml.
Patches include in this set:
1/5 - DLPAR infrastructure for powerpc/pseries platform.
2/5 - Move the of_drconf_cell struct to prom.h
3/5 - Export the memory sysdev class
4/5 - Memory DLPAR han
Andrey Panin wrote:
On 254, 09 11, 2009 at 04:15:33PM -0500, Nathan Fontenot wrote:
This adds the capability to DLPAR add and remove CPUs from the kernel. The
creates two new files /sys/devices/system/cpu/probe and
/sys/devices/system/cpu/release to handle the DLPAR addition and
removal of
CPUs
Andrey Panin wrote:
On 254, 09 11, 2009 at 04:14:35PM -0500, Nathan Fontenot wrote:
This adds the capability to DLPAR add and remove memory from the kernel. The
patch extends the powerpc handling of memory_add_physaddr_to_nid(), which is
called from the sysfs memory 'probe' fil
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
R release of
memory back to firmware and updating of the device-tree.
Signed-off-by: Nathan Fontenot
---
Index: powerpc/arch/powerpc/platforms/pseries/dlpar.c
===
--- powerpc.orig/arch/powerpc/platforms/pseries/dlpar.c 2009-09-11
12:5
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
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
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 +
Disregard. Re-sending with corrections.
-Nathan
Nathan Fontenot wrote:
The Dynamic Logical Partitioning (DLPAR) capabilities of the powerpc
pseries
platform allows for the addition and removal of resources (i.e. cpus,
memory, pci devices) from a partition. The removal of a resource involves
dling
5/5 - CPU DLPAR handling
Please pardon the re-send, I borked the lkml address on cc the first time.
-Nathan Fontenot
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
dling
5/5 - CPU DLPAR handling
-Nathan Fontenot
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
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
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
.
Signed-off-by: Nathan Fontenot
---
arch/powerpc/platforms/pseries/reconfig.c |6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: linux-2.6/arch/powerpc/platforms/pseries/reconfig.c
===
--- linux-2.6.orig/arch
patch that introduced support for hotplug memory add on
systems whose memory was represented by the ibm,dynamic-memory property
of the device tree only left the code more unintelligible. This
will hopefully makes things easier to understand.
Signed-off-by: Nathan Fontenot
---
arch/powerpc/mm
ft in the pcibios_allocate_bus_resources routine. The
big functionality change in this routine is only that the
list_for_each_entry() loop is pulled out and moved to the necessary
calling routine.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
---
Index: linux-2.6/arch/powerpc/kernel/p
, since xics_update_irq_servers only reads device tree information, we
can call it before xics_init_host in xics_init_IRQ and then default_server
will always be valid when we can reach get_irq_server via the host ops.
Signed-off-by: Milton Miller <[EMAIL PROTECTED]>
Acked-by: Nathan Fontenot &
The pfn of the memory to be removed should be validated prior to
attempting to remove the memory. In cases where the probe of a
memory section fails during hotplug add, the pfn for the lmb may
not be valid.
Signed-off-by: Badari Pulavarty <[EMAIL PROTECTED]>
Signed-off-by: Nathan Fo
without large pages enabled.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
---
Index: linux-2.6-paulus/arch/powerpc/platforms/pseries/hotplug-memory.c
===
--- linux-2.6-paulus.orig/arch/powerpc/platforms/pseries/hotplug-me
notifier chain.
This happens specifically when we remove/add memory from the
device tree on machines using memory specified in the
ibm,dynamic-reconfiguration-memory property of the device tree.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
---
Index: linux-2.6-paulus/arch/powerpc/pla
rtas call.
I am seeing an issue in testing partition mobility, where the
return value fields of the rtas args struct contain stale data.
This causes it to appear as thought the rtas call fails, when
it actually succeeds.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
---
Index: linux-2
ition mobility, where the
parts of the rtas args struct that return status top the user
contain stale data.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED],ibm.com>
---
Index: linux-2.6.git/arch/powerpc/kernel/rtas.c
===
--
: Nathan Fontenot <[EMAIL PROTECTED]>
---
Index: linux-2.6.git/arch/powerpc/kernel/lparcfg.c
===
--- linux-2.6.git.orig/arch/powerpc/kernel/lparcfg.c2008-07-23
13:40:50.0 -0500
+++ linux-2.6.git/arch/powerpc/kernel/lpa
There are only 4 valid name=value pairs for writes to
/proc/ppc64/lparcfg. Current code allocates a buffer to copy
this information in from the user. Since the longest name=value
pair will easily fit into a buffer of 64 characters, simply
put the buffer on the stack instead of allocating the buf
Updated patch to correct the reporting of pool_capcity.
Split the retrieval of processor entitlement data returned in the H_GET_PPP
hcall into its own helper routine.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
Signed-off-by: Robert Jennings <[EMAIL PROTECTED]>
---
arch/po
: Nathan Fontenot <[EMAIL PROTECTED]>
Signed-off-by: Robert Jennings <[EMAIL PROTECTED]>
---
arch/powerpc/kernel/lparcfg.c | 119 ++
include/asm-powerpc/hvcall.h | 18 ++
2 files changed, 136 insertions(+), 1 deletion(-)
Index: linux-
, the values are already parsed and printed.
Signed-off-by: Nathan Fontenot <[EMAIL PROTECTED]>
Signed-off-by: Robert Jennings <[EMAIL PROTECTED]>
---
arch/powerpc/kernel/lparcfg.c | 168 ++---
1 file changed, 90 insertions(+), 78 deletions(-)
Inde
Paul Mackerras wrote:
Robert Jennings writes:
Split the retrieval of processor entitlement data returned in the H_GET_PPP
hcall into its own helper routine.
This seems to change the value reported for pool_capacity radically:
/* report pool_capacity in percentage */
-
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, "
. 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/
() 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/
: 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
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
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
-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 +-
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
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
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
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
_
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
601 - 700 of 714 matches
Mail list logo