[PATCH] CXL: Fix device_node reference counting

2015-01-06 Thread Ian Munsie
From: Ryan Grimm When unbinding and rebinding the driver on a system with a card in PHB0, this error condition is reached after a few attempts: ERROR: Bad of_node_put() on /pciex@3fffe4000 CPU: 0 PID: 3040 Comm: bash Not tainted 3.18.0-rc3-12545-g3627ffe #152 Call Trace: [c00721acb5c0] [

[PATCH] cxl: Fix issues when unmapping contexts

2015-01-06 Thread Ian Munsie
From: Ian Munsie An issue was introduced with "cxl: Unmap MMIO regions when detaching a context" (b123429e6a9e8d03aacf888d23262835f0081448) where closing a context normally could also unmap the problem state area of other contexts currently using the AFU. It was also discovered that after a cont

RE: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan

2015-01-06 Thread Shaohui Xie
> > > -Original Message- > > > From: shh@gmail.com [mailto:shh@gmail.com] > > > Sent: Tuesday, December 23, 2014 3:58 PM > > > To: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Wood > > > Scott-B07421 > > > Cc: Medve Emilian-EMMEDVE1; Xie Shaohui-B21989 > > > Subject: [

Re: [PATCH 1/3] powerpc: Don't use local named register variable in current_thread_info

2015-01-06 Thread Anton Blanchard
Hi Alan, > Right. This is really an rs6000 backend bug. We describe one of the > indirect calls that go wrong here as > > (call_insn 108 107 109 13 (parallel [ > (set (reg:DI 3 3) > (call (mem:SI (reg:DI 288) [0 *_67 S4 A8]) > (const_int 64 [0x40]

[PATCH] powerpc/book3s: Fix the MCE code to use CONFIG_KVM_BOOK3S_HV_POSSIBLE

2015-01-06 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar commit id 9975f5e added new config variable CONFIG_KVM_BOOK3S_HV_POSSIBLE that helps to select the relevant code in the kernel when HV and PR bits are built as separate modules. As part of that commit, all the instances of #ifdef CONFIG_KVM_BOOK3S_64_HV was replaced with C

Re: [RFC] PPC: MPIC: necessary readback after EOI?

2015-01-06 Thread Scott Wood
On Mon, 2015-01-05 at 19:43 +0100, Andreas Mohr wrote: > [CC related ppl] > > On Mon, Jan 05, 2015 at 12:10:54PM -0600, Scott Wood wrote: > > On Mon, 2015-01-05 at 18:46 +0100, Andreas Mohr wrote: > > > Hi, > > > > > > > I was curious why the mpic_cpu_read(MPIC_INFO(CPU_WHOAMI)) was there in > >

Re: [PATCH] powerpc/8xx: reduce pressure on TLB due to context switches

2015-01-06 Thread Scott Wood
On Mon, 2015-01-05 at 16:14 +0100, Christophe Leroy wrote: > + } > + __clear_bit(id, stale_map[cpu]); > + > + } Whitespace > + > + /* Flush the TLB for all contexts */ > + _tlbil_all(); Can you put a comment in here pointing out that for this to work on SMP, i

Re: [PATCH v3 2/2] powerpc/8xx: use _PAGE_RO instead of _PAGE_RW

2015-01-06 Thread Scott Wood
On Tue, 2015-01-06 at 08:03 +0100, leroy christophe wrote: > Le 05/01/2015 19:12, Joakim Tjernlund a écrit : > > On Mon, 2014-12-22 at 11:14 +0100, Christophe Leroy wrote: > >> On powerpc 8xx, in TLB entries, 0x400 bit is set to 1 for read-only pages > >> and is set to 0 for RW pages. So we should

Re: [PATCH] [v3] power/fsl: add MDIO dt binding for FMan

2015-01-06 Thread Scott Wood
On Mon, 2015-01-05 at 05:21 -0600, Xie Shaohui-B21989 wrote: > Hello Scott, > > Is this v3 OK? > > Best Regards, > Shaohui Xie > > -Original Message- > > From: shh@gmail.com [mailto:shh@gmail.com] > > Sent: Tuesday, December 23, 2014 3:58 PM > > To: linuxppc-dev@lists.ozlabs.org;

[PATCH] coresight: Fixing wrong #ifdef/#endif placement

2015-01-06 Thread mathieu . poirier
From: Mathieu Poirier Fixing problem reported by: https://lkml.org/lkml/2015/1/6/86 The #ifdef/#endif is wrong and prevents the stub of function of_get_coresight_platform_data() from being visible when CONFIG_OF is not defined. Moving CONFIG_OF condition out of CONFIG_CORESIGHT, making

Re: Build regressions/improvements in v3.19-rc3

2015-01-06 Thread Mathieu Poirier
On 6 January 2015 at 02:39, Geert Uytterhoeven wrote: > On Tue, Jan 6, 2015 at 10:36 AM, Geert Uytterhoeven > wrote: >> JFYI, when comparing v3.19-rc3[1] to v3.19-rc2[3], the summaries are: >> - build errors: +64/-9 > > + /home/kisskb/slave/src/arch/arm/mm/dma-mapping.c: error: > 'VM_ARM_DMA_

RE: PROBLEM: USB isochronous urb leak on EHCI driver

2015-01-06 Thread Alan Stern
On Tue, 6 Jan 2015, Michael Tessier wrote: > > > > > That is interresting, however, I have an older kernel running an > > > > > OHCI driver which is able to handle 4 codecs. Same usb hardware > > > > > (codecs and hub), but older kernel on a different CPU, with much > > > > > less power. This m

Re: [PATCH 1/2] jump_label: Allow jump labels to be used in assembly

2015-01-06 Thread Steven Rostedt
On Tue, Jan 06, 2015 at 09:20:27PM +1100, Anton Blanchard wrote: > To use jump labels in assembly we need the HAVE_JUMP_LABEL define, > so we select a fallback version if the toolchain does not support > them. > > Modify linux/jump_label.h so it can be included by assembly files. > We also need to

RE: PROBLEM: USB isochronous urb leak on EHCI driver

2015-01-06 Thread Michael Tessier
> > > > That is interresting, however, I have an older kernel running an > > > > OHCI driver which is able to handle 4 codecs. Same usb hardware > > > > (codecs and hub), but older kernel on a different CPU, with much > > > > less power. This makes me believe that there's a solution to make it

RE: PROBLEM: USB isochronous urb leak on EHCI driver

2015-01-06 Thread Michael Tessier
> > If sound is ok when using only 1 codec and becomes choppy when adding > > a second codec, then it means that this issue is still in the 3.x > > kernel. This answer will tell me if it is worth working on using a newer > > kernel or not. > > I have to say that I'm not a linux expert, so I see

RE: PROBLEM: USB isochronous urb leak on EHCI driver

2015-01-06 Thread Alan Stern
On Tue, 6 Jan 2015, Michael Tessier wrote: > > > That is interresting, however, I have an older kernel running an OHCI > > > driver which is able to handle 4 codecs. Same usb hardware (codecs and > > > hub), but older kernel on a different CPU, with much less power. This > > > makes me believe

RE: PROBLEM: USB isochronous urb leak on EHCI driver

2015-01-06 Thread Michael Tessier
> > > > Hi, > > > > > > > > I am dealing with a USB EHCI driver bug. Here is the info: > > > > > > > > My configuration: > > > > - > > > > > > > > Host: Freescale i.MX512 with ARM Cortex A8 (USB 2.0 host > > > > controller) Linux kernel: 2.6.31, using EHCI USB driver > > > > > >

Re: [PATCH 1/2] jump_label: Allow jump labels to be used in assembly

2015-01-06 Thread Jason Baron
On 01/06/2015 05:20 AM, Anton Blanchard wrote: > To use jump labels in assembly we need the HAVE_JUMP_LABEL define, > so we select a fallback version if the toolchain does not support > them. > > Modify linux/jump_label.h so it can be included by assembly files. > We also need to add -DCC_HAVE_ASM_

RE: [PATCH 05/11] powerpc/8xx: Optimise access to swapper_pg_dir

2015-01-06 Thread David Laight
From: leroy christophe > Le 06/01/2015 13:08, David Laight a écrit : > >> On Tue, 2014-12-16 at 16:03 +0100, Christophe Leroy wrote: > >>> All accessed to PGD entries are done via 0(r11). > >>> By using lower part of swapper_pg_dir as load index to r11, we can remove > >>> the > >>> ori instructio

Re: [PATCH 1/2] mmc: host: arasan: Add addition of-arasan quirks and add IOMMU support.

2015-01-06 Thread Arnd Bergmann
On Tuesday 06 January 2015 17:10:29 Suman Tripathi wrote: > Hi Arnd, > > On Monday 15 December 2014 22:31:06 Suman Tripathi wrote: > > > @@ -162,6 +206,16 @@ static int sdhci_arasan_probe(struct > > > platform_device *pdev)> > > > > > goto clk_dis_ahb; > > > > > >

Re: [PATCH 05/11] powerpc/8xx: Optimise access to swapper_pg_dir

2015-01-06 Thread leroy christophe
Le 06/01/2015 13:08, David Laight a écrit : On Tue, 2014-12-16 at 16:03 +0100, Christophe Leroy wrote: All accessed to PGD entries are done via 0(r11). By using lower part of swapper_pg_dir as load index to r11, we can remove the ori instruction. Signed-off-by: Christophe Leroy Nice :) Acked

Re: [PATCH v6 1/4] tools/perf: support parsing parameterized events

2015-01-06 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 06, 2015 at 10:42:20AM +0100, Jiri Olsa escreveu: > On Tue, Dec 23, 2014 at 11:58:50AM -0800, Sukadev Bhattiprolu wrote: > > From a24b480ff54381a7e092597864cf615162afdd60 Mon Sep 17 00:00:00 2001 > > From: Cody P Schafer > > Date: Wed, 24 Sep 2014 12:27:15 -0700 > > Subject: [PATCH 1/4

RE: [PATCH 05/11] powerpc/8xx: Optimise access to swapper_pg_dir

2015-01-06 Thread David Laight
> On Tue, 2014-12-16 at 16:03 +0100, Christophe Leroy wrote: > > All accessed to PGD entries are done via 0(r11). > > By using lower part of swapper_pg_dir as load index to r11, we can remove > > the > > ori instruction. > > > > Signed-off-by: Christophe Leroy > > Nice :) > Acked-by: Joakim Tjer

Re: [PATCH v3 2/2] powerpc/8xx: use _PAGE_RO instead of _PAGE_RW

2015-01-06 Thread Joakim Tjernlund
On Tue, 2015-01-06 at 08:03 +0100, leroy christophe wrote: > Le 05/01/2015 19:12, Joakim Tjernlund a écrit : > > On Mon, 2014-12-22 at 11:14 +0100, Christophe Leroy wrote: > > > On powerpc 8xx, in TLB entries, 0x400 bit is set to 1 for read-only pages > > > and is set to 0 for RW pages. So we shou

Re: [PATCH 1/2] mmc: host: arasan: Add addition of-arasan quirks and add IOMMU support.

2015-01-06 Thread Suman Tripathi
Hi Arnd, On Monday 15 December 2014 22:31:06 Suman Tripathi wrote: > @@ -162,6 +206,16 @@ static int sdhci_arasan_probe(struct platform_device > *pdev) > goto clk_dis_ahb; > } > > +#if defined(CONFIG_IOMMU_SUPPORT) > + sdhci_arasan->domain = iommu_domain_alloc(&amba_

[PATCH 3/3] powerpc: Add .gitignore entry for built DTB files

2015-01-06 Thread esben . haabendal
From: Esben Haabendal Signed-off-by: Esben Haabendal --- arch/powerpc/boot/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/.gitignore b/arch/powerpc/boot/.gitignore index d61c035..38e6492 100644 --- a/arch/powerpc/boot/.gitignore +++ b/arch/powerpc/boot/.gitigno

[PATCH 2/3] powerpc: Add machine_check cpu function for e300c3 cpus

2015-01-06 Thread esben . haabendal
From: Esben Haabendal Signed-off-by: Esben Haabendal --- arch/powerpc/kernel/cputable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 8084059..f337666 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kerne

[PATCH 1/3] powerpc: ipic: Fix mcp status helper functions

2015-01-06 Thread esben . haabendal
From: Esben Haabendal Read and write the SERSR (System Error Status Register) instead of the SERMR (System Error Mask Register), to actually get and clear the status bits. Signed-off-by: Esben Haabendal --- arch/powerpc/sysdev/ipic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH 2/2] powerpc: Include linux/jump_label.h to get HAVE_JUMP_LABEL define

2015-01-06 Thread Anton Blanchard
Commit 1bc9e47aa8e4 ("powerpc/jump_label: Use HAVE_JUMP_LABEL") converted uses of CONFIG_JUMP_LABEL to HAVE_JUMP_LABEL in some assembly files. HAVE_JUMP_LABEL is defined in linux/jump_label.h, so we need to include this or we always get the non jump label fallback code. Fixes: 1bc9e47aa8e4 ("powe

[PATCH 1/2] jump_label: Allow jump labels to be used in assembly

2015-01-06 Thread Anton Blanchard
To use jump labels in assembly we need the HAVE_JUMP_LABEL define, so we select a fallback version if the toolchain does not support them. Modify linux/jump_label.h so it can be included by assembly files. We also need to add -DCC_HAVE_ASM_GOTO to KBUILD_AFLAGS. Signed-off-by: Anton Blanchard --

[PATCH] powernv: Fix OPAL tracepoint code

2015-01-06 Thread Anton Blanchard
Patch c49f63530bb6 ("powernv: Add OPAL tracepoints") has a spurious store to the stack: ld r12,opal_tracepoint_refcount@toc(r2); \ std r12,32(r1); \ The store was originally used to save the current tracepoint status so the en

Re: [PATCH v6 1/4] tools/perf: support parsing parameterized events

2015-01-06 Thread Jiri Olsa
On Tue, Dec 23, 2014 at 11:58:50AM -0800, Sukadev Bhattiprolu wrote: > From a24b480ff54381a7e092597864cf615162afdd60 Mon Sep 17 00:00:00 2001 > From: Cody P Schafer > Date: Wed, 24 Sep 2014 12:27:15 -0700 > Subject: [PATCH 1/4] tools/perf: support parsing parameterized events > > Enable event spe

Re: [PATCH v6 2/4] tools/perf: extend format_alias() to include event parameters

2015-01-06 Thread Jiri Olsa
On Sun, Dec 21, 2014 at 11:49:25PM -0800, Sukadev Bhattiprolu wrote: > From: Cody P Schafer > > This causes `perf list pmu` to show parameters for parameterized events > like: > > pmu/event_name,param1=?,param2=?/ [Kernel PMU event] > > An example: > > hv_24x7/HPM_TLBIE__PHYS_CORE,core=?/

Re: Build regressions/improvements in v3.19-rc3

2015-01-06 Thread Geert Uytterhoeven
On Tue, Jan 6, 2015 at 10:36 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.19-rc3[1] to v3.19-rc2[3], the summaries are: > - build errors: +64/-9 + /home/kisskb/slave/src/arch/arm/mm/dma-mapping.c: error: 'VM_ARM_DMA_CONSISTENT' undeclared (first use in this function): => 1200:4, 1

Re: [PATCH v6 2/4] tools/perf: extend format_alias() to include event parameters

2015-01-06 Thread Jiri Olsa
On Sun, Dec 21, 2014 at 11:49:25PM -0800, Sukadev Bhattiprolu wrote: > From: Cody P Schafer > > This causes `perf list pmu` to show parameters for parameterized events > like: > > pmu/event_name,param1=?,param2=?/ [Kernel PMU event] > > An example: > > hv_24x7/HPM_TLBIE__PHYS_CORE,core=?/