RE: [PATCH v2] fix wrong usage of dmaengine_unmap_put in async_xxx

2014-03-31 Thread Xuelin Shi
Hi Dan vinod, Have you got a chance to see this patch? Also what's your comment about the RaidEngine driver patch? Thanks, Xuelin Shi -Original Message- From: xuelin@freescale.com [mailto:xuelin@freescale.com] Sent: 2014年3月20日 16:16 To: vinod.k...@intel.com;

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Greg Kurz
On Mon, 31 Mar 2014 09:27:16 +1100 Stewart Smith stew...@linux.vnet.ibm.com wrote: Greg Kurz gk...@linux.vnet.ibm.com writes: struct rtas_error_log { +#ifdef __BIG_ENDIAN__ + /* Byte 0 */ unsigned long version:8;/* Architectural version */ + /* Byte 1 */ I

[PATCH] ASoC: fsl_sai: Fix buggy configurations in trigger()

2014-03-31 Thread Nicolin Chen
The current trigger() has two crucial problems: 1) The DMA request enabling operations (FSL_SAI_CSR_FRDE) for Tx and Rx are now totally exclusive: It would fail to run simultaneous Tx-Rx cases. 2) The TERE disabling operation depends on an incorrect condition -- active reference count that

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Benjamin Herrenschmidt
On Mon, 2014-03-31 at 09:27 +1100, Stewart Smith wrote: Greg Kurz gk...@linux.vnet.ibm.com writes: struct rtas_error_log { +#ifdef __BIG_ENDIAN__ + /* Byte 0 */ unsigned long version:8;/* Architectural version */ + /* Byte 1 */ I think it would be great if we

Re: [PATCH 1/2] powerpc/powernv: Add OPAL message log interface

2014-03-31 Thread Benjamin Herrenschmidt
On Mon, 2014-03-31 at 15:08 +1100, Michael Neuling wrote: +/* OPAL in-memory console. Defined in OPAL source at core/console.c */ +struct memcons { + __be64 magic; +#define MEMCONS_MAGIC 0x6630696567726173L 0x6630696567726173 == f0iegras ... Ben!!! :-P Yummy ! :-) + __be64

Re: [PATCH 3/4] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-03-31 Thread Alexander Graf
On 03/26/2014 09:52 PM, Scott Wood wrote: On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: diff --git a/arch/powerpc/kvm/book3s_paired_singles.c b/arch/powerpc/kvm/book3s_paired_singles.c index a59a25a..80c533e 100644 --- a/arch/powerpc/kvm/book3s_paired_singles.c +++

Re: [PATCH 4/4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-03-31 Thread Alexander Graf
On 03/26/2014 10:17 PM, Scott Wood wrote: On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: Load external pid (lwepx) instruction faults (when called from KVM with guest context) needs to be handled by KVM. This implies additional code in DO_KVM macro to identify the source of the

Re: [PATCH v6 00/11] reserved-memory regions/CMA in devicetree, again

2014-03-31 Thread Grant Likely
On Tue, Mar 11, 2014 at 10:37 AM, Grant Likely grant.lik...@linaro.org wrote: Hi Ben, Russell and Catalin, I've got this series queued up, and I'd like to be ready to merge it in the next merge window. I'm going to queue it up in linux-next. If you have any concerns, please shout and it can

Re: [RFC PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Nathan Fontenot
This is the patch that I worked up at the same time as Greg, the biggest difference being that I took the approach of doing and's, and shifting as opposed to re-defining the bit fields for LE. One other difference is that I left out defines for bits in the error log structures that we currently

Re: [PATCH] ASoC: fsl_sai: Fix buggy configurations in trigger()

2014-03-31 Thread Mark Brown
On Mon, Mar 31, 2014 at 07:39:22PM +0800, Nicolin Chen wrote: The current trigger() has two crucial problems: 1) The DMA request enabling operations (FSL_SAI_CSR_FRDE) for Tx and Rx are now totally exclusive: It would fail to run simultaneous Tx-Rx cases. 2) The TERE disabling operation

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Stewart Smith
Greg Kurz gk...@linux.vnet.ibm.com writes: On Mon, 31 Mar 2014 09:27:16 +1100 Stewart Smith stew...@linux.vnet.ibm.com wrote: Greg Kurz gk...@linux.vnet.ibm.com writes: struct rtas_error_log { +#ifdef __BIG_ENDIAN__ + /* Byte 0 */ unsigned long version:8;/*

OOPS in hvc / virtconsole

2014-03-31 Thread Andy Lutomirski
I'm running a Fedora distro kernel (3.13.7-200.fc20.x86_64) in kvm with these options: -chardev null,id=hvc0,signal=off -device virtio-serial-pci -device virtconsole,chardev=hvc0,name=virtme_console -append console=hvc0 console=ttyS0 -nographic (There are more, but these are the interesting

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-31 Thread Stewart Smith
Benjamin Herrenschmidt b...@kernel.crashing.org writes: On Mon, 2014-03-31 at 09:27 +1100, Stewart Smith wrote: Greg Kurz gk...@linux.vnet.ibm.com writes: struct rtas_error_log { +#ifdef __BIG_ENDIAN__ + /* Byte 0 */ unsigned long version:8;/* Architectural version

Re: [PATCH 1/2] powerpc/powernv: Add OPAL message log interface

2014-03-31 Thread Joel Stanley
On Mon, Mar 31, 2014 at 10:29 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: + conbuf = phys_to_virt(be64_to_cpu(mc-obuf_phys)); + wrapped = be32_to_cpu(mc-out_pos) MEMCONS_OUT_POS_WRAP; + out_pos = be32_to_cpu(mc-out_pos) MEMCONS_OUT_POS_MASK; + Are there ordering

Re: [PATCH 4/4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-03-31 Thread Scott Wood
On Mon, 2014-03-31 at 15:41 +0200, Alexander Graf wrote: On 03/26/2014 10:17 PM, Scott Wood wrote: On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: + /* + * Another thread may rewrite the TLB entry in parallel, don't + * execute from the address if the execute permission is

Re: OOPS in hvc / virtconsole

2014-03-31 Thread Andy Lutomirski
On Mon, Mar 31, 2014 at 3:31 PM, Andy Lutomirski l...@amacapital.net wrote: I'm running a Fedora distro kernel (3.13.7-200.fc20.x86_64) in kvm with these options: -chardev null,id=hvc0,signal=off -device virtio-serial-pci -device virtconsole,chardev=hvc0,name=virtme_console -append

Re: Bug in reclaim logic with exhausted nodes?

2014-03-31 Thread Nishanth Aravamudan
On 29.03.2014 [00:40:41 -0500], Christoph Lameter wrote: On Thu, 27 Mar 2014, Nishanth Aravamudan wrote: That looks to be the correct way to handle things. Maybe mark the node as offline or somehow not present so that the kernel ignores it. This is a SLUB condition:

RE: [PATCH] ASoC: fsl_sai: Fix buggy configurations in trigger()

2014-03-31 Thread li.xi...@freescale.com
Subject: [PATCH] ASoC: fsl_sai: Fix buggy configurations in trigger() The current trigger() has two crucial problems: 1) The DMA request enabling operations (FSL_SAI_CSR_FRDE) for Tx and Rx are now totally exclusive: It would fail to run simultaneous Tx-Rx cases. 2) The TERE disabling

RE: [PATCH 2/2] Make the diu driver work without board level initilization

2014-03-31 Thread dongsheng.w...@freescale.com
-Original Message- From: Linuxppc-dev [mailto:linuxppc-dev- bounces+b40534=freescale@lists.ozlabs.org] On Behalf Of Jason Jin Sent: Thursday, March 27, 2014 7:38 PM To: Wood Scott-B07421; ti...@tabi.org Cc: linux-fb...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Li

RE: [PATCH 2/2] Make the diu driver work without board level initilization

2014-03-31 Thread li.xi...@freescale.com
@@ -1752,6 +1793,22 @@ static int fsl_diu_probe(struct platform_device *pdev) goto error; } + if (!diu_ops.set_pixel_clock) { + data-pixelclk_reg = of_iomap(np, 1); + if (!data-pixelclk_reg) { + dev_err(pdev-dev, Cannot

[PATCH bisect 0/2] ASoC: fsl_sai: Overwrite trigger()

2014-03-31 Thread Nicolin Chen
This series of patches are bisected from the preivous version so as to apply the PATCH-1 onto asoc-v3.15-4. * The patches are generated by using '-U2' because the default '-U3' would conflict the baseline without fsl_sai_isr patches. Nicolin Chen (2): ASoC: fsl_sai: Fix buggy configurations

[PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread Nicolin Chen
We only enable one side interrupt for each stream since over/underrun on the opposite stream would be resulted from what we previously did, enabling TERE but remaining FRDE disabled, even though the xrun on the opposite direction will not break the current stream. Signed-off-by: Nicolin Chen

[PATCH bisect 1/2] ASoC: fsl_sai: Fix buggy configurations in trigger()

2014-03-31 Thread Nicolin Chen
The current trigger() has two crucial problems: 1) The DMA request enabling operations (FSL_SAI_CSR_FRDE) for Tx and Rx are now totally exclusive: It would fail to run simultaneous Tx-Rx cases. 2) The TERE disabling operation depends on an incorrect condition -- active reference count that

RE: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread dongsheng.w...@freescale.com
-Original Message- From: Linuxppc-dev [mailto:linuxppc-dev- bounces+b40534=freescale@lists.ozlabs.org] On Behalf Of Nicolin Chen Sent: Tuesday, April 01, 2014 11:17 AM To: broo...@kernel.org Cc: alsa-de...@alsa-project.org; Xiubo Li-B47053; linuxppc-dev@lists.ozlabs.org;

Re: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread Nicolin Chen
On Tue, Apr 01, 2014 at 11:25:02AM +0800, Wang Dongsheng-B40534 wrote: Subject: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams We only enable one side interrupt for each stream since over/underrun on the opposite stream would be resulted from

RE: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread dongsheng.w...@freescale.com
-Original Message- From: Nicolin Chen [mailto:guangyu.c...@freescale.com] Sent: Tuesday, April 01, 2014 11:14 AM To: Wang Dongsheng-B40534 Cc: broo...@kernel.org; alsa-de...@alsa-project.org; Xiubo Li-B47053; linuxppc- d...@lists.ozlabs.org; linux-ker...@vger.kernel.org;

Re: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread Nicolin Chen
On Tue, Apr 01, 2014 at 11:48:16AM +0800, Wang Dongsheng-B40534 wrote: -Original Message- From: Nicolin Chen [mailto:guangyu.c...@freescale.com] Sent: Tuesday, April 01, 2014 11:14 AM To: Wang Dongsheng-B40534 Cc: broo...@kernel.org; alsa-de...@alsa-project.org; Xiubo

[PATCH v2 0/2] OPAL message log interface

2014-03-31 Thread Joel Stanley
These two patches add support for the message log, and expose a new OPAL call called opal_invalid that allow me to cause OPAL to inject messages into the log. The naming is a bit mixed, as our device tree node is opal-memcons and I retained the naming of the header structure 'struct memcons', but

[PATCH v2 1/2] powerpc/powernv: Add OPAL message log interface

2014-03-31 Thread Joel Stanley
OPAL provides an in-memory circular buffer containing a message log populated with various runtime messages produced by the firmware. Provide a sysfs interface /sys/firmware/opal/msglog for userspace to view the messages. Signed-off-by: Joel Stanley j...@jms.id.au ---

[PATCH v2 2/2] powerpc/powernv: Add invalid OPAL call

2014-03-31 Thread Joel Stanley
This call will not be understood by OPAL, and cause it to add an error to it's log. Among other things, this is useful for testing the behaviour of the log as it fills up. Signed-off-by: Joel Stanley j...@jms.id.au --- arch/powerpc/include/asm/opal.h| 2 ++

RE: [PATCH bisect 2/2] ASoC: fsl_sai: Separately enable interrupts for Tx and Rx streams

2014-03-31 Thread dongsheng.w...@freescale.com
-Original Message- From: Nicolin Chen [mailto:guangyu.c...@freescale.com] Sent: Tuesday, April 01, 2014 11:38 AM To: Wang Dongsheng-B40534 Cc: broo...@kernel.org; alsa-de...@alsa-project.org; Xiubo Li-B47053; linuxppc- d...@lists.ozlabs.org; linux-ker...@vger.kernel.org;

Re: [PATCH 4/4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-03-31 Thread Alexander Graf
Am 01.04.2014 um 01:03 schrieb Scott Wood scottw...@freescale.com: On Mon, 2014-03-31 at 15:41 +0200, Alexander Graf wrote: On 03/26/2014 10:17 PM, Scott Wood wrote: On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: +/* + * Another thread may rewrite the TLB entry in