[PATCH 06/13] powerpc/nvram: Shuffle code around in nvram_create_partition()

2010-11-29 Thread benh
From: Benjamin Herrenschmidt This error log stuff is really pseries specific. As a first step we move the initialization of these variables to the caller of nvram_create_partition(), which is also slightly reorganized so we setup the free partition before we clear the new partition, so the chance

[PATCH 08/13] powerpc/nvram: Add nvram_find_partition()

2010-11-29 Thread benh
From: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c index 6dd2700..01e6844 100644 ---

[PATCH 13/13] powerpc/nvram: Handle partition names >= 12 chars

2010-11-29 Thread benh
From: Jim Keniston The name field in the nvram_header can be < 12 chars, null-terminated, or 12 chars without the null. Handle this safely. Signed-off-by: Jim Keniston Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c |5 +++-- 1 files changed, 3 insertions(+), 2 d

[PATCH 10/13] powerpc/nvram: Move the log partition stuff to pseries

2010-11-29 Thread benh
From: Benjamin Herrenschmidt The nvram log partition stuff currently in nvram_64.c is really pseries specific. It isn't actually used on anything else (despite the fact that we ran the code to setup the partition on anything except powermac) and the log format is specific to pseries RTAS implemen

[PATCH 12/13] powerpc/nvram: Fix NVRAM partition list setup

2010-11-29 Thread benh
From: Jim Keniston Simplify creation and use of the NVRAM partition list. Signed-off-by: Jim Keniston Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 26 -- 1 files changed, 8 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH 11/13] powerpc/nvram: Rename ppc64, linux partition to ibm, rtas-log

2010-11-29 Thread benh
From: Benjamin Herrenschmidt I'm not aware of any userspace tool accessing it by its name anyways, it's read back by the kernel itself on the next boot to get back older log entries Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/pseries/nvram.c | 23 +--

[PATCH 09/13] powerpc/nvram: Change nvram_setup_partition() to use new helper

2010-11-29 Thread benh
From: Benjamin Herrenschmidt This changes the function to use nvram_find_partition() instead of doing the lookup "by hand". It also makes some of the logic clearer and prints out more useful diagnostic information. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 71

[PATCH 07/13] powerpc/nvram: Improve partition removal

2010-11-29 Thread benh
From: Benjamin Herrenschmidt Existing code is nasty, has bugs etc... rewrite the function more simply, and make it take the signature and optional name of the partitions to remove as arguments, thus making it a more generic utility. We also try to remove a log partition that we find and is too s

[PATCH 05/13] powerpc/nvram: Completely clear a new partition

2010-11-29 Thread benh
From: Benjamin Herrenschmidt When creating a partition, we clear it entirely rather than just the first two words since the previous code was rather specific to the pseries log partition format. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 19 ++-

[PATCH 03/13] powerpc/nvram: nvram_create_partitions() now uses bytes

2010-11-29 Thread benh
From: Benjamin Herrenschmidt This converts nvram_create_partition() to use a size in bytes rather than blocks. It does the appropriate alignment internally The size passed is also the data size (ie. doesn't include the header anymore). Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/ke

[PATCH 04/13] powerpc/nvram: Ensure that the partition header/block size is right

2010-11-29 Thread benh
From: Benjamin Herrenschmidt Use BUILD_BUG_ON to ensure the structure representing a partition header have the right size. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/nvra

[PATCH 02/13] powerpc/nvram: More flexible nvram_create_partition()

2010-11-29 Thread benh
From: Benjamin Herrenschmidt Replace nvram_create_os_partition() with a variant that takes the partition name, signature and size as arguments. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/nvram_64.c | 46 +++ arch/powerpc/platforms/pserie

[PATCH 01/13] powerpc/nvram: Move things out of asm/nvram.h

2010-11-29 Thread benh
From: Benjamin Herrenschmidt This moves a bunch of definitions out of asm/nvram.h to the files that use them or just outright remove completely unused stuff. We leave the partition signatures definitions, they will be useful Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/n

Re: [PATCH 0/4] More ppc64 nvram code cleanup

2010-11-29 Thread Benjamin Herrenschmidt
On Thu, 2010-11-11 at 20:53 -0800, Jim Keniston wrote: > This series contains some fixups to Ben Herrenschmidt's Aug. 2 patch > set, "[RFC] Clean up ppc64 nvram code" -- > http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-August/084601.html > > These patches apply atop Ben's 11-patch series. > -

[git pull] Please pull powerpc.git merge branch

2010-11-29 Thread Benjamin Herrenschmidt
Hi Linus ! This is a small fix for a misuse of RCU on powerpc, please pull. Cheers, Ben. The following changes since commit 72083646528d4887b920deb71b37e09bc7d227bb: Un-inline get_pipe_info() helper function (2010-11-28 16:27:19 -0800) are available in the git repository at: git://git.kern

Re: [PATCH v2] PPC4xx: Adding PCI(E) MSI support

2010-11-29 Thread Michael Ellerman
On Mon, 2010-11-29 at 13:35 -0500, Josh Boyer wrote: > On Mon, Nov 15, 2010 at 12:15:06PM -0800, tma...@apm.com wrote: > >From: Tirumala Marri > > > >This patch adds MSI support for 440SPe, 460Ex, 460Sx and 405Ex. > > > > My apologies in the delay here. I was on holiday for a while and never > g

Re: [PATCH 15/15] ppc/vio: ensure dma_coherent_mask is set

2010-11-29 Thread Benjamin Herrenschmidt
On Mon, 2010-11-29 at 11:46 -0800, Nishanth Aravamudan wrote: > > So you broke bisection... fold the patch instead or invert them > > Thanks for the review. I resent this series on 10/18 and it had the > patches folded together. Right, I know :-) I just mistakenly had that old one still tagged i

Re: [PATCH 15/15] ppc/vio: ensure dma_coherent_mask is set

2010-11-29 Thread Nishanth Aravamudan
Hi Ben, On 29.11.2010 [12:02:57 +1100], Benjamin Herrenschmidt wrote: > On Wed, 2010-09-15 at 11:05 -0700, Nishanth Aravamudan wrote: > > Without this change drivers, such as ibmvscsi, fail to load with the > > previous change. > > --- > > So you broke bisection... fold the patch instead or inver

Re: [PATCH v2] PPC4xx: Adding PCI(E) MSI support

2010-11-29 Thread Josh Boyer
On Mon, Nov 15, 2010 at 12:15:06PM -0800, tma...@apm.com wrote: >From: Tirumala Marri > >This patch adds MSI support for 440SPe, 460Ex, 460Sx and 405Ex. > My apologies in the delay here. I was on holiday for a while and never got back to review this. A few notes below. Also, I've added a few p

Re: [PATCH 3/5] fpga: add basic CARMA board support

2010-11-29 Thread Ira W. Snyder
On Mon, Nov 29, 2010 at 11:38:14AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2010-09-08 at 09:41 -0700, Ira W. Snyder wrote: > > This adds basic support for the system controller FPGA on the OVRO CARMA > > board. This patch only adds infrastructure that will be used by later > > drivers. > >

Re: [PATCH][v2] Fixing the garbage collector problem after NAND-flash image record in u-boot

2010-11-29 Thread Artem Bityutskiy
On Tue, 2010-11-23 at 18:38 +0100, sergej.stepa...@ids.de wrote: > This patch should fix the following problem: > 1. the jffs2-image update in the u-boot was ok > 2. first restart and first mount of the NAND-flash-partition was also ok > 3. before the restart of controller there are no any acti

[PATCH v4] ppc44x:PHY fixup for USB on canyonlands board

2010-11-29 Thread Rupjyoti Sarmah
This fix is a reset for USB PHY that requires some amount of time for power to be stable on Canyonlands. Signed-off-by: Rupjyoti Sarmah --- changes from previous version: -- changed the dts node names for consistency -- corrected the indentation pointed by Wolfgang Denk arch/powerpc/boot/dts/c

Re: ppc_set_hwdebug vs ptrace_set_debugreg

2010-11-29 Thread Andreas Schwab
"K.Prasad" writes: > Although ppc_set_hwdebug() can set DABR through set_dabr() in > arch/powerpc/kernel/process.c, it is good to have it converted to use > register_user_hw_breakpoint(). What do you mean with "good to have"? It doesn't work without it unless I disable PERF_EVENTS (which is the