Re: [PATCH v8 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-08-27 Thread Hongbo Zhang
On 08/27/2013 07:35 PM, Mark Rutland wrote: On Tue, Aug 27, 2013 at 11:42:02AM +0100, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang --- .../devi

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Gleb Natapov
On Wed, Aug 28, 2013 at 11:26:31AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2013-08-28 at 10:51 +1000, Alexey Kardashevskiy wrote: > > The ioctl I made up is basically a copy of KVM_CREATE_SPAPR_TCE which does > > the same thing for emulated devices and it is there for quite a while but > > i

RE: [PATCH v2 2/3] powerpc/85xx: add hardware automatically enter altivec idle state

2013-08-27 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wang Dongsheng-B40534 > Sent: Tuesday, August 27, 2013 4:42 PM > To: Wood Scott-B07421; ga...@kernel.crashing.org > Cc: linuxppc-dev@lists.ozlabs.org; Wang Dongsheng-B40534 > Subject: [PATCH v2 2/3] powerpc/85xx: add hardware automatically enter > altivec idle

[PATCH v12] ASoC: fsl: Add S/PDIF machine driver

2013-08-27 Thread Nicolin Chen
This patch implements a device-tree-only machine driver for Freescale i.MX series Soc. It works with spdif_transmitter/spdif_receiver and fsl_spdif.c drivers. Signed-off-by: Nicolin Chen --- Changelog v11->v12: * Dropped unused spdif_pdev. * Register spdif-dit/dir depending on DT bool property.

[PATCH] powerpc/pseries: Move lparcfg.c to platforms/pseries

2013-08-27 Thread Benjamin Herrenschmidt
This file is entirely pseries specific nowadays, so move it out of arch/powerpc/kernel where it doesn't belong anymore. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/Makefile | 1 - arch/powerpc/kernel/lparcfg.c| 710 --- arch

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Benjamin Herrenschmidt
On Wed, 2013-08-28 at 10:51 +1000, Alexey Kardashevskiy wrote: > The ioctl I made up is basically a copy of KVM_CREATE_SPAPR_TCE which does > the same thing for emulated devices and it is there for quite a while but > it is not really extensible. And these two ioctls share some bits of code. > Now

Re: [PATCH v3 13/31] clk: wrap I/O access for improved portability

2013-08-27 Thread Mike Turquette
Quoting Anatolij Gustschin (2013-08-23 15:05:39) > On Fri, 02 Aug 2013 15:30:00 -0700 > Mike Turquette wrote: > > > Quoting Gerhard Sittig (2013-07-22 05:14:40) > > > the common clock drivers were motivated/initiated by ARM development > > > and apparently assume little endian peripherals > > >

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Alexey Kardashevskiy
On 08/27/2013 08:58 PM, Gleb Natapov wrote: > On Tue, Aug 27, 2013 at 06:42:18PM +1000, Alexey Kardashevskiy wrote: >> On 08/27/2013 05:56 PM, Gleb Natapov wrote: >>> On Thu, Aug 15, 2013 at 05:49:26PM +1000, Alexey Kardashevskiy wrote: This is to reserve a capablity number for upcoming suppor

Re: Critical Interrupt Input

2013-08-27 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 15:11 -0700, Henry Bausley wrote: > Both methods you described seem to work. We are currently using the > method of clearing the partially written TLB. Seems to be working but > we're still testing. Thanks. Feel free to send me us patch for review :-) Cheers, Ben. > . >

Re: Critical Interrupt Input

2013-08-27 Thread Henry Bausley
Both methods you described seem to work. We are currently using the method of clearing the partially written TLB. Seems to be working but we're still testing. Thanks. . . . mfspr r5,SPRN_CSRR0; lis r12,finish_tlb_load_44x@h ori r12,r12,finish_tlb_load_44x@l;

[PATCH] ppc: bpf_jit: support MOD operation

2013-08-27 Thread Vladimir Murzin
commit b6069a9570 (filter: add MOD operation) added generic support for modulus operation in BPF. This patch brings JIT support for PPC64 Signed-off-by: Vladimir Murzin --- arch/powerpc/net/bpf_jit_comp.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/powerpc/n

[PATCH V6 7/7] powernv/cpuidle: Enable idle powernv cpu to call into the cpuidle framework.

2013-08-27 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) di

[PATCH V6 6/7] POWER/cpuidle: Enable powernv cpuidle support.

2013-08-27 Thread Deepthi Dharwar
The following patch extends the current power backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle-ibm

[PATCH V6 4/7] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2013-08-27 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 26 +- 1

[PATCH V6 5/7] POWER/cpuidle: Generic POWER CPUIDLE driver supporting PSERIES.

2013-08-27 Thread Deepthi Dharwar
This patch includes cleanup and refactoring of the existing code to make the driver POWER generic. * Re-naming the functions from pseries to generic power. * Re-naming the backend driver from pseries_idle to ibm-power-idle. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c

[PATCH V6 2/7] pseries/cpuidle: Use cpuidle_register() for initialisation.

2013-08-27 Thread Deepthi Dharwar
This patch replaces the cpuidle driver and devices initialisation calls with a single generic cpuidle_register() call and also includes minor refactoring of the code around it. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 80 +-- 1 fi

[PATCH V6 3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

2013-08-27 Thread Deepthi Dharwar
Currently pseries_idle cpuidle backend driver cannot be built as a module due to dependencies. Therefore the driver has to be built in. The dependency is around update_snooze_delay() defined in cpuidle driver and called from kernel/sysfs.c. This patch is removes all the module related code. Signed

[PATCH V6 1/7] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2013-08-27 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-ibm-power.c Make the relevant Makefile and Kconfig changes. This will enable having a common backend cpuidle driver for POWER platform going forward. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/p

[PATCH V6 0/7] POWER/cpuidle: Generic IBM-POWER cpuidle driver enabled for PSERIES and POWERNV platforms

2013-08-27 Thread Deepthi Dharwar
This patch series consolidates the backend cpuidle driver for pSeries and powernv platforms with minimal code duplication. Current existing backend driver for pseries has been moved to drivers/cpuidle and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this patc

Re: Build regressions/improvements in v3.11-rc7

2013-08-27 Thread Geert Uytterhoeven
On Tue, 27 Aug 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.11-rc7 to v3.11-rc6[3], the summaries are: > - build errors: +15/-9 + /scratch/kisskb/src/arch/powerpc/sysdev/mpic.c: error: case label does not reduce to an integer constant: => 892:9, 904:9, 900:9, 896:9 + /scratch/

RE: [alsa-devel] [PATCH v11] ASoC: fsl: Add S/PDIF machine driver

2013-08-27 Thread Chen Guangyu-B42378
Oh, I didn't mean to push this. Sorry that I wasn't aware of it. I'll be more patient next time. Best regards, Nicolin Chen From: Mark Brown [broo...@kernel.org] Sent: Tuesday, August 27, 2013 10:50 PM To: Chen Guangyu-B42378 Cc: Stephen Warren; mark.rutl.

Re: [alsa-devel] [PATCH v11] ASoC: fsl: Add S/PDIF machine driver

2013-08-27 Thread Mark Brown
On Tue, Aug 27, 2013 at 10:01:08AM +0800, Nicolin Chen wrote: > On Fri, Aug 23, 2013 at 08:13:53PM +0100, Mark Brown wrote: > I think this patch hasn't been applied yet, already been acked though. > Is there any problem in it? You've allowed less than one working day for a response here - Monday

Re: [PATCH][RFC] pci: fsl: rework PCIe driver compatible with Layerscape

2013-08-27 Thread Lian Minghuan-b31939
Hi Scott, Thanks for your comments, please see my replies inline. On 08/24/2013 05:45 AM, Scott Wood wrote: On Mon, 2013-08-19 at 20:23 +0800, Minghuan Lian wrote: The Freescale's Layerscape series processors will use ARM cores. The LS1's PCIe controllers is the same as T4240's. So it's better

Re: [PATCH v8 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-08-27 Thread Mark Rutland
On Tue, Aug 27, 2013 at 11:42:02AM +0100, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds > the device tree nodes for them. > > Signed-off-by: Hongbo Zhang > --- > .../devicetree/bindings/powerpc/fsl/dma.

Re: [PATCH v8 1/3] DMA: Freescale: revise device tree binding document

2013-08-27 Thread Mark Rutland
On Tue, Aug 27, 2013 at 11:42:01AM +0100, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > This patch updates the discription of each type of DMA controller and its > channels, it is preparation for adding another new DMA controller binding, it > also fixes some defects of indent for te

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Gleb Natapov
On Tue, Aug 27, 2013 at 06:42:18PM +1000, Alexey Kardashevskiy wrote: > On 08/27/2013 05:56 PM, Gleb Natapov wrote: > > On Thu, Aug 15, 2013 at 05:49:26PM +1000, Alexey Kardashevskiy wrote: > >> This is to reserve a capablity number for upcoming support > >> of VFIO-IOMMU DMA operations in real mod

RE: ppc/sata-fsl: orphan config value: CONFIG_MPC8315_DS

2013-08-27 Thread Xie Shaohui-B21989
> As for the property name, I'd prefer "fsl,sata-speed-limit" or "fsl,sata- > max-generation". Shaohui, do the driver bits look OK? [S.H] The driver part is OK. I also tested it on p5040, the SATA worked as expected. Best Regards, Shaohui Xie ___ Li

[PATCH v8 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang --- drivers/dma/Kconfig |9 + drivers/dma/fsldma.c |9 ++--- drivers/dma/fsldma.h |2 +

[PATCH v8 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66 arch/powerpc/boot/dts/fsl/b4si-post.dtsi |

[PATCH v8 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang Hi DMA and DT maintainers, please have a look at these V8 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V7->V8 changes: - change the word "mapping" to "specifier" for reg and interrupts description V6->V7

[PATCH v8 1/3] DMA: Freescale: revise device tree binding document

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang --- .../devicetree/bindi

Re: [RFC PATCH v2 06/11] pstore: Add decompression support to pstore

2013-08-27 Thread Aruna Balakrishnaiah
On Friday 23 August 2013 04:34 AM, Seiji Aguchi wrote: -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Aruna Balakrishnaiah Sent: Friday, August 16, 2013 9:18 AM To: linuxppc-...@ozlabs.org; tony.l...@intel.com; linux

[PATCH] powerpc/powernv: Create opal sysfs directory

2013-08-27 Thread Vasant Hegde
Create /sys/firmware/opal directory. We wil use this interface to fetch opal error logs, firmware update, etc. Signed-off-by: Vasant Hegde --- arch/powerpc/include/asm/opal.h |3 +++ arch/powerpc/platforms/powernv/opal.c | 21 - 2 files changed, 23 insertions(+),

RE: [PATCH 0/2] fs: supply inode uid/gid setting interface

2013-08-27 Thread David Laight
> Subject: Re: [PATCH 0/2] fs: supply inode uid/gid setting interface > > On 2013/8/23 12:10, Greg KH wrote: > > On Fri, Aug 23, 2013 at 10:48:36AM +0800, Rui Xiang wrote: > >> This patchset implements an accessor functions to set uid/gid > >> in inode struct. Just finish code clean up. > > > > Wh

Re: [PATCH] powerpc: Work around gcc miscompilation of __pa() on 64-bit

2013-08-27 Thread Paul Mackerras
On Tue, Aug 27, 2013 at 04:42:35PM +0930, Alan Modra wrote: > On Tue, Aug 27, 2013 at 04:07:49PM +1000, Paul Mackerras wrote: > > On 64-bit, __pa(&static_var) gets miscompiled by recent versions of > > gcc as something like: > > > > addis 3,2,.LANCHOR1+4611686018427387904@toc@ha > >

[PATCH v2 3/3] powerpc/85xx: add hardware automatically enter pw20 state

2013-08-27 Thread Dongsheng Wang
From: Wang Dongsheng Using hardware features make core automatically enter PW20 state. Set a TB count to hardware, the effective count begins when PW10 is entered. When the effective period has expired, the core will proceed from PW10 to PW20 if no exit conditions have occurred during the period.

[PATCH v2 2/3] powerpc/85xx: add hardware automatically enter altivec idle state

2013-08-27 Thread Dongsheng Wang
From: Wang Dongsheng Each core's AltiVec unit may be placed into a power savings mode by turning off power to the unit. Core hardware will automatically power down the AltiVec unit after no AltiVec instructions have executed in N cycles. The AltiVec power-control is triggered by hardware. Signed

[PATCH v2 1/3] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define

2013-08-27 Thread Dongsheng Wang
From: Wang Dongsheng E6500 PVR and SPRN_PWRMGTCR0 will be used in subsequent pw20/altivec idle patches. Signed-off-by: Wang Dongsheng diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 64264bf..d4160ca 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powe

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Alexey Kardashevskiy
On 08/27/2013 05:56 PM, Gleb Natapov wrote: > On Thu, Aug 15, 2013 at 05:49:26PM +1000, Alexey Kardashevskiy wrote: >> This is to reserve a capablity number for upcoming support >> of VFIO-IOMMU DMA operations in real mode. >> >> The last ioctl in the group which KVM_CREATE_SPAPR_TCE_IOMMU is added

Re: [PATCH 1/2] powerpc/irq: remove the unneeded flag PACA_IRQ_EE_EDGE

2013-08-27 Thread Kevin Hao
On Tue, Aug 27, 2013 at 05:53:24PM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2013-04-11 at 09:32 +0800, Kevin Hao wrote: > > In order to support the Book3E external proxy, the flag > > PACA_IRQ_EE_EDGE was introduced in patch 7230c564 (powerpc: Rework > > lazy-interrupt handling). But it turns

Re: [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-08-27 Thread Gleb Natapov
On Thu, Aug 15, 2013 at 05:49:26PM +1000, Alexey Kardashevskiy wrote: > This is to reserve a capablity number for upcoming support > of VFIO-IOMMU DMA operations in real mode. > > The last ioctl in the group which KVM_CREATE_SPAPR_TCE_IOMMU is added to > is 0xac, the next two numbers are taken - 0

Re: [PATCH 1/2] powerpc/irq: remove the unneeded flag PACA_IRQ_EE_EDGE

2013-08-27 Thread Benjamin Herrenschmidt
On Thu, 2013-04-11 at 09:32 +0800, Kevin Hao wrote: > In order to support the Book3E external proxy, the flag > PACA_IRQ_EE_EDGE was introduced in patch 7230c564 (powerpc: Rework > lazy-interrupt handling). But it turns out that this is not needed. > And it is also not used by any code in the curre

[PATCH] powerpc: Set the NOTE type for SPE regset

2013-08-27 Thread Suzuki K. Poulose
The regset defintion for SPE doesn't have the core_note_type set, which prevents it from being dumped. Add the note type NT_PPC_SPE for SPE regset. Signed-off-by: Suzuki K Poulose Cc: Roland McGrath --- arch/powerpc/kernel/ptrace.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] i2c: powermac: fix return path on error

2013-08-27 Thread Benjamin Herrenschmidt
On Mon, 2013-08-19 at 15:18 +0200, Wolfram Sang wrote: > We want to bail out immediately if i2c_add_adapter failed and not try to > register child nodes with a nilled adapter structure. > > Signed-off-by: Wolfram Sang Acked-by: Benjamin Herrenschmidt > --- > drivers/i2c/busses/i2c-powermac.c |

Re: [PATCH v2 2/2] Register bootmem pages

2013-08-27 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 13:44 +1000, Benjamin Herrenschmidt wrote: > So I still feel very uncomfortable with that stuff > > For example, x86 calls register_page_bootmem_info_node() at boot time, > which does that strange "get_page_bootmem" on the NODE_DATA itself at > boot time, we don't. Shou

Re: [PATCH 02/10] KVM: PPC: reserve a capability number for multitce support

2013-08-27 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 09:41 +0300, Gleb Natapov wrote: > > Oh and Alexey mentions that there are two capabilities and you only > > applied one :-) > > > Another one is: > [PATCH v8] KVM: PPC: reserve a capability and ioctl numbers for > realmode VFIO > ? Yes, thanks ! Cheers, Ben. ___

Re: [PATCH 02/10] KVM: PPC: reserve a capability number for multitce support

2013-08-27 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 09:40 +0300, Gleb Natapov wrote: > > Thanks. Since it's not in a topic branch that I can pull, I'm going to > > just cherry-pick them. However, they are in your "queue" branch, not > > "next" branch. Should I still assume this is a stable branch and that > > the numbers aren't

[git pull] Please pull powerpc.git merge branch

2013-08-27 Thread Benjamin Herrenschmidt
Hi Linus ! Here are 3 bug fixes that should probably go into 3.11 since I'm also tagging them for stable. Once fixes our old /proc/powerpc/lparcfg file which provides partition informations when running under our hypervisor and also acts as a user-triggerable Oops when hot :-( The other two resp

Re: [PATCH] powerpc: Work around gcc miscompilation of __pa() on 64-bit

2013-08-27 Thread Alan Modra
On Tue, Aug 27, 2013 at 04:07:49PM +1000, Paul Mackerras wrote: > On 64-bit, __pa(&static_var) gets miscompiled by recent versions of > gcc as something like: > > addis 3,2,.LANCHOR1+4611686018427387904@toc@ha > addi 3,3,.LANCHOR1+4611686018427387904@toc@l I might argue that this