Re: [PATCH 3/4] powerpc/booke64: Use appropriate -mcpu

2013-08-22 Thread Rojhalat Ibrahim
Just out of curiosity: What's the difference (if any) between -mcpu=e500mc64 and -mcpu=e5500? AFAIK -mcpu=e500mc64 is supported by gcc since at least version 4.6 whereas -mcpu=e5500 is only supported since gcc 4.8. But is there actually any difference? Rojhalat On Tuesday 20 August 2013 21

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

2013-06-17 Thread Rojhalat Ibrahim
. fsl_indirect_read_config is now only used for booke/86xx PCIe controllers. Reported-by: Michael Guntsche Cc: Scott Wood Signed-off-by: Rojhalat Ibrahim --- v3: Fix compile error arch/powerpc/sysdev/fsl_pci.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/arch

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-17 Thread Rojhalat Ibrahim
On Friday 14 June 2013 22:17:34 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 consol

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

2013-06-17 Thread Rojhalat Ibrahim
On Friday 14 June 2013 15:18:03 Scott Wood wrote: > 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

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

2013-06-14 Thread Rojhalat Ibrahim
. fsl_indirect_read_config is now only used for booke/86xx PCIe controllers. Reported-by: Michael Guntsche Cc: Scott Wood Signed-off-by: Rojhalat Ibrahim --- v2: Make it more consistent. arch/powerpc/sysdev/fsl_pci.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/arch

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 Scot

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

2013-06-13 Thread Rojhalat Ibrahim
devices a check is added to differentiate between PCI and PCIe controllers. Reported-by: Michael Guntsche Cc: Scott Wood Signed-off-by: Rojhalat Ibrahim --- arch/powerpc/sysdev/fsl_pci.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev

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

2013-06-13 Thread Rojhalat Ibrahim
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 figured it was non-PCIe because the code change that you said > > > helped was on the non

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

2013-06-12 Thread Rojhalat Ibrahim
On Tuesday 11 June 2013 12:28:59 Scott Wood wrote: > On 06/11/2013 12:09:42 PM, Michael Guntsche wrote: > > On Tue, Jun 11, 2013 at 7:00 PM, Scott Wood > > > > wrote: > > > On 06/11/2013 02:24:28 AM, Rojhalat Ibrahim wrote: > > >> On Monday 10 June 2013

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

2013-06-11 Thread Rojhalat Ibrahim
On Monday 10 June 2013 17:52:33 Scott Wood wrote: > On 06/10/2013 12:07:43 PM, Michael Guntsche wrote: > > Good evening, > > > > On Mon, Jun 10, 2013 at 1:41 PM, Rojhalat Ibrahim > > > > wrote: > > > Hi Mike, > > > > > > could you ple

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

2013-06-10 Thread Rojhalat Ibrahim
Hi Mike, could you please try this patch: https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-May/106624.html http://patchwork.ozlabs.org/patch/244515/ Rojhalat On Saturday 08 June 2013 21:39:37 Michael Guntsche wrote: > After bisecting I found the responsible commit. > > 50d8f87d2b3: powe

Re: [PATCH] powerpc/pci: fix PCI-e check link issue

2013-05-21 Thread Rojhalat Ibrahim
nk. The device won't be really rescaned. Reset the bus->number to > hose->first_busno in the function fsl_pcie_check_link(), it will do the > real checking PCI-e link status for the second controller, the device will > be rescaned. > > Signed-off-by: Yuanquan Chen Tested-by: Rojhala

Re: [RFC][PATCH 1/2] powerpc/fsl-pci: Keep PCI SoC controller registers in

2013-04-08 Thread Rojhalat Ibrahim
; > Signed-off-by: Kumar Gala Acked-by: Rojhalat Ibrahim > --- > arch/powerpc/include/asm/pci-bridge.h |5 ++- > arch/powerpc/sysdev/fsl_pci.c | 69 > ++--- 2 files changed, 34 insertions(+), 40 > deletions(-) > > diff --git a/ar

Re: [RFC][PATCH 2/2] powerpc/fsl-pci Make PCIe hotplug work with Freescale

2013-04-08 Thread Rojhalat Ibrahim
Signed-off-by: Rojhalat Ibrahim --- arch/powerpc/include/asm/pci-bridge.h |6 arch/powerpc/sysdev/fsl_pci.c | 51 +- arch/powerpc/sysdev/indirect_pci.c| 10 ++ 3 files changed, 54 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/in

Re: [RFC][PATCH 2/2] powerpc/fsl-pci Make PCIe hotplug work with Freescale

2013-04-03 Thread Rojhalat Ibrahim
Hi Kumar, what about this patch? Any reasons not to apply? Rojhalat On Monday 18 March 2013 10:22:40 Rojhalat Ibrahim wrote: > On Thursday 14 March 2013 15:35:40 Kumar Gala wrote: > > On Mar 14, 2013, at 4:43 AM, Rojhalat Ibrahim wrote: > > > On Wednesday 13 March 2013 1

Re: [RFC][PATCH 2/2] powerpc/fsl-pci Make PCIe hotplug work with Freescale

2013-03-18 Thread Rojhalat Ibrahim
On Thursday 14 March 2013 15:35:40 Kumar Gala wrote: > On Mar 14, 2013, at 4:43 AM, Rojhalat Ibrahim wrote: > > On Wednesday 13 March 2013 14:07:16 Kumar Gala wrote: > >> diff --git a/arch/powerpc/sysdev/fsl_pci.c > >> b/arch/powerpc/sysdev/fsl_pci.c > >> inde

Re: [RFC][PATCH 2/2] powerpc/fsl-pci Make PCIe hotplug work with Freescale

2013-03-14 Thread Rojhalat Ibrahim
entually calls fsl_indirect_read_config, so the kernel hangs in a recursion loop. Below is a modified patch that does work. Signed-off-by: Rojhalat Ibrahim --- arch/powerpc/include/asm/pci-bridge.h |6 arch/powerpc/sysdev/fsl_pci.c | 51 ++---

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-13 Thread Rojhalat Ibrahim
work for PCIe IP rev 3.0 as I'm not sure how to handle "struct resource" aside from making it global or changing "struct pci_controller". Rojhalat Signed-off-by: Rojhalat Ibrahim --- arch/powerpc/sysdev/fsl_pci.c | 51 ++--- a

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-12 Thread Rojhalat Ibrahim
On Tuesday 12 March 2013 19:03:39 Chen Yuanquan-B41889 wrote: > On 03/12/2013 06:30 PM, Rojhalat Ibrahim wrote: > > On Tuesday 12 March 2013 18:12:20 Chen Yuanquan-B41889 wrote: > >>>> -Original Message- > >>>> From: Linuxppc-dev [mailto:linuxppc-dev

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-12 Thread Rojhalat Ibrahim
On Tuesday 12 March 2013 18:12:20 Chen Yuanquan-B41889 wrote: > >> -Original Message- > >> From: Linuxppc-dev [mailto:linuxppc-dev-bounces+tie- > >> fei.zang=freescale@lists.ozlabs.org] On Behalf Of Rojhalat Ibrahim > >> Sent: Tuesday, March 12, 2013

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-12 Thread Rojhalat Ibrahim
config into fsl_pci.c > > - k > Ok, how about this: Signed-off-by: Rojhalat Ibrahim --- arch/powerpc/sysdev/fsl_pci.c | 49 ++ 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/

[PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-11 Thread Rojhalat Ibrahim
Hi, this issue was brought up before. See this thread: https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-July/099529.html The following patch works for me. Hot-added devices appear after "echo 1 > /sys/bus/pci/rescan". I tested it with a P5020DS development system. Signed-off