Linux 2.6.x: arch powerpc: PCI DMA allocation misunderstandings

2010-05-28 Thread Laurent Lagrange
Hello, I use a 82xx or 85xx host platform with a Linux 2.6.24 or 2.2.31. On this host, I want to write a PCI driver for a target PMC device wich only supports 30bits (1GB) DMA addressing. The PMC device is the master of the DMA transfers from/to the host memory. In the host driver, I begin to s

Re: mmio_nvram.c users ?

2010-05-28 Thread Benjamin Herrenschmidt
On Tue, 2010-05-25 at 07:00 -0400, Josh Boyer wrote: > On Tue, May 25, 2010 at 05:43:59PM +1000, Benjamin Herrenschmidt wrote: > >Hi folks ! > > > >Anybody aware of anything other than Cell using that driver ? > > > >I'd like to make it a platform driver instead of having something that > >pokes at

Re: [PATCH] PowerPC: Remove hardcoded BAT configuration of IMMR in CPM early debug console

2010-05-28 Thread Benjamin Herrenschmidt
On Fri, 2010-05-28 at 11:18 -0500, Scott Wood wrote: > Only the physical address should depend on where IMMR is. We should > use > fixmap instead of an arbitrary address for the effective address. > There's a existing FIX_EARLY_DEBUG_BASE, but it's only 128 KiB so > we'll > have to either grow

Re: [PATCH v3] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-28 Thread Benjamin Herrenschmidt
> The patch looks okay to me. > > BTW, where is the i8042 binding documented? Ben, is this location of > the kbd/mouse irq historical, or is it just something that we happened > to get when the .dts files were first created? Having the irq > specified directly in the kbd or aux nodes would make

Re: [PATCH v3] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-28 Thread Benjamin Herrenschmidt
O > diff --git a/arch/powerpc/kernel/setup-common.c > b/arch/powerpc/kernel/setup-common.c > index 48f0a00..3d169bb 100644 > --- a/arch/powerpc/kernel/setup-common.c > +++ b/arch/powerpc/kernel/setup-common.c > @@ -94,6 +94,10 @@ struct screen_info screen_info = { > .orig_video_points = 16 >

[tip:perf/urgent] tracing, powerpc: Fix for tracepoint API change

2010-05-28 Thread tip-bot for Stephen Rothwell
Commit-ID: a578f4255763514dc9d0c4f2a60cf5b9323e0b6b Gitweb: http://git.kernel.org/tip/a578f4255763514dc9d0c4f2a60cf5b9323e0b6b Author: Stephen Rothwell AuthorDate: Fri, 28 May 2010 15:08:42 +1000 Committer: Ingo Molnar CommitDate: Fri, 28 May 2010 16:27:11 +0200 tracing, powerpc: Fix f

Re: [PATCH] PowerPC: Remove hardcoded BAT configuration of IMMR in CPM early debug console

2010-05-28 Thread Scott Wood
On 05/28/2010 10:18 AM, Martyn Welch wrote: The CPM early debug console hardcodes the BAT to cover the IMMR at 0xf000. The IMMR (on the mpc8270 at the very least) can be set to a number of locations with bootstrap configuration, which are outside the hardcoded BAT configuration. This patch d

[PATCH] PowerPC: Remove hardcoded BAT configuration of IMMR in CPM early debug console

2010-05-28 Thread Martyn Welch
The CPM early debug console hardcodes the BAT to cover the IMMR at 0xf000. The IMMR (on the mpc8270 at the very least) can be set to a number of locations with bootstrap configuration, which are outside the hardcoded BAT configuration. This patch determines the correct location at which to con

Re: linux-next: build failure after merge of the final tree (linus' tree related)

2010-05-28 Thread Steven Rostedt
On Fri, 2010-05-28 at 15:08 +1000, Stephen Rothwell wrote: > Hi Steven, > > After merging the final tree, today's linux-next build (powerpc allyesconfig) > failed like this: > > arch/powerpc/platforms/pseries/hvCall_inst.c: In function 'hcall_inst_init': > arch/powerpc/platforms/pseries/hvCall_i

Re: [PATCH]Device tree update for the 460ex DWC SATA

2010-05-28 Thread Sergei Shtylyov
Hello. Rupjyoti Sarmah wrote: Device tree update for the Applied micro processor 460ex on-chip SATA. Signed-off-by: Rupjyoti Sarmah [...] diff --git a/arch/powerpc/boot/dts/canyonlands.dts b/arch/powerpc/boot/dts/canyonlands.dts index cd56bb5..d3b2c99 100644 --- a/arch/powerpc/boot/dts

[PATCH]Device tree update for the 460ex DWC SATA

2010-05-28 Thread Rupjyoti Sarmah
Device tree update for the Applied micro processor 460ex on-chip SATA. Signed-off-by: Rupjyoti Sarmah --- arch/powerpc/boot/dts/canyonlands.dts |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/canyonlands.dts b/arch/powerpc/boot/dts/canyonlan

Re: [Patch 3/4] PPC64-HWBKPT: Handle concurrent alignment interrupts

2010-05-28 Thread K.Prasad
On Thu, May 27, 2010 at 04:20:44PM +1000, Paul Mackerras wrote: > On Tue, May 25, 2010 at 02:44:35PM +0530, K.Prasad wrote: > > > An alignment interrupt may intervene between a DSI/hw-breakpoint exception > > and the single-step exception. Enable the alignment interrupt (through > > modifications

Re: [Patch 2/4] PPC64-HWBKPT: Implement hw-breakpoints for PowerPC BookIII S

2010-05-28 Thread K.Prasad
On Thu, May 27, 2010 at 04:19:40PM +1000, Paul Mackerras wrote: > On Tue, May 25, 2010 at 02:44:20PM +0530, K.Prasad wrote: > > > Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S > > processors. These interfaces help arbitrate requests from various users and > > schedule