Re: [PATCH] USB: ehci-fsl: Turn on cache snooping on MPC8xxx

2012-02-16 Thread Li Yang
On Fri, Feb 17, 2012 at 1:57 PM, Pan Jiafei wrote: > If a MPC8xxx was being used, 'have_sysif_regs' should be set and > it should setup cache snooping for all the 4GB space on both PPC32 > and PPC64. > > Signed-off-by: Pan Jiafei Hi Jiafei, You should have sent this patch upstream earlier. I r

Re: linux-next: build failure after merge of the final tree (akpm tree related)

2012-02-16 Thread Benjamin Herrenschmidt
On Fri, 2012-02-17 at 16:30 +1100, Stephen Rothwell wrote: > Hi Andrew, > > After merging the final tree, today's linux-next build (powerpc > allnoconfig) failed like this: > > In file included from include/linux/posix_types.h:47:0, > from include/linux/types.h:17, >

[PATCH] USB: ehci-fsl: Turn on cache snooping on MPC8xxx

2012-02-16 Thread Pan Jiafei
If a MPC8xxx was being used, 'have_sysif_regs' should be set and it should setup cache snooping for all the 4GB space on both PPC32 and PPC64. Signed-off-by: Pan Jiafei --- drivers/usb/host/ehci-fsl.c | 23 ++- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git

Re: [PATCH v1 0/4][makedumpfile] vmalloc translation support for PPC32

2012-02-16 Thread Suzuki K. Poulose
On 02/17/2012 06:02 AM, Atsushi Kumagai wrote: Hi, Suzuki On Thu, 16 Feb 2012 09:05:17 +0530 "Suzuki K. Poulose" wrote: The series introduces an infrastructure to define platform specific bits for page translation for PPC and PPC44x support for vmalloc translation. This is similar to what we

linux-next: build failure after merge of the final tree (akpm tree related)

2012-02-16 Thread Stephen Rothwell
Hi Andrew, After merging the final tree, today's linux-next build (powerpc allnoconfig) failed like this: In file included from include/linux/posix_types.h:47:0, from include/linux/types.h:17, from include/linux/page-flags.h:8, from kernel/bounds

RE: [PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Li Yang-R58472
>Subject: Re: [PATCH 1/2] powerpc/85xx: fix problem that prevents >PHYS_64BIT from configurable > > >On Feb 16, 2012, at 6:10 AM, Li Yang wrote: > >> Fix the problem that large physical address support cannot be disabled >> when some platforms which only provides 36-bit support are selected. >> Acc

RE: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Pan Jiafei-B37022
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Friday, February 17, 2012 11:43 AM > To: Pan Jiafei-B37022 > Cc: Liu Shengzhou-B36685; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org > Subject: RE: [PATCH] powerpc/usb: fix bug of ke

RE: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Pan Jiafei-B37022
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Friday, February 17, 2012 11:43 AM > To: Pan Jiafei-B37022 > Cc: Liu Shengzhou-B36685; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org > Subject: RE: [PATCH] powerpc/usb: fix bug of

RE: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Pan Jiafei-B37022
FYI, I once fixed this issue when backport P5020 BSP for WR Linux, The following is the patch which I have submitted to linuxbj-internal. From: linuxbj-internal-boun...@linux.freescale.net [mailto:linuxbj-internal-boun...@linux.freescale.net] On Behalf Of Pan Jiafei-B37022 Sent: Friday, Decemb

RE: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Benjamin Herrenschmidt
On Fri, 2012-02-17 at 03:20 +, Pan Jiafei-B37022 wrote: > FYI, I once fixed this issue when backport P5020 BSP for WR Linux, The > following is the patch which I have submitted to linuxbj-internal. Should I just apply this to upstream ? Cheers, Ben. > From: linuxbj-internal-boun...@linux.fre

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Liu Qiang-B32616
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Friday, February 17, 2012 11:18 AM > To: Liu Qiang-B32616 > Cc: jgar...@pobox.com; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org > Subject: RE: [PATCH V

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Benjamin Herrenschmidt
On Fri, 2012-02-17 at 03:09 +, Li Yang-R58472 wrote: > >I tried a debian install on the p5020ds here and I find SATA to be > >extremely slow, generating millions of interrupts. I think the > defaults > >should be a lot more aggressive at coalescing. > > The P5020 has a hardware problem with SA

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Benjamin Herrenschmidt
On Fri, 2012-02-17 at 01:54 +, Liu Qiang-B32616 wrote: > The default will be set in a common interface fsl_sata_set_irq_coalescing when > initialize the controller. This interface will check the range of intr count > and ticks and make sure the values are reasonably. Allright, but the current

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Li Yang-R58472
>I tried a debian install on the p5020ds here and I find SATA to be >extremely slow, generating millions of interrupts. I think the defaults >should be a lot more aggressive at coalescing. The P5020 has a hardware problem with SATA, making it generate more interrupts than it should. A new revisi

[PATCH 2/2] powerpc: add support for MPIC message register API

2012-02-16 Thread Jia Hongtao
Some MPIC implementations contain one or more blocks of message registers that are used to send messages between cores via IPIs. A simple API has been added to access (get/put, read, write, etc ...) these message registers. The available message registers are initially discovered via nodes in the

[PATCH 1/2] powerpc: document the FSL MPIC message register binding

2012-02-16 Thread Jia Hongtao
This binding documents how the message register blocks found in some FSL MPIC implementations shall be represented in a device tree. Signed-off-by: Meador Inge Signed-off-by: Jia Hongtao Signed-off-by: Li Yang --- .../devicetree/bindings/powerpc/fsl/mpic-msgr.txt | 62

RE: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Liu Shengzhou-B36685
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Friday, February 17, 2012 8:03 AM > To: Liu Shengzhou-B36685 > Cc: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/usb: fix bug of kernel hang when > initia

Re: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Alexander Graf
On 17.02.2012, at 03:13, Liu Yu-B13201 wrote: > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Thursday, February 16, 2012 6:20 PM >> To: Liu Yu-B13201 >> Cc: ; ; > d...@ozlabs.org>; Wood Scott-B07421; Liu Yu-B13201 >> Subject: Re: [PATCH v4 2/3] KVM: PP

RE: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Liu Yu-B13201
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Thursday, February 16, 2012 6:20 PM > To: Liu Yu-B13201 > Cc: ; ; d...@ozlabs.org>; Wood Scott-B07421; Liu Yu-B13201 > Subject: Re: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for > host > > > > On 1

RE: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Liu Qiang-B32616
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Friday, February 17, 2012 8:40 AM > To: Liu Qiang-B32616 > Cc: jgar...@pobox.com; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org > Subject: Re: [PATCH V2

Re: [PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Kumar Gala
On Feb 16, 2012, at 6:10 AM, Li Yang wrote: > Fix the problem that large physical address support cannot be > disabled when some platforms which only provides 36-bit support > are selected. According to the philosophy of kernel config > enabling a platform support doesn't mean the kernel is only

Re: 5020 SATA fix

2012-02-16 Thread Kumar Gala
On Feb 16, 2012, at 6:29 PM, Benjamin Herrenschmidt wrote: > Hi Lei ! > > In your SDK kernel I see this commit: > > 92c0ce1e599e788ffc0908739db9bd5e0dbdad69 > sata_fsl: Add the workaround for SATA-A005 erratum on P2040/P3041/P5020 > > Without this commit, SATA doesn't work on the p5020ds board

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Ira W. Snyder
On Thu, Feb 16, 2012 at 01:48:20PM -0600, Timur Tabi wrote: > Ira W. Snyder wrote: > > > No. I don't have the ability to connect my P2020 up to an FPGA to > > recreate the DMA workload that causes this on my 8349EA. I can run the > > dmatest module, if you'd like. > > I just want to make sure you

Re: [PATCH V2 RESEND] fsl-sata: I/O load balancing

2012-02-16 Thread Benjamin Herrenschmidt
On Wed, 2012-02-15 at 13:49 +0800, Qiang Liu wrote: ] > diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c > index 0120b0d..d6577b9 100644 > --- a/drivers/ata/sata_fsl.c > +++ b/drivers/ata/sata_fsl.c > @@ -6,7 +6,7 @@ > * Author: Ashish Kalra > * Li Yang > * > - * Copyright (c) 2

5020 SATA fix

2012-02-16 Thread Benjamin Herrenschmidt
Hi Lei ! In your SDK kernel I see this commit: 92c0ce1e599e788ffc0908739db9bd5e0dbdad69 sata_fsl: Add the workaround for SATA-A005 erratum on P2040/P3041/P5020 Without this commit, SATA doesn't work on the p5020ds board that FSL just sent me. I see this was committed in June last year, any reaso

Re: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Benjamin Herrenschmidt
On Fri, 2012-02-17 at 09:58 +1100, Benjamin Herrenschmidt wrote: > On Thu, 2012-02-16 at 18:02 +0800, Shengzhou Liu wrote: > > If USB UTMI PHY is not enable, writing to portsc register will lead to > > kernel hang during boot up. > > > > Signed-off-by: Shengzhou Liu > > --- > > Apply for master b

Re: [PATCH v5 00/27] irq_domain generalization and rework

2012-02-16 Thread Russell King - ARM Linux
On Thu, Feb 16, 2012 at 02:52:19PM -0800, Andrew Morton wrote: > On Thu, 16 Feb 2012 02:09:01 -0700 > Grant Likely wrote: > > This series generalizes the "irq_host" infrastructure from powerpc > > so that it can be used by all architectures and renames it to "irq_domain". > > drivers/mfd/twl-core

Re: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Benjamin Herrenschmidt
On Thu, 2012-02-16 at 18:02 +0800, Shengzhou Liu wrote: > If USB UTMI PHY is not enable, writing to portsc register will lead to > kernel hang during boot up. > > Signed-off-by: Shengzhou Liu > --- > Apply for master branch of > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.gi

Re: [PATCH v5 00/27] irq_domain generalization and rework

2012-02-16 Thread Andrew Morton
On Thu, 16 Feb 2012 02:09:01 -0700 Grant Likely wrote: > > This series generalizes the "irq_host" infrastructure from powerpc > so that it can be used by all architectures and renames it to "irq_domain". drivers/mfd/twl-core.c is fairly horked on i386 allmodconfig: drivers/mfd/twl-core.c: In f

Re: [PATCH 1/2 v4] powerpc/85xx: Add p1025rdb platform support

2012-02-16 Thread Tabi Timur-B04825
On Tue, Feb 14, 2012 at 2:06 AM, Zhicheng Fan wrote: > From: Zhicheng Fan > > Signed-off-by: Zhicheng Fan > --- Acked-by: Timur Tabi -- Timur Tabi Linux kernel developer at Freescale ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

Re: [PATCH 2/2 v4] powerpc/dts: Add dts for p1025rdb board

2012-02-16 Thread Tabi Timur-B04825
On Tue, Feb 14, 2012 at 2:06 AM, Zhicheng Fan wrote: > From: Zhicheng Fan > > P1025RDB Overview > -- > 1Gbyte DDR3 SDRAM > 32 Mbyte NAND flash > 16Mbyte NOR flash > 16 Mbyte SPI flash > SD connector to interface with the SD memory card > Real-time clock on I2C bus > > PCIe: > - x1

Re: [PATCH 1/2 v5] powerpc/85xx: Add Quicc Engine support for p1025rdb

2012-02-16 Thread Tabi Timur-B04825
On Wed, Feb 15, 2012 at 12:58 AM, Zhicheng Fan wrote: > From: Zhicheng Fan > > Signed-off-by: Zhicheng Fan > --- Acked-by: Timur Tabi -- Timur Tabi Linux kernel developer at Freescale ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org http

Re: tlb flushing on Power

2012-02-16 Thread Benjamin Herrenschmidt
On Thu, 2012-02-16 at 11:11 -0600, Seth Jennings wrote: > Just wanted to bump you again about this. You mentioned that if I wanted to > do a cpu-local flush of a single tlb entry, that there would have to be a new > hook. Is that right? > > I've been looking through the powerpc arch and I thoug

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Timur Tabi
Ira W. Snyder wrote: > No. I don't have the ability to connect my P2020 up to an FPGA to > recreate the DMA workload that causes this on my 8349EA. I can run the > dmatest module, if you'd like. I just want to make sure your patch doesn't break 85xx. -- Timur Tabi Linux kernel developer at Free

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Ira W. Snyder
On Thu, Feb 16, 2012 at 01:34:00PM -0600, Timur Tabi wrote: > Ira W. Snyder wrote: > > This leads me to believe that this occurs mostly (but not always) > > concurrent with the end-of-chain interrupt. > > Have you tested this on an 85xx platform? > No. I don't have the ability to connect my P202

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Timur Tabi
Ira W. Snyder wrote: > This leads me to believe that this occurs mostly (but not always) > concurrent with the end-of-chain interrupt. Have you tested this on an 85xx platform? I noticed something odd. You're modifying fsldma_chan_irq(), which is for DMA controllers that have per-channel IRQs.

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Ira W. Snyder
On Thu, Feb 16, 2012 at 05:50:47PM +, Tabi Timur-B04825 wrote: > On Thu, Jan 26, 2012 at 2:58 PM, Ira W. Snyder wrote: > > The mpc8349ea has been observed to generate spurious end of segments > > interrupts despite the fact that they are not enabled by this driver. > > Check for them and ignor

Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq

2012-02-16 Thread Cousson, Benoit
OK, forget about it, I've just seen your email on that and pulled your latest update. Regards, Benoit On 2/16/2012 6:38 PM, Cousson, Benoit wrote: Hi Grant, It looks like there is a small regression in that update, it cannot build due to a missing semi-colon. On 2/16/2012 10:09 AM, Grant Lik

Re: [PATCH 1/1] fsldma: ignore end of segments interrupt

2012-02-16 Thread Tabi Timur-B04825
On Thu, Jan 26, 2012 at 2:58 PM, Ira W. Snyder wrote: > The mpc8349ea has been observed to generate spurious end of segments > interrupts despite the fact that they are not enabled by this driver. > Check for them and ignore them to avoid a kernel error message. When this happens, are there any o

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 18:36, Scott Wood wrote: > On 02/16/2012 11:30 AM, Alexander Graf wrote: >> >> On 16.02.2012, at 18:28, Scott Wood wrote: >> >>> On 02/16/2012 11:18 AM, Alexander Graf wrote: Hrm. But we can clobber ctr, right? So how about we make the generic version do a bctr and

Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq

2012-02-16 Thread Cousson, Benoit
Hi Grant, It looks like there is a small regression in that update, it cannot build due to a missing semi-colon. On 2/16/2012 10:09 AM, Grant Likely wrote: +/** + * irq_find_mapping() - Find a linux irq from an hw irq number. + * @host: domain owning this hardware interrupt + * @hwirq: hardwa

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Scott Wood
On 02/16/2012 11:30 AM, Alexander Graf wrote: > > On 16.02.2012, at 18:28, Scott Wood wrote: > >> On 02/16/2012 11:18 AM, Alexander Graf wrote: >>> Hrm. But we can clobber ctr, right? So how about we make the generic >>> version do a bctr and then just do a small C wrapper that takes lr, moves

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 18:28, Scott Wood wrote: > On 02/16/2012 11:18 AM, Alexander Graf wrote: >> >> On 16.02.2012, at 17:58, Scott Wood wrote: >> >>> On 02/16/2012 04:24 AM, Alexander Graf wrote: On 16.02.2012, at 10:26, Liu Yu wrote: > +_GLOBAL(epapr_ev_idle) > +epapr_ev_idle: >

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Scott Wood
On 02/16/2012 11:18 AM, Alexander Graf wrote: > > On 16.02.2012, at 17:58, Scott Wood wrote: > >> On 02/16/2012 04:24 AM, Alexander Graf wrote: >>> On 16.02.2012, at 10:26, Liu Yu wrote: +_GLOBAL(epapr_ev_idle) +epapr_ev_idle: +rlwinmr3,r1,0,0,31-THREAD_SHIFT/* current

[PATCH 2/2] [v2] powerpc/fsl: add PAMUBYPENR register definition to fsl_guts.h

2012-02-16 Thread Timur Tabi
Add a defintion of register PAMUBYPENR (offset 0x604) to the global utilities structure. PAMUBYPENR is the PAMU bypass enable register. It contains control bits for enabling bypass mode on each PAMU. Signed-off-by: Timur Tabi --- arch/powerpc/include/asm/fsl_guts.h |4 +++- 1 files changed

[PATCH 1/2] powerpc/8xxx: remove 85xx/86xx restrictions from fsl_guts.h

2012-02-16 Thread Timur Tabi
Remove the check for CONFIG_PPC_85xx and CONFIG_PPC_86xx from fsl_guts.h. The check was originally intended to allow the same header file to be used on 85xx and 86xx systems, even though the Global Utilities register could be different. It turns out that they're not actually different, and so the

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 17:58, Scott Wood wrote: > On 02/16/2012 04:24 AM, Alexander Graf wrote: >> On 16.02.2012, at 10:26, Liu Yu wrote: >>> +_GLOBAL(epapr_ev_idle) >>> +epapr_ev_idle: >>> +rlwinmr3,r1,0,0,31-THREAD_SHIFT/* current thread_info */ >>> +lwzr4,TI_LOCAL_FLAGS(r3)

Re: tlb flushing on Power

2012-02-16 Thread Seth Jennings
On 02/10/2012 01:14 PM, Seth Jennings wrote: > On 02/08/2012 03:04 PM, Benjamin Herrenschmidt wrote: >> >>> You can look at https://lkml.org/lkml/2012/1/9/389 in zsmalloc-main.c, >>> zs_[un]map_object() functions for the currently uses of set_pte() and >>> __flush_tlb_one(). >>> set_pte() is l

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Scott Wood
On 02/16/2012 03:26 AM, Liu Yu wrote: > If the guest hypervisor node contains "has-idle" property. > > Signed-off-by: Liu Yu > --- > v4: > 1. discard the CONFIG_E500 to make code for all powerpc platform > 2. code cleanup Is the TLF_NAPPING stuff supported on all powerpc platforms? -Scott

Re: [PATCH v4 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-16 Thread Scott Wood
On 02/16/2012 03:26 AM, Liu Yu wrote: > from the kvm guest paravirt init code. > > Signed-off-by: Liu Yu > --- > v4: > 1. code cleanup > 2. move kvm_hypercall_start() to epapr_hypercall_start() > > arch/powerpc/Kconfig|4 ++ > arch/powerpc/include/asm/epapr_hcalls.h |

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Scott Wood
On 02/16/2012 04:24 AM, Alexander Graf wrote: > On 16.02.2012, at 10:26, Liu Yu wrote: >> +_GLOBAL(epapr_ev_idle) >> +epapr_ev_idle: >> +rlwinmr3,r1,0,0,31-THREAD_SHIFT/* current thread_info */ >> +lwzr4,TI_LOCAL_FLAGS(r3)/* set napping bit */ >> +orir4,r4,_TLF_NAPP

[PATCH] arch/powerpc/platforms/powernv/setup.c: included asm/xics.h twice

2012-02-16 Thread Danny Kukawka
arch/powerpc/platforms/powernv/setup.c: included 'asm/xics.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka --- arch/powerpc/platforms/powernv/setup.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platf

[PATCH] arch/powerpc/kvm/book3s_hv.c: included linux/sched.h twice

2012-02-16 Thread Danny Kukawka
arch/powerpc/kvm/book3s_hv.c: included 'linux/sched.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka --- arch/powerpc/kvm/book3s_hv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 336983d..a7

Re: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Greg KH
On Thu, Feb 16, 2012 at 09:39:15PM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2012-02-16 at 18:02 +0800, Shengzhou Liu wrote: > > If USB UTMI PHY is not enable, writing to portsc register will lead to > > kernel hang during boot up. > > Thanks, I'll try that tomorrow. > > Greg, you're picking

Re: [PATCH] arch/powerpc/kvm/book3s_hv.c: included linux/sched.h twice

2012-02-16 Thread Avi Kivity
On 02/16/2012 03:55 PM, Danny Kukawka wrote: > arch/powerpc/kvm/book3s_hv.c: included 'linux/sched.h' twice, > remove the duplicate. > Thanks, applied. -- error compiling committee.c: too many arguments to function ___ Linuxppc-dev mailing list Linuxp

Re: [PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Tabi Timur-B04825
On Thu, Feb 16, 2012 at 6:10 AM, Li Yang wrote: > > The reason why we need to keep PHYS_64BIT option configurable is > that enabling it cause negative performance impact on various > aspects like TLB miss and physical address manipulating.  We should > not enable it unless really needed, e.g. use

Re: [PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Tabi Timur-B04825
On Thu, Feb 16, 2012 at 9:56 AM, Tabi Timur-B04825 wrote: > I think we should make 36-bit the only option for the upstream > defconfigs, and if we want a 32-bit "optimized" kernel for the SDK, > then we provide that on the SDK only. Oops, I meant to post this as a reply to "powerpc/85xx: add a 36

Re: [PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq

2012-02-16 Thread Grant Likely
On Thu, Feb 16, 2012 at 2:09 AM, Grant Likely wrote: > This patch only moves the code.  It doesn't make any changes, and the > code is still only compiled for powerpc.  Follow-on patches will generalize > the code for other architectures. > > Signed-off-by: Grant Likely > Cc: Benjamin Herrenschmi

[PATCH 2/2] powerpc/85xx: add a 36-bit corenet default config

2012-02-16 Thread Li Yang
This default config should be used by platforms that only provides 36-bit software support in tree, such as P3041DS, P3060QDS, P4080DS, P5020DS, and etc. Signed-off-by: Li Yang --- arch/powerpc/configs/corenet36_smp_defconfig | 185 ++ 1 files changed, 185 insertions(+),

[PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-16 Thread Li Yang
Fix the problem that large physical address support cannot be disabled when some platforms which only provides 36-bit support are selected. According to the philosophy of kernel config enabling a platform support doesn't mean the kernel is only running on that platform. Remove the auto selection

[RFC PATCH v7 10/10] fadump: Remove the phyp assisted dump code.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Remove the phyp assisted dump implementation which is not is use. Signed-off-by: Mahesh Salgaonkar --- Documentation/powerpc/phyp-assisted-dump.txt | 127 -- arch/powerpc/Kconfig | 10 - arch/powerpc/include/asm/phyp_dump.h | 47

[RFC PATCH v7 07/10] fadump: Introduce cleanup routine to invalidate /proc/vmcore.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar With the firmware-assisted dump support we don't require a reboot when we are in second kernel after crash. The second kernel after crash is a normal kernel boot and has knowledge about entire system RAM with the page tables initialized for entire system RAM. Hence once th

[RFC PATCH v7 06/10] fadump: Add PT_NOTE program header for vmcoreinfo

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Introduce a PT_NOTE program header that points to physical address of vmcoreinfo_note buffer declared in kernel/kexec.c. The vmcoreinfo note buffer is populated during crash_fadump() at the time of system crash. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/kernel/f

[RFC PATCH v7 09/10] fadump: Invalidate the fadump registration during machine shutdown.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar If dump is active during system reboot, shutdown or halt then invalidate the fadump registration as it does not get invalidated automatically. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/kernel/setup-common.c |8 1 files changed, 8 insertions(+), 0 de

[RFC PATCH v7 08/10] fadump: Invalidate registration and release reserved memory for general use.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar This patch introduces an sysfs interface '/sys/kernel/fadump_release_mem' to invalidate the last fadump registration, invalidate '/proc/vmcore', release the reserved memory for general use and re-register for future kernel dump. Once the dump is copied to the disk, unlike

[RFC PATCH v7 03/10] fadump: Register for firmware assisted dump.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar This patch registers for firmware-assisted dump using rtas token ibm,configure-kernel-dump. During registration firmware is informed about the reserved area where it saves the CPU state data, HPTE table and contents of RMR region at the time of kernel crash. Apart from thi

[RFC PATCH v7 01/10] fadump: Add documentation for firmware-assisted dump.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Documentation for firmware-assisted dump. This document is based on the original documentation written for phyp assisted dump by Linas Vepstas and Manish Ahuja, with few changes to reflect the current implementation. Signed-off-by: Mahesh Salgaonkar --- Documentation/po

[RFC PATCH v7 05/10] fadump: Convert firmware-assisted cpu state dump data into elf notes.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar When registered for firmware assisted dump on powerpc, firmware preserves the registers for the active CPUs during a system crash. This patch reads the cpu register data stored in Firmware-assisted dump format (except for crashing cpu) and converts it into elf notes and up

[RFC PATCH v7 04/10] fadump: Initialize elfcore header and add PT_LOAD program headers.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Build the crash memory range list by traversing through system memory during the first kernel before we register for firmware-assisted dump. After the successful dump registration, initialize the elfcore header and populate PT_LOAD program headers with crash memory ranges.

[RFC PATCH v7 02/10] fadump: Reserve the memory for firmware assisted dump.

2012-02-16 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Reserve the memory during early boot to preserve CPU state data, HPTE region and RMA (real mode area) region data in case of kernel crash. At the time of crash, powerpc firmware will store CPU state data, HPTE region data and move RMA region data to the reserved memory are

[RFC PATCH v7 00/10] fadump: Firmware-assisted dump support for Powerpc.

2012-02-16 Thread Mahesh J Salgaonkar
Hi All, Please find the version 7 of the patchset that implements firmware-assisted dump mechanism to capture kernel crash dump for Powerpc architecture. Firmware-assisted dump is a robust mechanism to get reliable kernel crash dump with the assistance of firmware. This approach does not use kexec

Re: [PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Benjamin Herrenschmidt
On Thu, 2012-02-16 at 18:02 +0800, Shengzhou Liu wrote: > If USB UTMI PHY is not enable, writing to portsc register will lead to > kernel hang during boot up. Thanks, I'll try that tomorrow. Greg, you're picking that up or should I ? Cheers, Ben. > Signed-off-by: Shengzhou Liu > --- > Apply fo

Re: [PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 10:26, Liu Yu wrote: > If the guest hypervisor node contains "has-idle" property. > > Signed-off-by: Liu Yu > --- > v4: > 1. discard the CONFIG_E500 to make code for all powerpc platform > 2. code cleanup > > arch/powerpc/kernel/epapr.S | 29 +

Re: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 10:26, Liu Yu wrote: > And add a new flag definition in kvm_ppc_pvinfo to indicate > whether host support EV_IDLE hcall. > > Signed-off-by: Liu Yu > --- > v4: > no change > > arch/powerpc/include/asm/kvm_para.h | 14 -- > arch/powerpc/kvm/powerpc.c |

RE: [PATCH] powerpc/usb: fix issue of CPU halt when missing USB PHY clock

2012-02-16 Thread Liu Shengzhou-B36685
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Wednesday, February 15, 2012 10:31 AM > To: Liu Shengzhou-B36685 > Cc: Pavan Kondeti; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org > Subject: RE: [PATCH] powerpc/usb: fix issue of

Re: [PATCH v4 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 10:26, Liu Yu wrote: > from the kvm guest paravirt init code. > > Signed-off-by: Liu Yu > --- > v4: > 1. code cleanup > 2. move kvm_hypercall_start() to epapr_hypercall_start() > > arch/powerpc/Kconfig|4 ++ > arch/powerpc/include/asm/epapr_hcalls.h |

[PATCH] powerpc/usb: fix bug of kernel hang when initializing usb

2012-02-16 Thread Shengzhou Liu
If USB UTMI PHY is not enable, writing to portsc register will lead to kernel hang during boot up. Signed-off-by: Shengzhou Liu --- Apply for master branch of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Tested on P5020DS, the issue was reported by Benjamin Herrenschmidt

[PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Liu Yu
And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu --- v4: no change arch/powerpc/include/asm/kvm_para.h | 14 -- arch/powerpc/kvm/powerpc.c |8 include/linux/kvm.h |2 ++

[PATCH v4 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-16 Thread Liu Yu
from the kvm guest paravirt init code. Signed-off-by: Liu Yu --- v4: 1. code cleanup 2. move kvm_hypercall_start() to epapr_hypercall_start() arch/powerpc/Kconfig|4 ++ arch/powerpc/include/asm/epapr_hcalls.h |2 + arch/powerpc/kernel/Makefile|1 + ar

[PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Liu Yu
If the guest hypervisor node contains "has-idle" property. Signed-off-by: Liu Yu --- v4: 1. discard the CONFIG_E500 to make code for all powerpc platform 2. code cleanup arch/powerpc/kernel/epapr.S | 29 + arch/powerpc/kernel/epapr_para.c | 13 -

[PATCH v5 26/27] irq_domain: mostly eliminate slow-path revmap lookups

2012-02-16 Thread Grant Likely
With the current state of irq_domain, the reverse map is always updated when new IRQs get mapped. This means that the irq_find_mapping() function can be simplified to always execute the revmap-specific lookup function. This patch adds lookup functions for the revmaps that don't yet have one and r

[PATCH v5 27/27] irq_domain: For NOMAP revmap, allow users to specify the largest usable virq

2012-02-16 Thread Grant Likely
This patch replaces the old global setting of irq_virq_count that is only used by the NOMAP mapping and instead uses a revmap_data property so that the maximum NOMAP allocation can be set per NOMAP irq_domain. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton

[PATCH v5 17/27] irq_domain: Create common xlate functions that device drivers can use

2012-02-16 Thread Grant Likely
Rather than having each interrupt controller driver creating its own barely unique .xlate function for irq_domain, create a library of translators which any driver can use directly. v5: - Remove irq_domain_xlate_pci(). It was incorrect. Signed-off-by: Grant Likely Cc: Rob Herring Cc: Benjamin

[PATCH v5 24/27] irq_domain/microblaze: Convert microblaze to use irq_domains

2012-02-16 Thread Grant Likely
This patch converts Microblaze to use the irq_domain remapper and get away from hard coding the offset between hwirq number and the linux irq number space. This also paves the way for multiple interrupt controllers. v2: Don't enable SPARSE_IRQ and keep NR_IRQS set to 33 Signed-off-by: Grant Like

[PATCH v5 25/27] irq_domain: remove "hint" when allocating irq numbers

2012-02-16 Thread Grant Likely
The 'hint' used to try and line up irq numbers with hw irq numbers is rather a hack and not very useful. Now that /proc/interrupts also outputs the hwirq number, it is even less useful to keep around the 'hint' heuristic. This patch removes it. Signed-off-by: Grant Likely Cc: Benjamin Herrensch

[PATCH v5 22/27] irq_domain/powerpc: constify irq_domain_ops

2012-02-16 Thread Grant Likely
Make all the irq_domain_ops structures in powerpc 'static const' Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton Miller Tested-by: Olof Johansson --- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c |2 +- arch/powerpc/platforms/52xx/media5200.c

[PATCH v5 23/27] irq_domain/powerpc: Replace custom xlate functions with library functions

2012-02-16 Thread Grant Likely
This patch converts a number of the powerpc drivers to use the common library of irq_domain xlate functions, dropping a bunch of lines in the process. v5: - Remove tsi108 changes from patch Signed-off-by: Grant Likely Cc: Rob Herring Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton M

[PATCH v5 21/27] irq_domain/c6x: Use library of xlate functions

2012-02-16 Thread Grant Likely
The c6x irq controllers don't need to define custom .xlate hooks Signed-off-by: Grant Likely Cc: Rob Herring Cc: Mark Salter Cc: Thomas Gleixner --- arch/c6x/kernel/irq.c|1 + arch/c6x/platforms/megamod-pic.c | 14 +- 2 files changed, 2 insertions(+), 13 deletion

[PATCH v5 11/27] irq_domain: Replace irq_alloc_host() with revmap-specific initializers

2012-02-16 Thread Grant Likely
Each revmap type has different arguments for setting up the revmap. This patch splits up the generator functions so that each revmap type can do its own setup and the user doesn't need to keep track of how each revmap type handles the arguments. This patch also adds a host_data argument to the gen

[PATCH v5 20/27] irq_domain/c6x: constify irq_domain structures

2012-02-16 Thread Grant Likely
Signed-off-by: Grant Likely Cc: Mark Salter Cc: Thomas Gleixner --- arch/arm/common/gic.c|2 +- arch/c6x/kernel/irq.c|2 +- arch/c6x/platforms/megamod-pic.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm

[PATCH v5 19/27] irq_domain/c6x: Convert c6x to use generic irq_domain support.

2012-02-16 Thread Grant Likely
From: Mark Salter The C6X IRQ support was copied almost verbatim from the PowerPC virtual IRQ code. The PowerPC code was used as the basis for generic irq_domain support, so this patch mostly copies what what done to arch/powerpc by Grant Likely in his irq_domain patch series. Signed-off-by: Mar

[PATCH v5 15/27] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-02-16 Thread Grant Likely
This patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure for all irq_domain users. The powerpc infrastructure includes support for complex mappings between Linux and hardware irq numbers, and can manage allocation of irq_descs. This patch also convert

[PATCH v5 18/27] irq_domain: constify irq_domain_ops

2012-02-16 Thread Grant Likely
Make irq_domain_ops pointer a constant to make it safer for multiple instances to share the same ops pointer and change the irq_domain code so that it does not modify the ops. v4: Fix mismatched type reference in powerpc code Signed-off-by: Grant Likely Cc: Thomas Gleixner Cc: Benjamin Herrensc

[PATCH v5 16/27] irq_domain: Remove irq_domain_add_simple()

2012-02-16 Thread Grant Likely
irq_domain_add_simple() was a stop-gap measure until complete irq_domain support was complete. This patch removes the irq_domain_add_simple() interface. This patch also drops the explicit irq_domain initialization performed by the mach-versatile code because the versatile interrupt controller alr

[PATCH v5 09/27] irq_domain: remove NO_IRQ from irq domain code

2012-02-16 Thread Grant Likely
zero always means no irq when using irq domains. Get rid of the NO_IRQ references. Signed-off-by: Grant Likely Cc: Rob Herring Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton Miller Tested-by: Olof Johansson --- kernel/irq/irqdomain.c | 38 +++---

[PATCH v5 08/27] irq_domain: Move irq_domain code from powerpc to kernel/irq

2012-02-16 Thread Grant Likely
This patch only moves the code. It doesn't make any changes, and the code is still only compiled for powerpc. Follow-on patches will generalize the code for other architectures. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton Miller Tested-by: Olof Johan

[PATCH v5 14/27] mfd: twl-core.c: Fix the number of interrupts managed by twl4030

2012-02-16 Thread Grant Likely
From: Benoit Cousson TWL4030 does handle 3 different interrupts ranges: 8 for the core, 8 for the power events and 18 for the GPIOs. Change the total number of interrupts managed by TWL4030 from 8 to 34. Signed-off-by: Benoit Cousson Signed-off-by: Grant Likely --- drivers/mfd/twl-core.c |

[PATCH v5 10/27] irq_domain: Remove references to old irq_host names

2012-02-16 Thread Grant Likely
No functional changes. Replaces non-exported references to 'host' with domain. Does not change any symbol names referenced by other .c files. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton Miller Tested-by: Olof Johansson --- kernel/irq/irqdomain.c |

[PATCH v5 12/27] irq_domain: Add support for base irq and hwirq in legacy mappings

2012-02-16 Thread Grant Likely
Add support for a legacy mapping where irq = (hwirq - first_hwirq + first_irq) so that a controller driver can allocate a fixed range of irq_descs and use a simple calculation to translate back and forth between linux and hw irq numbers. This is needed to use an irq_domain with many of the ARM int

[PATCH v5 07/27] irq_domain/powerpc: Eliminate virq_is_host()

2012-02-16 Thread Grant Likely
There is only one user, and it is trivial to open-code. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Milton Miller Tested-by: Olof Johansson --- arch/powerpc/include/asm/irq.h |1 - arch/powerpc/kernel/irq.c |7 --- arch/powe

  1   2   >