[PATCH] selftests/powerpc: context_switch use private futexes with threads

2017-06-04 Thread Nicholas Piggin
This reduces overhead of mutex locking and increases context switch rate significantly (which helps to measure and profile the context switch path). Signed-off-by: Nicholas Piggin --- .../selftests/powerpc/benchmarks/context_switch.c | 53 ++ 1 file changed, 33 insertions(+)

Re: [PATCH] powerpc/kernel: improve FP and vector registers restoration

2017-06-04 Thread Breno Leitao
On Sun, Jun 04, 2017 at 11:38:14AM +1000, Anton Blanchard wrote: > On Sat, 3 Jun 2017 19:42:14 -0300 > Breno Leitao wrote: > > > Hi Anton, > > > > On Sat, Jun 03, 2017 at 08:04:11AM +1000, Anton Blanchard wrote: > > > Hi Breno, > > > > > > > Currently tsk->thread->load_vec and load_fp are not

Re: [PATCH] net/phy: Make phy_ethtool_ksettings_get return void

2017-06-04 Thread kbuild test robot
Hi Yuval, [auto build test ERROR on net-next/master] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Yuval-Shaia/net-phy-Make-phy_ethtool_ksetti

[PATCH] powerpc/pseries: fix spelling mistake: "Attemping" -> "Attempting"

2017-06-04 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in pr_debug message Signed-off-by: Colin Ian King --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pse

Re: [PATCH v2 5/9] powerpc/vmlinux.lds: Align __init_begin to 16M

2017-06-04 Thread Balbir Singh
On Sun, Jun 4, 2017 at 2:22 PM, Nicholas Piggin wrote: > On Sat, 3 Jun 2017 17:18:39 +1000 > Balbir Singh wrote: > >> For CONFIG_STRICT_KERNEL_RWX align __init_begin to 16M. >> We use 16M since its the larger of 2M on radix and 16M >> on hash for our linear mapping. The plan is to have >> .text,

[PATCH] net/phy: Make phy_ethtool_ksettings_get return void

2017-06-04 Thread Yuval Shaia
Make return value void since function never return meaningfull value Signed-off-by: Yuval Shaia --- drivers/net/ethernet/broadcom/b44.c| 3 ++- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 3 ++- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 +++- drivers/net/

Re: [PATCH] cxl: Fix error path on bad ioctl

2017-06-04 Thread Andrew Donnellan
On 03/06/17 02:15, Frederic Barrat wrote: Fix error path if we can't copy user structure on CXL_IOCTL_START_WORK ioctl. Signed-off-by: Frederic Barrat Cc: sta...@vger.kernel.org Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com

Re: [PATCH v2] cxl: Avoid double free_irq() for psl,slice interrupts

2017-06-04 Thread Andrew Donnellan
On 03/06/17 02:56, Vaibhav Jain wrote: During an eeh call to cxl_remove can result in double free_irq of psl,slice interrupts. This can happen if perst_reloads_same_image == 1 and call to cxl_configure_adapter() fails during slot_reset callback. In such a case we see a kernel oops with following

Re: [PATCH v1 7/8] powerpc/Kconfig: Enable STRICT_KERNEL_RWX

2017-06-04 Thread Michael Ellerman
Balbir Singh writes: > On Mon, May 29, 2017 at 6:00 PM, Christophe LEROY > wrote: >> Le 25/05/2017 à 18:45, kbuild test robot a écrit : >>> All errors (new ones prefixed by >>): >>> > kernel//power/snapshot.c:40:28: fatal error: asm/set_memory.h: No such > file or directory >>> >>> #

Re: [PATCH] powerpc/kernel: improve FP and vector registers restoration

2017-06-04 Thread Michael Ellerman
Breno Leitao writes: > Currently tsk->thread->load_vec and load_fp are not initialized during a > task creation, which set garbage to these variables (non-zero value). > > These variables will be checked later at restore_math() to validate if the > FP and vectors are being utilized. Since these v

[PATCH] powerpc: Increase ELF_ET_DYN_BASE to 1TB for 64-bit applications

2017-06-04 Thread Bhupesh Sharma
Since 7e60d1b427c51cf2525e5d736a71780978cfb828, the ELF_ET_DYN_BASE for powerpc applications has been set to 512MB. Recently there have been several reports of applications SEGV'ing and newer version of glibc also SEGV'ing (while testing) when using the following test method: LD_LIBRARY_PATH

[RFC 0/2] Add support for OCC command/response interface

2017-06-04 Thread Shilpasri G Bhat
In P9, OCC(On Chip Controller) can be sent commands inband via shared memory based command response interface. This patch adds a platform driver to support the OCC command-response interface. The skiboot patch for the interface is posted here: https://lists.ozlabs.org/pipermail/skiboot/2017-June/

[RFC 1/2] powerpc/powernv: Get a unique token for async completions

2017-06-04 Thread Shilpasri G Bhat
This patch adds support to get a unique token for async completion requests. This will be used for creating non-repititive request handles for consecutive requests in OPAL-OCC command/response interface. Signed-off-by: Shilpasri G Bhat --- arch/powerpc/include/asm/opal.h | 1 + arch

[RFC 2/2] powerpc/powernv : Add support for OPAL-OCC command/response interface

2017-06-04 Thread Shilpasri G Bhat
In P9, OCC (On-Chip-Controller) supports shared memory based commad-response interface. Within the shared memory there is an OPAL command buffer and OCC response buffer that can be used to send inband commands to OCC. This patch adds a platform driver to support the command/response interface betwe

Re: [PATCH v2 5/9] powerpc/vmlinux.lds: Align __init_begin to 16M

2017-06-04 Thread Nicholas Piggin
On Mon, 5 Jun 2017 08:42:40 +1000 Balbir Singh wrote: > On Sun, Jun 4, 2017 at 2:22 PM, Nicholas Piggin wrote: > > On Sat, 3 Jun 2017 17:18:39 +1000 > > Balbir Singh wrote: > > > >> For CONFIG_STRICT_KERNEL_RWX align __init_begin to 16M. > >> We use 16M since its the larger of 2M on radix an