[PATCH 1/5] powerpc/dts: add MPIC v4.3 dts node

2013-06-14 Thread Minghuan Lian
For the latest platform T4 and B4, MPIC controller has been updated to v4.3. This patch adds a new file to describe the latest MPIC. The MSI blocks number is increased to four, the registers number of each block is increased to sixteen. MSIIR1 has been added to access these sixteen MSI registers.

[PATCH 2/5] powerpc/fsl_msi: add MSIIR1 support for MPIC v4.3

2013-06-14 Thread Minghuan Lian
MPIC controller v4.3 provides MSIIR1 to index 16 MSI registers. MSIIR can only index 8 MSI registers. MSIIR1 uses different bits definition than MSIIR. This patch adds ibs_shift and srs_shift to indicate the bits definition of the MSIIR and MSIIR1, so the same code can handle the MSIIR and MSIIR1 s

[PATCH 3/5] powerpc/dts: update MSI bindings doc for MPIC v4.3

2013-06-14 Thread Minghuan Lian
Add compatible "fsl,mpic-msi-v4.3" for MPIC v4.3. MPIC v4.3 contains MSIIR and MSIIR1. MSIIR supports 8 MSI registers and MSIIR1 supports 16 MSI registers, but uses different IBS and SRS shift. When using MSIR1, the interrupt number is not consecutive. It is hard to use 'msi-available-ranges' to de

[PATCH 5/5] powerpc/fsl_msi: add 'msiregs' kernel parameter

2013-06-14 Thread Minghuan Lian
1. Only MSIIR1 can index 16 MSI registers, but when using MSIIR1 the IRQs of a register are not continuous. for example, the first register irq values are 0x0, 0x10, 0x20, 0x30 ... 0x1f0. So it is hard to use 'msi-available-ranges' property to indicate the available ranges and 'msi-available-ranges

[PATCH 4/5] powerpc/dts: remove msi-available-ranges property

2013-06-14 Thread Minghuan Lian
For MPIC v4.3 MSIIR supports 8 MSI registers and MSIIR1 supports 16 MSI registers, but uses different IBS and SRS shift. For the first register, when using MSIIR we will get the irqs 0x0 0x1 0x2 ...0x1f, but when using MSIIR1, the irqs are 0x0 0x10 0x20 ... 0x1f0 It is hard to describe the availabl

Re: [BUG] PCI related panic on powerpc based board with 3.10-rcX

2013-06-14 Thread Rojhalat Ibrahim
On Thursday 13 June 2013 11:49:17 Scott Wood wrote: > On 06/13/2013 02:21:24 AM, Rojhalat Ibrahim wrote: > > On Wednesday 12 June 2013 16:50:26 Scott Wood wrote: > > > On 06/12/2013 03:19:30 AM, Rojhalat Ibrahim wrote: > > > > On Tuesday 11 June 2013 12:28:59 Scott Wood wrote: > > > > > Yes, I figu

[PATCH] powerpc/85xx: Add P1023RDB board support

2013-06-14 Thread Chunhe Lan
P1023RDB Specification: --- Memory subsystem: 512MB DDR3 (Fixed DDR on board) 64MB NOR flash 128MB NAND flash Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY PCIe: Three mini-PCIe slots USB: Two USB2.0 T

[PATCH v2] powerpc/pci: Fix setup of Freescale PCI / PCIe controllers

2013-06-14 Thread Rojhalat Ibrahim
Commit 50d8f87d2b3 (powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers) does not handle non-PCIe controllers properly, which causes a panic during boot for certain configurations. This patch fixes the issue by calling setup_indirect_pci for all device types. fsl_indirect_read_co

[PATCH] powerpc: Fix emulation of illegal instructions on PowerNV platform

2013-06-14 Thread Paul Mackerras
Normally, the kernel emulates a few instructions that are unimplemented on some processors (e.g. the old dcba instruction), or privileged (e.g. mfpvr). The emulation of unimplemented instructions is currently not working on the PowerNV platform. The reason is that on these machines, unimplemented

Re: [PATCH v2] powerpc/pci: Fix setup of Freescale PCI / PCIe controllers

2013-06-14 Thread Scott Wood
On 06/14/2013 04:05:34 AM, Rojhalat Ibrahim wrote: Commit 50d8f87d2b3 (powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers) does not handle non-PCIe controllers properly, which causes a panic during boot for certain configurations. This patch fixes the issue by calling setu

Re: [PATCH 1/5] powerpc/dts: add MPIC v4.3 dts node

2013-06-14 Thread Scott Wood
On 06/14/2013 02:15:55 AM, Minghuan Lian wrote: +msi0: msi@41600 { + compatible = "fsl,mpic-msi", "fsl,mpic-msi-v4.3"; More specific compatibles come first -- and I don't think this is 100% backwards compatible with "fsl,mpic-msi" anyway. -Scott ___

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Steven Rostedt
On Fri, 2013-06-14 at 14:46 +0200, Rojhalat Ibrahim wrote: > On Friday 14 June 2013 05:28:00 Paul E. McKenney wrote: > > On Fri, Jun 14, 2013 at 01:47:00PM +0200, Rojhalat Ibrahim wrote: > > > Hi, > > > > > > the current mainline kernel from git reproducibly hangs on my Freescale > > > PowerPC P50

Re: [PATCH 1/5] powerpc/dts: add MPIC v4.3 dts node

2013-06-14 Thread Scott Wood
On 06/14/2013 03:39:26 PM, Scott Wood wrote: On 06/14/2013 02:15:55 AM, Minghuan Lian wrote: +msi0: msi@41600 { + compatible = "fsl,mpic-msi", "fsl,mpic-msi-v4.3"; More specific compatibles come first -- and I don't think this is 100% backwards compatible with "fsl,mpic-msi" anyway.

[PATCH] trivial: powerpc: fix typo in ioei_interrupt() description

2013-06-14 Thread Sebastien Bessiere
Signed-off-by: Sebastien Bessiere --- arch/powerpc/platforms/pseries/io_event_irq.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/io_event_irq.c b/arch/powerpc/platforms/pseries/io_event_irq.c index ef9d9d8..5ea88d1 100644 --- a/arch/powerp

Re: [PATCH] dtc: ensure #line directives don't consume data from the next line

2013-06-14 Thread Grant Likely
On Wed, 05 Jun 2013 10:50:02 -0600, Stephen Warren wrote: > On 06/03/2013 09:36 AM, Stephen Warren wrote: > > From: Stephen Warren > > > > Previously, the #line parsing regex ended with ({WS}+[0-9]+)?. The {WS} > > could match line-break characters. If the #line directive did not contain > > th

Re: [PATCH 3/5] powerpc/dts: update MSI bindings doc for MPIC v4.3

2013-06-14 Thread Scott Wood
On 06/14/2013 02:15:57 AM, Minghuan Lian wrote: Add compatible "fsl,mpic-msi-v4.3" for MPIC v4.3. MPIC v4.3 contains MSIIR and MSIIR1. MSIIR supports 8 MSI registers and MSIIR1 supports 16 MSI registers, but uses different IBS and SRS shift. When using MSIR1, the interrupt number is not consecuti

Re: [PATCH 2/5] powerpc/fsl_msi: add MSIIR1 support for MPIC v4.3

2013-06-14 Thread Scott Wood
On 06/14/2013 02:15:56 AM, Minghuan Lian wrote: @@ -421,10 +440,29 @@ static int fsl_of_msi_probe(struct platform_device *dev) } msi->msiir_offset = features->msiir_offset + (res.start & 0xf); + + /* +* Fi

Re: [PATCH 5/5] powerpc/fsl_msi: add 'msiregs' kernel parameter

2013-06-14 Thread Scott Wood
On 06/14/2013 02:15:59 AM, Minghuan Lian wrote: 1. Only MSIIR1 can index 16 MSI registers, but when using MSIIR1 the IRQs of a register are not continuous. for example, the first register irq values are 0x0, 0x10, 0x20, 0x30 ... 0x1f0. So it is hard to use 'msi-available-ranges' property to indic

Re: [PATCH 4/5] powerpc/dts: remove msi-available-ranges property

2013-06-14 Thread Scott Wood
On 06/14/2013 02:15:58 AM, Minghuan Lian wrote: For MPIC v4.3 MSIIR supports 8 MSI registers and MSIIR1 supports 16 MSI registers, but uses different IBS and SRS shift. For the first register, when using MSIIR we will get the irqs 0x0 0x1 0x2 ...0x1f, but when using MSIIR1, the irqs are 0x0 0x10

Re: [PATCH] powerpc/sysfs: disable hotplug for the boot cpu

2013-06-14 Thread Benjamin Herrenschmidt
On Thu, 2013-06-13 at 19:25 +0800, Zhao Chenhui wrote: > Some multicore SoCs firstly boot up the cpu0 after warm reset. > In some suspend/resume cases, SoC will do a warm reset when resuming. > In order to ensure that the suspending and resuming is running > on a same cpu, cpu0 should be the last c

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Benjamin Herrenschmidt
On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > thing is, when I type on the console, it makes progress. Anyway, it > seems that powerpc has an issue with irq_work(). I'll try to get some > time either tonight or nex

[PATCH] powerpc: Fix missing/delayed calls to irq_work

2013-06-14 Thread Benjamin Herrenschmidt
When replaying interrupts (as a result of the interrupt occurring while soft-disabled), in the case of the decrementer, we are exclusively testing for a pending timer target. However we also use decrementer interrupts to trigger the new "irq_work", which in this case would be missed. This change t

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Steven Rostedt
On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > > thing is, when I type on the console, it makes progress. Anyway, it > > seems that powerpc has an

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Benjamin Herrenschmidt
On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > > > thing is, when I type on the con

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Steven Rostedt
On Sat, 2013-06-15 at 12:21 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > > > I was pretty much able to reproduce

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-14 Thread Paul E. McKenney
On Fri, Jun 14, 2013 at 10:31:12PM -0400, Steven Rostedt wrote: > On Sat, 2013-06-15 at 12:21 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-06-14 at 22:17 -0400, Steven Rostedt wrote: > > > On Sat, 2013-06-15 at 12:02 +1000, Benjamin Herrenschmidt wrote: > > > > On Fri, 2013-06-14 at 17:06

[git pull] Please pull powerpc.git merge branch

2013-06-14 Thread Benjamin Herrenschmidt
Hi Linus ! Hopefully this one smells better ... So here are 3 fixes still for 3.10. Fixes are simple, bugs are nasty (though not recent regressions, nasty enough) and all targeted at stable. Please apply. Thanks ! Cheers, Ben. The following changes since commit 34376a50fb1fa095b9d0636fa41ed2e7