Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Anshuman Khandual
On 04/22/2013 05:11 AM, Michael Ellerman wrote: > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: >> This patch adds new POWER8 instruction encoding for reading >> the BHRB buffer entries and also clearing it. Encoding for >> "clrbhrb" instruction is straight forward. > > Which

Re: [PATCH] powerpc/fsl-pci: fix setup_pci_atmu() parameter issue

2013-04-21 Thread Michael Neuling
This was already posted about a week back. Kumar can you please take it? http://patchwork.ozlabs.org/patch/236494/ Mikey Roy Zang wrote: > setup_pci_atmu() only has one parameter and remove the extra one, or > build will fail due to un-match. > > Signed-off-by: Roy Zang > --- > arch/powerp

Re: [PATCH 17/18] cpufreq: powerpc: move cpufreq driver to drivers/cpufreq

2013-04-21 Thread Viresh Kumar
On 9 April 2013 14:05, Viresh Kumar wrote: > On 5 April 2013 12:16, Viresh Kumar wrote: >> On 4 April 2013 18:24, Viresh Kumar wrote: >>> This patch moves cpufreq driver of powerpc platform to drivers/cpufreq. >>> >>> Cc: Benjamin Herrenschmidt >>> Cc: Paul Mackerras >>> Cc: Olof Johansson >>

Re: [PATCH RESEND] powerpc/rtas_flash: Free kmem upon module exit

2013-04-21 Thread Michael Ellerman
On Mon, Apr 22, 2013 at 11:18:00AM +0530, Vasant Hegde wrote: > Michael, > > On Mon 22 Apr 2013 04:57:57 AM IST, Michael Ellerman wrote: > >On Fri, Apr 19, 2013 at 05:18:09PM +0530, Vasant Hegde wrote: > >>Memory allocated to flash_block_list in rtas_flash_write > >>is not freed during module exit

Re: [PATCH RESEND] powerpc/rtas_flash: Free kmem upon module exit

2013-04-21 Thread Vasant Hegde
Michael, On Mon 22 Apr 2013 04:57:57 AM IST, Michael Ellerman wrote: On Fri, Apr 19, 2013 at 05:18:09PM +0530, Vasant Hegde wrote: Memory allocated to flash_block_list in rtas_flash_write is not freed during module exit. We hit below call trace if we unload rtas_flash module after loading new f

[PATCH 2/3 v13] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-21 Thread Varun Sethi
Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular memory window. 3. Added domain attribute to chec

[PATCH 1/3 v2] iommu: Move swap_pci_ref function to pci.h.

2013-04-21 Thread Varun Sethi
swap_pci_ref function is used by the IOMMU API code for swapping pci device pointers, while determining the iommu group for the device. Currently this function was being implemented for different IOMMU drivers. This patch moves the function to a new file, drivers/iommu/pci.h so that the implementat

Re: [PATCH v2 06/15] powerpc/85xx: add support to JOG feature using cpufreq interface

2013-04-21 Thread Viresh Kumar
On Fri, Apr 19, 2013 at 4:17 PM, Zhao Chenhui wrote: > diff --git a/drivers/cpufreq/mpc85xx-cpufreq.c > b/drivers/cpufreq/mpc85xx-cpufreq.c > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include Would be better to keep them in alphabetical order,

Re: [PATCH 3/3] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-21 Thread Michael Ellerman
On Mon, Apr 22, 2013 at 09:45:33AM +0800, Gavin Shan wrote: > On Mon, Apr 22, 2013 at 09:34:36AM +1000, Michael Ellerman wrote: > >On Fri, Apr 19, 2013 at 05:32:45PM +0800, Gavin Shan wrote: > >> The EOI handler of MSI/MSI-X interrupts for P8 (PHB3) need additional > >> steps to handle the P/Q bits

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Neuling
Michael Ellerman wrote: > On Mon, Apr 22, 2013 at 11:13:43AM +1000, Michael Neuling wrote: > > Michael Ellerman wrote: > > > > > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > > > This patch adds new POWER8 instruction encoding for reading > > > > the BHRB buffer entries

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Ellerman
On Mon, Apr 22, 2013 at 11:13:43AM +1000, Michael Neuling wrote: > Michael Ellerman wrote: > > > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > > This patch adds new POWER8 instruction encoding for reading > > > the BHRB buffer entries and also clearing it. Encoding for >

[PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Hoang-Nam Nguyen Cc: Christoph Raisch Cc: Roland Dreier Cc: Sean Hefty Cc: Ha

[PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-21 Thread Rob Herring
From: Rob Herring This series is a relatively straight-forward removal of the last remaining user of of_platform_driver (ibmebus) and removal of CONFIG_OF_DEVICE which is always enabled when CONFIG_OF is enabled. Compile tested on powerpc and sparc. Rob Rob Herring (5): ibmebus: convert of_p

Re: [PATCH 3/3] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-21 Thread Gavin Shan
On Mon, Apr 22, 2013 at 09:34:36AM +1000, Michael Ellerman wrote: >On Fri, Apr 19, 2013 at 05:32:45PM +0800, Gavin Shan wrote: >> The EOI handler of MSI/MSI-X interrupts for P8 (PHB3) need additional >> steps to handle the P/Q bits in IVE before EOIing the corresponding >> interrupt. The patch chan

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Neuling
Michael Ellerman wrote: > On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > > This patch adds new POWER8 instruction encoding for reading > > the BHRB buffer entries and also clearing it. Encoding for > > "clrbhrb" instruction is straight forward. > > Which is "clear branch hi

Re: [PATCH V3 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-21 Thread Michael Ellerman
On Thu, Apr 18, 2013 at 05:56:12PM +0530, Anshuman Khandual wrote: > This patch adds new POWER8 instruction encoding for reading > the BHRB buffer entries and also clearing it. Encoding for > "clrbhrb" instruction is straight forward. Which is "clear branch history rolling buffer" ? > But "mfbhrb

Re: [PATCH v2 06/15] powerpc/85xx: add support to JOG feature using cpufreq interface

2013-04-21 Thread Rafael J. Wysocki
On Friday, April 19, 2013 07:00:57 PM Zhao Chenhui wrote: > - Forwarded message from Zhao Chenhui - > > Date: Fri, 19 Apr 2013 18:47:39 +0800 > From: Zhao Chenhui > To: linuxppc-dev@lists.ozlabs.org > CC: linux-ker...@vger.kernel.org > Subject: [linuxppc-release] [PATCH v2 06/15] powerpc

Re: [PATCH 3/3] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-21 Thread Michael Ellerman
On Fri, Apr 19, 2013 at 05:32:45PM +0800, Gavin Shan wrote: > The EOI handler of MSI/MSI-X interrupts for P8 (PHB3) need additional > steps to handle the P/Q bits in IVE before EOIing the corresponding > interrupt. The patch changes the EOI handler to cover that. > diff --git a/arch/powerpc/sysdev

Re: [PATCH RESEND] powerpc/rtas_flash: Free kmem upon module exit

2013-04-21 Thread Michael Ellerman
On Fri, Apr 19, 2013 at 05:18:09PM +0530, Vasant Hegde wrote: > Memory allocated to flash_block_list in rtas_flash_write > is not freed during module exit. We hit below call trace > if we unload rtas_flash module after loading new firmware > image and before rebooting the system. Why the resend? D

[PATCH] ptrace/powerpc: dont flush_ptrace_hw_breakpoint() on fork()

2013-04-21 Thread Oleg Nesterov
arch_dup_task_struct() does flush_ptrace_hw_breakpoint(src), this destroys the parent's breakpoints for no reason. We should clear child->thread.ptrace_bps[] copied by dup_task_struct() instead. Signed-off-by: Oleg Nesterov Acked-by: Michael Neuling --- x/arch/powerpc/kernel/process.c +++ x/arc

Re: [PATCH v7 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-21 Thread Gabor Juhos
Hi Jason, >> Sorry I had no time earlier, but I have tested this now on MIPS. The patch >> causes build errors unfortunately. Given the fact that this has been merged >> already, I will send a fixup patch. > > Olof has dropped this branch from arm-soc, plase post the build error > and fix here so