[RFC][PATCH 0/4] perf: Enable symbolic event names

2015-05-01 Thread Sukadev Bhattiprolu
Implement ability to specify Power PMU events by their symbolic event names rather than raw codes. This approach pulls tables of the Power7 and Power8 PMU events into the perf source tree and uses these tables to create aliases for the PMU events. With these aliases users can run: perf sta

[RFC][PATCH 3/4] perf/powerpc: Move mfspr and friends to header file

2015-05-01 Thread Sukadev Bhattiprolu
mfspr() and related macros will be needed in two separate files. Move these defintions to a common header file. Signed-off-by: Sukadev Bhattiprolu --- tools/perf/arch/powerpc/util/header.c |9 + tools/perf/arch/powerpc/util/header.h |9 + 2 files changed, 10 insertions(+)

[RFC][PATCH 4/4] perf: Create aliases for PMU events

2015-05-01 Thread Sukadev Bhattiprolu
Using the tables of Power7 and Power8 events, create aliases for the Power PMU events. This would allow us to specify all Power events by name rather than by raw code: $ /tmp/perf stat -e PM_1PLUS_PPC_CMPL sleep 1 Performance counter stats for 'sleep 1': 757,6

Re: [PATCH kernel v9 26/32] powerpc/iommu: Add userspace view of TCE table

2015-05-01 Thread Alexey Kardashevskiy
On 05/01/2015 02:23 PM, David Gibson wrote: On Fri, May 01, 2015 at 02:01:17PM +1000, Alexey Kardashevskiy wrote: On 04/29/2015 04:31 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:50PM +1000, Alexey Kardashevskiy wrote: In order to support memory pre-registration, we need a way to trac

Re: [PATCH] powerpc/powernv: Add opal-prd channel

2015-05-01 Thread Benjamin Herrenschmidt
On Fri, 2015-05-01 at 11:46 +0800, Jeremy Kerr wrote: > Hi Ben, > > >> +static LIST_HEAD(opal_prd_msg_queue); > >> +static DEFINE_SPINLOCK(opal_prd_msg_queue_lock); > >> +static DECLARE_WAIT_QUEUE_HEAD(opal_prd_msg_wait); > >> +static atomic_t usage; > > > > opal_prd_usage ... otherwise it's a m

Re: [PATCH kernel v9 22/32] powerpc/powernv: Implement multilevel TCE tables

2015-05-01 Thread Alexey Kardashevskiy
On 04/29/2015 03:04 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:46PM +1000, Alexey Kardashevskiy wrote: TCE tables might get too big in case of 4K IOMMU pages and DDW enabled on huge guests (hundreds of GB of RAM) so the kernel might be unable to allocate contiguous chunk of physical m

Re: [PATCH kernel v9 20/32] powerpc/powernv/ioda2: Introduce pnv_pci_create_table/pnv_pci_free_table

2015-05-01 Thread Alexey Kardashevskiy
On 04/29/2015 02:39 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:44PM +1000, Alexey Kardashevskiy wrote: This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This moves a table creation window to the file with

Re: [PATCH kernel v9 28/32] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-05-01 Thread Alexey Kardashevskiy
On 04/29/2015 05:01 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:52PM +1000, Alexey Kardashevskiy wrote: We are adding support for DMA memory pre-registration to be used in conjunction with VFIO. The idea is that the userspace which is going to run a guest may want to pre-register a use

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Rob Herring
+dt list On Fri, May 1, 2015 at 1:03 AM, Gavin Shan wrote: > The requirement is raised when developing the PCI hotplug feature > for PowerPC PowerNV platform, which runs on top of skiboot firmware. > When plugging PCI adapter to one PCI slot, the firmware rescans the > slot and build FDT (Flat De

[PATCH v2 08/10] powerpc: use for_each_sg()

2015-05-01 Thread Akinobu Mita
This replaces the plain loop over the sglist array with for_each_sg() macro which consists of sg_next() function calls. Since powerpc does select ARCH_HAS_SG_CHAIN, it is necessary to use for_each_sg() in order to loop over each sg element. This also help find problems with drivers that do not pr

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Benjamin Herrenschmidt
On Fri, 2015-05-01 at 07:54 -0500, Rob Herring wrote: > The difference seems to be whether you allocate space or just point to > the FDT for various strings/data. Is that right? > > >* of_fdt_add_subtree() is the introduced API to do the work. > > Have you looked at overlays and if so why do

[PATCH 1/4] ASoC: au1x: Constify platform_device_id

2015-05-01 Thread Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- sound/soc/au1x/db1200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c index c75995f2779c..58c3164802b8 10

[PATCH 2/4] ASoC: bt-sco: Constify platform_device_id

2015-05-01 Thread Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/bt-sco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c index e7238b8904bc..9d0b794d3

[PATCH 3/4] ASoC: fsl: Constify platform_device_id

2015-05-01 Thread Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- sound/soc/fsl/imx-audmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index d9050d946ae7..fc57da

[PATCH 4/4] ASoC: samsung: Constify platform_device_id

2015-05-01 Thread Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index b92ab40d2be6..ea4ab374a223 10

Re: [PATCH 1/4] ASoC: au1x: Constify platform_device_id

2015-05-01 Thread Mark Brown
On Sat, May 02, 2015 at 01:00:11AM +0900, Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxpp

Re: [PATCH 2/4] ASoC: bt-sco: Constify platform_device_id

2015-05-01 Thread Mark Brown
On Sat, May 02, 2015 at 01:00:12AM +0900, Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxpp

Re: [PATCH 3/4] ASoC: fsl: Constify platform_device_id

2015-05-01 Thread Mark Brown
On Sat, May 02, 2015 at 01:00:13AM +0900, Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxpp

Re: [PATCH 4/4] ASoC: samsung: Constify platform_device_id

2015-05-01 Thread Mark Brown
On Sat, May 02, 2015 at 01:00:14AM +0900, Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxpp

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Rob Herring
On Fri, May 1, 2015 at 10:22 AM, Benjamin Herrenschmidt wrote: > On Fri, 2015-05-01 at 07:54 -0500, Rob Herring wrote: > >> The difference seems to be whether you allocate space or just point to >> the FDT for various strings/data. Is that right? >> >> >* of_fdt_add_subtree() is the introduced

Re: [PATCH] powerpc/powernv: Silence SYSPARAM warning on boot

2015-05-01 Thread Neelesh Gupta
On 04/30/2015 09:20 AM, Joel Stanley wrote: OpenPower BMC machines do not place any sysparams in the device tree, so at every boot we get a warning: [0.437176] SYSPARAM: Opal sysparam node not found Remove the warning, and reorder the init so we don't peform allocations when there is no

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Benjamin Herrenschmidt
On Fri, 2015-05-01 at 13:46 -0500, Rob Herring wrote: > On Fri, May 1, 2015 at 10:22 AM, Benjamin Herrenschmidt > wrote: > > On Fri, 2015-05-01 at 07:54 -0500, Rob Herring wrote: > > > >> The difference seems to be whether you allocate space or just point to > >> the FDT for various strings/data.

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Benjamin Herrenschmidt
On Sat, 2015-05-02 at 08:57 +1000, Benjamin Herrenschmidt wrote: > > Overlay = an FDT blob to graft into a live running system. Sounds like > > the same thing. > > > > > As for the details of Gavin implementation, I haven't looked at it in > > > details yet so there might be issues there, however

Re: [v3] dt/bindings: qoriq-clock: Add binding for FMan clock mux

2015-05-01 Thread Scott Wood
On Thu, 2015-04-30 at 09:28 -0500, Liberman Igal-B31950 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Thursday, April 30, 2015 3:31 AM > > To: Liberman Igal-B31950 > > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Tang > > Yuantian-B29983 > > Subject:

Re: [v2,2/2] powerpc32: add support for csum_add()

2015-05-01 Thread Scott Wood
On Tue, 2015-04-28 at 21:01 +0200, christophe leroy wrote: > > > Le 25/03/2015 02:30, Scott Wood a écrit : > > > On Tue, Feb 03, 2015 at 12:39:27PM +0100, LEROY Christophe wrote: > > > The C version of csum_add() as defined in include/net/checksum.h gives the > > > following assembly: > > >

Re: [PATCH v4 19/21] drivers/of: Support adding sub-tree

2015-05-01 Thread Benjamin Herrenschmidt
On Sat, 2015-05-02 at 09:29 +1000, Benjamin Herrenschmidt wrote: > Looking a bit more at it, I don't quite see how I can attach a subtree > using that stuff. > > Instead, each node in the overlay seems to need extra nodes and > properties to refer to the original. > > So the FW would essentially