[git pull] Please pull powerpc.git next branch

2010-06-14 Thread Benjamin Herrenschmidt
Hi Linus ! Here's a few powerpc fixes for 2.6.35. The diffstat is sadly bloated by a small defconfig change, I hate that too :-) We'll switch to some better mechanism as soon as the dust as settled on what that mechanism should be, hopefully real soon. Cheers, Ben. The following changes since co

Re: [Patch 0/5] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XXII

2010-06-14 Thread K.Prasad
On Tue, Jun 15, 2010 at 11:54:59AM +1000, Paul Mackerras wrote: > On Fri, Jun 04, 2010 at 12:21:45PM +0530, K.Prasad wrote: > > > Meanwhile I tested the per-cpu breakpoints with the new emulate_step > > patch (refer linuxppc-dev message-id: > > 20100602112903.gb30...@brick.ozlabs.ibm.com) and they

Re: [Patch 5/5] PPC64-HWBKPT: Discard extraneous interrupt due to accesses outside symbol length

2010-06-14 Thread K.Prasad
On Thu, Jun 10, 2010 at 10:40:24PM +1000, Paul Mackerras wrote: > On Wed, Jun 09, 2010 at 03:55:59PM +0530, K.Prasad wrote: > > > + if (!((bp->attr.bp_addr <= dar) && > > +(dar <= (bp->attr.bp_addr + bp->attr.bp_len { > > + /* > > +* This exception is triggered

[Patch 5/5] PPC64-HWBKPT: Discard extraneous interrupt due to accesses outside symbol length

2010-06-14 Thread K.Prasad
Many a times, the requested breakpoint length can be less than the fixed breakpoint length i.e. 8 bytes supported by PowerPC BookIII S. This could lead to extraneous interrupts resulting in false breakpoint notifications. The patch below detects and discards such interrupts for non-ptrace requests

[Patch 4/5] PPC64-HWBKPT: Enable hw-breakpoints while handling intervening signals

2010-06-14 Thread K.Prasad
A signal delivered between a hw_breakpoint_handler() and the single_step_dabr_instruction() will not have the breakpoint active during signal handling (since breakpoint will not be restored through single-stepping due to absence of MSR_SE bit on the signal frame). Enable breakpoints before signal d

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

2010-06-14 Thread K.Prasad
An alignment interrupt may intervene between a DSI/hw-breakpoint exception and the single-step exception. Enable the alignment interrupt (through modifications to emulate_single_step()) to notify the single-step exception handler for proper restoration of hw-breakpoints. [The need to invoke single

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

2010-06-14 Thread K.Prasad
Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. [Suggestions from Paul Mackerras to - emulate_step() all non-task bound breakpoints and single-step only the pe

[Patch 1/5] Allow arch-specific cleanup before breakpoint unregistration

2010-06-14 Thread K.Prasad
Certain architectures (such as PowerPC Book III S) have a need to cleanup data-structures before the breakpoint is unregistered. This patch introduces an arch-specific hook in release_bp_slot() along with a weak definition in the form of a stub funciton. Signed-off-by: K.Prasad Acked-by: Frederic

[Patch 0/5] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XXIV

2010-06-14 Thread K.Prasad
Hi Paul, Please find a new set of patches with changes as described below. The patches have been tested for kernel- and user-mode breakpoints (after applying the two patches you sent, refer message-id: 20100603004758.ga19...@brick.ozlabs.ibm.com and message-id: 20100615015459.ga30...@drongo

Re: [PATCH] powerpc: Fix mpic_resume on early G5 macs

2010-06-14 Thread Benjamin Herrenschmidt
On Sat, 2010-06-12 at 21:36 -0400, Alastair Bridgewater wrote: > mpic_resume() on G5 macs blindly dereferences mpic->fixups, but > it may legitimately be NULL (as on PowerMac7,2). Add an explicit > check. > > This fixes susend-to-disk with one processor (maxcpus=1) for me. Thanks. Patch is terri

Re: Request review of device tree documentation

2010-06-14 Thread David Gibson
On Mon, Jun 14, 2010 at 10:59:20AM -0400, Nicolas Pitre wrote: > On Mon, 14 Jun 2010, David Gibson wrote: > > > On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: > > [sni] > > > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the > > > > firmware, there is no pres

Re: [Patch 0/5] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XXII

2010-06-14 Thread Paul Mackerras
On Fri, Jun 04, 2010 at 12:21:45PM +0530, K.Prasad wrote: > Meanwhile I tested the per-cpu breakpoints with the new emulate_step > patch (refer linuxppc-dev message-id: > 20100602112903.gb30...@brick.ozlabs.ibm.com) and they continue to fail > due to emulate_step() failure, in my case, on a "lwz r

Re: [PATCH 1/2 v2] powerpc/5200: add mpc5200_psc_ac97_gpio_reset

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 3:55 PM, Eric Millbrandt wrote: > Work around a silicon bug in the ac97 reset functionality of the > mpc5200(b).  The implementation of the ac97 "cold" reset is flawed. > If the sync and output lines are high when reset is asserted the > attached ac97 device may go into tes

Re: [PATCH 2/2 v3] sound/soc: mpc5200_psc_ac97: Use gpio pins for cold reset

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 3:55 PM, Eric Millbrandt wrote: > Call the gpio reset platform function instead of using the flawed > ac97 functionality of the MPC5200(b) > > From MPC5200B User's Manual: > "Some AC97 devices goes to a test mode, if the Sync line is high > during the Res line is low (reset

Re: [PATCH 0/2 v2] mpc5200 ac97 gpio reset

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 3:55 PM, Eric Millbrandt wrote: > These patches reimplement the reset fuction in the ac97 to use gpio pins > instead of using the mpc5200 ac97 reset functionality in the psc.  This > avoids a problem in which attached ac97 devices go into "test" mode appear > unresponsive.

[PATCH 2/2 v3] sound/soc: mpc5200_psc_ac97: Use gpio pins for cold reset

2010-06-14 Thread Eric Millbrandt
Call the gpio reset platform function instead of using the flawed ac97 functionality of the MPC5200(b) >From MPC5200B User's Manual: "Some AC97 devices goes to a test mode, if the Sync line is high during the Res line is low (reset phase). To avoid this behavior the Sync line must be also forced t

[PATCH 1/2 v2] powerpc/5200: add mpc5200_psc_ac97_gpio_reset

2010-06-14 Thread Eric Millbrandt
Work around a silicon bug in the ac97 reset functionality of the mpc5200(b). The implementation of the ac97 "cold" reset is flawed. If the sync and output lines are high when reset is asserted the attached ac97 device may go into test mode. Avoid this by reconfiguring the psc to gpio mode and gen

[PATCH 0/2 v2] mpc5200 ac97 gpio reset

2010-06-14 Thread Eric Millbrandt
These patches reimplement the reset fuction in the ac97 to use gpio pins instead of using the mpc5200 ac97 reset functionality in the psc. This avoids a problem in which attached ac97 devices go into "test" mode appear unresponsive. These patches were tested on a pcm030 baseboard and on custom ha

Re: Request review of device tree documentation

2010-06-14 Thread Mark Brown
On Mon, Jun 14, 2010 at 03:40:19PM -0400, Nicolas Pitre wrote: > On Mon, 14 Jun 2010, Mitch Bradley wrote: > > Arranging for a JTAG dongle to appear at the customer site, then > > getting it set up and the necessary software installed and configured > > on a suitable host system, typically requi

Re: Request review of device tree documentation

2010-06-14 Thread Ben Dooks
On Sun, Jun 13, 2010 at 11:36:57PM -0600, Grant Likely wrote: > On Sun, Jun 13, 2010 at 2:29 AM, Benjamin Herrenschmidt > wrote: > > On Sat, 2010-06-12 at 20:45 -1000, Mitch Bradley wrote: > > > >> Either fought or embraced.  To the extent that it is possible to focus > >> solely on Linux and ARM,

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Mon, 14 Jun 2010, Mitch Bradley wrote: > Nicolas Pitre wrote: > > On Mon, 14 Jun 2010, Mitch Bradley wrote: > > > > > > > First, the primary use case for "keeping OFW alive" is for debugging > > > purposes. > > > OFW remains resident in memory so that, if the OS is set to allow it (not > >

Re: Request review of device tree documentation

2010-06-14 Thread Mitch Bradley
Nicolas Pitre wrote: On Mon, 14 Jun 2010, Mitch Bradley wrote: First, the primary use case for "keeping OFW alive" is for debugging purposes. OFW remains resident in memory so that, if the OS is set to allow it (not the default), a hot-key freezes the OS and enters OFW, where a human can ins

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Mon, 14 Jun 2010, Mitch Bradley wrote: > First, the primary use case for "keeping OFW alive" is for debugging purposes. > OFW remains resident in memory so that, if the OS is set to allow it (not the > default), a hot-key freezes the OS and enters OFW, where a human can inspect > the state of d

Re: Request review of device tree documentation

2010-06-14 Thread Mitch Bradley
I shall try to clarify this discussion. There are actually two different things being discussed. The first is, I hope, not too controversial. The second is so controversial as to be a hopeless cause. First, the primary use case for "keeping OFW alive" is for debugging purposes. OFW remain

Re: Request review of device tree documentation

2010-06-14 Thread Jamie Lokier
Grant Likely wrote: > > Like initrd, some people will find they need to compile it in to the > > kernel image to fit some bootloader they can't change, or daren't risk > > changing in already rolled out devices that they want to update to a > > DT-using kernel. > > Yes, I fully expect that. Fortu

Re: Request review of device tree documentation

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 10:23 AM, Nicolas Pitre wrote: > On Mon, 14 Jun 2010, Jamie Lokier wrote: >> So requiring that a bootloader can update the DT _independently_ of >> everything else is a bit much for some devices. > > In my opinion, this use case you're illustrating above simply could > cont

Re: Request review of device tree documentation

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 10:02 AM, Jamie Lokier wrote: > Nicolas Pitre wrote: >> On Mon, 14 Jun 2010, David Gibson wrote: >> >> > On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: >> > [sni] >> > > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the >> > > > firmwa

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Mon, 14 Jun 2010, Jamie Lokier wrote: > Nicolas Pitre wrote: > > On Mon, 14 Jun 2010, David Gibson wrote: > > > > > On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: > > > [sni] > > > > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust > > > > > the > > > > > f

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Mon, 14 Jun 2010, Grant Likely wrote: > The discussion *started* with a request to review this document: > > http://devicetree.org/Device_Tree_Usage > > Which is in early draft form (which is why the arm list wasn't > initially cc'd. I was soliciting feedback from the current device tree > us

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Mon, 14 Jun 2010, David Gibson wrote: > On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: > [sni] > > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the > > > firmware, there is no pressure for the firmware to "get it right". > > > > Firmware will not get it

Re: Request review of device tree documentation

2010-06-14 Thread Nicolas Pitre
On Sun, 13 Jun 2010, Grant Likely wrote: > [cc'ing linux-arm-kernel] > > On Sat, Jun 12, 2010 at 11:59 PM, Benjamin Herrenschmidt > > BTW. I notice no ARM list is CCed on this discussion ... maybe we should > > fix that ? > > cc'ing linux-arm-kernel in all my replies I'm afraid this won't be en

Re: Request review of device tree documentation

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 9:58 AM, Nicolas Pitre wrote: > On Mon, 14 Jun 2010, Grant Likely wrote: > >> The discussion *started* with a request to review this document: >> >> http://devicetree.org/Device_Tree_Usage >> >> Which is in early draft form (which is why the arm list wasn't >> initially cc'

Re: Request review of device tree documentation

2010-06-14 Thread M. Warner Losh
In message: <20100614124438.gf9...@yookeroo> David Gibson writes: : On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: : [sni] : > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the : > > firmware, there is no pressure for the firmware to "get it right

Re: Request review of device tree documentation

2010-06-14 Thread Jamie Lokier
Nicolas Pitre wrote: > On Mon, 14 Jun 2010, David Gibson wrote: > > > On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: > > [sni] > > > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the > > > > firmware, there is no pressure for the firmware to "get it right". >

Re: Request review of device tree documentation

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 7:51 AM, Nicolas Pitre wrote: > On Sun, 13 Jun 2010, Grant Likely wrote: > >> [cc'ing linux-arm-kernel] >> >> On Sat, Jun 12, 2010 at 11:59 PM, Benjamin Herrenschmidt >> > BTW. I notice no ARM list is CCed on this discussion ... maybe we should >> > fix that ? >> >> cc'ing

Re: Request review of device tree documentation

2010-06-14 Thread Grant Likely
On Mon, Jun 14, 2010 at 8:59 AM, Nicolas Pitre wrote: > On Mon, 14 Jun 2010, David Gibson wrote: > >> On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: >> Indeed.  In fact, the general rule of thumb is really "put as much as >> possible into the most easily replaced layer of the stack"

Re: Request review of device tree documentation

2010-06-14 Thread Jamie Lokier
Russell King - ARM Linux wrote: > On Mon, Jun 14, 2010 at 07:36:10PM +1000, Benjamin Herrenschmidt wrote: > > However, there's a lot of room for abuse here and I'm worried that if it > > becomes widespread, we'll start seeing vendors use that as a way to do > > some kind of HAL and hide various pla

Re: Request review of device tree documentation

2010-06-14 Thread David Gibson
On Sun, Jun 13, 2010 at 11:02:15PM -0600, Grant Likely wrote: [sni] > > That's sort of a self-fulfilling prophecy.  If the OS doesn't trust the > > firmware, there is no pressure for the firmware to "get it right". > > Firmware will not get it right. Period. There will always be > something wron

Re: Request review of device tree documentation

2010-06-14 Thread Russell King - ARM Linux
On Mon, Jun 14, 2010 at 07:36:10PM +1000, Benjamin Herrenschmidt wrote: > However, there's a lot of room for abuse here and I'm worried that if it > becomes widespread, we'll start seeing vendors use that as a way to do > some kind of HAL and hide various platform methods in there (clock > control,

Re: Request review of device tree documentation

2010-06-14 Thread Benjamin Herrenschmidt
On Mon, 2010-06-14 at 10:25 +0100, Russell King - ARM Linux wrote: > On Sun, Jun 13, 2010 at 09:45:50PM -1000, Mitch Bradley wrote: > > None of this is a deal-breaker for the kind of debugging tasks that are > > the primary use case for the callback. > > Would you mind explaining what kind of ta

Re: Request review of device tree documentation

2010-06-14 Thread Russell King - ARM Linux
On Sun, Jun 13, 2010 at 09:45:50PM -1000, Mitch Bradley wrote: > None of this is a deal-breaker for the kind of debugging tasks that are > the primary use case for the callback. Would you mind explaining what kind of tasks these callbacks will be used for? ___

Re: Port Linux to ML510

2010-06-14 Thread srikanth krishnakar
If any changes w.r.t board then John Linn (XILINX) should be able to provide some pointers. 2010/6/11 kostas padarnitsas > Hi Srikant, > > Thanks for your help. I checked the driver versions and they seem ok. The > problem is that when I download the linux image the program counter is not > se

Re: Request review of device tree documentation

2010-06-14 Thread Russell King - ARM Linux
On Sun, Jun 13, 2010 at 11:23:45PM -0600, Grant Likely wrote: > >> Or perhaps the MMU and caches can be turned off for the duration of the > >> callback. > >> I don't have the details of ARM MMUs and caches reloaded into my head > >> yet.  Maybe next week... We've had these kinds of questions in t

Re: Request review of device tree documentation

2010-06-14 Thread Mitch Bradley
Russell King - ARM Linux wrote: On Sun, Jun 13, 2010 at 11:23:45PM -0600, Grant Likely wrote: Or perhaps the MMU and caches can be turned off for the duration of the callback. I don't have the details of ARM MMUs and caches reloaded into my head yet. Maybe next week... We've had t