Re: [PATCH v8 45/45] PCI/hotplug: PowerPC PowerNV PCI hotplug driver

2016-05-01 Thread Alexey Kardashevskiy
On 05/02/2016 01:44 PM, Gavin Shan wrote: On Tue, Apr 19, 2016 at 08:36:48PM +1000, Alexey Kardashevskiy wrote: On 02/17/2016 02:44 PM, Gavin Shan wrote: This adds standalone driver to support PCI hotplug for PowerPC PowerNV platform that runs on top of skiboot firmware. The firmware identifies

[PATCH] powerpc: Remove unnecessary CONFIG_SMP #ifdefs

2016-05-01 Thread Chris Smart
The code in machine_restart/power_off/halt() includes #ifdefs around calls to smp_send_stop(), however these are not required as include/linux/smp.h includes an empty version of this function for CONFIG_SMP=n builds. Signed-off-by: Chris Smart --- arch/powerpc/kernel/setup-common.c | 6 -- 1

[PATCH] selftests/powerpc: Fix subpage_prot test to return !0 on failure

2016-05-01 Thread Michael Ellerman
It's helpful for automated testing if the test returns error codes back to the calling program. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/mm/subpage_prot.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/powerpc/mm/

[PATCH] selftests/powerpc: Test cp_abort during context switch

2016-05-01 Thread Chris Smart
Test that performing a copy paste sequence in userspace on P9 does not result in a leak of the copy into the paste of another process. This is based on Anton Blanchard's context_switch benchmarking code. It sets up two processes tied to the same CPU, one which copies and one which pastes. The pa

Re: [PATCH v8 45/45] PCI/hotplug: PowerPC PowerNV PCI hotplug driver

2016-05-01 Thread Gavin Shan
On Tue, Apr 19, 2016 at 08:36:48PM +1000, Alexey Kardashevskiy wrote: >On 02/17/2016 02:44 PM, Gavin Shan wrote: >>This adds standalone driver to support PCI hotplug for PowerPC PowerNV >>platform that runs on top of skiboot firmware. The firmware identifies >>hotpluggable slots and marked their de

Re: [PATCH] powerpc/pseries: Add null property check to pseries_discover_pic()

2016-05-01 Thread Chris Smart
On Thu, Apr 28, 2016 at 03:53:45PM +1000, Suraj Jitindar Singh wrote: The return value of of_get_property() isn't checked before it is passed to the strstr() function, if it happens that the return value is null then this will result in a null pointer being dereferenced. Add a check to see if th

Re: [PATCH v8 40/45] drivers/of: Split unflatten_dt_node()

2016-05-01 Thread Gavin Shan
On Wed, Feb 17, 2016 at 08:30:42AM -0600, Rob Herring wrote: >On Tue, Feb 16, 2016 at 9:44 PM, Gavin Shan wrote: >> The function unflatten_dt_node() is called recursively to unflatten >> device nodes and properties in the FDT blob. It looks complicated >> and hard to be understood. >> >> This spli

Re: [RFC 1/5] powerpc: Rename context.vdso_base to context.vdso

2016-05-01 Thread Balbir Singh
On 29/04/16 01:18, Christopher Covington wrote: > In order to share remap and unmap support for the VDSO with other > architectures without duplicating the code, we need a common name and type > for the address of the VDSO. An informal survey of the architectures > indicates unsigned long vdso is

[PATCH 3/4] net: ethernet: fs-enet: move to new ethtool api {get|set}_link_ksettings

2016-05-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move the fs-enet driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 4/4] net: ethernet: fec_mpc52xx: move to new ethtool api {get|set}_link_ksettings

2016-05-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move the fec_mpc52xx driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/freescale/fec_mpc52xx.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/n

[PATCH 2/4] net: ethernet: ucc: move to new ethtool api {get|set}_link_ksettings

2016-05-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move the ucc driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 17 +++-- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/net

[PATCH 1/4] net: ethernet: gianfar: move to new ethtool api {get|set}_link_ksettings

2016-05-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move the gianfar driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/freescale/gianfar_ethtool.c | 25 +++--- 1 files changed, 8 insertions(+), 17 deletions(-) diff --git a/dri

linux-next: manual merge of the powerpc tree with Linus' tree

2016-05-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the powerpc tree got a conflict in: arch/powerpc/kernel/prom.c between commits: beff82374b25 ("powerpc: Update cpu_user_features2 in scan_features()") 4705e02498d6 ("powerpc: Update TM user feature bits in scan_features()") from Linus' tree and commit:

Re: [v3,02/70] powerpc/mm: Always use STRICT_MM_TYPECHECKS

2016-05-01 Thread Michael Ellerman
On Fri, 2016-29-04 at 13:25:25 UTC, Michael Ellerman wrote: > Testing done by Paul Mackerras has shown that with a modern compiler > there is no negative effect on code generation from enabling > STRICT_MM_TYPECHECKS. > > So remove the option, and always use the strict type definitions. > > Acked

Re: [v3, 01/70] IB/qib: Use cache inhibitted and guarded mapping on powerpc

2016-05-01 Thread Michael Ellerman
On Fri, 2016-29-04 at 13:25:24 UTC, Michael Ellerman wrote: > From: "Aneesh Kumar K.V" > > The driver was requesting for a writethrough mapping. But with those > flags we will end up with an SAO mapping because we now have memory > conherence always enabled. ie, the existing mapping will end up w