[PATCH v2] powerpc: fix personality handling in ppc64_personality()

2012-08-02 Thread Jiri Kosina
Directly comparing current->personality against PER_LINUX32 doesn't work in cases when any of the personality flags stored in the top three bytes are used. Directly forcefully setting personality to PER_LINUX32 or PER_LINUX discards any flags stored in the top three bytes Use personality() macro

RE: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Thursday, August 02, 2012 1:25 AM > To: Liu Qiang-B32616 > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > ker...@vger.kernel.org; dan.j.willi...@gmail.com; Vinod Koul; > herb...@gond

RE: Problem in phy.c, when using fixed network speed

2012-08-02 Thread Jenkins, Clive
> Hi all, > during testing i encountered a problem with setting > up a 5200B controller with a MICREL phy at static > 100MBit full duplex - without autonegotiation. > > I performed this as usual with ethtool and was > succesful when i had my link partner up, providing > a link. > > When kepping the

Re: [PATCH] powerpc/smp: Do not disable IPI interrupts during suspend

2012-08-02 Thread Zhao Chenhui
On Sat, Jul 28, 2012 at 08:20:31AM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2012-07-27 at 16:58 -0500, Kumar Gala wrote: > > On Jul 20, 2012, at 7:47 AM, Zhao Chenhui wrote: > > > > > During suspend, all interrupts including IPI will be disabled. In this > > > case, > > > the suspend proces

Re: [PATCH v8 5/7] powerpc/85xx: add sleep and deep sleep support

2012-08-02 Thread Zhao Chenhui
On Tue, Jul 31, 2012 at 09:15:33AM -0500, Kumar Gala wrote: > > On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > > > In sleep PM mode, the clocks of e500 core and unused IP blocks is > > turned off. IP blocks which are allowed to wake up the processor > > are still running. > > > > Some Freesc

RE: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Liu Qiang-B32616
Hi Ira, Here, I want to talk about the issue of dma lock when use dmatest with original patch. I do some tests on p1022ds, 2 cores, 6 dma channels (actually is 4 channels, I am investigating why is 6, but it doesn't matter). I would like to share with you to find something:) First, it is easy

RE: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-08-02 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Tuesday, July 31, 2012 9:37 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 > Subject: Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM > suppo

[PATCH V4 1/3] powerpc/fsl-pci: Only scan PCI bus if configured as a host

2012-08-02 Thread Jia Hongtao
We change fsl_add_bridge to return -ENODEV if the controller is working in agent mode. Then check the return value of fsl_add_bridge to guarantee that only successfully added host bus will be scanned. Signed-off-by: Jia Hongtao Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_pci.c | 13 +++

[PATCH V4 0/3] PCI patch set description

2012-08-02 Thread Jia Hongtao
The first patch fixed a kernel panic when scanning PCI bus if it is working in agent mode. In later two patches we unified PCI initialization code by changing fsl_pci to a platform drvier. The approach will affect swiotlb init and this issue is addressed in the second patch. We now just convet IB

[PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

2012-08-02 Thread Jia Hongtao
Remove the dependency on PCI initialization for SWIOTLB initialization. So that PCI can be initialized at proper time. SWIOTLB is partly determined by PCI inbound/outbound map which is assigned in PCI initialization. But swiotlb_init() should be done at the stage of mem_init() which is much earlie

[PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Jia Hongtao
We unified the Freescale pci/pcie initialization by changing the fsl_pci to a platform driver. In previous PCI code architecture the initialization routine is called at board_setup_arch stage. Now the initialization is done in probe function which is architectural better. Also It's convenient for a

Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Kumar Gala
On Aug 2, 2012, at 6:42 AM, Jia Hongtao wrote: > We unified the Freescale pci/pcie initialization by changing the fsl_pci > to a platform driver. In previous PCI code architecture the initialization > routine is called at board_setup_arch stage. Now the initialization is done > in probe function

Serial interrupt overrun and hard deadlock on 3.3.2 & 3.5, freescale 8347.

2012-08-02 Thread Christian Melki
Hi. I've spent a couple of hours lifting our freescale 8347 platform from 2.6.32 to 3.3.2 and just now to 3.5. The 3.x kernels are giving me some problems. I get serial input overruns especially when cpu is loded, but I can reproduce overruns even at 0 other load. I can't even remember when I sa

Re: [PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

2012-08-02 Thread Kumar Gala
On Aug 2, 2012, at 6:42 AM, Jia Hongtao wrote: > Remove the dependency on PCI initialization for SWIOTLB initialization. > So that PCI can be initialized at proper time. > > SWIOTLB is partly determined by PCI inbound/outbound map which is assigned > in PCI initialization. But swiotlb_init() sho

Re: [PATCH v5 3/6] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-02 Thread Ira W. Snyder
On Thu, Aug 02, 2012 at 07:21:51AM +, Liu Qiang-B32616 wrote: > > -Original Message- > > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > > Sent: Thursday, August 02, 2012 1:25 AM > > To: Liu Qiang-B32616 > > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- >

Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Scott Wood
On 08/02/2012 07:23 AM, Kumar Gala wrote: > You need to convert all boards to use fsl_pci_init before this patch. > Otherwise we'll end up with PCI getting initialized twice on boards. Alternatively, don't make fsl_pci_init an initcall until all boards have been converted. -Scott

Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Scott Wood
On 08/02/2012 06:42 AM, Jia Hongtao wrote: > We unified the Freescale pci/pcie initialization by changing the fsl_pci > to a platform driver. In previous PCI code architecture the initialization > routine is called at board_setup_arch stage. Now the initialization is done > in probe function which

RE: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, August 03, 2012 4:19 AM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Wood Scott- > B07421; Li Yang-R58472 > Subject: Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie > initializati

RE: [PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

2012-08-02 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, August 02, 2012 8:55 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 > Subject: Re: [PATCH V4 2/3] powerpc/swiotlb: Enable at early stage and > di

[PATCH] powerpc/crypto: Remove virt_to_abs() usage in nx-842.c

2012-08-02 Thread Michael Ellerman
virt_to_abs() is just a wrapper around __pa(), use __pa() directly. We should be including to get __pa(). abs_addr.h will be removed shortly so drop that. We were getting of.h via abs_addr.h so we need to include that directly. Having done all that, clean up the ordering of the includes. Signe

Re: [PATCH] powerpc/crypto: Remove virt_to_abs() usage in nx-842.c

2012-08-02 Thread Michael Ellerman
Hi Herbert, We're planning on removing virt_to_abs() from the powerpc tree this cycle. So if you can take this patch in your tree everything should continue building when the two trees merge. cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozla

RE: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-08-02 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, August 02, 2012 8:24 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 > Subject: Re: [PATCH V4 3/3] powerpc/fsl-pci: Unify pci/pcie > initializati