[git pull] Please pull powerpc.git merge branch

2014-06-25 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a handful or two of powerpc fixes and simple/trivial cleanups. A bunch of them fix ftrace with the new ABI v2 in Little Endian, the rest is a scattering of fairly simple things. Cheers, Ben. The following changes since commit 68986c9f0f4552c34c248501eb0c690553866d6e:

Re: [PATCH] Bugfix: powerpc/eeh: Create eeh sysfs entry in post_init()

2014-06-25 Thread Wei Yang
On Wed, Jun 25, 2014 at 03:33:12PM +1000, Gavin Shan wrote: On Tue, Jun 24, 2014 at 11:32:07PM -0400, Mike Qiu wrote: [ cc Richard ] Eeh sysfs entry created must be after EEH_ENABLED been set in eeh_subsystem_flags. In PowerNV platform, it try to create sysfs entry before EEH_ENABLED been set,

Re: [PATCH] Bugfix: powerpc/eeh: Create eeh sysfs entry in post_init()

2014-06-25 Thread Gavin Shan
On Wed, Jun 25, 2014 at 02:23:53PM +0800, Wei Yang wrote: On Wed, Jun 25, 2014 at 03:33:12PM +1000, Gavin Shan wrote: On Tue, Jun 24, 2014 at 11:32:07PM -0400, Mike Qiu wrote: [ cc Richard ] Eeh sysfs entry created must be after EEH_ENABLED been set in eeh_subsystem_flags. In PowerNV platform,

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Vincent Guittot
On 25 June 2014 03:05, Guenter Roeck li...@roeck-us.net wrote: Commit 143e1e28cb (sched: Rework sched_domain topology definition) introduced a number of functions with a return value of 'const int'. gcc doesn't know what to do with that and, if the kernel is compiled with W=1, complains with

Re: [PATCH] Bugfix: powerpc/eeh: Create eeh sysfs entry in post_init()

2014-06-25 Thread Mike Qiu
On 06/25/2014 01:33 PM, Gavin Shan wrote: On Tue, Jun 24, 2014 at 11:32:07PM -0400, Mike Qiu wrote: [ cc Richard ] Eeh sysfs entry created must be after EEH_ENABLED been set in eeh_subsystem_flags. In PowerNV platform, it try to create sysfs entry before EEH_ENABLED been set, when boot up.

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Uwe Kleine-König
On Tue, Jun 24, 2014 at 06:05:29PM -0700, Guenter Roeck wrote: Commit 143e1e28cb (sched: Rework sched_domain topology definition) introduced a number of functions with a return value of 'const int'. gcc doesn't know what to do with that and, if the kernel is compiled with W=1, complains with

Re: [PATCH v5 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-06-25 Thread Jiri Olsa
On Tue, Jun 24, 2014 at 05:00:52PM -0700, Sukadev Bhattiprolu wrote: [PATCH v5 1/1] powerpc/perf: Adjust callchain based on DWARF debug info superflous ^^^ When saving the callchain on Power, the kernel conservatively saves excess entries in the callchain. A few of these entries are needed

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Alexey Kardashevskiy
On 06/25/2014 03:27 PM, Wei Yang wrote: On Wed, Jun 25, 2014 at 02:12:34PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 11:12 AM, Wei Yang wrote: On Tue, Jun 24, 2014 at 08:06:32PM +1000, Alexey Kardashevskiy wrote: On 06/10/2014 11:56 AM, Wei Yang wrote: Current iommu_table of a PE is a

Re: [PATCH] powerpc: Fix build warning

2014-06-25 Thread Geert Uytterhoeven
On Tue, Jun 24, 2014 at 8:01 AM, Guenter Roeck li...@roeck-us.net wrote: Sigh. Much easier to break something than to fix it. That would mean to get approval from at least three maintainers, and all that to get rid of a warning. I don't really have time for that. Let's just forget about it

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Benjamin Herrenschmidt
On Wed, 2014-06-25 at 17:50 +1000, Alexey Kardashevskiy wrote: Yes, iommu_talbe's life time equals to PE lifetime, so when releasing a PE we need to release the iommu table. Currently, there is one function to release the iommu table, iommu_free_table() which takes a pointer of the

RE: [PATCH] spi: include int ret with macro

2014-06-25 Thread David Laight
From: Zhao Qiang ret is unused when CONFIG_FSL_SOC defined, so include it with #ifndef CONFIG_FSL_SOC. Signed-off-by: Zhao Qiang b45...@freescale.com --- drivers/spi/spi-fsl-lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-lib.c

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Wei Yang
On Wed, Jun 25, 2014 at 05:50:08PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 03:27 PM, Wei Yang wrote: On Wed, Jun 25, 2014 at 02:12:34PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 11:12 AM, Wei Yang wrote: On Tue, Jun 24, 2014 at 08:06:32PM +1000, Alexey Kardashevskiy wrote: On

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Wei Yang
On Wed, Jun 25, 2014 at 05:56:37PM +1000, Benjamin Herrenschmidt wrote: On Wed, 2014-06-25 at 17:50 +1000, Alexey Kardashevskiy wrote: Yes, iommu_talbe's life time equals to PE lifetime, so when releasing a PE we need to release the iommu table. Currently, there is one function to

RE: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread David Laight
From: Wei Yang On Wed, Jun 25, 2014 at 02:12:34PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 11:12 AM, Wei Yang wrote: On Tue, Jun 24, 2014 at 08:06:32PM +1000, Alexey Kardashevskiy wrote: On 06/10/2014 11:56 AM, Wei Yang wrote: Current iommu_table of a PE is a static field. This

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Wei Yang
On Wed, Jun 25, 2014 at 09:20:11AM +, David Laight wrote: From: Wei Yang On Wed, Jun 25, 2014 at 02:12:34PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 11:12 AM, Wei Yang wrote: On Tue, Jun 24, 2014 at 08:06:32PM +1000, Alexey Kardashevskiy wrote: On 06/10/2014 11:56 AM, Wei Yang

RE: [PATCH v2] fsl-rio: add support for mapping inbound windows

2014-06-25 Thread gang....@freescale.com
Subject: [PATCH v2] fsl-rio: add support for mapping inbound windows From: Martijn de Gouw martijn.de.g...@prodrive.nl Add support for mapping and unmapping of inbound rapidio windows. Signed-off-by: Martijn de Gouw martijn.de.g...@prodrive-technologies.com ---

Re: [RFC PATCH V3 06/17] ppc/pnv: allocate pe-iommu_table dynamically

2014-06-25 Thread Alexey Kardashevskiy
On 06/25/2014 07:20 PM, David Laight wrote: From: Wei Yang On Wed, Jun 25, 2014 at 02:12:34PM +1000, Alexey Kardashevskiy wrote: On 06/25/2014 11:12 AM, Wei Yang wrote: On Tue, Jun 24, 2014 at 08:06:32PM +1000, Alexey Kardashevskiy wrote: On 06/10/2014 11:56 AM, Wei Yang wrote: Current

[PATCH v3 0/3] dmaengine: mpc512x: add device tree binding document and DMA channel lookup

2014-06-25 Thread Alexander Popov
This patch series introduces a device tree binding document for the MPC512x DMA controller and adds device tree based DMA channel lookup for it. This version contains the improved device tree binding document: #dma-cells is made a required property, as it must be according dma/dma.txt document.

[PATCH v3 1/3] dmaengine: mpc512x: add device tree binding document

2014-06-25 Thread Alexander Popov
Introduce a device tree binding document for the MPC512x DMA controller Signed-off-by: Alexander Popov a13xp0p0...@gmail.com --- .../devicetree/bindings/dma/mpc512x-dma.txt| 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v3 2/3] dmaengine: of: add common xlate function for matching by channel id

2014-06-25 Thread Alexander Popov
This patch adds a new common OF dma xlate callback function which will match a channel by it's id. The binding expects one integer argument which it will use to lookup the channel by the id. Unlike of_dma_simple_xlate this function is able to handle a system with multiple DMA controllers. When

[PATCH v3 3/3] dmaengine: mpc512x: register for device tree channel lookup

2014-06-25 Thread Alexander Popov
Register the controller for device tree based lookup of DMA channels (non-fatal for backwards compatibility with older device trees) and provide the '#dma-cells' property in the shared mpc5121.dtsi file Signed-off-by: Alexander Popov a13xp0p0...@gmail.com --- arch/powerpc/boot/dts/mpc5121.dtsi |

Re: [PATCH V2] KVM: PPC: BOOK3S: HV: Use base page size when comparing against slb value

2014-06-25 Thread Alexander Graf
On 15.06.14 20:47, Aneesh Kumar K.V wrote: With guests supporting Multiple page size per segment (MPSS), hpte_page_size returns the actual page size used. Add a new function to return base page size and use that to compare against the the page size calculated from SLB. Without this patch a hpte

Re: [PATCH v3 -next 0/9] CMA: generalize CMA reserved area management code

2014-06-25 Thread Marek Szyprowski
Hello, On 2014-06-18 22:51, Andrew Morton wrote: On Tue, 17 Jun 2014 10:25:07 +0900 Joonsoo Kim iamjoonsoo@lge.com wrote: v2: - Although this patchset looks very different with v1, the end result, that is, mm/cma.c is same with v1's one. So I carry Ack to patch 6-7. This patchset is

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Guenter Roeck
On 06/25/2014 12:14 AM, Uwe Kleine-König wrote: On Tue, Jun 24, 2014 at 06:05:29PM -0700, Guenter Roeck wrote: Commit 143e1e28cb (sched: Rework sched_domain topology definition) introduced a number of functions with a return value of 'const int'. gcc doesn't know what to do with that and, if

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Uwe Kleine-König
Hello Guenter, On Wed, Jun 25, 2014 at 07:27:47AM -0700, Guenter Roeck wrote: Maybe the author's intention was: static inline int cpu_corepower_flags(void) __attribute__((const)); ? This specifies that the function has no side effects and the return value only depends on the (here

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Guenter Roeck
On 06/25/2014 07:49 AM, Uwe Kleine-König wrote: Hello Guenter, On Wed, Jun 25, 2014 at 07:27:47AM -0700, Guenter Roeck wrote: Maybe the author's intention was: static inline int cpu_corepower_flags(void) __attribute__((const)); ? This specifies that the function has no side effects

RE: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread David Laight
From: Guenter Roeck On 06/25/2014 07:49 AM, Uwe Kleine-Knig wrote: Hello Guenter, On Wed, Jun 25, 2014 at 07:27:47AM -0700, Guenter Roeck wrote: Maybe the author's intention was: static inline int cpu_corepower_flags(void) __attribute__((const)); ? This specifies that the

Re: [PATCH v5 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-06-25 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | | you could use __maybe_unused for the 'skip_idx' Yes, here is the updated patch. --- powerpc/perf: Adjust callchain based on DWARF debug info When saving the callchain on Power, the kernel conservatively saves excess entries in the callchain. A few of

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Uwe Kleine-König
Hello, On Wed, Jun 25, 2014 at 03:40:28PM +, David Laight wrote: From: Guenter Roeck Actually turns out one can use __attribute_const__, and it is static inline int __attribute_const__ cpu_corepower_flags(void) which turns out to be widely used. I'll change that and

RE: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread David Laight
From: Uwe Kleine-König Hello, On Wed, Jun 25, 2014 at 03:40:28PM +, David Laight wrote: From: Guenter Roeck Actually turns out one can use __attribute_const__, and it is static inline int __attribute_const__ cpu_corepower_flags(void) which turns out to be widely used.

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Guenter Roeck
On 06/25/2014 08:52 AM, Uwe Kleine-König wrote: Hello, On Wed, Jun 25, 2014 at 03:40:28PM +, David Laight wrote: From: Guenter Roeck Actually turns out one can use __attribute_const__, and it is static inline int __attribute_const__ cpu_corepower_flags(void) which turns out to

[PATCH 6/9] powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure

2014-06-25 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com This patch removes the redundant sysfs cacheinfo code by making use of the newly introduced generic cacheinfo infrastructure. Signed-off-by: Sudeep Holla sudeep.ho...@arm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras

[PATCH 0/9] drivers: cacheinfo support

2014-06-25 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt

[PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-25 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com This patch adds initial support for providing processor cache information to userspace through sysfs interface. This is based on already existing implementations(x86, ia64, s390 and powerpc) and hence the interface is intended to be fully compatible. The

[PATCH v2 1/2] powerpc: bpf: Use correct mask while accessing the VLAN tag

2014-06-25 Thread Denis Kirjanov
To get a full tag (and not just a VID) we should access the TCI except the VLAN_TAG_PRESENT field (which means that 802.1q header is present). Also ensure that the VLAN_TAG_PRESENT stay on its place Signed-off-by: Denis Kirjanov k...@linux-powerpc.org --- arch/powerpc/net/bpf_jit_comp.c | 4 +++-

[PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-25 Thread Denis Kirjanov
We have to return the boolean here if the tag presents or not, not just ANDing the TCI with the mask which results to: [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT [ 709.412245] ret 4096 != 1 [ 709.412332] ret 4096 != 1 [ 709.412333] FAIL (2 times) Signed-off-by: Denis Kirjanov

Re: [PATCH v3 -next 0/9] CMA: generalize CMA reserved area management code

2014-06-25 Thread Andrew Morton
On Wed, 25 Jun 2014 14:33:56 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: That's probably easier. Marek, I'll merge these into -mm (and hence -next and git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git) and shall hold them pending you review/ack/test/etc, OK? Ok.

Re: OF_DYNAMIC node lifecycle

2014-06-25 Thread Grant Likely
On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/23/2014 09:58 AM, Grant Likely wrote: On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Grant, CCing Thomas Gleixner Steven Rostedt, since they might

Re: OF_DYNAMIC node lifecycle

2014-06-25 Thread Grant Likely
On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/23/2014 09:48 AM, Grant Likely wrote: On Thu, 19 Jun 2014 10:26:15 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/18/2014 03:07 PM, Grant Likely wrote: Hi Nathan and Tyrel, I'm looking

Re: [PATCH 0/3] Prepare for in-kernel VFIO DMA operations acceleration

2014-06-25 Thread Alexander Graf
On 06.06.14 02:20, Alexey Kardashevskiy wrote: On 06/05/2014 09:57 PM, Alexander Graf wrote: On 05.06.14 09:25, Alexey Kardashevskiy wrote: This reserves 2 capability numbers. This implements an extended version of KVM_CREATE_SPAPR_TCE_64 ioctl. Please advise how to proceed with these

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-25 Thread Russell King - ARM Linux
On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of data that gets transferred So, what value to do envision this taking for a CPU where the cache line size is 32 bytes, but each cache line has two dirty bits which allow it to

Re: [2/3,v4] powerpc/fsl-booke: Add initial T208x QDS board support

2014-06-25 Thread Scott Wood
On Wed, Jun 11, 2014 at 06:10:05PM +0800, Shengzhou Liu wrote: + flash@2 { + #address-cells = 1; + #size-cells = 1; + compatible = eon,en25s64; + reg = 2; +

Re: [3/3,v4] powerpc/t2080rdb: Add T2080RDB board support

2014-06-25 Thread Scott Wood
On Wed, Jun 11, 2014 at 06:10:06PM +0800, Shengzhou Liu wrote: + i2c@0 { + #address-cells = 1; + #size-cells = 0; + reg = 0x0; + +

Re: [2/3,v4] powerpc/fsl-booke: Add initial T208x QDS board support

2014-06-25 Thread Scott Wood
On Wed, 2014-06-25 at 18:23 -0500, Scott Wood wrote: On Wed, Jun 11, 2014 at 06:10:05PM +0800, Shengzhou Liu wrote: + flash@2 { + #address-cells = 1; + #size-cells = 1; + compatible =

Re: [PATCH] Bugfix: powerpc/eeh: Create eeh sysfs entry in post_init()

2014-06-25 Thread Gavin Shan
On Wed, Jun 25, 2014 at 03:27:55PM +0800, Mike Qiu wrote: On 06/25/2014 01:33 PM, Gavin Shan wrote: On Tue, Jun 24, 2014 at 11:32:07PM -0400, Mike Qiu wrote: [ cc Richard ] Eeh sysfs entry created must be after EEH_ENABLED been set in eeh_subsystem_flags. In PowerNV platform, it try to create

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Stephen Rothwell
Hi Guenter, [I know I'm a bit late to this, but ...] On Tue, 24 Jun 2014 18:05:29 -0700 Guenter Roeck li...@roeck-us.net wrote: diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 9d85318..e35d880 100644 --- a/arch/arm/kernel/topology.c +++

Re: [PATCH v2] sched: Fix compiler warnings

2014-06-25 Thread Guenter Roeck
On 06/25/2014 05:59 PM, Stephen Rothwell wrote: Hi Guenter, [I know I'm a bit late to this, but ...] On Tue, 24 Jun 2014 18:05:29 -0700 Guenter Roeck li...@roeck-us.net wrote: diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 9d85318..e35d880 100644 ---

[PATCH v2] spi: deal with a compile warning

2014-06-25 Thread Zhao Qiang
ret is unused when CONFIG_FSL_SOC defined, so return ret instead of -ENOMEM when the kzalloc fails to avoid it. Signed-off-by: Zhao Qiang b45...@freescale.com --- Changes for v2: -return ret instead of -ENOMEM when the kzalloc fails drivers/spi/spi-fsl-lib.c | 2 +- 1 file changed, 1

Re: [PATCH v1 2/3] powerpc/powernv: Support PCI error injection

2014-06-25 Thread Stewart Smith
Gavin Shan gws...@linux.vnet.ibm.com writes: On Mon, Jun 23, 2014 at 04:36:44PM +1000, Michael Neuling wrote: On Mon, 2014-06-23 at 12:14 +1000, Gavin Shan wrote: The patch implements one OPAL firmware sysfs file to support PCI error injection: /sys/firmware/opal/errinjct, which will be used

Re: [PATCH v1 2/3] powerpc/powernv: Support PCI error injection

2014-06-25 Thread Stewart Smith
Gavin Shan gws...@linux.vnet.ibm.com writes: +static struct kobj_attribute errinjct_attr = + __ATTR(errinjct, 0600, NULL, errinjct_store); May also be good to have a read method that either lists current injected errors? I guess it depends on if they're one time errors or persistent errors