Re: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-07-31 Thread Li Yang
On Mon, Jul 30, 2012 at 10:46 PM, Kumar Gala wrote: > > On Jul 30, 2012, at 3:26 AM, Jia Hongtao-B38951 wrote: > >> >> >>> -Original Message- >>> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >>> Sent: Saturday, July 28, 2012 5:17 AM >>> To: Wood Scott-B07421 >>> Cc: Jia Hongtao-B389

[git pull] Please pull powerpc.git merge branch

2012-07-31 Thread Benjamin Herrenschmidt
Hi Linus ! Kumar sent me a handful of Freescale related fixes and I added another regression fix to the pile. Cheers, Ben. PS. I -will- eventually learn about that signed tag business :-) The following changes since commit 1fad1e9a747687a7399bf58e87974f9b1bbcae06: Merge tag 'nfs-for-3.6-1' o

RE: [PATCH] powerpc/fsl: mpic timer driver

2012-07-31 Thread Wang Dongsheng-B40534
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, July 27, 2012 9:14 PM > To: Wang Dongsheng-B40534 > Cc: b...@kernel.crashing.org; pau...@samba.org; Wood Scott-B07421; > linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/fsl: mpic timer

Re: [PATCH] powerpc: Update g5_defconfig

2012-07-31 Thread Andreas Schwab
It's even worse. Since ec9b3a9de6b2a8a08c5250b466db92adf82b8d65 (drm/nouveau/i2c: resume use of i2c-algo-bit, rather than custom stack) the system is just powered off in the middle of booting. Since nothing is calling pmu_request with PMU_SHUTDOWN it must be some kind of bit banging that causes t

Re: [RFC PATCH v5 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-07-31 Thread Gerald Schaefer
On Fri, 27 Jul 2012 18:34:38 +0800 Wen Congyang wrote: > From: Yasuaki Ishimatsu > > All pages of virtual mapping in removed memory cannot be freed, since > some pages used as PGD/PUD includes not only removed memory but also > other memory. So the patch checks whether page can be freed or not.

Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-31 Thread Gerald Schaefer
On Mon, 30 Jul 2012 18:35:37 +0800 Wen Congyang wrote: > At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: > >> We don't call __add_pages() directly in the function add_memory() > >> because some other architecture related things need

Re: [PATCH 5/6] powerpc/fsl-pci: Add pci inbound/outbound PM support

2012-07-31 Thread Kumar Gala
On Jul 30, 2012, at 1:09 AM, Jia Hongtao-B38951 wrote: >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Friday, July 27, 2012 9:24 PM >> To: Jia Hongtao-B38951 >> Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; Li Yang-R58472 >> Subject: Re: [PAT

Re: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-07-31 Thread Kumar Gala
On Jul 31, 2012, at 2:21 AM, Li Yang wrote: > On Mon, Jul 30, 2012 at 10:46 PM, Kumar Gala > wrote: >> >> On Jul 30, 2012, at 3:26 AM, Jia Hongtao-B38951 wrote: >> >>> >>> -Original Message- From: Kumar Gala [mailto:ga...@kernel.crashing.org] Sent: Saturday, July 28,

[PATCH] dma/fsldma: fix a compilation warnings

2012-07-31 Thread Kumar Gala
drivers/dma/fsldma.c: In function 'fsl_dma_tx_submit': drivers/dma/fsldma.c:409:15: warning: 'cookie' may be used uninitialized in this function Signed-off-by: Kumar Gala --- drivers/dma/fsldma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/fsldma.c b/drive

RE: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-31 Thread Sethi Varun-B16395
> -Original Message- > From: Wood Scott-B07421 > Sent: Monday, July 09, 2012 11:12 PM > To: Kumar Gala > Cc: Sethi Varun-B16395; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on > Freescale chips > > On 07/09/2012 12:36 PM, Kumar G

Re: [PATCH v8 5/7] powerpc/85xx: add sleep and deep sleep support

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > In sleep PM mode, the clocks of e500 core and unused IP blocks is > turned off. IP blocks which are allowed to wake up the processor > are still running. > > Some Freescale chips like MPC8536 and P1022 has deep sleep PM mode > in addtion to the

Re: [PATCH v8 7/7] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides > a dynamic mechanism to lower or raise the CPU core clock at runtime. > > This patch adds the support to change CPU frequency using the standard > cpufreq interface. T

Re: [PATCH 1/3] powerpc/mpic: finish supporting timer group B on Freescale chips

2012-07-31 Thread Kumar Gala
On Jul 31, 2012, at 8:55 AM, Sethi Varun-B16395 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Tuesday, July 31, 2012 7:20 PM >> To: Sethi Varun-B16395 >> Cc: Wood Scott-B07421 >> Subject: Re: [PATCH 1/3] powerpc/mpic: finish supporting

Re: [PATCH v8 1/7] powerpc/smp: use a struct epapr_spin_table to replace macros

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > Signed-off-by: Zhao Chenhui > --- > arch/powerpc/platforms/85xx/smp.c | 46 ++-- > 1 files changed, 23 insertions(+), 23 deletions(-) applied to next - k ___ Linuxppc

Re: [PATCH v8 2/7] powerpc/smp: add generic_set_cpu_up() to set cpu_state as CPU_UP_PREPARE

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > In the case of cpu hotplug, the cpu_state should be set to CPU_UP_PREPARE > when kicking cpu. > Otherwise, the cpu_state is always CPU_DEAD after calling > generic_set_cpu_dead(), which > makes the delay in generic_cpu_die() not happen. > > Si

Re: [PATCH v8 3/7] powerpc/85xx: implement hardware timebase sync

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > Do hardware timebase sync. Firstly, stop all timebases, and transfer > the timebase value of the boot core to the other core. Finally, > start all timebases. > > Only apply to dual-core chips, such as MPC8572, P2020, etc. > > Signed-off-by: Zha

Re: [PATCH v8 4/7] powerpc/85xx: add HOTPLUG_CPU support

2012-07-31 Thread Kumar Gala
On Jul 20, 2012, at 7:42 AM, Zhao Chenhui wrote: > Add support to disable and re-enable individual cores at runtime > on MPC85xx/QorIQ SMP machines. Currently support e500v1/e500v2 core. > > MPC85xx machines use ePAPR spin-table in boot page for CPU kick-off. > This patch uses the boot page from

Re: [PATCH] powerpc/fsl: mpic timer driver

2012-07-31 Thread Kumar Gala
On Jul 31, 2012, at 2:58 AM, Wang Dongsheng-B40534 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Friday, July 27, 2012 9:14 PM >> To: Wang Dongsheng-B40534 >> Cc: b...@kernel.crashing.org; pau...@samba.org; Wood Scott-B07421; >> linuxpp

[PATCH 3/3 v3] powerpc/mpic: FSL MPIC error interrupt support.

2012-07-31 Thread Varun Sethi
All SOC device error interrupts are muxed and delivered to the core as a single MPIC error interrupt. Currently all the device drivers requiring access to device errors have to register for the MPIC error interrupt as a shared interrupt. With this patch we add interrupt demuxing capability in the

RE: [PATCH] dma/fsldma: fix a compilation warnings

2012-07-31 Thread Liu Qiang-B32616
Hi Kumar, > From: Linuxppc-dev > [linuxppc-dev-bounces+qiang.liu=freescale@lists.ozlabs.org] on behalf of > Kumar Gala [ga...@kernel.crashing.org] > Sent: Tuesday, July 31, 2012 8:57 AM > To: dan.j.willi...@intel.com > Cc: vinod.k...@intel.com; linuxpp

Re: [PATCH] dma/fsldma: fix a compilation warnings

2012-07-31 Thread Kumar Gala
On Jul 31, 2012, at 9:48 AM, Liu Qiang-B32616 wrote: > Hi Kumar, > >> From: Linuxppc-dev >> [linuxppc-dev-bounces+qiang.liu=freescale@lists.ozlabs.org] on behalf of >> Kumar Gala [ga...@kernel.crashing.org] >> Sent: Tuesday, July 31, 2012 8:57 AM >>

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-31 Thread Brian King
On 07/30/2012 10:08 PM, Benjamin Herrenschmidt wrote: > On Mon, 2012-07-30 at 21:06 +0200, Olaf Hering wrote: >>> So while this would work, I do wonder however whether we could >> instead >>> fix it by simplifying the whole thing as follow since iSeries is now >>> gone and so we don't need split ba

Re: [PATCH] powerpc/fsl: mpic timer driver

2012-07-31 Thread Scott Wood
On 07/31/2012 09:31 AM, Kumar Gala wrote: > > On Jul 31, 2012, at 2:58 AM, Wang Dongsheng-B40534 wrote: > >> >> >>> -Original Message- >>> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >>> Sent: Friday, July 27, 2012 9:14 PM >>> To: Wang Dongsheng-B40534 >>> Cc: b...@kernel.crashing

Re: [PATCH] powerpc: Update g5_defconfig

2012-07-31 Thread Andrey Gusev
23.07.2012 11:06, Benjamin Herrenschmidt пишет: On Mon, 2012-07-23 at 09:04 +0200, Andreas Schwab wrote: Benjamin Herrenschmidt writes: This updates the g5 defconfig to include nouveau instead of nvidiafb (which works much better nowadays, in fact the latter crashes on modern distros), Does

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-31 Thread Robert Jennings
On Tue, Jul 31, 2012 at 11:20 AM, Brian King wrote: > > On 07/30/2012 10:08 PM, Benjamin Herrenschmidt wrote: > > On Mon, 2012-07-30 at 21:06 +0200, Olaf Hering wrote: > >>> So while this would work, I do wonder however whether we could > >> instead > >>> fix it by simplifying the whole thing as f

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-31 Thread Robert Jennings
On Tue, Jul 31, 2012 at 11:20 AM, Brian King wrote: > On 07/30/2012 10:08 PM, Benjamin Herrenschmidt wrote: > > On Mon, 2012-07-30 at 21:06 +0200, Olaf Hering wrote: > >>> So while this would work, I do wonder however whether we could > >> instead > >>> fix it by simplifying the whole thing as fol

Re: [PATCH v4 3/7] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-07-31 Thread Ira W. Snyder
On Tue, Jul 31, 2012 at 04:09:28AM +, Liu Qiang-B32616 wrote: > > -Original Message- > > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > > Sent: Tuesday, July 31, 2012 5:10 AM > > To: Liu Qiang-B32616 > > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Phillips > >

[PATCH 0/7] fsl-dma: fixes for Freescale DMA driver

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" Hello everyone, This is my alternative (simpler) attempt at solving the problems reported by Qiang Liu with the async_tx API and MD RAID hardware offload support when using the Freescale DMA driver. The bug is caused by this driver freeing descriptors before they have been

[PATCH 1/7] fsl-dma: remove attribute DMA_INTERRUPT of dmaengine

2012-07-31 Thread Ira W. Snyder
From: Qiang Liu Delete attribute DMA_INTERRUPT because fsl-dma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |

[PATCH 3/7] fsl-dma: add fsl_dma_free_descriptor() to reduce code duplication

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" There are several places where descriptors are freed using identical code. Put this code into a function to reduce code duplication. Signed-off-by: Ira W. Snyder --- drivers/dma/fsldma.c | 32 ++-- 1 files changed, 14 insertions(+), 18 deleti

[PATCH 2/7] fsl-dma: minimize locking overhead

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" The use of spin_lock_irqsave() was a stronger locking mechanism than was actually needed in many cases. As the current code is written, spin_lock_bh() everywhere is sufficient. The next patch in this series will add some code to hardware interrupt context. This patch is in

[PATCH 4/7] fsl-dma: move functions to avoid forward declarations

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" This function will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Ira W. Snyder --- drivers/dma/fsldma.c | 96 +- 1 file

[PATCH 5/7] fsl-dma: fix support for async_tx API

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" The current fsldma driver does not support the async_tx API. This is due to a bug: all descriptors are released when the hardware is finished with them. The async_tx API requires that the ACK bit is set by software before descriptors are freed. This bug is easiest to reprod

[PATCH 6/7] fsl-dma: fix a warning of unitialized cookie

2012-07-31 Thread Ira W. Snyder
From: Qiang Liu Fix a warning of unitialized value when compile with -Wuninitialized. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Cc: Kim Phillips --- drivers/dma/fsldma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsldma.

[PATCH 7/7] carma: remove unnecessary DMA_INTERRUPT capability

2012-07-31 Thread Ira W. Snyder
From: "Ira W. Snyder" These drivers set the DMA_INTERRUPT capability bit when requesting a DMA controller channel. This was historical, and is no longer needed. Recent changes to the drivers/dma/fsldma.c driver have removed support for this flag. This makes the carma drivers unable to find a DMA

Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-31 Thread Wen Congyang
At 07/31/2012 08:40 PM, Gerald Schaefer Wrote: > On Mon, 30 Jul 2012 18:35:37 +0800 > Wen Congyang wrote: > >> At 07/30/2012 06:23 PM, Heiko Carstens Wrote: >>> On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: We don't call __add_pages() directly in the function add_memory() >>>

Re: 3.5+: yaboot, Invalid memory access

2012-07-31 Thread Tony Breeds
On Mon, Jul 30, 2012 at 10:46:39PM -0700, Christian Kujau wrote: > Hi, > > when trying to upgrade from 3.5 (final) to today's git checkout from > Linus' tree, yaboot cannot boot and the following is printed: > > [...] > returning from prom_init > Invalid memory access at %SRR0: 00c62fd4 %

RE: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie initialization code

2012-07-31 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Tuesday, July 31, 2012 9:38 PM > To: Li Yang-R58472 > Cc: Jia Hongtao-B38951; Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH V3 1/5] powerpc/fsl-pci: Unify pci/pcie

Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-31 Thread jencce zhou
2012/7/27 Wen Congyang : > We don't call __add_pages() directly in the function add_memory() > because some other architecture related things need to be done > before or after calling __add_pages(). So we should introduce > a new function arch_remove_memory() to revert the things > done in arch_add

RE: [PATCH v4 3/7] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-07-31 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Wednesday, August 01, 2012 6:14 AM > To: Liu Qiang-B32616 > Cc: linux-cry...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Phillips > Kim-R1AAHA; da...@davemloft.net; dan.j.willi...@gmail.com; Vinod Koul; Li

RE: [PATCH 0/7] fsl-dma: fixes for Freescale DMA driver

2012-07-31 Thread Liu Qiang-B32616
Hi Ira, My comments inline. > -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Wednesday, August 01, 2012 7:46 AM > To: linux-cry...@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org; Liu Qiang-B32616; Ira W. Snyder > Subject: [PATCH 0/7] fsl-dma: fixes fo

RE: [PATCH 7/7] carma: remove unnecessary DMA_INTERRUPT capability

2012-07-31 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Wednesday, August 01, 2012 7:46 AM > To: linux-cry...@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org; Liu Qiang-B32616; Ira W. Snyder > Subject: [PATCH 7/7] carma: remove unnecessary DMA_INTERRUPT capabil

Re: [PATCH -V5 08/13] arch/powerpc: Use the rquired number of VSID bits in slbmte

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:14PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > ASM_VSID_SCRAMBLE can leave non-zero bits in the high 28 bits of the result > for 256MB segment (40 bits for 1T segment). Properly mask them before using > the values in slbmte > > Signed-off-by: Ane

Re: [PATCH -V5 11/13] arch/powerpc: properly isolate kernel and user proto-VSID

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:17PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > The proto-VSID space is divided into two class > User: 0 to 2^(CONTEXT_BITS + USER_ESID_BITS) -1 > kernel: 2^(CONTEXT_BITS + USER_ESID_BITS) to 2^(VSID_BITS) - 1 > > With KERNEL_START at 0xc000

Re: [PATCH -V5 13/13] arch/powerpc: Update VSID allocation documentation

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:19PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This update the proto-VSID and VSID scramble related information > to be more generic by using names instead of current values. Comments below... > - * VSID allocation > + * VSID allocation (256MB s

Re: [PATCH -V5 03/13] arch/powerpc: Convert virtual address to vpn

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:09PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch convert different functions to take virtual page number > instead of virtual address. Virtual page number is virtual address > shifted right by VPN_SHIFT (12) bits. This enable us to have a

Re: [PATCH -V5 07/13] arch/powerpc: Make some of the PGTABLE_RANGE dependency explicit

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:13PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > slice array size and slice mask size depend on PGTABLE_RANGE. We > can't directly include pgtable.h in these header because there is > a circular dependency. So add compile time check for these values

Re: [PATCH -V5 12/13] arch/powerpc: Replace open coded CONTEXT_BITS value

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:18PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > To clarify the meaning for future readers, replace the open coded > 19 with CONTEXT_BITS > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/mmu_context_hash64.c |2 +- > 1 file changed

Re: [PATCH -V5 06/13] arch/powerpc: Increase the slice range to 64TB

2012-07-31 Thread Paul Mackerras
On Mon, Jul 30, 2012 at 04:52:12PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch makes the high psizes mask as an unsigned char array > so that we can have more than 16TB. Currently we support upto > 64TB Comments below... > diff --git a/arch/powerpc/mm/slb_low.S b/ar

Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-31 Thread Wen Congyang
At 08/01/2012 10:44 AM, jencce zhou Wrote: > 2012/7/27 Wen Congyang : >> We don't call __add_pages() directly in the function add_memory() >> because some other architecture related things need to be done >> before or after calling __add_pages(). So we should introduce >> a new function arch_remove

RE: [PATCH 5/7] fsl-dma: fix support for async_tx API

2012-07-31 Thread Liu Qiang-B32616
> -Original Message- > From: Ira W. Snyder [mailto:i...@ovro.caltech.edu] > Sent: Wednesday, August 01, 2012 7:46 AM > To: linux-cry...@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org; Liu Qiang-B32616; Ira W. Snyder; Dan > Williams; Vinod Koul; Li Yang-R58472; Liu Qiang-B32616 > Subjec

Re: [RFC PATCH v5 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-07-31 Thread Wen Congyang
At 07/31/2012 08:22 PM, Gerald Schaefer Wrote: > On Fri, 27 Jul 2012 18:34:38 +0800 > Wen Congyang wrote: > >> From: Yasuaki Ishimatsu >> >> All pages of virtual mapping in removed memory cannot be freed, since >> some pages used as PGD/PUD includes not only removed memory but also >> other memo