[PATCH v7 0/7] powerpc/powernv: Nest Instrumentation support

2015-08-03 Thread Madhavan Srinivasan
This patchset enables Nest Instrumentation support on powerpc. POWER8 has per-chip Nest Intrumentation which provides various per-chip metrics like memory, powerbus, Xlink and Alink bandwidth. Nest Instrumentation provides an interface (via PORE Engine) to configure and move the nest counter data

[PATCH v7 2/7] powerpc/powernv: Add OPAL support for Nest PMU

2015-08-03 Thread Madhavan Srinivasan
Nest Counters can be configured via PORE Engine and OPAL provides an interface to start/stop it. OPAL side patches are posted in the skiboot mailing. Cc: Stewart Smith Cc: Jeremy Kerr Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattipr

[PATCH v7 5/7] powerpc/powernv: add event attribute and group to nest pmu

2015-08-03 Thread Madhavan Srinivasan
Add code to create event/format attributes and attribute groups for each nest pmu. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf

[PATCH v7 1/7] powerpc/powernv: Data structure and macros definition

2015-08-03 Thread Madhavan Srinivasan
Create new header file "nest-pmu.h" to add the data structures and macros needed for the nest pmu support. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan

RE: [PATCH v2 1/2] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan

2015-08-03 Thread Liberman Igal
Regards, Igal Liberman. > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, July 30, 2015 11:00 PM > To: Liberman Igal-B31950 > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Bucur > Madalin-Cristian-B32716; linux-ker...@vger.kernel.org > Subject: Re: [PATCH

[PATCH v7 6/7] powerpc/powernv: generic nest pmu event functions

2015-08-03 Thread Madhavan Srinivasan
Add set of generic nest pmu related event functions to be used by each nest pmu. Add code to register nest pmus. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan Srin

[PATCH v7 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-08-03 Thread Madhavan Srinivasan
Parse device tree to detect supported nest pmu units. Traverse through each nest pmu unit folder to find supported events and corresponding unit/scale files (if any). The nest unit event file from Device Tree will contain the offset in the reserved memory region to get the counter data for a given

[PATCH v7 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-08-03 Thread Madhavan Srinivasan
Create a file "nest-pmu.c" to contain nest pmu related functions. Code to detect nest pmu support and parser to collect per-chip reserved memory region information from device tree (DT). Detection mechanism is to look for specific property "ibm,ima-chip" in DT. For Nest pmu, device tree will have

[PATCH v7 7/7] powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-08-03 Thread Madhavan Srinivasan
Adds cpumask attribute to be used by each nest pmu since nest units are per-chip. Only one cpu (first online cpu) from each chip is designated to read counters. On cpu hotplug, dying cpu is checked to see whether it is one of the designated cpus, if yes, next online cpu from the same chip is desig

RE: [PATCH v2 2/2] powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s)

2015-08-03 Thread Liberman Igal
Regards, Igal Liberman. > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, July 30, 2015 11:12 PM > To: Liberman Igal-B31950 > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Bucur > Madalin-Cristian-B32716; linux-ker...@vger.kernel.org > Subject: Re: [PATCH

Re: [PATCH RESENT] powerpc: dts: don't fall back to fsl, pq3-gpio for fsl,mpc8572-gpio devices

2015-08-03 Thread Linus Walleij
On Fri, Jul 31, 2015 at 11:16 AM, Uwe Kleine-König wrote: > While the handling of fsl,pq3-gpio and fsl,mpc8572-gpio is done in the > same driver and the two hardly differ, the latter controller needs a > workaround for an erratum in the gpio_get callback. To make this > difference more explicit r

[RFC v3] genalloc:support memory-allocation with bytes-alignment to genalloc

2015-08-03 Thread Zhao Qiang
Bytes alignment is required to manage some special RAM, so add gen_pool_first_fit_align to genalloc, meanwhile add gen_pool_alloc_data to pass data to gen_pool_first_fit_align(modify gen_pool_alloc as a wrapper) Signed-off-by: Zhao Qiang --- *v2: changes: title has been modified, original patch l

[v3, 2/2] powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s)

2015-08-03 Thread Igal . Liberman
From: Igal Liberman Based on prior work by Andy Fleming Signed-off-by: Shruti Kanetkar Signed-off-by: Emil Medve Signed-off-by: Igal Liberman --- v2 ---> v3: - Removed P1023 support v1 ---> v2: - Added T1024 support arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi |9 ++-

Re: [PATCH] powerpc/85xx: add sleep and deep sleep support

2015-08-03 Thread Chenhui Zhao
On Sat, Aug 1, 2015 at 10:57 AM, Scott Wood wrote: On Fri, 2015-07-24 at 20:46 +0800, Chenhui Zhao wrote: +static void mpc85xx_pmc_set_wake(struct device *dev, void *enable) { int ret; + u32 value[2]; + + if (!device_may_wakeup(dev)) + return; + + if (

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood wrote: On Fri, 2015-06-26 at 15:44 +0800, yuantian.t...@freescale.com wrote: +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) +{ + if (enable) + setbits32(&rcpm_v1_regs->ippdexpcr, *mask); + else + clrb

RE: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-03 Thread David Laight
From: Laurent Dufour > Sent: 31 July 2015 10:30 > This patch fixes several endianness issues detected when running the HVSI > driver in little endian mode. > > These issues are raised in little endian mode because the data exchanged in > memory between the kernel and the hypervisor has to be in bi

Re: [PATCH 3/4] powerpc: pm: add EPU FSM configuration for deep sleep

2015-08-03 Thread Chenhui Zhao
On Sat, Aug 1, 2015 at 8:41 AM, Scott Wood wrote: On Fri, 2015-07-31 at 20:53 +0800, Chenhui Zhao wrote: In the last stage of deep sleep, software will trigger a Finite State Machine (FSM) to control the hardware precedure, such as board isolation, killing PLLs, removing power, and so on.

[PATCH v5] powerpc/mpc85xx: Add MDIO bus muxing support to the board device tree(s)

2015-08-03 Thread Igal . Liberman
From: Igal Liberman Describe the PHY topology for all configurations supported by each board Based on prior work by Andy Fleming Signed-off-by: Shruti Kanetkar Signed-off-by: Emil Medve Signed-off-by: Igal Liberman --- Depends on the following patch set: https://patchwork.ozlabs.or

Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode

2015-08-03 Thread Mark Brown
On Mon, Aug 03, 2015 at 12:44:11AM +0200, Maciej S. Szmigiero wrote: > Adjust set DAI format function in fsl_ssi driver > so it doesn't fail and clears RXDIR in AC'97 mode. > > Changes from v1: fix indentation to be consistent with rest > of the driver. Inter version changelogs go after the --- a

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Scott Wood
On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: > On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood > wrote: > > On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: > > > +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) > > > +{ > > > + if (enable) > > > +

Re: [PATCH 2/3] PowerPC/mpc85xx: Add hotplug support on E5500 and E500MC cores

2015-08-03 Thread Scott Wood
[Added linuxppc-dev@lists.ozlabs.org. Besides that list being required for review of PPC patches, it feeds the patchwork that I use to track and apply patches.] On Mon, 2015-08-03 at 19:52 +0800, Chenhui Zhao wrote: > On Sat, Aug 1, 2015 at 8:14 AM, Scott Wood > wrote: > > On Fri, 2015-07-31

Re: [PATCH 3/4] powerpc: pm: add EPU FSM configuration for deep sleep

2015-08-03 Thread Scott Wood
On Mon, 2015-08-03 at 20:01 +0800, Chenhui Zhao wrote: > On Sat, Aug 1, 2015 at 8:41 AM, Scott Wood > wrote: > > On Fri, 2015-07-31 at 20:53 +0800, Chenhui Zhao wrote: > > > In the last stage of deep sleep, software will trigger a Finite > > > State Machine (FSM) to control the hardware precedu

Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode

2015-08-03 Thread Maciej S. Szmigiero
On 03.08.2015 18:21, Mark Brown wrote: > On Mon, Aug 03, 2015 at 12:44:11AM +0200, Maciej S. Szmigiero wrote: >> Adjust set DAI format function in fsl_ssi driver >> so it doesn't fail and clears RXDIR in AC'97 mode. >> >> Changes from v1: fix indentation to be consistent with rest >> of the driver.

Re: [RFC v3] genalloc:support memory-allocation with bytes-alignment to genalloc

2015-08-03 Thread Scott Wood
On Mon, 2015-08-03 at 16:35 +0800, Zhao Qiang wrote: > > @@ -73,6 +74,13 @@ struct gen_pool_chunk { > unsigned long bits[0]; /* bitmap for allocating memory chunk */ > }; > > +/* > + * General purpose special memory pool data descriptor. > + */ It's not "general purpose". It's

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-03 Thread Michael Ellerman
On Fri, 2015-07-31 at 11:29 +0200, Laurent Dufour wrote: > This patch fixes several endianness issues detected when running the HVSI > driver in little endian mode. > > These issues are raised in little endian mode because the data exchanged in > memory between the kernel and the hypervisor has to

Re: [v3,1/2] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan

2015-08-03 Thread Scott Wood
On Mon, Aug 03, 2015 at 09:44:01AM +0300, Igal.Liberman wrote: > + xmdio0: mdio@f1000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "fsl,fman-xmdio"; > + reg = <0xf1000 0x1000>; > + interrupts = <101 1 0 0>; > +

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Tue, Aug 4, 2015 at 4:23 AM, Scott Wood wrote: On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood wrote: > On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: > > +static void rcpm_v1_set_ip_power(bool enable, u32 *m

Re: [v3,1/2] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan

2015-08-03 Thread Scott Wood
[Resending after bogofilter adjustment on vger.kernel.org] On Mon, Aug 03, 2015 at 09:44:01AM +0300, Igal.Liberman wrote: > + xmdio0: mdio@f1000{ > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "fsl,fman-xmdio"; > + reg = <0xf1