Re: [PATCH v2 2/2] powerpc/44x: Add more changes for APM821XX EMAC driver

2012-03-05 Thread Duc Dang
Thanks, Stefan. Please see my answer bellow. Regards, Duc Dang. On Mon, Mar 5, 2012 at 2:41 PM, Stefan Roese wrote: > On Monday 05 March 2012 05:03:44 Duc Dang wrote: > > This patch includes: > > > > Configure EMAC PHY clock source (clock from PHY or internal clock). > > > > Do not adverti

[PATCH v3 1/2] powerpc/44x: Add new compatible value for EMAC node of APM821XX dts file.

2012-03-05 Thread Duc Dang
This compatible value will be used to distinguish some special features of APM821XX EMAC: no half duplex mode support, configuring jumbo frame. Signed-off-by: Duc Dang --- v3: No change since v1/v2 patch sets. Added for completeness. arch/powerpc/boot/dts/bluestone.dts |2 +- 1 files chan

[PATCH v3 2/2] powerpc/44x: Add more changes for APM821XX EMAC driver

2012-03-05 Thread Duc Dang
This patch includes: Configure EMAC PHY clock source (clock from PHY or internal clock). Do not advertise PHY half duplex capability as APM821XX EMAC does not support half duplex mode. Add changes to support configuring jumbo frame for APM821XX EMAC. Signed-off-by: Duc Dang --- v3: Ad

Re: [PATCH 13/38] KVM: PPC: booke: category E.HV (GS-mode) support

2012-03-05 Thread tiejun.chen
>> +/* >> + * Host interrupt handlers may have clobbered these guest-readable >> + * SPRGs, so we need to reload them here with the guest's values. >> + */ >> +lwz r3, VCPU_VRSAVE(r4) >> +lwz r5, VCPU_SHARED_SPRG4(r11) >> +mtspr SPRN_VRSAVE, r3 >> +lwz

Re: [PATCH] powerpc/srio: Fix the compile errors when building with 64bit

2012-03-05 Thread Liu Gang
Hi, Kumar, On Fri, 2012-03-02 at 09:11 -0600, Kumar Gala wrote: > > diff --git a/arch/powerpc/sysdev/fsl_rmu.c b/arch/powerpc/sysdev/fsl_rmu.c > > index 1548578..468011e 100644 > > --- a/arch/powerpc/sysdev/fsl_rmu.c > > +++ b/arch/powerpc/sysdev/fsl_rmu.c > > @@ -311,8 +311,8 @@ fsl_rio_dbell_han

Intermittent failures enumerating PCIe devices on P2020

2012-03-05 Thread Matias Garcia
I'm getting intermittent failures enumerating four PCIe endpoints and looking for some help. Sometimes three will enumerate, sometimes fewer, sometimes four but only three of them will have BARs mapped, etc. I'm running 2.6.37 on a Freescale P2020 (e500v2 cores), and I have four PCIe end-points (F

Re: linux-next: boot failure for next-20120227 and later (pci tree related)

2012-03-05 Thread Bjorn Helgaas
On Sun, Mar 4, 2012 at 8:34 PM, Benjamin Herrenschmidt wrote: > On Sat, 2012-03-03 at 08:52 +1100, Benjamin Herrenschmidt wrote: > >> Or give me a chance to dig :-) I'll have a look next week. > > This is indeed what bjorn suspected on irc, this patch fixes it: > > (Bjorn, please fold it in the or

Re: tlb flushing on Power

2012-03-05 Thread Seth Jennings
Hey Ben, Thanks for the help! I was wondering if you could take a look at something for me. I've been working on this staging driver (zsmalloc memory allocator) that does virtual mapping of two pages. I have a github repo with the driver and the unsubmitted changes. I'm trying to make to get t

[PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread Russell King - ARM Linux
This patch series cleans up the handling of cookies in DMA engine drivers. This is done by providing a set of inline library functions for common tasks: - moving the 'last completed cookie' into struct dma_chan - everyone has this in their driver private channel data structure - consolidate all

Re: [PATCH] rapidio/tsi721: fix bug in inbound doorbell handler

2012-03-05 Thread Andrew Morton
On Mon, 5 Mar 2012 15:33:05 -0500 Alexandre Bounine wrote: > Fixes queue wrapping bug in Inbound Doorbell handling routine. The changelog doesn't describe the user-visible impact of the bug. Please always include this so that people know whether to backport the fix into their kernels, and so t

[PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-05 Thread Russell King - ARM Linux
Now that we have the completed cookie in the dma_chan structure, we can consolidate the tx_status functions by providing a function to set the txstate structure and returning the DMA status. We also provide a separate helper to set the residue for cookies which are still in progress. Signed-off-b

[PATCH 2/9] dmaengine: move last completed cookie into generic dma_chan structure

2012-03-05 Thread Russell King - ARM Linux
Every DMA engine implementation declares a last completed dma cookie in their private dma channel structures. This is pointless, and forces driver specific code. Move this out into the common dma_chan structure. Signed-off-by: Russell King --- arch/arm/include/asm/hardware/iop_adma.h |2 --

[PATCH 3/9] dmaengine: add private header file

2012-03-05 Thread Russell King - ARM Linux
Add a local private header file to contain definitions and declarations which should only be used by DMA engine drivers. Signed-off-by: Russell King --- drivers/dma/amba-pl08x.c|2 ++ drivers/dma/at_hdmac.c |1 + drivers/dma/coh901318.c |1 + drivers/dma/dmaengine.h

[PATCH 4/9] dmaengine: consolidate assignment of DMA cookies

2012-03-05 Thread Russell King - ARM Linux
Everyone deals with assigning DMA cookies in the same way (it's part of the API so they should be), so lets consolidate the common code into a helper function to avoid this duplication. Signed-off-by: Russell King --- drivers/dma/amba-pl08x.c|9 +++-- drivers/dma/at_hdmac.c |

[PATCH 5/9] dmaengine: provide a common function for completing a dma descriptor

2012-03-05 Thread Russell King - ARM Linux
Provide a common function to do the cookie mechanics for completing a DMA descriptor. Signed-off-by: Russell King --- drivers/dma/amba-pl08x.c|2 +- drivers/dma/at_hdmac.c |2 +- drivers/dma/coh901318.c |2 +- drivers/dma/dmaengine.h | 18 ++ driver

Re: [PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread Linus Walleij
On Mon, Mar 5, 2012 at 9:14 PM, Russell King - ARM Linux wrote: > This patch series cleans up the handling of cookies in DMA engine drivers. > This is done by providing a set of inline library functions for common > tasks: Overall this looks good, but I have a problem: patch [1/9] does not appea

[PATCH] rapidio/tsi721: fix bug in inbound doorbell handler

2012-03-05 Thread Alexandre Bounine
Fixes queue wrapping bug in Inbound Doorbell handling routine. Signed-off-by: Alexandre Bounine Cc: Chul Kim Cc: Matt Porter --- This patch is applicable to kernel version 3.2 and after. drivers/rapidio/devices/tsi721.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --g

[PATCH 9/9] dmaengine: ensure all DMA engine drivers initialize their cookies

2012-03-05 Thread Russell King - ARM Linux
Ensure all DMA engine drivers initialize their cookies in the same way, so that they all behave in a similar fashion. This means their first issued cookie will be 2 rather than 1, and will increment to INT_MAX before returning 1 and starting over. In connection with this, Dan Williams said: > Rus

RE: [PATCH] rapidio/tsi721: fix bug in inbound doorbell handler

2012-03-05 Thread Bounine, Alexandre
On Mon, March 05, 2012 3:37 PM Andrew Morton wrote: > Alexandre Bounine wrote: > > > Fixes queue wrapping bug in Inbound Doorbell handling routine. > > The changelog doesn't describe the user-visible impact of the bug. > Please always include this so that people know whether to backport the > fi

Re: [PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread Russell King - ARM Linux
On Mon, Mar 05, 2012 at 09:50:51PM +0100, Linus Walleij wrote: > On Mon, Mar 5, 2012 at 9:14 PM, Russell King - ARM Linux > wrote: > > > This patch series cleans up the handling of cookies in DMA engine drivers. > > This is done by providing a set of inline library functions for common > > tasks:

RE: [PATCH 3/9] dmaengine: add private header file

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:16 PM, Russell King wrote: > > Add a local private header file to contain definitions and declarations > which should only be used by DMA engine drivers. > > Signed-off-by: Russell King > --- > drivers/dma/amba-pl08x.c|2 ++ > drivers/dma/at_hdmac.c |1

RE: [PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:17 PM, Russell King wrote: > > Now that we have the completed cookie in the dma_chan structure, we > can consolidate the tx_status functions by providing a function to set > the txstate structure and returning the DMA status. We also provide > a separate helper to set t

RE: [PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:51 PM, Linus Walleij wrote: > On Mon, Mar 5, 2012 at 9:14 PM, Russell King - ARM Linux wrote: > >> This patch series cleans up the handling of cookies in DMA engine drivers. >> This is done by providing a set of inline library functions for common >> tasks: > > Overall t

Re: [PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread Russell King - ARM Linux
On Mon, Mar 05, 2012 at 08:14:11PM +, Russell King - ARM Linux wrote: > This patch series cleans up the handling of cookies in DMA engine drivers. > This is done by providing a set of inline library functions for common > tasks: > > - moving the 'last completed cookie' into struct dma_chan - e

RE: [PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:17 PM, Russell King wrote: > > Now that we have the completed cookie in the dma_chan structure, we > can consolidate the tx_status functions by providing a function to set > the txstate structure and returning the DMA status. We also provide > a separate helper to set

[PATCH] powerpc/srio: Fix the relocation errors when building with 64bit

2012-03-05 Thread Liu Gang
For the file "arch/powerpc/sysdev/fsl_rio.c", there will be some relocation errors while using the corenet64_smp_defconfig: WARNING: modpost: Found 6 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' GEN .version CHK include/genera

Re: [PATCH 1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-03-05 Thread Mai La
Please see my in-line reply. On Wed, Feb 29, 2012 at 9:18 PM, Josh Boyer wrote: > On Wed, Feb 29, 2012 at 3:47 AM, Mai La wrote: > > This patch consists of: > > - Enable PCI MSI as default for Bluestone board > > - Define number of MSI interrupt for Maui APM821xx > > What is Maui? Is that the

[PATCH 1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-03-05 Thread Mai La
This patch consists of: - Enable PCI MSI as default for Bluestone board - Define number of MSI interrupt for Maui APM821xx SoC using in Bluestone board - Fix returning ENODEV as finding MSI node - Fix MSI physical high and low address - Keep MSI data logically Signed-off-by: Mai La --- arch/pow

[PATCH 2/2] powerpc/44x: Add PCI MSI node for APM821xx SoC and Bluestone board in DTS

2012-03-05 Thread Mai La
Signed-off-by: Mai La --- arch/powerpc/boot/dts/bluestone.dts | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/bluestone.dts b/arch/powerpc/boot/dts/bluestone.dts index 2a56a0d..8ea6325 100644 --- a/arch/powerpc/boot/dts/blue

Re: [1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-03-05 Thread Milton Miller
On Mon, 05 Mar 2012 about 17:29:41 -, Mai La wrote: > > @@ -43,7 +43,12 @@ > #define PEIH_FLUSH0 0x30 > #define PEIH_FLUSH1 0x38 > #define PEIH_CNTRST 0x48 > + > +#ifdef CONFIG_APM821xx > +#define NR_MSI_IRQS 8 > +#else > #define NR_MSI_IRQS 4 > +#endif > does this need to go into

Re: [1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-03-05 Thread Benjamin Herrenschmidt
On Mon, 2012-03-05 at 22:37 -0600, Milton Miller wrote: > On Mon, 05 Mar 2012 about 17:29:41 -, Mai La wrote: > > > > @@ -43,7 +43,12 @@ > > #define PEIH_FLUSH00x30 > > #define PEIH_FLUSH10x38 > > #define PEIH_CNTRST0x48 > > + > > +#ifdef CONFIG_APM821xx > > +#defin

[PATCH] powerpc/dts: fix the compatible string of sec 4.0

2012-03-05 Thread Shengzhou Liu
From: Liu Shuo Fix the compatible string of sec 4.0 to match with CAMM driver according to the documentation file Documentation/devicetree/bindings/crypto/fsl-sec4.txt. Signed-off-by: Liu Shuo Signed-off-by: Shengzhou Liu --- against master branch of git://git.kernel.org/pub/scm/linux/kernel/