[PATCH -V2] POWERPC: BOOK3S: KVM: Use the saved dsisr and dar values on book3s 64

2013-12-29 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Although it's optional IBM POWER cpus always had DAR value set on alignment interrupt. So don't try to compute these values. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/kvm/book3s_emulate.c | 28 1 file changed, 28 insertions(+) diff

[git pull] Please pull powerpc.git merge branch

2013-12-29 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a few more powerpc fixes for 3.13. A bit more endian problems found during testing of 3.13 and a few other simple fixes and regressions fixes. Cheers, Ben. The following changes since commit 803c2d2f84da9dc2619449994af34d27148ab20d: powerpc/powernv: Fix OPAL LPC access in

Re: [PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-29 Thread Benjamin Herrenschmidt
On Sun, 2013-12-29 at 20:42 -0600, Rob Herring wrote: > On Sun, Dec 29, 2013 at 8:37 PM, Benjamin Herrenschmidt > wrote: > > On Tue, 2013-12-17 at 18:32 +0100, Cédric Le Goater wrote: > > Commit 2361613206e6, "of/irq: Refactor interrupt-map > parsing" changed > > t

Re: [PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-29 Thread Rob Herring
On Sun, Dec 29, 2013 at 8:37 PM, Benjamin Herrenschmidt < b...@kernel.crashing.org> wrote: > On Tue, 2013-12-17 at 18:32 +0100, Cédric Le Goater wrote: > > Commit 2361613206e6, "of/irq: Refactor interrupt-map parsing" changed > > the refcount on the device_node causing an error in of_node_put(): >

Re: commit e38c0a1f breaks powerpc boards with uli1575 chip

2013-12-29 Thread Benjamin Herrenschmidt
On Thu, 2013-12-19 at 08:42 +0400, Nikita Yushchenko wrote: > No, this does not help. > > I've dumped the actual content of 'range' and 'addr' at the failure > point > (i.e. ar point that returns error with e38c0a1f but passes without > e38c0a1f ): > > OF: default map, cp=0, s=1, da=70 > ra

RE: [PATCH 1/2] powerpc/p1022ds: fix rtc compatible string

2013-12-29 Thread dongsheng.w...@freescale.com
Hi Scott, Could you apply these patches? [1/2] powerpc/p1022ds: fix rtc compatible string, http://patchwork.ozlabs.org/patch/302741/ [2/2] powerpc/p1022ds: add a interrupt for rtc node, http://patchwork.ozlabs.org/patch/302742/ -Dongsheng > -Original Message- > From: Dongsheng Wang [m

Re: [PATCH] of/irq: Fix device_node refcount in of_irq_parse_raw()

2013-12-29 Thread Benjamin Herrenschmidt
On Tue, 2013-12-17 at 18:32 +0100, Cédric Le Goater wrote: > Commit 2361613206e6, "of/irq: Refactor interrupt-map parsing" changed > the refcount on the device_node causing an error in of_node_put(): Grant, Thierry, this is a regression, please send to Linus ASAP... Cheers, Ben. > ERROR: Bad of_

RE: [PATCH v6 1/4] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define

2013-12-29 Thread dongsheng.w...@freescale.com
Hi Scott, Could you apply these patches? [v6,1/4] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define, http://patchwork.ozlabs.org/patch/302045/ [v6,2/4] powerpc/85xx: add hardware automatically enter altivec idle state, http://patchwork.ozlabs.org/patch/302046/ [v6,3/4] powerpc/85xx: add hard

Re: [question] Can the execution of the atomtic operation instruction pair lwarx/stwcx be interrrupted by local HW interruptions?

2013-12-29 Thread wyang
On 12/28/2013 01:41 PM, Gavin Hu wrote: Hi I notice that there is a pair ppc instructions lwarx and stwcx used to atomtic operation for instance, atomic_inc/atomic_dec. In some ppc manuals, they more emphasize its mechanism is that lwarx can reseve the target memory address preventing other

RE: [PATCH] powerpc/mpic_timer: fix the time calculation is not accurate

2013-12-29 Thread dongsheng.w...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, December 28, 2013 8:00 AM > To: Wang Dongsheng-B40534 > Cc: ga...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/mpic_timer: fix the time calculation is not > accurate > > On Mon, 2013-12-

[PATCH 19/25] fix error return code

2013-12-29 Thread Julia Lawall
From: Julia Lawall Set the return variable to an error code as done elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret =

[PATCH 0/25] fix error return code

2013-12-29 Thread Julia Lawall
These patches fix cases where the return variable is not set to an error code in an error case. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 19/25] fix error return code

2013-12-29 Thread Geert Uytterhoeven
On Sun, Dec 29, 2013 at 11:47 PM, Julia Lawall wrote: > From: Julia Lawall > > Set the return variable to an error code as done elsewhere in the function. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > ( > if@p1 (\(re