Re: Problem with mini-PCI-E slot on P2020RDB

2011-04-15 Thread Felix Radensky
Hi Poonam, Thanks for the confirmation. Felix. On 04/15/2011 09:27 AM, Kushwaha Prabhakar-B32579 wrote: Added Linxppc-dev -Original Message- From: Aggrwal Poonam-B10812 Sent: Friday, April 15, 2011 11:47 AM To: Felix Radensky Cc: Kushwaha Prabhakar-B32579; leon.woestenb...@gmail.com

Re: FTrace on MPC8xx

2011-04-15 Thread Stefan Roese
Hi Joakim, On Thursday 14 April 2011 21:21:23 Joakim Tjernlund wrote: > > hmm, I guess 8xx really maps kernel RO as RO :) Try > > > > changing in pte-8xx.h: > > - #define _PAGE_KERNEL_RO (_PAGE_SHARED) > > + #define _PAGE_KERNEL_RO (_PAGE_RW |_PAGE_SHARED) > > hmm, I wonder if not this is

[PATCH 01/15] powerpc/a2: Add some #defines for A2 specific instructions

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/ppc-opcode.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/i

[PATCH 02/15] of: Export of_irq_find_parent()

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman We have platform code that needs to find a node's interrupt parent, so export of_irq_find_parent() so we can use it. Signed-off-by: Michael Ellerman --- drivers/of/irq.c |2 +- include/linux/of_irq.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) d

[PATCH 03/15] powerpc: Add SCOM infrastructure

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt SCOM is a side-band configuration bus implemented on some processors. This code provides a way for code to map and operate on devices via SCOM, while the details of how that is implemented is left up to a SCOM "controller" in the platform code. Signed-off-by: Benjami

[PATCH 04/15] powerpc/xics: xics.h relies on linux/interrupt.h

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/xics.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index 146aad8..c4ed4c5 100644 --- a/arch/powerpc/include/asm/xic

[PATCH 05/15] powerpc/xics: Move irq_host matching into the ics backend

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman An upcoming new ics backend will need to implement different matching semantics to the current ones, which are essentially the RTAS ics backends. So move the current match into the RTAS backend, and allow other ics backends to override. Signed-off-by: Michael Ellerman ---

[PATCH 06/15] powerpc/nvram: Search for nvram using compatible

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt As well as searching for nodes with type = "nvram", search for nodes that have compatible = "nvram". This can't be converted into a single call to of_find_compatible_node() with a non-NULL type, because that searches for a node that has _both_ type & compatible = "nvr

[PATCH 07/15] powerpc: Move CPU_FTRS_BASE_BOOK3E into cputable.h & update FTR masks

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman Where they belong with all the others. Remove SMT which may not be true for all BOOK3E parts. Currently the FTRS_POSSIBLE & FTRS_ALWAYS are defined for 64 or 32 bit. Now that we have BOOK3E we need to split it three ways, BOOK3S, BOOK3E, and 32-bit. Signed-off-by: Michael

[PATCH 08/15] powerpc: Add A2 cpu support

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt Add the cputable entry, regs and setup & restore entries for the PPC A2. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/cputable.h|6 +- arch/powerpc/include/asm/reg_a2.h | 156 +

[PATCH 09/15] powerpc: Add TLB size detection for TYPE_3E MMUs

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/mmu-book3e.h | 15 +++ arch/powerpc/mm/mmu_context_nohash.c | 12 +++- 2 files changed, 26 insertions(+), 1 deletions(-) diff --git a/arch/p

[PATCH 10/15] powerpc: Define slb0_limit() for BOOK3E

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman On BOOK3E we don't have an SLB 0, but the equivalent concept is the bolted entry mapping the kernel. Currently this is a 1G entry, so for now hardcode that. This will probably need to be reworked in future. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup_64

[PATCH 11/15] powerpc: Index crit/dbg/mcheck stacks using cpu number on 64bit

2011-04-15 Thread Michael Ellerman
From: Michael Ellerman In exc_lvl_ctx_init() we index into the crit/dbg/mcheck stacks using the hard cpu id, but that assumes the hard cpu id is zero based and contiguous. That is not the case on A2. The root of the problem is that the 32bit code has no equivalent of the paca to allow it to do t

[PATCH 12/15] powerpc/book3e: Use way 3 for linear mapping bolted entry

2011-04-15 Thread Michael Ellerman
From: Benjamin Herrenschmidt An erratum on A2 can lead to the bolted entry we insert for the linear mapping being evicted, to avoid that write the bolted entry to way 3. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64e.S |5 +++--

[PATCH 13/15] powerpc/book3e: Flush IPROT protected TLB entries leftover by firmware

2011-04-15 Thread Michael Ellerman
From: Jack Miller When we set up the TLB for ourselves on Book3E, we need to flush out any old mappings established by the firmware or bootloader. At present we attempt this with a tlbilx to flush everything, but this will leave behind any entries with the IPROT bit set. There are several good

[PATCH 14/15] powerpc: Add WSP platform

2011-04-15 Thread Michael Ellerman
From: David Gibson Add a platform for the Wire Speed Processor, based on the PPC A2. This includes code for the ICS & OPB interrupt controllers, as well as a SCOM backend, and SCOM based cpu bringup. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson Signed-off-by: Jack Miller

[PATCH 15/15] powerpc: Add early debug for WSP platforms

2011-04-15 Thread Michael Ellerman
From: Jack Miller Signed-off-by: Jack Miller Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig.debug |5 +++ arch/powerpc/include/asm/reg_a2.h|9 ++ arch/powerpc/include/asm/udbg.h |1 + arch/powerpc/kernel/exceptions-64e.S | 17 +++ arch/pow

Re: FTrace on MPC8xx

2011-04-15 Thread Joakim Tjernlund
Stefan Roese wrote on 2011/04/15 09:22:42: > Hi Joakim, > > On Thursday 14 April 2011 21:21:23 Joakim Tjernlund wrote: > > > hmm, I guess 8xx really maps kernel RO as RO :) Try > > > > > > changing in pte-8xx.h: > > > - #define _PAGE_KERNEL_RO (_PAGE_SHARED) > > > + #define _PAGE_KERNEL_RO (

Re: [PATCH 1/4] crypto: caam - handle interrupt lines shared across rings

2011-04-15 Thread Herbert Xu
On Mon, Apr 11, 2011 at 07:15:16PM -0500, Kim Phillips wrote: > - add IRQF_SHARED to request_irq flags to support parts such as > the p1023 that has one IRQ line per couple of rings. > > - resetting a job ring triggers an interrupt, so move request_irq > prior to jr_reset to avoid 'got IRQ but nob

[PATCH] powerpc: Don't write protect kernel text with CONFIG_DYNAMIC_FTRACE enabled

2011-04-15 Thread Stefan Roese
This problem was noticed on an MPC855T platform. Ftrace did oops when trying to write to the kernel text segment. Many thanks to Joakim for finding the root cause of this problem. Signed-off-by: Stefan Roese Cc: Joakim Tjernlund Cc: Benjamin Herrenschmidt Cc: Steven Rostedt --- arch/powerpc/

Re: [PATCH] powerpc: Don't write protect kernel text with CONFIG_DYNAMIC_FTRACE enabled

2011-04-15 Thread Steven Rostedt
Stefan Roese wrote: This problem was noticed on an MPC855T platform. Ftrace did oops when trying to write to the kernel text segment. Many thanks to Joakim for finding the root cause of this problem. Signed-off-by: Stefan Roese Cc: Joakim Tjernlund Cc: Benjamin Herrenschmidt Cc: Steven Ros

Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc

2011-04-15 Thread Nishanth Aravamudan
On 14.03.2011 [15:51:26 -0500], Steve Wise wrote: > On 03/14/2011 03:36 PM, Nishanth Aravamudan wrote: > >Commit fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7 ("powerpc: Add > >pgprot_writecombine") in benh's tree exposes the pgprot_writecombine() > >API to drivers on powerpc. cxgb4 has an open-coded ve

[PATCH V4] POWER: perf_event: Skip updating kernel counters if register value shrinks

2011-04-15 Thread Eric B Munson
Because of speculative event roll back, it is possible for some event coutners to decrease between reads on POWER7. This causes a problem with the way that counters are updated. Delta calues are calculated in a 64 bit value and the top 32 bits are masked. If the register value has decreased, thi

[PATCH] powerpc: Fix kexec-related UP build error

2011-04-15 Thread Paul E. McKenney
Hello! The following patch fixes a UP build problem for kexec() on powerpc. When the crash_kexec_wait_realmode() function was added, it was placed in only two of the three required locations. Thoughts? Thanx, Paul -

Re: Non-console UART issues with 8xx

2011-04-15 Thread Scott Wood
On Fri, 15 Apr 2011 02:52:22 +0300 Eran Duchan wrote: > Hey list > > I have a custom MPC875 board running 2.6.37. SMC1 is the console, SCC4 is a > general purpose UART (DTS is set up accordingly). No hardware or software > flow control for either. > > The issue is simple: the non-console UART t

Re: [PATCH] powerpc: Fix kexec-related UP build error

2011-04-15 Thread Nishanth Aravamudan
Hi Paul, On 15.04.2011 [13:29:16 -0700], Paul E. McKenney wrote: > Hello! > > The following patch fixes a UP build problem for kexec() on powerpc. > When the crash_kexec_wait_realmode() function was added, it was > placed in only two of the three required locations. I believe the fix has already

Re: [PATCH] powerpc: Fix kexec-related UP build error

2011-04-15 Thread Paul E. McKenney
On Fri, Apr 15, 2011 at 02:00:51PM -0700, Nishanth Aravamudan wrote: > Hi Paul, > > On 15.04.2011 [13:29:16 -0700], Paul E. McKenney wrote: > > Hello! > > > > The following patch fixes a UP build problem for kexec() on powerpc. > > When the crash_kexec_wait_realmode() function was added, it was >

Re: PowerMacintosh B&W G3 boot failure - linux-2.6.36.x

2011-04-15 Thread acrux
On Thu, 14 Apr 2011 12:49:16 +1000 Benjamin Herrenschmidt wrote: > What video driver are you trying to use ? Have you tried plain offb ? > (disabling whatever is the native driver for your video card, ie, > radeonfb or aty128fb or even atyfb, dunno what you have in there). > > You can also try

Re: PowerMacintosh B&W G3 boot failure - linux-2.6.36.x

2011-04-15 Thread Benjamin Herrenschmidt
On Sat, 2011-04-16 at 02:33 +0200, acrux wrote: > On Thu, 14 Apr 2011 12:49:16 +1000 > Benjamin Herrenschmidt wrote: > > > > What video driver are you trying to use ? Have you tried plain offb ? > > (disabling whatever is the native driver for your video card, ie, > > radeonfb or aty128fb or eve