Re: Possible bug with mutex adaptative spinning

2010-04-16 Thread Benjamin Herrenschmidt
On Fri, 2010-04-16 at 23:27 +0200, Peter Zijlstra wrote: > > If the owner is actually running, it may do so for a very long time. It > > looks to me that everybody trying to take the mutex will thus spin and > > never get out of the spin loop until the owner stops running. > > The inner-most spin

Re: Possible bug with mutex adaptative spinning

2010-04-16 Thread Benjamin Herrenschmidt
> > I've queued the below patch Thanks. Should it make -stable as well ? Cheers, Ben. > --- > Subject: mutex: Don't spin when the owner CPU is offline or other weird cases > From: Benjamin Herrenschmidt > Date: Fri Apr 16 23:20:00 CEST 2010 > > Due to recent load-balancer changes that delay

Re: Possible bug with mutex adaptative spinning

2010-04-16 Thread Peter Zijlstra
On Wed, 2010-04-14 at 12:56 +1000, Benjamin Herrenschmidt wrote: > On Wed, 2010-04-14 at 12:35 +1000, Benjamin Herrenschmidt wrote: > > Hi Peter ! > > > > I -may- have found a bug with mutex adaptative spinning. We hit it when > > torture testing CPU unplug. > > .../... > > In fact, I wonder if

Re: Possible bug with mutex adaptative spinning

2010-04-16 Thread Peter Zijlstra
On Wed, 2010-04-14 at 12:35 +1000, Benjamin Herrenschmidt wrote: > [PATCH] mutex: Don't spin when the owner CPU is offline or other weird cases > > The current code might spin forever if the CPU owning the mutex has been > offlined, and the last CPU in the system is trying to acquire it, since >

[PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n

2010-04-16 Thread Anton Vorontsov
Currently some MPC85xx and MPC86xx boards fail to build without CONFIG_PCI: arch/powerpc/platforms/fsl_uli1575.c: In function 'quirk_final_uli5249': arch/powerpc/platforms/fsl_uli1575.c:234: error: implicit declaration of function 'pci_bus_for_each_resource' arch/powerpc/platforms/fsl_uli1575.c:2

Re: [PATCH v2] powerpc: Add hibernation support for FSL BookE processors

2010-04-16 Thread Anton Vorontsov
On Fri, Apr 16, 2010 at 10:48:09AM -0500, Scott Wood wrote: > Anton Vorontsov wrote: > >On Thu, Apr 15, 2010 at 03:05:08PM -0500, Scott Wood wrote: > >>Kumar Gala wrote: > >>>On Apr 15, 2010, at 1:45 PM, Anton Vorontsov wrote: > Kumar, > > According to patchwork, this is now delegated

[PATCH v4] powerpc: Add hibernation support for FSL BookE processors

2010-04-16 Thread Anton Vorontsov
This is started as swsusp_32.S modifications, but the amount of #ifdefs made the whole file horribly unreadable, so let's put the support into its own separate file. The code should be relatively easy to modify to support 44x BookEs as well, but since I don't have any 44x to test, let's confine th

Re: [PATCH v3] powerpc: Add hibernation support for FSL BookE processors

2010-04-16 Thread Scott Wood
Anton Vorontsov wrote: + /* Invalidate TLB0 & TLB1 */ + li r6,0x04 + tlbivax 0,r6 + TLBSYNC + li r6,0x0c + tlbivax 0,r6 + TLBSYNC Is this needed? Shouldn't the boot process have already given us a sane TLB? -Scott _

Re: [PATCH v2] powerpc: Add hibernation support for FSL BookE processors

2010-04-16 Thread Scott Wood
Anton Vorontsov wrote: On Thu, Apr 15, 2010 at 03:05:08PM -0500, Scott Wood wrote: Kumar Gala wrote: On Apr 15, 2010, at 1:45 PM, Anton Vorontsov wrote: Kumar, According to patchwork, this is now delegated to you. Do you have any objections to merge this? Would like Scott's Ack. I think we

serial driver for MPC5554?

2010-04-16 Thread Németh Márton
Hi, is there somebody working on the MPC5554 [1] serial port driver? I could only find linux/drivers/serial/mpc52xx_uart.c but I'm not sure whether this could work together with the eSCI on-chip hardware module which can be found in MPC5554 [2]. References: [1] Freescale MPC5554 http://www.fr

Re: [PATCH 1/5] sched: fix capacity calculations for SMT4

2010-04-16 Thread Peter Zijlstra
On Wed, 2010-04-14 at 14:28 +1000, Michael Neuling wrote: > > Right, so I suspect this will indeed break some things. > > > > We initially allowed 0 capacity for when a cpu is consumed by an RT task > > and there simply isn't much capacity left, in that case you really want > > to try and move lo

Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the final tree (tip related)

2010-04-16 Thread Frederic Weisbecker
On Fri, Apr 16, 2010 at 12:38:43PM +0200, Peter Zijlstra wrote: > On Thu, 2010-04-15 at 19:15 +0200, Frederic Weisbecker wrote: > > > that looks rather ugly. Why not do a raw: > > > > > > this_cpu_inc(lockdep_stats.redundant_hardirqs_on); > > > > > > which basically open-codes debug_atomic_

[PATCH v3] powerpc: Add hibernation support for FSL BookE processors

2010-04-16 Thread Anton Vorontsov
This is started as swsusp_32.S modifications, but the amount of #ifdefs made the whole file horribly unreadable, so let's put the support into its own separate file. The code should be relatively easy to modify to support 44x BookEs as well, but since I don't have any 44x to test, let's confine th

Re: linux-next: PowerPC WARN_ON_ONCE() after merge of the final tree (tip related)

2010-04-16 Thread Peter Zijlstra
On Thu, 2010-04-15 at 19:15 +0200, Frederic Weisbecker wrote: > > that looks rather ugly. Why not do a raw: > > > > this_cpu_inc(lockdep_stats.redundant_hardirqs_on); > > > > which basically open-codes debug_atomic_inc(), but without the warning? > > > Because that would open a race again

Re: Xorg on Fujitsu "Lime" with MPC5200b?

2010-04-16 Thread Gabriel Paubert
On Thu, Apr 15, 2010 at 03:53:53PM +0200, Roman Fietze wrote: > Hello Bill, > > On Thursday 15 April 2010 15:01:59 Bill Gatliff wrote: > > > Are you talking about this code here? > > > > void > > shadowUpdatePacked (ScreenPtr pScreen, > > shadowBufPtr pBuf) > >

Re: [PATCH] powerpc/85xx: Add eTSEC 2.0 support for P1020RDB boards

2010-04-16 Thread Felix Radensky
Hi Anton, On 4/15/2010 9:36 PM, Anton Vorontsov wrote: This patch adds support for eTSEC 2.0 as found in P1020. The changes include introduction of the group nodes for the etsec nodes. Signed-off-by: Sandeep Gopalpet Signed-off-by: Anton Vorontsov --- This is based on http://www.bitshrine.org/

Re: Xorg on Fujitsu "Lime" with MPC5200b?

2010-04-16 Thread Michel Dänzer
On Fre, 2010-04-16 at 08:14 +0200, Roman Fietze wrote: > > On Thursday 15 April 2010 18:07:03 Bill Gatliff wrote: > > > I would love it if you posted your code! Thanks!! > > In this source file I just added my own routines: > > Index: programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c > ===

Re: Xorg on Fujitsu "Lime" with MPC5200b?

2010-04-16 Thread Roman Fietze
Hello Bill, On Friday 16 April 2010 04:51:38 Bill Gatliff wrote: > Apparently, there are several similar modifications that need to be > made, ... I'm SW-Engineer, so I assume HW, that's always a good bet. ;) Please take care, that I forgot to tell you that my X server runs well on a Futjitsu 8

[PATCH 4/4] mpc8572ds: change camp dtses for MSI sharing

2010-04-16 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |7 ++- 2 files changed, 15 insertion