Re: mpc880 linux-2.6.32 slow running processes

2011-01-20 Thread Heiko Schocher
Hello Joakim, Joakim Tjernlund wrote: >> Sent by: linuxppc-dev-bounces+joakim.tjernlund=transmode...@lists.ozlabs.org >> >> Rafael Beims wrote on 2011/01/10 17:35:38: Once you have tested it and it works, please send a patch to remove the 8xx workaround. Make sure Scott is cc:ed >

[PATCH] powerpc: Pass the right cpu_spec to ->setup_cpu() on 64-bit

2011-01-20 Thread Benjamin Herrenschmidt
When calling setup_cpu() on 64-bit, we pass a pointer to the cputable entry we have found. This used to be fine when cur_cpu_spec was a pointer to that entry, but nowadays, we copy the entry into a separate variable, and we do so before we call the setup_cpu() callback. That means that any attempt

[PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-20 Thread Benjamin Herrenschmidt
Some of those functions try to adjust the CPU features, for example to remove NAP support on some revisions. However, they seem to use r5 as an index into the CPU table entry, which might have been right a long time ago but no longer is. r4 is the right register to use. This probably caused some o

Re: of_flat_dt_match() helper build FAIL

2011-01-20 Thread Grant Likely
On Thu, Jan 20, 2011 at 7:15 PM, Benjamin Herrenschmidt wrote: > a4f740cf33f7f6c164bbde3c0cdbcc77b0c4997c introduces: > > /arch/powerpc/platforms/83xx/mpc831x_rdb.c:63: error: expected '{' > before 'const' > >  and more... > > This hunk is obviously bogus: > > +struct const char *board[] __initdat

[git pull] devicetree build failure fix

2011-01-20 Thread Grant Likely
Hi Linus, Here's a fix for a stupid bug I introduced. g. The following changes since commit c56eb8fb6dccb83d9fe62fd4dc00c834de9bc470: Linux 2.6.38-rc1 (2011-01-18 15:14:02 -0800) are available in the git repository at: git://git.secretlab.ca/git/linux-2.6 devicetree/merge Grant Likely (1)

[PATCH 3/4] powerpc/pseries: Remove unnecessary variable initializations in numa.c

2011-01-20 Thread Jesse Larrew
From: Jesse Larrew Remove unnecessary variable initializations in VPHN functions. Signed-off-by: Jesse Larrew --- arch/powerpc/mm/numa.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index db36a2c..f7971

[PATCH 4/4] powerpc/pseries: Reorder VPHN functions to reduce forward declarations

2011-01-20 Thread Jesse Larrew
From: Jesse Larrew Reorder VPHN functions to reduce the need for forward declarations. Signed-off-by: Jesse Larrew --- arch/powerpc/mm/numa.c | 115 1 files changed, 57 insertions(+), 58 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/

[PATCH 2/4] powerpc/pseries: Fix brace placement in numa.c

2011-01-20 Thread Jesse Larrew
From: Jesse Larrew Fix brace placement in VPHN code. Signed-off-by: Jesse Larrew --- arch/powerpc/mm/numa.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 5259dde..db36a2c 100644 --- a/arch/powerpc/mm/numa.

[PATCH 1/4] powerpc/pseries: Fix typo in VPHN comments

2011-01-20 Thread Jesse Larrew
From: Jesse Larrew Correct a spelling error in VPHN comments in numa.c. Signed-off-by: Jesse Larrew --- arch/powerpc/mm/numa.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 8f8845e..5259dde 100644 --- a/arch/powe

[PATCH 0/4] powerpc/pseries: VPHN code cleanups

2011-01-20 Thread Jesse Larrew
From: Jesse Larrew This patch set includes some simple style cleanups for VPHN: PATCH 1/4: powerpc/pseries: Fix typo in VPHN comments PATCH 2/4: powerpc/pseries: Fix brace placement in numa.c PATCH 3/4: powerpc/pseries: Remove unnecessary initializations in numa.c PATCH 4/4: powerpc/pseries: Reo

[git pull] Please pull powerpc.git merge branch

2011-01-20 Thread Benjamin Herrenschmidt
Hi Linus ! Here's a bunch of powerpc stuff for you to pull. There's a whole series from Anton which is in large part trivial cleanups, but it's all obvious enough stuff or worthy enough fixes that I decided to not wait until the next merge window (besides it's from Anton :-) The rest is generally

[PATCH 7/8] powerpc/kdump: Move crash_kexec_stop_spus to kdump crash handler

2011-01-20 Thread Anton Blanchard
And here's a version that actually compiles. Sorry Ben :) Anton -- Use the crash handler hooks to run the SPU stop code, just like we do for ehea and cell RAS code. While I'm here I noticed "CPUSs reliabally" so fix the spelling MISTAKESs reliabally. Signed-off-by: Anton Blanchard --- Index

Re: of_flat_dt_match() helper build FAIL

2011-01-20 Thread Stephen Rothwell
Hi Ben, On Fri, 21 Jan 2011 13:15:22 +1100 Benjamin Herrenschmidt wrote: > > a4f740cf33f7f6c164bbde3c0cdbcc77b0c4997c introduces: > > /arch/powerpc/platforms/83xx/mpc831x_rdb.c:63: error: expected '{' > before 'const' > > and more... > > This hunk is obviously bogus: > > +struct const char

of_flat_dt_match() helper build FAIL

2011-01-20 Thread Benjamin Herrenschmidt
a4f740cf33f7f6c164bbde3c0cdbcc77b0c4997c introduces: /arch/powerpc/platforms/83xx/mpc831x_rdb.c:63: error: expected '{' before 'const' and more... This hunk is obviously bogus: +struct const char *board[] __initdata = { + "MPC8313ERDB", + "fsl,mpc8315erdb", + NULL +} + You s

Re: Oops in trace_hardirqs_on (powerpc)

2011-01-20 Thread Steven Rostedt
On Wed, 2010-12-22 at 21:42 -0500, Steven Rostedt wrote: > On Sun, 2010-12-19 at 14:27 +0100, Jörg Sommer wrote: > > Hi Steven, > > > > > Did you've fixed this problem? The bug report is still marked as open. > > https://bugzilla.kernel.org/show_bug.cgi?id=16573 > > > > I just posted a patch to

Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()

2011-01-20 Thread Andrew Morton
On Thu, 20 Jan 2011 17:55:02 +0100 torbenh wrote: > On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote: > > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote: > > > the -rt patches change the console_semaphore to console_mutex. > > > so a quite large chunk of the patches changes al

Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()

2011-01-20 Thread torbenh
On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote: > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote: > > the -rt patches change the console_semaphore to console_mutex. > > so a quite large chunk of the patches changes all > > acquire/release_console_sem() to acquire/release_conso

Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()

2011-01-20 Thread Greg KH
On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote: > the -rt patches change the console_semaphore to console_mutex. > so a quite large chunk of the patches changes all > acquire/release_console_sem() to acquire/release_console_mutex() Why not just change the functionality of the existing

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

2011-01-20 Thread Greg KH
On Thu, Jan 20, 2011 at 10:51:44AM -0600, Nathan Fontenot wrote: > 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

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

2011-01-20 Thread Dave Hansen
On Thu, 2011-01-20 at 08:45 -0800, 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_dirent() )

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_dirent() ) to ensure we d

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

2011-01-20 Thread Greg KH
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_dirent() ) to ensure we do not create > duplicates. The list of dir

[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

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

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

2011-01-20 Thread Nathan Fontenot
Update the 'phys_index' property of a the memory_block struct to be called start_section_nr, and add a end_section_nr property. The data tracked here is the same but the updated naming is more in line with what is stored here, namely the first and last section number that the memory block spans.

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

2011-01-20 Thread Nathan Fontenot
Update the memory sysfs code such that each sysfs memory directory is now considered a memory block that can span multiple memory sections per memory block. The default size of each memory block is SECTION_SIZE_BITS to maintain the current behavior of having a single memory section per memory bloc

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

2011-01-20 Thread Nathan Fontenot
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 first three patches of the previous set went in, and this is the remaining patches that need to be applied. The patches decouple the conc

RE: [PATCH 1/2] powerpc: document the MPIC device tree binding

2011-01-20 Thread Yoder Stuart-B08248
> -Original Message- > From: Meador Inge [mailto:meador_i...@mentor.com] > Sent: Wednesday, January 19, 2011 6:08 PM > To: Yoder Stuart-B08248 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; devicetree- > disc...@lists.ozlabs.org; Blanchard, Hollis > Subject: Re: [PATCH 1/2] power