Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-10-07 Thread Benjamin Herrenschmidt
On Tue, 2014-10-07 at 19:47 -0400, Alex Deucher wrote: > > This moves the setting of the quirk flag to the audio driver. > > > > While recent ASICs have that problem fixed, they don't seem to > > be listed in the PCI IDs of the current driver, so let's quirk all > > the ATI HDMI for now. The conseq

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-10-07 Thread Alex Deucher
On Wed, Oct 8, 2014 at 1:28 AM, Benjamin Herrenschmidt wrote: > On Tue, 2014-10-07 at 19:47 -0400, Alex Deucher wrote: >> > This moves the setting of the quirk flag to the audio driver. >> > >> > While recent ASICs have that problem fixed, they don't seem to >> > be listed in the PCI IDs of the cu

RE: [PATCH] powerpc: mitigate impact of decrementer reset

2014-10-07 Thread Heinz Wrobel
Paul, what if your tb wraps during the test? > -Original Message- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+heinz.wrobel=freescale@lists.ozlabs.org] On Behalf Of Paul > Clarke > Sent: Tuesday, October 07, 2014 21:13 > To: linuxppc-dev@lists.ozlabs.org > Subject: [PATCH] po

Re: [v3,16/16] cxl: Add documentation for userspace APIs

2014-10-07 Thread Michael Ellerman
On Tue, 2014-07-10 at 10:48:22 UTC, Michael Neuling wrote: > From: Ian Munsie > > This documentation gives an overview of the hardware architecture, userspace > APIs via /dev/cxl/afu0.0 and the syfs files. It also adds a MAINTAINERS file Elsewhere you talk about /dev/cxl/afuM.N, please be consis

Re: [RFC PATCH v3 1/3] powerpc: Fix warning reported by verify_cpu_node_mapping()

2014-10-07 Thread Li Zhong
On 二, 2014-10-07 at 08:33 -0700, Nishanth Aravamudan wrote: > On 07.10.2014 [17:28:38 +1100], Michael Ellerman wrote: > > On Fri, 2014-10-03 at 16:26 -0700, Nishanth Aravamudan wrote: > > > On 03.10.2014 [10:50:20 +1000], Michael Ellerman wrote: > > > > On Thu, 2014-10-02 at 14:13 -0700, Nishanth A

Re: [PATCH tty-next 14/22] tty: Remove tty_wait_until_sent_from_close()

2014-10-07 Thread Peter Hurley
On 06/17/2014 07:03 AM, David Laight wrote: > From: Peter Hurley > ... >>> I don't understand the second half of the changelog, it doesn't seem >>> to fit here: there deadlock that we are trying to avoid here happens >>> when the *same* tty needs the lock to complete the function that >>> sends the

RE: [PATCH] powerpc/fsl: Add support for pci(e) machine check exception on E500MC / E5500

2014-10-07 Thread Hongtao Jia
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, October 01, 2014 8:44 AM > To: Guenter Roeck > Cc: Jojy Varghese; Benjamin Herrenschmidt; Paul Mackerras; Michael > Ellerman; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; > Guenter Roeck; Jia Hongtao-B38951

RE: [PATCH] powerpc/fsl: Add support for pci(e) machine check exception on E500MC / E5500

2014-10-07 Thread Hongtao Jia
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 30, 2014 2:36 AM > To: Guenter Roeck > Cc: Benjamin Herrenschmidt; Paul Mackerras; Michael Ellerman; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org; Jojy G Varghese; > Guenter Roeck; Jia Hongtao-B38

RE: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support

2014-10-07 Thread Yuantian Tang
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 30, 2014 7:58 AM > To: Tang Yuantian-B29983 > Cc: Mike Turquette; linuxppc-dev@lists.ozlabs.org; > linux-ker...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; Lu Jingchang-B35083 > Subject: Re: [PATCHv4] cl

Re: powerpc: mitigate impact of decrementer reset

2014-10-07 Thread Michael Ellerman
On Tue, 2014-07-10 at 19:13:24 UTC, Paul Clarke wrote: > The POWER ISA defines an always-running decrementer which can be used > to schedule interrupts after a certain time interval has elapsed. > The decrementer counts down at the same frequency as the Time Base, > which is 512 MHz. The maximum v

Re: [v3, 08/16] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-10-07 Thread Michael Neuling
On Wed, 2014-10-08 at 09:59 +1100, Michael Ellerman wrote: > On Tue, 2014-07-10 at 10:48:14 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > This adds a number of functions for allocating IRQs under powernv PCIe for > > cxl. > > > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c

Re: [v3,12/16] cxl: Add base builtin support

2014-10-07 Thread Michael Neuling
On Wed, 2014-10-08 at 10:04 +1100, Michael Ellerman wrote: > On Tue, 2014-07-10 at 10:48:18 UTC, Michael Neuling wrote: > > From: Ian Munsie > > > > This adds the base cxl support that needs to be build into the kernel to use > > cxl as a module. This is needed so that the cxl call backs from the

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-10-07 Thread Alex Deucher
On Tue, Oct 7, 2014 at 7:49 PM, Benjamin Herrenschmidt wrote: > On Tue, 2014-10-07 at 19:47 -0400, Alex Deucher wrote: >> > While recent ASICs have that problem fixed, they don't seem to >> > be listed in the PCI IDs of the current driver, so let's quirk all >> > the ATI HDMI for now. The conseque

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

2014-10-07 Thread Rafael J. Wysocki
On Monday, October 06, 2014 10:28:10 PM Guenter Roeck wrote: > pm_power_off is defined for all architectures. Move it to common code. > > Have all architectures call do_kernel_poweroff instead of pm_power_off. > Some architectures point pm_power_off to machine_power_off. For those, > call do_kerne

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-10-07 Thread Benjamin Herrenschmidt
On Tue, 2014-10-07 at 19:47 -0400, Alex Deucher wrote: > > While recent ASICs have that problem fixed, they don't seem to > > be listed in the PCI IDs of the current driver, so let's quirk all > > the ATI HDMI for now. The consequences are nil on x86 anyway. > > > > Signed-off-by: Alex Deucher > >

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-10-07 Thread Alex Deucher
On Tue, Oct 7, 2014 at 12:38 AM, Benjamin Herrenschmidt wrote: > From: Signed-off-by: Alex Deucher > > A number of radeon cards have a HW limitation causing them to be > unable to generate the full 64-bit of address bits for MSIs. This > breaks MSIs on some platforms such as POWER machines. > > W

Re: [PATCH 44/44] kernel: Remove pm_power_off

2014-10-07 Thread Rafael J. Wysocki
On Monday, October 06, 2014 10:28:46 PM Guenter Roeck wrote: > No users of pm_power_off are left, so it is safe to remove the function. > > Cc: Rafael J. Wysocki > Cc: Pavel Machek > Cc: Len Brown > Signed-off-by: Guenter Roeck ACK > --- > include/linux/pm.h | 1 - > kernel/po

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

2014-10-07 Thread Rafael J. Wysocki
On Monday, October 06, 2014 10:28:05 PM 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 > Cc: Pavel Machek > Cc: Len Br

Re: [v3,12/16] cxl: Add base builtin support

2014-10-07 Thread Michael Ellerman
On Tue, 2014-07-10 at 10:48:18 UTC, Michael Neuling wrote: > From: Ian Munsie > > This adds the base cxl support that needs to be build into the kernel to use > cxl as a module. This is needed so that the cxl call backs from the core > powerpc mm code always exist irrespective of if the cxl modul

Re: [v3, 08/16] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-10-07 Thread Michael Ellerman
On Tue, 2014-07-10 at 10:48:14 UTC, Michael Neuling wrote: > From: Ian Munsie > > This adds a number of functions for allocating IRQs under powernv PCIe for > cxl. > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c > b/arch/powerpc/platforms/powernv/pci-ioda.c > index baf3de6..3b67010b

Re: [PATCH V3 4/5] kexec: Add IND_FLAGS macro

2014-10-07 Thread Geoff Levand
Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of all the possible kexec IND_ kimage_entry indirection flags. Having this macro allows for simplified code in the prosessing of the kexec kimage_entry items. Also, remove the local powerpc definition and use the generic one.

[PATCH] powerpc: mitigate impact of decrementer reset

2014-10-07 Thread Paul Clarke
The POWER ISA defines an always-running decrementer which can be used to schedule interrupts after a certain time interval has elapsed. The decrementer counts down at the same frequency as the Time Base, which is 512 MHz. The maximum value of the decrementer is 0x7fff. This works out to a max

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-07 Thread Guenter Roeck
On Tue, Oct 07, 2014 at 07:47:35PM +0200, Alexander Graf wrote: > > > On 07.10.14 19:00, Guenter Roeck wrote: > > On Tue, Oct 07, 2014 at 01:35:07PM +0200, Alexander Graf wrote: > >> > >> > >> On 07.10.14 08:25, Michael Ellerman wrote: > >>> On Mon, 2014-10-06 at 12:00 +0200, Alexander Graf wrote

Re: [PATCH V25/5] powerpc/kexec: Use global IND_FLAGS macro

2014-10-07 Thread Vivek Goyal
On Tue, Oct 07, 2014 at 12:21:30AM +, Geoff Levand wrote: > linux/kexec.h now defines an IND_FLAGS macro. Remove the local powerpc > definition and use the generic one. > > Signed-off-by: Geoff Levand I think this patch should be merged in previous patch. I guess after applying patch4, seri

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-07 Thread Alexander Graf
On 07.10.14 19:00, Guenter Roeck wrote: > On Tue, Oct 07, 2014 at 01:35:07PM +0200, Alexander Graf wrote: >> >> >> On 07.10.14 08:25, Michael Ellerman wrote: >>> On Mon, 2014-10-06 at 12:00 +0200, Alexander Graf wrote: On 03.10.14 06:42, Michael Ellerman wrote: > On Wed, 2014-10-01

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Rob Landley
On 10/07/14 11:59, David Daney wrote: > On 10/07/2014 09:31 AM, Guenter Roeck wrote: >> On Tue, Oct 07, 2014 at 11:21:11AM -0500, Rob Landley wrote: >>> On 10/07/14 00:28, Guenter Roeck wrote: Devicetree bindings are supposed to be operating system independent and should thus not describe

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-07 Thread Guenter Roeck
On Tue, Oct 07, 2014 at 01:35:07PM +0200, Alexander Graf wrote: > > > On 07.10.14 08:25, Michael Ellerman wrote: > > On Mon, 2014-10-06 at 12:00 +0200, Alexander Graf wrote: > >> > >> On 03.10.14 06:42, Michael Ellerman wrote: > >>> On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: >

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread David Daney
On 10/07/2014 09:31 AM, Guenter Roeck wrote: On Tue, Oct 07, 2014 at 11:21:11AM -0500, Rob Landley wrote: On 10/07/14 00:28, Guenter Roeck wrote: Devicetree bindings are supposed to be operating system independent and should thus not describe how a specific functionality is implemented in Linux

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Mark Rutland
On Tue, Oct 07, 2014 at 05:21:11PM +0100, Rob Landley wrote: > On 10/07/14 00:28, Guenter Roeck wrote: > > Devicetree bindings are supposed to be operating system independent > > and should thus not describe how a specific functionality is implemented > > in Linux. > > So your argument is that lin

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Guenter Roeck
On Tue, Oct 07, 2014 at 11:21:11AM -0500, Rob Landley wrote: > On 10/07/14 00:28, Guenter Roeck wrote: > > Devicetree bindings are supposed to be operating system independent > > and should thus not describe how a specific functionality is implemented > > in Linux. > > So your argument is that lin

Re: [PATCH 29/44] staging: nvec: Register with kernel poweroff handler

2014-10-07 Thread Greg Kroah-Hartman
On Mon, Oct 06, 2014 at 10:28:31PM -0700, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with default priority value of 128 since we don't know > any better. > > Cc: Julian Andres Klode > Cc: Marc Dietrich > Cc: Greg Kroah-Hartma

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Rob Landley
On 10/07/14 00:28, Guenter Roeck wrote: > Devicetree bindings are supposed to be operating system independent > and should thus not describe how a specific functionality is implemented > in Linux. So your argument is that linux/Documentation/devicetree/bindings should not be specific to Linux. Mer

Re: [PATCH 07/44] qnap-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Andrew Lunn
On Mon, Oct 06, 2014 at 10:28:09PM -0700, Guenter Roeck wrote: > Replace reference to pm_power_off (which is an implementation detail) > and replace it with a more generic description of the driver's functionality. Acked-by: Andrew Lunn Thanks Andrew > > Cc: Rob Herring > Cc: Pawel Mo

Re: [PATCH 06/44] gpio-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Andrew Lunn
On Mon, Oct 06, 2014 at 10:28:08PM -0700, Guenter Roeck wrote: > pm_power_off is an implementation detail. Replace it with a more generic > description of the driver's functionality. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Signed-off-by: Guenter Roeck Acked-by: Andrew Lunn

Re: [PATCH 20/44] power/reset: restart-poweroff: Register with kernel poweroff handler

2014-10-07 Thread Andrew Lunn
On Mon, Oct 06, 2014 at 10:28:22PM -0700, Guenter Roeck wrote: > Register with kernel poweroff handler instead of seting pm_power_off > directly. Register as poweroff handler of last resort since the driver > does not really power off the system but executes a restart. I would not say last resort

Re: [PATCH 23/44] power/reset: qnap-poweroff: Register with kernel poweroff handler

2014-10-07 Thread Andrew Lunn
On Mon, Oct 06, 2014 at 10:28:25PM -0700, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with default priority value of 128 to reflect that > the original code generates an error if another poweroff handler has > already been regist

Re: [PATCH 21/44] power/reset: gpio-poweroff: Register with kernel poweroff handler

2014-10-07 Thread Andrew Lunn
On Mon, Oct 06, 2014 at 10:28:23PM -0700, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with a low priority value of 64 to reflect that > the original code only sets pm_power_off if it was not already set. > > Other changes: > >

Re: [PATCH 07/44] qnap-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Guenter Roeck
On Tue, Oct 07, 2014 at 12:02:19PM +0100, Mark Rutland wrote: > On Tue, Oct 07, 2014 at 06:28:09AM +0100, Guenter Roeck wrote: > > Replace reference to pm_power_off (which is an implementation detail) > > and replace it with a more generic description of the driver's > > functionality. > > > > Cc

Re: [RFC PATCH v3 1/3] powerpc: Fix warning reported by verify_cpu_node_mapping()

2014-10-07 Thread Nishanth Aravamudan
On 07.10.2014 [17:28:38 +1100], Michael Ellerman wrote: > On Fri, 2014-10-03 at 16:26 -0700, Nishanth Aravamudan wrote: > > On 03.10.2014 [10:50:20 +1000], Michael Ellerman wrote: > > > On Thu, 2014-10-02 at 14:13 -0700, Nishanth Aravamudan wrote: > > > > Ben & Michael, > > > > > > > > What's the

[PATCH] mpc85xx: dts: Remove SPI and NAND partition from bsc9131rdb.dtsi

2014-10-07 Thread Ashish Kumar
* Run "mtdparts default" on u-boot to create dynamic partitions * Or use dynamic mtd partition with the help of bootargs in u-boot Append bootargs with: "mtdparts=ff80.flash:1m(nand_uboot),512K(nand_dtb),8m(nand_kernel),-(fs);\ spiff707000.0:1m(spi_uboot),4m(spi_kernel),512k(spi_

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

2014-10-07 Thread Richard Weinberger
Am 07.10.2014 07:28, schrieb Guenter Roeck: > arch/um/kernel/reboot.c| 2 -- Acked-by: Richard Weinberger Thanks, //richard ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 2/2] net: fs_enet: Add NAPI TX

2014-10-07 Thread Christophe Leroy
When using a MPC8xx as a router, 'perf' shows a significant time spent in fs_enet_interrupt() and fs_enet_start_xmit(). 'perf annotate' shows that the time spent in fs_enet_start_xmit is indeed spent between spin_unlock_irqrestore() and the following instruction, hence in interrupt handling. This

[PATCH 1/2] net: fs_enet: Remove non NAPI RX

2014-10-07 Thread Christophe Leroy
In the probe function, use_napi is inconditionnaly set to 1. This patch removes all the code which is conditional to !use_napi, and removes use_napi which has then become useless. Signed-off-by: Christophe Leroy --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 164 ++---

[PATCH 0/2] net: fs_enet: Remove non NAPI RX and add NAPI for TX

2014-10-07 Thread Christophe Leroy
When using a MPC8xx as a router, 'perf' shows a significant time spent in fs_enet_interrupt() and fs_enet_start_xmit(). 'perf annotate' shows that the time spent in fs_enet_start_xmit is indeed spent between spin_unlock_irqrestore() and the following instruction, hence in interrupt handling. This

Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-10-07 Thread Anshuman Khandual
On 07/24/2014 12:22 PM, Sam Bobroff wrote: >> Outstanding Issues >> == >> (1) Running DSCR register value inside a transaction does not seem to be >> saved >> at thread.dscr when the process stops for ptrace examination. > > Since this is fixed by 96d016108640bc2b7fb0ee800737f

Re: [PATCH] powerpc: fix sys_call_table declaration

2014-10-07 Thread Michael Ellerman
On Fri, 2014-10-03 at 11:00 +0100, Romeo Cane wrote: > On Fri, Oct 03, 2014 at 07:34:34AM +1000, Benjamin Herrenschmidt wrote: > > On Thu, 2014-10-02 at 15:41 +0100, Romeo Cane wrote: > > > Declaring sys_call_table as a pointer causes the compiler to generate the > > > wrong lookup code in arch_sy

Re: [PATCH 00/20] powerpc: Convert power off logic to pm_power_off

2014-10-07 Thread Alexander Graf
On 07.10.14 08:25, Michael Ellerman wrote: > On Mon, 2014-10-06 at 12:00 +0200, Alexander Graf wrote: >> >> On 03.10.14 06:42, Michael Ellerman wrote: >>> On Wed, 2014-10-01 at 15:27 +0200, Alexander Graf wrote: The generic Linux framework to power off the machine is a function pointer

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

2014-10-07 Thread Michael Neuling
> > +int copro_data_segment(struct mm_struct *mm, u64 ea, u64 *esid, u64 *vsid); > > This function is otherwise not included in this patch, so it should > probably be removed (as the next patch removes it anyway). Yeah, looks like I screwed it up slightly in the packing of these patches. Thanks

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

2014-10-07 Thread Stephen Rothwell
Hi Mikey, On Tue, 7 Oct 2014 21:48:07 +1100 Michael Neuling wrote: > > diff --git a/arch/powerpc/include/asm/copro.h > b/arch/powerpc/include/asm/copro.h > new file mode 100644 > index 000..2858108 > --- /dev/null > +++ b/arch/powerpc/include/asm/copro.h > @@ -0,0 +1,18 @@ > +/* > + * Copyr

Re: [PATCH 06/44] gpio-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Mark Rutland
On Tue, Oct 07, 2014 at 06:28:08AM +0100, Guenter Roeck wrote: > pm_power_off is an implementation detail. Replace it with a more generic > description of the driver's functionality. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland Acked-by: Mark Rutland > Signed-off-by: Guenter Roeck

Re: [PATCH 07/44] qnap-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Mark Rutland
On Tue, Oct 07, 2014 at 06:28:09AM +0100, Guenter Roeck wrote: > Replace reference to pm_power_off (which is an implementation detail) > and replace it with a more generic description of the driver's functionality. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Signed-off-by: Guenter

Re: [PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-07 Thread Mark Rutland
On Tue, Oct 07, 2014 at 06:28:07AM +0100, Guenter Roeck wrote: > Devicetree bindings are supposed to be operating system independent > and should thus not describe how a specific functionality is implemented > in Linux. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Signed-off-by: Gu

[PATCH v3 16/16] cxl: Add documentation for userspace APIs

2014-10-07 Thread Michael Neuling
From: Ian Munsie This documentation gives an overview of the hardware architecture, userspace APIs via /dev/cxl/afu0.0 and the syfs files. It also adds a MAINTAINERS file entry for cxl. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- Documentation/ABI/testing/sysfs-class-cxl | 14

[PATCH v3 15/16] cxl: Add driver to Kbuild and Makefiles

2014-10-07 Thread Michael Neuling
From: Ian Munsie Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- drivers/misc/cxl/Kconfig | 10 ++ drivers/misc/cxl/Makefile | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/misc/cxl/Kconfig b/drivers/misc/cxl/Kconfig index 5cdd319..585d6e3 100644 --- a/dr

[PATCH v3 14/16] cxl: Userspace header file.

2014-10-07 Thread Michael Neuling
From: Ian Munsie This defines structs and magic numbers required for userspace to interact with the kernel cxl driver via /dev/cxl/afu0.0. It adds this header file Kbuild so it's exported when doing make headers_installs. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- include/u

[PATCH v3 12/16] cxl: Add base builtin support

2014-10-07 Thread Michael Neuling
From: Ian Munsie This adds the base cxl support that needs to be build into the kernel to use cxl as a module. This is needed so that the cxl call backs from the core powerpc mm code always exist irrespective of if the cxl module is loaded or not. This is similar to how cell works with CONFIG_SPU

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie This add a hook into tlbie() so that we use global invalidations when there are cxl contexts active. Normally cxl snoops broadcast tlbie. cxl can have TLB entries invalidated via MMIO, but we aren't doing that yet. So for now we are just disabling local tlbies when cxl contexts

[PATCH v3 10/16] powerpc/opal: Add PHB to cxl mode call

2014-10-07 Thread Michael Neuling
From: Ian Munsie This adds the OPAL call to change a PHB into cxl mode. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files changed, 3 insertions(+) diff --git a/arch

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie 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 are not in the context of the current running process. We need to be

[PATCH v3 08/16] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-10-07 Thread Michael Neuling
From: Ian Munsie This adds a number of functions for allocating IRQs under powernv PCIe for cxl. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pnv-pci.h| 27 ++ arch/powerpc/platforms/powernv/pci-ioda.c | 153 ++

[PATCH v3 07/16] cxl: Add new header for call backs and structs

2014-10-07 Thread Michael Neuling
From: Ian Munsie This new header adds callbacks and structs needed by the rest of the kernel to hook into the cxl infrastructure. cxl_ctx_get/put/in_use are static inlined here as they are called in tlbie which we want to be fast (mpe's suggestion). Empty functions are provided when CONFIG_CXL_

[PATCH v3 06/16] powerpc/powernv: Split out set MSI IRQ chip code

2014-10-07 Thread Michael Neuling
From: Ian Munsie Some of the MSI IRQ code in pnv_pci_ioda_msi_setup() is generically useful so split it out. This will be used by some of the cxl PCIe code later. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/pci-ioda.c | 42 ++---

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie 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 need access to these. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/mm/hash_utils_64.c | 2 ++ 1 file changed, 2 inserti

[PATCH v3 04/16] powerpc/msi: Improve IRQ bitmap allocator

2014-10-07 Thread Michael Neuling
From: Ian Munsie Currently msi_bitmap_alloc_hwirqs() will round up any IRQ allocation requests to the nearest power of 2. eg. ask for 5 IRQs and you'll get 8. This wastes a lot of IRQs which can be a scarce resource. For cxl we may require multiple IRQs for every context that is attached to the

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie 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. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/copro.h | 6 ++ arch/powerpc/

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie __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 platform so it can be used by other powerpc code. It also adds 1TB se

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

2014-10-07 Thread Michael Neuling
From: Ian Munsie 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 so that others may use it. Signed-off-by: Ian Munsie Signed-off-b

[PATCH v3 0/16] POWER8 Coherent Accelerator device driver

2014-10-07 Thread Michael Neuling
This is the latest version of the cxl driver. Change log below: v3: - Updates based on comments from mpe, benh, aneesh and offline reviews. - Fixed bug freeing AFU IRQs that also freed the multiplexed PSL IRQ - Change copro_flush_all_slbs to a static inline as suggested by mpe - Implement san

[PATCH] powerpc/book3s: Don't clear MSR_RI in hmi handler.

2014-10-07 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar In HMI interrupt handler we don't touch SRR0/SRR1, instead we touch HSRR0/HSRR1. Hence we don't need to clear MSR_RI bit. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/kernel/exceptions-64s.S |5 - 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/ke

Re: [PATCH v2 3/5] powerpc/powernv: Add winkle infrastructure

2014-10-07 Thread Shreyas B Prabhu
On Tuesday 07 October 2014 11:03 AM, Benjamin Herrenschmidt wrote: > On Wed, 2014-10-01 at 13:16 +0530, Shreyas B. Prabhu wrote: >> Winkle causes power to be gated off to the entire chiplet. Hence the >> hypervisor/firmware state in the entire chiplet is lost. >> >> This patch adds necessary infr

Re: [v2] powerpc/vphn: fix endian issue in NUMA device node code

2014-10-07 Thread Michael Ellerman
On Fri, 2014-03-10 at 09:13:17 UTC, Greg Kurz wrote: > The associativity domain numbers are obtained from the hypervisor through > registers and written into memory by the guest: the packed array passed to > vphn_unpack_associativity() is then native-endian, unlike what was assumed > in the followi

Re: [PATCH 35/44] m68k: Register with kernel poweroff handler

2014-10-07 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. > > Cc: Geert Uytterhoeven > Cc: Joshua Thompson > Signed-off-by: Guenter Roeck As someone already mentioned, having #defines instead of hardcoded numbers fo

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

2014-10-07 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck wrote: > pm_power_off is defined for all architectures. Move it to common code. > > Have all architectures call do_kernel_poweroff instead of pm_power_off. > Some architectures point pm_power_off to machine_power_off. For those, > call do_kernel_powero

Re: [PATCH 04/44] m68k: Replace mach_power_off with pm_power_off

2014-10-07 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck wrote: > Replace mach_power_off with pm_power_off to simplify the subsequent > move of pm_power_off to generic code. Thanks! > Cc: Geert Uytterhoeven > Cc: Greg Ungerer > Cc: Joshua Thompson > Signed-off-by: Guenter Roeck Looks OK, so since you

[PATCH] powerpc/book3s: Fix an issue where guest is paused on receiving HMI.

2014-10-07 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar When we get an HMI while in guest enter/exit path, we see that guest enters into paused state. The reason is, in kvmppc_handle_exit_hv it falls through default path and returns to host instead of resuming guest. This causes guest to enter into paused state. HMI is hypervi

Re: [PATCH 31/44] arm: Register with kernel poweroff handler

2014-10-07 Thread Nicolas Ferre
On 07/10/2014 07:28, Guenter Roeck : > Register with kernel poweroff handler instead of setting pm_power_off > directly. Always use register_poweroff_handler_simple as there is no > indication that more than one poweroff handler is registered. > > If the poweroff handler only resets the system or

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

2014-10-07 Thread Lee Jones
On Mon, 06 Oct 2014, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with a low priority value of 64 to reflect that > the original code only sets pm_power_off if it was not already set. > > Cc: Linus Walleij > Cc: Lee Jones > Cc

Re: [PATCH 18/44] mfd: twl4030-power: Register with kernel poweroff handler

2014-10-07 Thread Lee Jones
On Mon, 06 Oct 2014, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with a low priority value of 64 to reflect that > the original code only sets pm_power_off if it was not already set. > > Make twl4030_power_off static as it is o

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

2014-10-07 Thread Philippe Rétornaz
Hello This seems exactly what I would need on the mc13783 to handle cleanly the poweroff, but after reading this patchset I have the following question: [...] +/* + * Notifier list for kernel code which wants to be called + * to power off the system. + */ +static ATOMIC_NOTIFIER_HEAD