Re: [PATCH v2 2/3] powerpc/kvm/book3s_hv: Enable CPUs to run guest after waking up from fast-sleep

2014-10-09 Thread Preeti U Murthy
On 10/07/2014 10:41 AM, Benjamin Herrenschmidt wrote: On Wed, 2014-10-01 at 13:15 +0530, Shreyas B. Prabhu wrote: diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 050f79a..c64f3cc0 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++

Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-09 Thread Pavel Machek
Hi! +/** + * register_poweroff_handler_simple - Register function to be called to power off + * the system + * @handler: Function to be called to power off the system + * @priority: Handler priority. For priority guidelines see + *

Re: [PATCH 03/44] hibernate: Call have_kernel_poweroff instead of checking pm_power_off

2014-10-09 Thread Pavel Machek
On Mon 2014-10-06 22:28:05, Guenter Roeck wrote: Poweroff handlers may now be installed with register_poweroff_handler. Use the new API function have_kernel_poweroff to determine if a poweroff handler has been installed. Cc: Rafael J. Wysocki r...@rjwysocki.net Cc: Pavel Machek pa...@ucw.cz

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Catalin Marinas
On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck wrote: --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -6,6 +6,7 @@ [...] +static int ab8500_power_off(struct notifier_block *this, unsigned long unused1, +

Re: [PATCH 32/44] arm64: psci: Register with kernel poweroff handler

2014-10-09 Thread Catalin Marinas
On Tue, Oct 07, 2014 at 06:28:34AM +0100, Guenter Roeck wrote: Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Signed-off-by: Guenter Roeck li...@roeck-us.net ---

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Lee Jones
On Thu, 09 Oct 2014, Catalin Marinas wrote: On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck wrote: --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -6,6 +6,7 @@ [...] +static int ab8500_power_off(struct

Re: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-09 Thread Catalin Marinas
On Tue, Oct 07, 2014 at 06:28:10AM +0100, Guenter Roeck wrote: diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index e0ef8ba..db396bb 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -94,8 +94,6 @@ void soft_restart(unsigned long addr) /*

Re: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-09 Thread Pavel Machek
Hi! @@ -184,6 +179,8 @@ machine_halt(void) void machine_power_off(void) { + do_kernel_poweroff(); + poweroff - power_off for consistency. index c4f50a3..1da27d1 100644 --- a/arch/blackfin/kernel/reboot.c +++ b/arch/blackfin/kernel/reboot.c @@ -106,6 +107,7 @@ void

Re: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-09 Thread Vineet Gupta
On Tuesday 07 October 2014 11:01 AM, Guenter Roeck wrote: diff --git a/arch/arc/kernel/reset.c b/arch/arc/kernel/reset.c index 2768fa1..8a4fc47 100644 --- a/arch/arc/kernel/reset.c +++ b/arch/arc/kernel/reset.c @@ -26,9 +26,6 @@ void machine_restart(char *__unused) void machine_power_off(void)

Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-09 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck li...@roeck-us.net wrote: +int register_poweroff_handler_simple(void (*handler)(void), int priority) +{ + char symname[KSYM_NAME_LEN]; + + if (poweroff_handler_data.handler) { + lookup_symbol_name((unsigned

[PATCH V3] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-10-09 Thread Anshuman Khandual
This patch enables support for hardware instruction breakpoints on POWER8 with the help of a new register CIABR (Completed Instruction Address Breakpoint Register). With this patch, single hardware instruction breakpoint can be added and cleared during any active xmon debug session. This hardware

Re: [PATCH 03/44] hibernate: Call have_kernel_poweroff instead of checking pm_power_off

2014-10-09 Thread Guenter Roeck
On 10/09/2014 03:32 AM, Pavel Machek wrote: On Mon 2014-10-06 22:28:05, Guenter Roeck wrote: Poweroff handlers may now be installed with register_poweroff_handler. Use the new API function have_kernel_poweroff to determine if a poweroff handler has been installed. Cc: Rafael J. Wysocki

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Guenter Roeck
On 10/09/2014 03:49 AM, Lee Jones wrote: On Thu, 09 Oct 2014, Catalin Marinas wrote: On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck wrote: --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -6,6 +6,7 @@ [...] +static

Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-09 Thread Guenter Roeck
On 10/09/2014 04:31 AM, Geert Uytterhoeven wrote: On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck li...@roeck-us.net wrote: +int register_poweroff_handler_simple(void (*handler)(void), int priority) +{ + char symname[KSYM_NAME_LEN]; + + if (poweroff_handler_data.handler) { +

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Lee Jones
On Thu, 09 Oct 2014, Guenter Roeck wrote: On 10/09/2014 03:49 AM, Lee Jones wrote: On Thu, 09 Oct 2014, Catalin Marinas wrote: On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck wrote: --- a/drivers/mfd/ab8500-sysctrl.c +++

[PATCH] net: fs_enet: error: 'SCCE_ENET_TXF' undeclared

2014-10-09 Thread Christophe Leroy
[linux-devel:devel-hourly-2014100909 3763/3915] drivers/net/ethernet/freescale/fs_enet/mac-scc.c:119:32: error: 'SCCE_ENET_TXF' undeclared Due to patch d43a396 net: fs_enet: Add NAPI TX, it appears that some target compilations are broken. This is due to the fact that unlike the FEC, the SCC

Re: [PATCH v4 01/16] powerpc/cell: Move spu_handle_mm_fault() out of cell platform

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com Currently spu_handle_mm_fault() is in the cell platform. This code is generically useful for other non-cell co-processors on powerpc. This patch moves this function out of the cell platform into arch/powerpc/mm

Re: [PATCH v4 02/16] powerpc/cell: Move data segment faulting code out of cell platform

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com __spu_trap_data_seg() currently contains code to determine the VSID and ESID required for a particular EA and mm struct. This code is generically useful for other co-processors. This moves the code of the cell

Re: [PATCH v4 03/16] powerpc/cell: Make spu_flush_all_slbs() generic

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com This moves spu_flush_all_slbs() into a generic call copro_flush_all_slbs(). This will be useful when we add cxl which also needs a similar SLB flush call. Reviewed-by: Aneesh Kumar K.V

Re: [PATCH v4 05/16] powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com Export mmu_kernel_ssize and mmu_linear_psize. These are needed by the cxl driver which has it's own MMU. To setup the MMU cxl needs access to these. Reviewed-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com

Re: [PATCH v4 11/16] powerpc/mm: Add hooks for cxl

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com This adds hooks into the core powerpc mm code for cxl. The core powerpc code sometimes uses local tlbie. Unfortunately this won't work with the current cxl driver as it relies on snooping tlbie broadcasts. The

Re: [PATCH v4 09/16] powerpc/mm: Add new hash_page_mm()

2014-10-09 Thread Aneesh Kumar K.V
Michael Neuling mi...@neuling.org writes: From: Ian Munsie imun...@au1.ibm.com This adds a new function hash_page_mm() based on the existing hash_page(). This version allows any struct mm to be passed in, rather than assuming current. This is useful for servicing co-processor faults which

Re: [PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-09 Thread Guenter Roeck
On Thu, Oct 09, 2014 at 12:31:43PM +0200, Pavel Machek wrote: Hi! +/** + * register_poweroff_handler_simple - Register function to be called to power off + *the system + * @handler: Function to be called to power off the system + *

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Guenter Roeck
On Thu, Oct 09, 2014 at 02:33:55PM +0100, Lee Jones wrote: On Thu, 09 Oct 2014, Guenter Roeck wrote: On 10/09/2014 03:49 AM, Lee Jones wrote: On Thu, 09 Oct 2014, Catalin Marinas wrote: On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck

Re: [PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-09 Thread Guenter Roeck
On Thu, Oct 09, 2014 at 11:49:27AM +0100, Lee Jones wrote: On Thu, 09 Oct 2014, Catalin Marinas wrote: On Tue, Oct 07, 2014 at 09:00:48AM +0100, Lee Jones wrote: On Mon, 06 Oct 2014, Guenter Roeck wrote: --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@

Re: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-09 Thread Pavel Machek
Hi! @@ -184,6 +179,8 @@ machine_halt(void) void machine_power_off(void) { + do_kernel_poweroff(); + poweroff - power_off for consistency. Dunno; matter of personal preference. I started with that, but ultimately went with poweroff to distinguish poweroff handler functions

[PATCH v2] powerpc/numa: add ability to disable and debug topology updates

2014-10-09 Thread Nishanth Aravamudan
We have hit a few customer issues with the topology update code (VPHN and PRRN). It would be nice to be able to debug the notifications coming from the hypervisor in both cases to the LPAR, as well as to disable responding to the notifications at boot-time, to narrow down the source of the

[PATCH] powerpc/numa: check error return from proc_create

2014-10-09 Thread Nishanth Aravamudan
proc_create can fail, we should check the return value and pass up the failure. Suggested-by: Michael Ellerman m...@ellerman.id.au Signed-off-by: Nishanth Aravamudan n...@linux.vnet.ibm.com diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index d7737a542fd7..e28c21ba862d 100644 ---

Re: [v2] powerpc/numa: add ability to disable and debug topology updates

2014-10-09 Thread Michael Ellerman
On Thu, 2014-09-10 at 23:42:15 UTC, Nishanth Aravamudan wrote: We have hit a few customer issues with the topology update code (VPHN and PRRN). It would be nice to be able to debug the notifications coming from the hypervisor in both cases to the LPAR, as well as to disable responding to the

Re: [PATCH] net: fs_enet: error: 'SCCE_ENET_TXF' undeclared

2014-10-09 Thread David Miller
From: Christophe Leroy christophe.le...@c-s.fr Date: Thu, 9 Oct 2014 16:54:43 +0200 (CEST) [linux-devel:devel-hourly-2014100909 3763/3915] drivers/net/ethernet/freescale/fs_enet/mac-scc.c:119:32: error: 'SCCE_ENET_TXF' undeclared Due to patch d43a396 net: fs_enet: Add NAPI TX, it appears

[PATCH] powerpc: Fix Text randomization

2014-10-09 Thread Vineeth Vijayan
Right now there is no way to disable TEXT randomization on a PPC32 machine. text randomization happens even in the case of echo 0 /proc/sys/kernel/randomize_va_space This happens due to the incorrect definition of ELF_ET_DYN_BASE at arch/powerpc/include/asm/elf.h Signed-off-by: Vineeth Vijayan

[PATCH] powerpc: Wire up sys_bpf() syscall

2014-10-09 Thread Pranith Kumar
This patch wires up the new syscall sys_bpf() on powerpc. Signed-off-by: Pranith Kumar bobby.pr...@gmail.com --- arch/powerpc/include/asm/systbl.h | 1 + arch/powerpc/include/asm/unistd.h | 2 +- arch/powerpc/include/uapi/asm/unistd.h | 1 + 3 files changed, 3 insertions(+), 1