Re: [PATCH] [ppc] Do not reserve cpu spin-table for crash kernel

2012-07-12 Thread Simon Horman
On Thu, May 24, 2012 at 11:39:45AM +0530, Suzuki K. Poulose wrote: > As of now, the kexec reserves the spin-table for all the CPUs > on an SMP machine. The spin-table is pointed to by the > cpu-release-addr property in the device-tree. Reserving the > spin-table in the crash kernel will cause a BU

Standalone SRIO Driver for Linux

2012-07-12 Thread Saravanan S
Hi , Iam currently working on the GE make DSP230 board consisting of Quad PowerPC8640 nodes interconnected by SRIO with Linux 2.6.34 . However the only way to access the SRIO is through rionet facility . Our requirement is to use the SRIO interconnect without the Ethernet overheads. This wo

Re: [RFC PATCH v3 3/13] memory-hotplug : unify argument of firmware_map_add_early/hotplug

2012-07-12 Thread Yasuaki Ishimatsu
Hi Dave, 2012/07/12 22:40, Dave Hansen wrote: > On 07/11/2012 09:52 PM, Yasuaki Ishimatsu wrote: >> Does the following patch include your comment? If O.K., I will separate >> the patch from the series and send it for bug fix. > > Looks sane to me. It does now mean that the calling conventions fo

Re: [RFC PATCH v3 3/13] memory-hotplug : unify argument of firmware_map_add_early/hotplug

2012-07-12 Thread Yasuaki Ishimatsu
Hi Dave, 2012/07/12 22:40, Dave Hansen wrote: > On 07/11/2012 09:52 PM, Yasuaki Ishimatsu wrote: >> Does the following patch include your comment? If O.K., I will separate >> the patch from the series and send it for bug fix. > > Looks sane to me. It does now mean that the calling conventions fo

[PATCH] ppc44x/watchdog: Select WATCHDOG_NOWAYOUT option

2012-07-12 Thread Jiang Lu
On PPC44x core, the WRC(Watchdog-timer Reset Control) field of TCR of timer can not reset by software after set to a non-zero value. Which means software can not reset the timeout behaviour of watchdog timer. This patch selects WATCHDOG_NOWAYOUT option for 44x platforms to indicate the watchdog ti

Re: [RFC PATCH v3 5/13] memory-hotplug : does not release memory region in PAGES_PER_SECTION chunks

2012-07-12 Thread Wen Congyang
At 07/09/2012 06:26 PM, Yasuaki Ishimatsu Wrote: > Since applying a patch(de7f0cba96786c), release_mem_region() has been changed > as called in PAGES_PER_SECTION chunks because register_memory_resource() is > called in PAGES_PER_SECTION chunks by add_memory(). But it seems firmware > dependency. If

Re: [PATCH] powerpc/eeh: check handle_eeh_events() return value

2012-07-12 Thread Benjamin Herrenschmidt
On Fri, 2012-07-13 at 00:14 -0300, Kleber Sacilotto de Souza wrote: > Function eeh_event_handler() dereferences the pointer returned by > handle_eeh_events() without checking, causing a crash if NULL was > returned, which is expected in some situations. > > This patch fixes this bug by checking fo

Re: [PATCH v4] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-12 Thread Benjamin Herrenschmidt
On Fri, 2012-07-13 at 08:45 +1000, Paul Mackerras wrote: > On Thu, Jul 05, 2012 at 09:41:35AM -0500, Stuart Yoder wrote: > > > diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S > > index ba3aeb4..bad42e3 100644 > > --- a/arch/powerpc/kernel/entry_32.S > > +++ b/arch/powe

Re: [RFC PATCH v3 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove

2012-07-12 Thread Wen Congyang
At 07/09/2012 06:24 PM, Yasuaki Ishimatsu Wrote: > acpi_memory_device_remove() has been prepared to remove physical memory. > But, the function only frees acpi_memory_device currentlry. > > The patch adds following functions into acpi_memory_device_remove(): > - offline memory > - remove physi

[PATCH] powerpc/eeh: check handle_eeh_events() return value

2012-07-12 Thread Kleber Sacilotto de Souza
Function eeh_event_handler() dereferences the pointer returned by handle_eeh_events() without checking, causing a crash if NULL was returned, which is expected in some situations. This patch fixes this bug by checking for the value returned by handle_eeh_events() before dereferencing it. Signed-o

Re: [RFC PATCH v3 2/13] memory-hotplug : add physical memory hotplug code to acpi_memory_device_remove

2012-07-12 Thread Wen Congyang
At 07/09/2012 06:24 PM, Yasuaki Ishimatsu Wrote: > acpi_memory_device_remove() has been prepared to remove physical memory. > But, the function only frees acpi_memory_device currentlry. > > The patch adds following functions into acpi_memory_device_remove(): > - offline memory > - remove physi

[PATCH] powerpc/85xx: Fix pci base address error for p2020rdb-pc in dts

2012-07-12 Thread b29983
From: Tang Yuantian Signed-off-by: Tang Yuantian --- arch/powerpc/boot/dts/p2020rdb-pc_32b.dts |4 ++-- arch/powerpc/boot/dts/p2020rdb-pc_36b.dts |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/dts/p2020rdb-pc_32b.dts b/arch/powerpc/boot/dts/p2

[PATCH] powerpc/85xx: L2sram: Add compatible string to the device id list

2012-07-12 Thread b29983
From: Tang Yuantian The following platforms are supported: mpc8544, mpc8572, mpc8536, p1021, p1025, p1024, p1010. Signed-off-by: Tang Yuantian --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_85

Using gpio in MPC8309

2012-07-12 Thread Gal Afel
Hello, I just got a TWR-MPC8309 from Freescale running Embedded Linux OS. The kernel version is Linux 2.6.11+pq3 patches and the kernel preconfig file is linux_2.6.11_mpc8548_cds_def.config. I'm new to processors running Linux and I'm having a hard time trying to understand how can I program the

Re: [PATCH v4] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-12 Thread Paul Mackerras
On Thu, Jul 05, 2012 at 09:41:35AM -0500, Stuart Yoder wrote: > diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S > index ba3aeb4..bad42e3 100644 > --- a/arch/powerpc/kernel/entry_32.S > +++ b/arch/powerpc/kernel/entry_32.S > @@ -92,7 +92,7 @@ crit_transfer_to_handler: >

[PATCH 2/2] [perf][power]: Sample only if SIAR-Valid bit is set in P7+

2012-07-12 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Mon, 2 Jul 2012 08:06:14 -0700 Subject: [PATCH 2/2] [perf][power]: Sample only if SIAR-Valid bit is set in P7+ On POWER7+ two new bits (mmcra[35] and mmcra[36]) indicate whether the contents of SIAR and SDAR are valid. For marked instructions on P7+, we must save

[PATCH 1/2] power: Define PV_POWER7P

2012-07-12 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Tue, 3 Jul 2012 13:32:46 -0700 Subject: [PATCH 1/2] power: Define PV_POWER7P This change is based on the patch that Carl Love posted to LKML https://lkml.org/lkml/2012/6/22/309 It is included here for completeness and to enable building. When the above pa

[git pull] Please pull powerpc.git next branch

2012-07-12 Thread Kumar Gala
The following changes since commit db9112173b185995b80f56e136bd2ae44e4e6366: powerpc: Turn on BPF_JIT in ppc64_defconfig (2012-07-10 19:19:02 +1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next Christian Herzig (1): powerp

Re: [linuxppc-release] [PATCH v2 4/4] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-07-12 Thread Timur Tabi
Liu Qiang-B32616 wrote: > I compared my test result before and after this patch, write performance can > improved by 15%. I will send the latest patches sooner because of Ira's > concern. > I will give a complete description about the improvement of spin_lock_bh(). > > About your question, spin_l

Re: [PATCH][upstream] PCI: Add PCI_DEV_FLAGS_USE_NON_MSI_INTX_IRQ to enable non MSI/INTx interrupt

2012-07-12 Thread Scott Wood
On 07/12/2012 05:02 AM, Shengzhou Liu wrote: > On some platforms, in RC mode, root port has neither MSI/MSI-X nor INTx > interrupt generated, which are available only in EP mode on those platform. > In this case, we try to use other interrupt for port service driver to have > AER, Hot-plug, etc, se

Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Kumar Gala
On Jul 12, 2012, at 4:36 AM, Jia Hongtao wrote: > In SGMII riser card different PHY chip are used with different external > IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we > should add another group of PHY nodes for SGMII mode. > > For MPC8572DS IRQ6 is used for PHY0~PHY1,

Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Li Yang
On Thu, Jul 12, 2012 at 8:18 PM, Kumar Gala wrote: > > On Jul 12, 2012, at 5:28 AM, Jia Hongtao-B38951 wrote: > >> Note that this patch works with uboot update. >> Please refer to: >> http://patchwork.ozlabs.org/patch/170627/ >> >> -Hongtao. > > Will RGMII still work with this patch if I dont upda

Re: [RFC PATCH v3 3/13] memory-hotplug : unify argument of firmware_map_add_early/hotplug

2012-07-12 Thread Dave Hansen
On 07/11/2012 09:52 PM, Yasuaki Ishimatsu wrote: > Does the following patch include your comment? If O.K., I will separate > the patch from the series and send it for bug fix. Looks sane to me. It does now mean that the calling conventions for some of the other firmware_map*() functions are diffe

Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Kumar Gala
On Jul 12, 2012, at 5:28 AM, Jia Hongtao-B38951 wrote: > Note that this patch works with uboot update. > Please refer to: > http://patchwork.ozlabs.org/patch/170627/ > > -Hongtao. Will RGMII still work with this patch if I dont update u-boot? I'm assuming yes. - k > >> -Original Message

Re: [PATCH][upstream] PCI: Add PCI_DEV_FLAGS_USE_NON_MSI_INTX_IRQ to enable non MSI/INTx interrupt

2012-07-12 Thread Kumar Gala
On Jul 12, 2012, at 5:02 AM, Shengzhou Liu wrote: > On some platforms, in RC mode, root port has neither MSI/MSI-X nor INTx > interrupt generated, which are available only in EP mode on those platform. > In this case, we try to use other interrupt for port service driver to have > AER, Hot-plug,

Re: [PATCH] powerpc: remove rejected merge file from arch/powerpc/kernel in linux-next

2012-07-12 Thread Benjamin Herrenschmidt
On Thu, 2012-07-12 at 00:05 -0700, Gerard Snitselaar wrote: > Commit 9778b696 (powerpc: Use CURRENT_THREAD_INFO instead of open > coded assembly) got a rejected merge file iommu.c.rej committed with > it. Oops, that's me having too much coffee & using git citool ... I'll get rid of it, thanks. Ch

RE: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Jia Hongtao-B38951
Note that this patch works with uboot update. Please refer to: http://patchwork.ozlabs.org/patch/170627/ -Hongtao. > -Original Message- > From: Jia Hongtao-B38951 > Sent: Thursday, July 12, 2012 5:36 PM > To: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > Cc: Li Yang-R58472; J

[PATCH][upstream] PCI: Add PCI_DEV_FLAGS_USE_NON_MSI_INTX_IRQ to enable non MSI/INTx interrupt

2012-07-12 Thread Shengzhou Liu
On some platforms, in RC mode, root port has neither MSI/MSI-X nor INTx interrupt generated, which are available only in EP mode on those platform. In this case, we try to use other interrupt for port service driver to have AER, Hot-plug, etc, services to work. (i.e. there is the shared error inter

[PATCH] powerpc/sgmii: Add phy nodes in SGMII mode

2012-07-12 Thread Jia Hongtao
In SGMII riser card different PHY chip are used with different external IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we should add another group of PHY nodes for SGMII mode. For MPC8572DS IRQ6 is used for PHY0~PHY1, IRQ7 is used for PHY2~PHY3. For MPC8544DS and MPC8536DS IRQ

RE: [linuxppc-release] [PATCH v2 4/4] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-07-12 Thread Liu Qiang-B32616
> -Original Message- > From: Tabi Timur-B04825 > Sent: Wednesday, July 11, 2012 11:01 PM > To: Liu Qiang-B32616 > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Vinod > Koul; herb...@gondor.hengli.com.au; Dan Williams; Li Yang-R58472; > da...@davemloft.net > Subject: Re: [

RE: [PATCH v2 3/4] fsl-dma: change the release process of dma descriptor

2012-07-12 Thread Liu Qiang-B32616
> -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+qiang.liu=freescale@lists.ozlabs.org] On Behalf Of Liu Qiang- > B32616 > Sent: Thursday, July 12, 2012 3:12 PM > To: Ira W. Snyder > Cc: herb...@gondor.apana.org.au; Vinod Koul; linux-cry...@vger.kernel.org; > Dan

[PATCH] powerpc: remove rejected merge file from arch/powerpc/kernel in linux-next

2012-07-12 Thread Gerard Snitselaar
Commit 9778b696 (powerpc: Use CURRENT_THREAD_INFO instead of open coded assembly) got a rejected merge file iommu.c.rej committed with it. Signed-off-by: Gerard Snitselaar --- arch/powerpc/kernel/iommu.c.rej | 22 -- 1 file changed, 22 deletions(-) delete mode 100644 arch/po

RE: [PATCH v2 3/4] fsl-dma: change the release process of dma descriptor

2012-07-12 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Thursday, July 12, 2012 12:31 AM > To: Liu Qiang-B32616 > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Vinod > Koul; herb...@gondor.hengli.com.au; Dan Williams; da...@davemloft.net > Subjec