Re: [PATCH v2] drivers: char: hw_random: printk replacement

2014-10-01 Thread Herbert Xu
On Mon, Sep 15, 2014 at 08:31:20PM +0530, Sudip Mukherjee wrote: > as pr_* macros are more preffered over printk, so printk replaced with > corresponding pr_* macros > > Signed-off-by: Sudip Mukherjee > --- > > The replacement was done by a bash script to avoid copy paste error. The > script i

Re: [PATCH v2 10/17] powerpc/mm: Merge vsid calculation in hash_page() and copro_data_segment()

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 15:25 +0530, Aneesh Kumar K.V wrote: > Michael Neuling writes: > > > From: Ian Munsie > > > > The vsid calculation between hash_page() and copro_data_segment() are very > > similar. This merges these two different versions. > > > > Signed-off-by: Ian Munsie > > Signed-off

Re: [PATCH v2 08/17] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-10-01 Thread Michael Neuling
On Thu, 2014-10-02 at 13:16 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:57 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > This adds a number of functions for allocating IRQs under powernv PCIe for > > cxl. > > > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c

Re: [PATCH v2 15/17] cxl: Userspace header file.

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:35:04 UTC, Michael Neuling wrote: > From: Ian Munsie > > This defines structs and magic numbers required for userspace to interact with > the kernel cxl driver via /dev/cxl/afu0.0. > > diff --git a/include/uapi/misc/cxl.h b/include/uapi/misc/cxl.h > new file mode 100644

[PATCH v2] powerpc: Speed up clear_page by unrolling it

2014-10-01 Thread Anton Blanchard
Unroll clear_page 8 times. A simple microbenchmark which allocates and frees a zeroed page: for (i = 0; i < iterations; i++) { unsigned long p = __get_free_page(GFP_KERNEL | __GFP_ZERO); free_page(p); } improves 20% on POWER8. This assumes cacheline sizes won't grow beyond 512 by

Re: [PATCH v2 06/17] powerpc/powernv: Split out set MSI IRQ chip code

2014-10-01 Thread Michael Neuling
On Thu, 2014-10-02 at 11:57 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:55 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > Some of the MSI IRQ code in pnv_pci_ioda_msi_setup() is generically useful > > so > > split it out. > > > > This will be used by some of the cxl P

Re: [PATCH v2 09/17] powerpc/mm: Add new hash_page_mm()

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:58 UTC, Michael Neuling wrote: > From: Ian Munsie > > This adds a new function hash_page_mm() based on the existing hash_page(). > This version allows any struct mm to be passed in, rather than assuming > current. This is useful for servicing co-processor faults which

Re: [PATCH v2 13/17] cxl: Add base builtin support

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 22:00 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:35:02 UTC, Michael Neuling wrote: > > This also adds the cxl_ctx_in_use() function for use in the mm code to see > > if > > any cxl contexts are currently in use. This is used by the tlbie() to > > determine if

Re: [PATCH v2 07/17] cxl: Add new header for call backs and structs

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 22:00 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:56 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > This new header add defines for callbacks and structs needed by the rest of > > the > adds > > kernel to hook into the cxl infras

Re: [PATCH v2 08/17] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:57 UTC, Michael Neuling wrote: > From: Ian Munsie > > This adds a number of functions for allocating IRQs under powernv PCIe for > cxl. > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c > b/arch/powerpc/platforms/powernv/pci-ioda.c > index 329164f..b0b96f0

Re: [PATCH v2 05/17] powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 17:13 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:54 UTC, Michael Neuling wrote: > > From: Ian Munsie > > Mind explaining why ? :) Sure. Mikey ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://l

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Guenter Roeck
On 10/01/2014 04:44 PM, Alexander Graf wrote: On 02.10.14 01:28, Scott Wood wrote: On Thu, 2014-10-02 at 01:21 +0200, Alexander Graf wrote: On 02.10.14 00:39, Scott Wood wrote: On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: The generic Linux framework to power off the machine is

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Guenter Roeck
On 10/01/2014 02:25 PM, Alexander Graf wrote: On 01.10.14 17:54, Guenter Roeck wrote: On Wed, Oct 01, 2014 at 04:47:23PM +0200, Alexander Graf wrote: On 01.10.14 16:33, Geert Uytterhoeven wrote: Hi Alex, On Wed, Oct 1, 2014 at 3:27 PM, Alexander Graf wrote: The generic Linux framework t

Re: [PATCH v2 2/4] gpu/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Alex Deucher
On Wed, Oct 1, 2014 at 8:33 PM, Benjamin Herrenschmidt wrote: > A number of radeon cards have a HW limitation causing them to be > unable to generate the full 64-bit of address bits for MSIs. This > breaks MSIs on some platforms such as POWER machines. > > We used to have a powerpc specific quirk

Re: [PATCH 4/4] ALSA: hda - Limit 40bit DMA for AMD HDMI controllers

2014-10-01 Thread Alex Deucher
On Wed, Oct 1, 2014 at 8:34 PM, Benjamin Herrenschmidt wrote: > > AMD/ATI HDMI controller chip models, we already have a filter to lower > to 32bit DMA, but the rest are supposed to be working with 64bit > although the hardware doesn't really work with 63bit but only with 40 > or 48bit DMA. In th

Re: [PATCH v2 3/4] sound/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Alex Deucher
On Wed, Oct 1, 2014 at 8:34 PM, Benjamin Herrenschmidt wrote: > > A number of radeon cards have a HW limitation causing them to be > unable to generate the full 64-bit of address bits for MSIs. This > breaks MSIs on some platforms such as POWER machines. > > We used to have a powerpc specific quir

Re: [PATCH v2 04/17] powerpc/msi: Improve IRQ bitmap allocator

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 17:13 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:53 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > Currently msi_bitmap_alloc_hwirqs() will round up any IRQ allocation > > requests >

Re: [PATCH v2 06/17] powerpc/powernv: Split out set MSI IRQ chip code

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:55 UTC, Michael Neuling wrote: > From: Ian Munsie > > Some of the MSI IRQ code in pnv_pci_ioda_msi_setup() is generically useful so > split it out. > > This will be used by some of the cxl PCIe code later. > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c >

Re: [PATCH v2 3/4] sound/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Stephen Rothwell
Hi Ben, On Thu, 02 Oct 2014 10:34:42 +1000 Benjamin Herrenschmidt wrote: > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > index aa302fb..f91ba7f 100644 > --- a/sound/pci/hda/hda_intel.c > +++ b/sound/pci/hda/hda_intel.c > @@ -296,7 +296,8 @@ enum { > > /* quirks for AT

Re: [PATCH v2 2/4] gpu/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Stephen Rothwell
Hi Ben, On Thu, 02 Oct 2014 10:34:22 +1000 Benjamin Herrenschmidt wrote: > > --- a/drivers/gpu/drm/radeon/radeon_irq_kms.c > +++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c > @@ -202,6 +202,16 @@ static bool radeon_msi_ok(struct radeon_device *rdev) > if (rdev->flags & RADEON_IS_AGP) >

Re: [PATCH v2 1/4] pci/msi: Move "no_64bit_msi" flag from powerpc to generic pci_dev

2014-10-01 Thread Stephen Rothwell
Hi Ben, On Thu, 02 Oct 2014 10:33:32 +1000 Benjamin Herrenschmidt wrote: > > --- a/arch/powerpc/kernel/pci_64.c > +++ b/arch/powerpc/kernel/pci_64.c > @@ -269,10 +269,7 @@ EXPORT_SYMBOL(pcibus_to_node); > > static void quirk_radeon_32bit_msi(struct pci_dev *dev) > { > - struct pci_dn *pd

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Alex Deucher
On Wed, Oct 1, 2014 at 6:08 PM, Benjamin Herrenschmidt wrote: > On Wed, 2014-10-01 at 13:58 -0400, Alex Deucher wrote: >> Patch looks good. Audio DMAs are limited to 40 bits, same as the GPU >> side. I'm still waiting to hear back on the MSIs for audio, but they >> probably follow the GPU side,

[PATCH v2 1/4] pci/msi: Move "no_64bit_msi" flag from powerpc to generic pci_dev

2014-10-01 Thread Benjamin Herrenschmidt
Some devices have broken 64-bit MSI support which only support some address bits (40 to 48 typically). This doesn't work on some platforms such as POWER servers, so we need a quirk. Currently we keep a flag in a powerpc specific data structure which we have per PCI device. However this is impract

[PATCH v2 2/4] gpu/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Benjamin Herrenschmidt
A number of radeon cards have a HW limitation causing them to be unable to generate the full 64-bit of address bits for MSIs. This breaks MSIs on some platforms such as POWER machines. We used to have a powerpc specific quirk to address that on a single card, but this doesn't scale very well, thi

[PATCH v2 3/4] sound/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Benjamin Herrenschmidt
A number of radeon cards have a HW limitation causing them to be unable to generate the full 64-bit of address bits for MSIs. This breaks MSIs on some platforms such as POWER machines. We used to have a powerpc specific quirk to address that on a single card, but this doesn't scale very well, thi

[PATCH 4/4] ALSA: hda - Limit 40bit DMA for AMD HDMI controllers

2014-10-01 Thread Benjamin Herrenschmidt
AMD/ATI HDMI controller chip models, we already have a filter to lower to 32bit DMA, but the rest are supposed to be working with 64bit although the hardware doesn't really work with 63bit but only with 40 or 48bit DMA. In this patch, we take 40bit DMA for safety for the AMD/ATI controllers as th

Re: [PATCH v2 02/17] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 15:23 +0530, Aneesh Kumar K.V wrote: > Michael Neuling writes: > > > From: Ian Munsie > > > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > > required for a particular EA and mm struct. > > > > This code is generically useful for other co-pr

Re: [PATCH v2 02/17] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 16:47 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:51 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > > required for a particular EA and mm struct. > > > > This code is g

[PATCH v2 2/4] gpu/radeon: Move 64-bit MSI quirk from arch to driver

2014-10-01 Thread Benjamin Herrenschmidt
A number of radeon cards have a HW limitation causing them to be unable to generate the full 64-bit of address bits for MSIs. This breaks MSIs on some platforms such as POWER machines. We used to have a powerpc specific quirk to address that on a single card, but this doesn't scale very well, this

[PATCH v2 1/4] pci/msi: Move "no_64bit_msi" flag from powerpc to generic pci_dev

2014-10-01 Thread Benjamin Herrenschmidt
Some devices have broken 64-bit MSI support which only support some address bits (40 to 48 typically). This doesn't work on some platforms such as POWER servers, so we need a quirk. Currently we keep a flag in a powerpc specific data structure which we have per PCI device. However this is impracti

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Benjamin Herrenschmidt
On Thu, 2014-10-02 at 08:08 +1000, Benjamin Herrenschmidt wrote: > On Wed, 2014-10-01 at 13:58 -0400, Alex Deucher wrote: > > Patch looks good. Audio DMAs are limited to 40 bits, same as the GPU > > side. I'm still waiting to hear back on the MSIs for audio, but they > > probably follow the GPU s

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Alexander Graf
On 02.10.14 01:28, Scott Wood wrote: > On Thu, 2014-10-02 at 01:21 +0200, Alexander Graf wrote: >> >> On 02.10.14 00:39, Scott Wood wrote: >>> On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: The generic Linux framework to power off the machine is a function pointer called pm_po

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Scott Wood
On Thu, 2014-10-02 at 01:21 +0200, Alexander Graf wrote: > > On 02.10.14 00:39, Scott Wood wrote: > > On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: > >> The generic Linux framework to power off the machine is a function pointer > >> called pm_power_off. The trick about this pointer is t

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Alexander Graf
On 02.10.14 00:39, Scott Wood wrote: > On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: >> The generic Linux framework to power off the machine is a function pointer >> called pm_power_off. The trick about this pointer is that device drivers can >> potentially implement it rather than boa

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Scott Wood
On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: > The generic Linux framework to power off the machine is a function pointer > called pm_power_off. The trick about this pointer is that device drivers can > potentially implement it rather than board files. > > Today on PowerPC we set pm_po

Re: [PATCH 1/4] pci/msi: Move "force_32bit_msi" flag from powerpc to generic pci_dev

2014-10-01 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 14:33 -0600, Bjorn Helgaas wrote: > I like the idea of handling this more generically, e.g., with a bit like > this in struct pci_dev (I'd probably name it something like "no_64bit_msi" > along the lines of your driver #defines). > > What I don't like is that we haven't done

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:58 -0400, Alex Deucher wrote: > Patch looks good. Audio DMAs are limited to 40 bits, same as the GPU > side. I'm still waiting to hear back on the MSIs for audio, but they > probably follow the GPU side, so I expect they should be fixed on Sea > Islands as well. In the a

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Alexander Graf
On 01.10.14 17:54, Guenter Roeck wrote: > On Wed, Oct 01, 2014 at 04:47:23PM +0200, Alexander Graf wrote: >> >> >> On 01.10.14 16:33, Geert Uytterhoeven wrote: >>> Hi Alex, >>> >>> On Wed, Oct 1, 2014 at 3:27 PM, Alexander Graf wrote: The generic Linux framework to power off the machine is

Re: [PATCH 1/4] pci/msi: Move "force_32bit_msi" flag from powerpc to generic pci_dev

2014-10-01 Thread Bjorn Helgaas
On Wed, Oct 01, 2014 at 12:09:23PM +1000, Benjamin Herrenschmidt wrote: > > Some devices have broken 64-bit MSI support which only support some > address bits (40 to 48 typically). This doesn't work on some platforms > such as POWER servers, so we need a quirk. > > Currently we keep a flag in a p

Re: [PATCH v2 0/3] powernv/cpuidle: Fastsleep workaround and fixes

2014-10-01 Thread Rafael J. Wysocki
On Wednesday, October 01, 2014 01:15:57 PM Shreyas B. Prabhu wrote: > Fast sleep is an idle state, where the core and the L1 and L2 > caches are brought down to a threshold voltage. This also means that > the communication between L2 and L3 caches have to be fenced. However > the current P8 chips h

Re: [PATCH 3/4] sound/hda/radeon: Generalize 64-bit MSI quirks

2014-10-01 Thread Alex Deucher
On Tue, Sep 30, 2014 at 10:09 PM, Benjamin Herrenschmidt wrote: > A number of radeon cards have a HW limitation causing them to be > unable to generate the full 64-bit of address bits for MSIs. This > breaks MSIs on some platforms such as POWER machines. > > We used to have a powerpc specific quir

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Alex Deucher
On Wed, Oct 1, 2014 at 4:30 AM, Takashi Iwai wrote: > At Wed, 01 Oct 2014 10:09:28 +0200, > Takashi Iwai wrote: >> >> At Wed, 01 Oct 2014 17:41:29 +1000, >> Benjamin Herrenschmidt wrote: >> > >> > On Wed, 2014-10-01 at 09:38 +0200, Takashi Iwai wrote: >> > >> > > > diff --git a/sound/pci/hda/hda_i

Re: [PATCH v4 01/10] tools/perf: support parsing parameterized events

2014-10-01 Thread Peter Zijlstra
On Wed, Oct 01, 2014 at 11:06:27AM +0200, Jiri Olsa wrote: > On Thu, Sep 25, 2014 at 07:25:20PM -0700, Sukadev Bhattiprolu wrote: > > Jiri Olsa [jo...@redhat.com] wrote: > > | On Wed, Sep 24, 2014 at 12:27:15PM -0700, Sukadev Bhattiprolu wrote: > > | > From: Cody P Schafer > > | > > > | > Enable

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Guenter Roeck
On Wed, Oct 01, 2014 at 04:47:23PM +0200, Alexander Graf wrote: > > > On 01.10.14 16:33, Geert Uytterhoeven wrote: > > Hi Alex, > > > > On Wed, Oct 1, 2014 at 3:27 PM, Alexander Graf wrote: > >> The generic Linux framework to power off the machine is a function pointer > >> called pm_power_off.

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Geert Uytterhoeven
On Wed, Oct 1, 2014 at 4:47 PM, Alexander Graf wrote: >> This is touching the same area as last night's >> "[RFC PATCH 00/16] kernel: Add support for poweroff handler call chain" >> https://lkml.org/lkml/2014/9/30/575 > > I agree, and I think your patch set is walking into a reasonable > direction

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Alexander Graf
On 01.10.14 16:33, Geert Uytterhoeven wrote: > Hi Alex, > > On Wed, Oct 1, 2014 at 3:27 PM, Alexander Graf wrote: >> The generic Linux framework to power off the machine is a function pointer >> called pm_power_off. The trick about this pointer is that device drivers can >> potentially implemen

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Geert Uytterhoeven
Hi Alex, On Wed, Oct 1, 2014 at 3:27 PM, Alexander Graf wrote: > The generic Linux framework to power off the machine is a function pointer > called pm_power_off. The trick about this pointer is that device drivers can > potentially implement it rather than board files. > > Today on PowerPC we se

[PATCH 19/20] powerpc/pseries: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/pseries/setup.c | 59 +- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/arch/p

[PATCH 16/20] powerpc/powermac: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/powermac/setup.c | 147 1 file changed, 74 insertions(+), 73 deletions(-) diff --git a/arch/p

[PATCH 10/20] powerpc/cell: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/cell/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/po

[PATCH 20/20] powerpc: Remove ppc_md.power_off

2014-10-01 Thread Alexander Graf
Now that we have all implementations of ppc_md.power_off converted to pm_power_off we can remove the ppc_md variant. While at it, also set the default for pm_power_off to NULL so that non machine drivers can implement overrides. Signed-off-by: Alexander Graf --- arch/powerpc/include/asm/machdep

[PATCH 12/20] powerpc/6xx/gamecube: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/embedded6xx/gamecube.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/embedded6xx

[PATCH 14/20] powerpc/6xx/wii: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/embedded6xx/wii.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.

[PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-01 Thread Alexander Graf
The generic Linux framework to power off the machine is a function pointer called pm_power_off. The trick about this pointer is that device drivers can potentially implement it rather than board files. Today on PowerPC we set pm_power_off to invoke our generic full machine power off logic which th

[PATCH 18/20] powerpc/ps3: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/ps3/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/po

[PATCH 15/20] powerpc/maple: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/maple/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/maple/setup.c b/a

[PATCH 17/20] powerpc/powernv: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/powernv/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/setup.c

[PATCH 11/20] powerpc/chrp: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/chrp/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/

[PATCH 01/20] powerpc: Support override of pm_power_off

2014-10-01 Thread Alexander Graf
The pm_power_off callback is what drivers are supposed to modify when they implement power off support for the system. Support a modified callback on powerpc. That way power off support code can now either override ppc_md.power_off or pm_power_off. Signed-off-by: Alexander Graf --- arch/powerpc

[PATCH 09/20] powerpc/cell/qpace: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/cell/qpace_setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/qpace_setu

[PATCH 06/20] powerpc/corenet: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/85xx/corenet_generic.c | 2 +- arch/powerpc/sysdev/fsl_soc.c | 2 +- 2 files changed, 2 insertions(+), 2 deleti

[PATCH 13/20] powerpc/6xx/linkstation: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/embedded6xx/linkstation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/embedded

[PATCH 02/20] powerpc/xmon: Support either ppc_md.power_off or pm_power_off

2014-10-01 Thread Alexander Graf
Xmon can manually turn off the machine. We now have 2 code paths for this: 1) ppc_md.power_off 2) pm_power_off This patch allows xmon to support both and makes sure it graciously allows a path to not be implemented. Signed-off-by: Alexander Graf --- arch/powerpc/xmon/xmon.c | 5 - 1 fi

[PATCH 03/20] powerpc/47x: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/44x/ppc476.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/44x/ppc476.c b/arch/po

[PATCH 04/20] powerpc/52xx/efika: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/52xx/efika.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/52xx/efika.c b/arch/

[PATCH 08/20] powerpc/celleb: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/cell/celleb_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/celleb_

[PATCH 07/20] powerpc/85xx/sgy_cts1000: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/85xx/sgy_cts1000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/85xx/sgy_cts1

[PATCH 05/20] powerpc/mpc8349emitx: Use pm_power_off rather than ppc_md.power_off

2014-10-01 Thread Alexander Graf
The generic power off callback is pm_power_off. Use that one rather than the powerpc specific ppc_md.power_off. Signed-off-by: Alexander Graf --- arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/83xx

Re: [PATCH v2 13/17] cxl: Add base builtin support

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:35:02 UTC, Michael Neuling wrote: > This also adds the cxl_ctx_in_use() function for use in the mm code to see if > any cxl contexts are currently in use. This is used by the tlbie() to > determine if it can do local TLB invalidations or not. This also adds get/put > call

Re: [PATCH v2 07/17] cxl: Add new header for call backs and structs

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:56 UTC, Michael Neuling wrote: > From: Ian Munsie > > This new header add defines for callbacks and structs needed by the rest of > the adds > kernel to hook into the cxl infrastructure. > > Empty functions are provided when CONFIG CXL_BASE is not e

Re: [PATCH v2 02/17] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 15:15 +0530, Aneesh Kumar K.V wrote: > Michael Neuling writes: > > > From: Ian Munsie > > > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > > required for a particular EA and mm struct. > > > > This code is generically useful for other co-pr

Re: [PATCH v2 03/17] powerpc/cell: Make spu_flush_all_slbs() generic

2014-10-01 Thread Michael Neuling
On Wed, 2014-10-01 at 17:13 +1000, Michael Ellerman wrote: > On Tue, 2014-30-09 at 10:34:52 UTC, Michael Neuling wrote: > > diff --git a/arch/powerpc/include/asm/copro.h > > b/arch/powerpc/include/asm/copro.h > > index 2858108..f3d338f 100644 > > --- a/arch/powerpc/include/asm/copro.h > > +++ b/ar

Re: [PATCH v2 10/17] powerpc/mm: Merge vsid calculation in hash_page() and copro_data_segment()

2014-10-01 Thread Aneesh Kumar K.V
Michael Neuling writes: > From: Ian Munsie > > The vsid calculation between hash_page() and copro_data_segment() are very > similar. This merges these two different versions. > > Signed-off-by: Ian Munsie > Signed-off-by: Michael Neuling > --- > arch/powerpc/include/asm/mmu-hash64.h | 2 ++

Re: [PATCH v2 02/17] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-01 Thread Aneesh Kumar K.V
Michael Neuling writes: > From: Ian Munsie > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > required for a particular EA and mm struct. > > This code is generically useful for other co-processors. This moves the code > of the cell platform so it can be used by

Re: [PATCH v2 02/17] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-01 Thread Aneesh Kumar K.V
Michael Neuling writes: > From: Ian Munsie > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > required for a particular EA and mm struct. > > This code is generically useful for other co-processors. This moves the code > of the cell platform so it can be used by

Re: [PATCH v2 09/17] powerpc/mm: Add new hash_page_mm()

2014-10-01 Thread Aneesh Kumar K.V
Michael Neuling writes: > From: Ian Munsie > > This adds a new function hash_page_mm() based on the existing hash_page(). > This version allows any struct mm to be passed in, rather than assuming > current. This is useful for servicing co-processor faults which are not in > the > context of th

Re: [PATCH v4 01/10] tools/perf: support parsing parameterized events

2014-10-01 Thread Jiri Olsa
On Thu, Sep 25, 2014 at 07:25:20PM -0700, Sukadev Bhattiprolu wrote: > Jiri Olsa [jo...@redhat.com] wrote: > | On Wed, Sep 24, 2014 at 12:27:15PM -0700, Sukadev Bhattiprolu wrote: > | > From: Cody P Schafer > | > > | > Enable event specification like: > | > > | > pmu/event_name,param1=0x1,para

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Takashi Iwai
At Wed, 01 Oct 2014 10:09:28 +0200, Takashi Iwai wrote: > > At Wed, 01 Oct 2014 17:41:29 +1000, > Benjamin Herrenschmidt wrote: > > > > On Wed, 2014-10-01 at 09:38 +0200, Takashi Iwai wrote: > > > > > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > > > > index 3e6d22d..2b6

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Takashi Iwai
At Wed, 01 Oct 2014 17:41:29 +1000, Benjamin Herrenschmidt wrote: > > On Wed, 2014-10-01 at 09:38 +0200, Takashi Iwai wrote: > > > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > > > index 3e6d22d..2b679d5 100644 > > > --- a/sound/pci/hda/hda_intel.c > > > +++ b/sound/pci/h

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 17:41 +1000, Benjamin Herrenschmidt wrote: > I don't like that approach because technically the chip doesn't do > 64-bit DMA ... it does something like 40 or 48 (might actually depend on > the chip version) and for all I know it will break on future x86 with > more memory or

[PATCH v2 5/5] powerpc/powernv: Enter deepest supported idle state in offline

2014-10-01 Thread Shreyas B. Prabhu
Enter winkle during offline if supported, else revert to sleep or nap. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/platforms/powernv/smp.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH v2 4/5] powerpc/powernv: Discover and enable winkle

2014-10-01 Thread Shreyas B. Prabhu
Discover winkle from device tree. If supported make OPAL calls necessary to save HIDs, HMEER, HSPRG0 and LPCR. Also make OPAL call when the HID0 value is modified during split/unsplit of cores. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org

[PATCH v2 3/5] powerpc/powernv: Add winkle infrastructure

2014-10-01 Thread Shreyas B. Prabhu
Winkle causes power to be gated off to the entire chiplet. Hence the hypervisor/firmware state in the entire chiplet is lost. This patch adds necessary infrastructure to support waking up from hypervisor state loss. Specifically does following: - Before entering winkle, save state of registers tha

[PATCH v2 2/5] powerpc: Adding macro for accessing Thread Switch Control Register

2014-10-01 Thread Shreyas B. Prabhu
Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/include/asm/reg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 0c0

[PATCH v2 1/5] powerpc/powernv: Add OPAL call to save and restore

2014-10-01 Thread Shreyas B. Prabhu
PORE can be programmed to restore hypervisor registers when waking up from deep cpu idle states like winkle. Add call to pass SPR address and value to OPAL, which in turn will program PORE to restore the register state. Cc: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc: Paul Macker

[PATCH v2 0/5] Winkle support for offline cpus

2014-10-01 Thread Shreyas B. Prabhu
Powernv already has support for nap and sleep and these states are used by cpuidle framework. This patchset adds support for 'deep winkle' a deeper idle state. In deep winkle, entire chiplet (core/L2/L3) is power off, leading to higher power savings. But this results in hypervisor state loss. T

[PATCH v2 3/3] powerpc/powernv/cpuidle: Add workaround to enable fastsleep

2014-10-01 Thread Shreyas B. Prabhu
From: Preeti U Murthy Fast sleep is an idle state, where the core and the L1 and L2 caches are brought down to a threshold voltage. This also means that the communication between L2 and L3 caches have to be fenced. However the current P8 chips have a bug wherein this fencing between L2 and L3 cac

[PATCH v2 2/3] powerpc/kvm/book3s_hv: Enable CPUs to run guest after waking up from fast-sleep

2014-10-01 Thread Shreyas B. Prabhu
When guests have to be launched, the secondary threads which are offline are woken up to run the guests. Today these threads wake up from nap and check if they have to run guests. Now that the offline secondary threads can go to fastsleep or going ahead a deeper idle state such as winkle, add this

[PATCH v2 1/3] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-10-01 Thread Shreyas B. Prabhu
From: "Srivatsa S. Bhat" The offline cpus should enter deep idle states so as to gain maximum powersavings when the entire core is offline. To do so the offline path must be made aware of the available deepest idle state. Hence probe the device tree for the possible idle states in powernv core co

[PATCH v2 0/3] powernv/cpuidle: Fastsleep workaround and fixes

2014-10-01 Thread Shreyas B. Prabhu
Fast sleep is an idle state, where the core and the L1 and L2 caches are brought down to a threshold voltage. This also means that the communication between L2 and L3 caches have to be fenced. However the current P8 chips have a bug wherein this fencing between L2 and L3 caches get delayed by a cpu

[PATCH v2] cpuidle/powernv: Populate cpuidle state details by querying the device-tree

2014-10-01 Thread Shreyas B. Prabhu
From: Preeti U Murthy We hard code the metrics relevant for cpuidle states in the kernel today. Instead pick them up from the device tree so that they remain relevant and updated for the system that the kernel is running on. Cc: linux...@vger.kernel.org Cc: Rafael J. Wysocki Cc: Rob Herring Cc

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 09:38 +0200, Takashi Iwai wrote: > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > > index 3e6d22d..2b679d5 100644 > > --- a/sound/pci/hda/hda_intel.c > > +++ b/sound/pci/hda/hda_intel.c > > @@ -297,7 +297,7 @@ enum { > > /* quirks for ATI/AMD HDMI */

Re: [PATCH 4/4] sounds/hda/radeon: Disable 64-bit DMA on radeon

2014-10-01 Thread Takashi Iwai
At Wed, 01 Oct 2014 12:09:53 +1000, Benjamin Herrenschmidt wrote: > > The chipset has a limitation in the number of address bits it > can generate. The graphics portion uses a specific mask of > 40 or 48 bits depending on the generation. For audio, it's a bit > less of an issue, so just mark them

Re: [PATCH v2 05/17] powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:54 UTC, Michael Neuling wrote: > From: Ian Munsie Mind explaining why ? :) cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v2 04/17] powerpc/msi: Improve IRQ bitmap allocator

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:53 UTC, Michael Neuling wrote: > From: Ian Munsie > > Currently msi_bitmap_alloc_hwirqs() will round up any IRQ allocation requests request > to the nearest power of 2. eg. ask for 5 IRQs and you'l

Re: [PATCH 0/6] powerpc/eeh: Refactor config accessors

2014-10-01 Thread Gavin Shan
On Wed, Oct 01, 2014 at 05:07:48PM +1000, Gavin Shan wrote: >When EEH errors are detected on some particular PCI adapters, one of >which is shown as follows, the PCI config space of thoese PCI adapters >(PE) should be blocked. Otherwise, we will run into fenced PHB when >collecting EEH logs (part o

Re: [PATCH v2 03/17] powerpc/cell: Make spu_flush_all_slbs() generic

2014-10-01 Thread Michael Ellerman
On Tue, 2014-30-09 at 10:34:52 UTC, Michael Neuling wrote: > diff --git a/arch/powerpc/include/asm/copro.h > b/arch/powerpc/include/asm/copro.h > index 2858108..f3d338f 100644 > --- a/arch/powerpc/include/asm/copro.h > +++ b/arch/powerpc/include/asm/copro.h > @@ -15,4 +15,10 @@ int copro_handle_mm

[PATCH] powerpc: Rename __get_SP() to current_stack_pointer()

2014-10-01 Thread Anton Blanchard
Michael points out that __get_SP() is a pretty horrible function name. Let's give it a better name. Signed-off-by: Anton Blanchard --- arch/powerpc/include/asm/perf_event.h | 2 +- arch/powerpc/include/asm/reg.h| 2 +- arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/mis

[PATCH 2/6] powerpc/eeh: Rename flag EEH_PE_RESET to EEH_PE_CFG_BLOCKED

2014-10-01 Thread Gavin Shan
The flag EEH_PE_RESET indicates blocking config space of the PE during reset time. We potentially need block PE's config space other than reset time. So it's reasonable to replace it with EEH_PE_CFG_BLOCKED to indicate its usage. There are no substantial code or logic changes in this patch. Signe

[PATCH 1/6] powerpc/eeh: Fix condition for isolated state

2014-10-01 Thread Gavin Shan
Function eeh_pe_state_mark() could possibly have combination of multiple EEH PE state as its argument. The patch fixes the condition used to check if EEH_PE_ISOLATED is included. Signed-off-by: Gavin Shan --- arch/powerpc/kernel/eeh_pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

  1   2   >