[PATCH V2] tick/broadcast-hrtimer : Fix suspicious RCU usage in idle loop

2015-03-18 Thread Preeti U Murthy
The hrtimer mode of broadcast queues hrtimers in the idle entry path so as to wakeup cpus in deep idle states. The associated call graph is : cpuidle_idle_call() | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, )) |_tick_broadcast_set_event() |clockevents_prog

Re: [PATCH] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-03-18 Thread Mark Brown
On Thu, Mar 12, 2015 at 07:52:53AM +0100, leroy christophe wrote: > Le 06/03/2015 12:44, Mark Brown a écrit : > >It's legacy, all that code is really old. Modern code is written in as > >architecture and firmware neutral a fashion as possible to make things > >more consistent and maintainable. >

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-03-18 Thread Ulrich Weigand
Michael Neuling wrote on 23.02.2015 05:51:50: > Sorry for the slow response. Same here :-( > Should this inferior function be run in the current mode of the > processor? ie if the process is currently transactional and the > transaction aborts, should we be able to see any global state change

Re: [PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

2015-03-18 Thread Rob Herring
On Tue, Mar 17, 2015 at 11:47 PM, Michael Ellerman wrote: > On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote: >> This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d. >> >> The assumption that at least 1 preferred console will be registered >> when the stdout-path property is set is i

Re: [PATCH 3/3] powerpc/dma: Remove ZONE_DMA completely

2015-03-18 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > We don't initialize it, we don't use it, remove it. > > We can bring it back if we ever wish to have support for devices > who have smaller than 32-bit DMA limitations but I don't think > we care much anymore. > > Signed-off-by: Benjamin Herrenschmidt > --- > ar

[PATCH 0/5] hwmon: (ibmpowernv) remove dependency on OPAL index

2015-03-18 Thread Cédric Le Goater
Hello ! The current implementation of the driver uses an index for the hwmon attribute which is extracted from the device node name. This index is calculated by the OPAL firmware and its usage creates a dependency with the driver which makes changes a little more complex in OPAL. This patchset

[PATCH 1/5] hwmon: (ibmpowernv) replace AMBIENT_TEMP by TEMP

2015-03-18 Thread Cédric Le Goater
Ambient is too restrictive as there can be other temperature channels : core, memory, etc. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index feb

[PATCH 2/5] hwmon: (ibmpowernv) add a get_sensor_type() routine

2015-03-18 Thread Cédric Le Goater
It will help in adding different compatible properties, coming from a new device tree layout for example. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/hwmon/ibmpowernv.c b

[PATCH 3/5] hwmon: (ibmpowernv) add a convert_opal_attr_name() routine

2015-03-18 Thread Cédric Le Goater
It simplifies the create_hwmon_attr_name() routine and it clearly isolates the conversion done between the OPAL node names and hwmon attributes names. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 39 +-- 1 file changed, 25 insertions(+),

[PATCH 5/5] hwmon: (ibmpowernv) do not use the OPAL index for hwmon attribute names

2015-03-18 Thread Cédric Le Goater
The current OPAL firmware exposes the different sensors of an IBM Power system using the node names such as : sensors/amb-temp#1-data sensors/amb-temp#1-thrs cooling-fan#1-data cooling-fan#1-faulted cooling-fan#1-thrs cooling-fan#2-data ...

[PATCH 4/5] hwmon: (ibmpowernv) change create_hwmon_attr_name() prototype

2015-03-18 Thread Cédric Le Goater
It simplifies the creation of the hwmon attributes and will help when support for a new device tree layout is added. The patch also changes the name of the routine to parse_opal_node_name(). Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 32 ++-- 1

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-18 Thread Linus Torvalds
On Tue, Mar 17, 2015 at 3:08 PM, Dave Chinner wrote: >> >> Damn. From a performance number standpoint, it looked like we zoomed >> in on the right thing. But now it's migrating even more pages than >> before. Odd. > > Throttling problem, like Mel originally suspected? That doesn't much make sense

[PATCH trivial] powerpc: Spelling s/embeeded/embedded/

2015-03-18 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 76483e3acd60e432..0e1a6ce270086d1c 100644 --- a/arch/powerpc/plat

Re: [PATCH RFC 02/11] dpaa_eth: add support for DPAA Ethernet

2015-03-18 Thread Kumar Gala
On Mar 17, 2015, at 1:58 PM, Madalin Bucur wrote: > This introduces the Freescale Data Path Acceleration Architecture > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > the Freescale DPAA QorIQ platforms. > > S

[PATCH 1/7 linux-next] ALSA: aoa: constify of_device_id array

2015-03-18 Thread Fabian Frederick
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick --- sound/aoa/soundbus/i2sbus/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core

[PATCH 0/7 linux-next] sound: constify of_device_id array

2015-03-18 Thread Fabian Frederick
This small patchset adds const to of_device_id arrays in sound branch. Fabian Frederick (7): ALSA: aoa: constify of_device_id array ASoC: fsl: constify of_device_id array ASoC: kirkwood: constify of_device_id array ASoC: rt5631: constify of_device_id array ASoC: ak4554: constify of_devic

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-18 Thread Linus Torvalds
On Wed, Mar 18, 2015 at 9:08 AM, Linus Torvalds wrote: > > So why am I wrong? Why is testing for dirty not the same as testing > for writable? > > I can see a few cases: > > - your load has lots of writable (but not written-to) shared memory Hmm. I tried to look at the xfsprog sources, and I don

RE: RE: [PATCH RFC 02/11] dpaa_eth: add support for DPAA Ethernet

2015-03-18 Thread Madalin-Cristian Bucur
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > > On Mar 17, 2015, at 1:58 PM, Madalin Bucur > wrote: > > > This introduces the Freescale Data Path Acceleration Architecture > > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > > BMan, PAMU

Re: [PATCH 3/3] powerpc/dma: Remove ZONE_DMA completely

2015-03-18 Thread Benjamin Herrenschmidt
On Wed, 2015-03-18 at 19:49 +0530, Aneesh Kumar K.V wrote: > Why not do it also for DMA32 as below. We call limit_zone_pfn() only > for few > platforms. They can select ZONE_DMA32. Everywhere else ZONE_DMA32 is > same as ZONE_NORMAL ? So instead of having confusing output for > show_mem(), we now h

RE: [PATCH RFC 02/11] dpaa_eth: add support for DPAA Ethernet

2015-03-18 Thread Madalin-Cristian Bucur
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > > On Mar 17, 2015, at 1:58 PM, Madalin Bucur > wrote: > > > This introduces the Freescale Data Path Acceleration Architecture > > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > > BMan, PAMU an

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-18 Thread Dave Chinner
On Wed, Mar 18, 2015 at 10:31:28AM -0700, Linus Torvalds wrote: > On Wed, Mar 18, 2015 at 9:08 AM, Linus Torvalds > wrote: > > > > So why am I wrong? Why is testing for dirty not the same as testing > > for writable? > > > > I can see a few cases: > > > > - your load has lots of writable (but not

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-03-18 Thread Michael Neuling
On Wed, 2015-03-18 at 13:53 +0100, Ulrich Weigand wrote: > Michael Neuling wrote on 23.02.2015 05:51:50: > > > Sorry for the slow response. > > Same here :-( I'm going to break the cycle and respond in a few hours :-) > > I think what you're proposing with running the inferior function in > >

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-03-18 Thread Michael Neuling
On Thu, 2015-03-19 at 09:45 +1100, Michael Neuling wrote: > On Wed, 2015-03-18 at 13:53 +0100, Ulrich Weigand wrote: > > Michael Neuling wrote on 23.02.2015 05:51:50: > > > > > Sorry for the slow response. > > > > Same here :-( > > I'm going to break the cycle and respond in a few hours :-) >

Generic IOMMU pooled allocator

2015-03-18 Thread David Miller
PowerPC folks, we're trying to kill the locking contention in our IOMMU allocators and noticed that you guys have a nice solution to this in your IOMMU code. Sowmini put together a patch series that tries to extract out the generic parts of your code and place it in lib/iommu-common.c so that bot

Re: Generic IOMMU pooled allocator

2015-03-18 Thread Benjamin Herrenschmidt
On Wed, 2015-03-18 at 22:25 -0400, David Miller wrote: > PowerPC folks, we're trying to kill the locking contention in our > IOMMU allocators and noticed that you guys have a nice solution to > this in your IOMMU code. > > Sowmini put together a patch series that tries to extract out the > generic

Re: Generic IOMMU pooled allocator

2015-03-18 Thread David Miller
From: Benjamin Herrenschmidt Date: Thu, 19 Mar 2015 13:46:15 +1100 > Sounds like a good idea ! CC'ing Anton who wrote the pool stuff. I'll > try to find somebody to work on that here & will let you know asap. Thanks a lot Ben. ___ Linuxppc-dev mailing

Re: Generic IOMMU pooled allocator

2015-03-18 Thread Benjamin Herrenschmidt
On Wed, 2015-03-18 at 22:25 -0400, David Miller wrote: > PowerPC folks, we're trying to kill the locking contention in our > IOMMU allocators and noticed that you guys have a nice solution to > this in your IOMMU code. .../... Adding Alexei too who is currently doing some changes to our iommu co

[PATCH] powerpc: Add PVR for POWER8NVL processor

2015-03-18 Thread Benjamin Herrenschmidt
There's a new variant of POWER8 coming called "POWER8 with NVLink". The core is identical to POWER8 but unfortunately they strapped it with a different PVR, so we need to add an explicit entry for it. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/cputable.c b/arch/pow

Re: [PATCH 3/5] hwmon: (ibmpowernv) add a convert_opal_attr_name() routine

2015-03-18 Thread Guenter Roeck
On 03/18/2015 08:47 AM, Cédric Le Goater wrote: It simplifies the create_hwmon_attr_name() routine and it clearly isolates the conversion done between the OPAL node names and hwmon attributes names. Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmpowernv.c | 39

Re: [PATCH 4/5] hwmon: (ibmpowernv) change create_hwmon_attr_name() prototype

2015-03-18 Thread Guenter Roeck
On 03/18/2015 08:47 AM, Cédric Le Goater wrote: It simplifies the creation of the hwmon attributes and will help when support for a new device tree layout is added. The patch also changes the name of the routine to parse_opal_node_name(). Signed-off-by: Cédric Le Goater --- drivers/hwmon/ibmp

Re: [PATCH 0/5] hwmon: (ibmpowernv) remove dependency on OPAL index

2015-03-18 Thread Guenter Roeck
On 03/18/2015 08:47 AM, Cédric Le Goater wrote: Hello ! The current implementation of the driver uses an index for the hwmon attribute which is extracted from the device node name. This index is calculated by the OPAL firmware and its usage creates a dependency with the driver which makes change

[PATCH 0/3] powerpc/tm: Abort syscalls in active transactions

2015-03-18 Thread Sam Bobroff
See the first patch for a description of the reasoning behind this change. This set includes the change, a kernel selftest for it and some slight refactoring of the selftest code. Sam Bobroff (3): powerpc/tm: Abort syscalls in active transactions selftests/powerpc: Move get_auxv_entry() to

[PATCH 3/3] selftests/powerpc: Add transactional syscall test

2015-03-18 Thread Sam Bobroff
Check that a syscall made during an active transaction will fail with the correct failure code and that one made during a suspended transaction will succeed. Signed-off-by: Sam Bobroff --- tools/testing/selftests/powerpc/tm/Makefile |3 +- tools/testing/selftests/powerpc/tm/tm-syscall.c

[PATCH 1/3] powerpc/tm: Abort syscalls in active transactions

2015-03-18 Thread Sam Bobroff
This patch changes the syscall handler to doom (tabort) active transactions when a syscall is made and return immediately without performing the syscall. Currently, the system call instruction automatically suspends an active transaction which causes side effects to persist when an active transact

[PATCH 2/3] selftests/powerpc: Move get_auxv_entry() to harness.c

2015-03-18 Thread Sam Bobroff
Move get_auxv_entry() from pmu/lib.c up to harness.c in order to make it available to other tests. Signed-off-by: Sam Bobroff --- tools/testing/selftests/powerpc/harness.c | 47 + tools/testing/selftests/powerpc/pmu/lib.c | 47 - tools/

Re: [PATCH 1/3] powerpc/tm: Abort syscalls in active transactions

2015-03-18 Thread Michael Neuling
On Thu, 2015-03-19 at 15:43 +1100, Sam Bobroff wrote: > This patch changes the syscall handler to doom (tabort) active > transactions when a syscall is made and return immediately without > performing the syscall. > > Currently, the system call instruction automatically suspends an > active transa

Re: Generic IOMMU pooled allocator

2015-03-18 Thread Alexey Kardashevskiy
On 03/19/2015 02:01 PM, Benjamin Herrenschmidt wrote: On Wed, 2015-03-18 at 22:25 -0400, David Miller wrote: PowerPC folks, we're trying to kill the locking contention in our IOMMU allocators and noticed that you guys have a nice solution to this in your IOMMU code. .../... Adding Alexei to

[PATCH] powerpc/powernv: Fixes for hypervisor doorbell handling

2015-03-18 Thread Paul Mackerras
Since we can now use hypervisor doorbells for host IPIs, this makes sure we clear the host IPI flag when taking a doorbell interrupt, and clears any pending doorbell IPI in pnv_smp_cpu_kill_self() (as we already do for IPIs sent via the XICS interrupt controller). Otherwise if there did happen to

Re: [23/32] powerpc: copy_thread(): rename 'arg' argument to 'kthread_arg'

2015-03-18 Thread Michael Ellerman
On Fri, 2015-13-03 at 18:14:46 UTC, Alex Dowad wrote: > The 'arg' argument to copy_thread() is only ever used when forking a new > kernel thread. Hence, rename it to 'kthread_arg' for clarity (and consistency > with do_fork() and other arch-specific implementations of copy_thread()). I don't unde