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 wrote: > Greg Kurz 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 got rid of

[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 on

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 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 got rid of

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 ! :-) > >

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 +++ b/arch/powerpc/kvm/

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 exceptio

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 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 be removed. I won't

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 do

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 writes: > On Mon, 31 Mar 2014 09:27:16 +1100 > Stewart Smith wrote: >> Greg Kurz writes: >> > struct rtas_error_log { >> > +#ifdef __BIG_ENDIAN__ >> > + /* Byte 0 */ >> >unsigned long version:8;/* Architectural version */ >> > + /* Byte 1 */ >> >> I think it wou

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 ones,

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

2014-03-31 Thread Stewart Smith
Benjamin Herrenschmidt writes: > On Mon, 2014-03-31 at 09:27 +1100, Stewart Smith wrote: >> Greg Kurz writes: >> > struct rtas_error_log { >> > +#ifdef __BIG_ENDIAN__ >> > + /* Byte 0 */ >> >unsigned long version:8;/* Architectural version */ >> > + /* Byte 1 */ >> >> I th

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 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 issues

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 permi

Re: OOPS in hvc / virtconsole

2014-03-31 Thread Andy Lutomirski
On Mon, Mar 31, 2014 at 3:31 PM, Andy Lutomirski 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 console=hvc0 console=

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 disabli

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 Yan

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->de

[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 i

[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 Acke

[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 on

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 result

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; ti

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; Xi

[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 --- arch/powerpc/include/asm/opal.h

[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 --- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-w

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; ti

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 : > >> 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, d