Re: [PATCH 1/2] powerpc/ftrace: Separate the heuristics for checking call sites

2016-07-18 Thread Madhavan Srinivasan
On Tuesday 19 July 2016 10:18 AM, Michael Ellerman wrote: In __ftrace_make_nop() (the 64-bit version), we have code to deal with two ftrace ABIs. There is the original ABI, which looks mostly like a function call, and then the mprofile-kernel ABI which is just a branch. The code tries to

[PATCH 2/2] powerpc/modules: Never restore r2 for a mprofile-kernel style mcount() call

2016-07-18 Thread Michael Ellerman
In the module loader we process relocations, and for long jumps we generate trampolines (aka stubs). At the call site for one of these trampolines we usually need to generate a load instruction to restore the TOC pointer into r2. There is one exception however, which is calls to mcount() using

[PATCH 1/2] powerpc/ftrace: Separate the heuristics for checking call sites

2016-07-18 Thread Michael Ellerman
In __ftrace_make_nop() (the 64-bit version), we have code to deal with two ftrace ABIs. There is the original ABI, which looks mostly like a function call, and then the mprofile-kernel ABI which is just a branch. The code tries to handle both cases, by looking for the presence of a load to

[PATCH V2 2/2] crypto: vmx - Convert to CPU feature based module autoloading

2016-07-18 Thread alastair
From: Alastair D'Silva This patch utilises the GENERIC_CPU_AUTOPROBE infrastructure to automatically load the vmx_crypto module if the CPU supports it. Signed-off-by: Alastair D'Silva --- drivers/crypto/vmx/Kconfig | 2 +- drivers/crypto/vmx/vmx.c

[PATCH V2 1/2] powerpc: Add module autoloading based on CPU features

2016-07-18 Thread alastair
From: Alastair D'Silva This patch provides the necessary infrastructure to allow drivers to be automatically loaded via UDEV. It implements the minimum required to be able to use module_cpu_feature_match to trigger the GENERIC_CPU_AUTOPROBE mechanisms. The features exposed

[PATCH V2 0/2] Automatically load the vmx_crypto module if supported

2016-07-18 Thread alastair
From: Alastair D'Silva This series allows the vmx_crypto module to be detected and automatically loaded via UDEV if the CPU supports the vector crypto feature. Alastair D'Silva (2): powerpc: Add module autoloading based on CPU features crypto: vmx - Convert to CPU

Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported

2016-07-18 Thread Herbert Xu
On Tue, Jul 19, 2016 at 11:01:55AM +1000, Michael Ellerman wrote: > > Can you please ask for an ack before merging arch patches? > > That's a 70 line powerpc patch and a 6 line crypto patch. It has no > reviews and no acks. I would have preferred it if we could take it via > the powerpc tree.

Re: [1/1] KVM: PPC: Introduce KVM_CAP_PPC_HTM

2016-07-18 Thread Sam Bobroff
On Fri, Jul 08, 2016 at 08:49:49PM +1000, Michael Ellerman wrote: > On Wed, 2016-06-07 at 06:05:54 UTC, Sam bobroff wrote: > > diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c > > index 02416fe..06d79bc 100644 > > --- a/arch/powerpc/kvm/powerpc.c > > +++

[PATCH v2] powerpc/powernv: fix pci-cxl.c build when CONFIG_MODULES=n

2016-07-18 Thread Ian Munsie
From: Ian Munsie pnv_cxl_enable_phb_kernel_api() grabs a reference to the cxl module to prevent it from being unloaded after the PHB has been switched to CX4 mode. This breaks the build when CONFIG_MODULES=n as module_mutex doesn't exist. However, if we don't have modules,

Re: [PATCH v3 02/11] mm: Hardened usercopy

2016-07-18 Thread Laura Abbott
On 07/15/2016 02:44 PM, Kees Cook wrote: This is the start of porting PAX_USERCOPY into the mainline kernel. This is the first set of features, controlled by CONFIG_HARDENED_USERCOPY. The work is based on code by PaX Team and Brad Spengler, and an earlier port from Casey Schaufler. Additional

Re: [PATCH V2 4/5] kvm/stats: Add provisioning for 64-bit vcpu statistics

2016-07-18 Thread Suraj Jitindar Singh
On 18/07/16 18:24, Paolo Bonzini wrote: > > On 18/07/2016 09:17, Christian Borntraeger wrote: >> On 07/15/2016 09:52 AM, Suraj Jitindar Singh wrote: >>> >>> On 14/07/16 19:42, Paolo Bonzini wrote: On 13/07/2016 20:00, Christian Borntraeger wrote: > I thought u64 still existed on

Re: [PATCH v3 02/11] mm: Hardened usercopy

2016-07-18 Thread Laura Abbott
On 07/15/2016 02:44 PM, Kees Cook wrote: This is the start of porting PAX_USERCOPY into the mainline kernel. This is the first set of features, controlled by CONFIG_HARDENED_USERCOPY. The work is based on code by PaX Team and Brad Spengler, and an earlier port from Casey Schaufler. Additional

Re: [PATCH 1/2] powerpc: Add module autoloading based on CPU features

2016-07-18 Thread Michael Ellerman
alast...@au1.ibm.com writes: > diff --git a/arch/powerpc/include/asm/cpufeature.h > b/arch/powerpc/include/asm/cpufeature.h > new file mode 100644 > index 000..df31627 > --- /dev/null > +++ b/arch/powerpc/include/asm/cpufeature.h > @@ -0,0 +1,70 @@ > +/* CPU feature definitions for module

linux-next: manual merge of the crypto tree with the fsl tree

2016-07-18 Thread Stephen Rothwell
Hi Herbert, Today's linux-next merge of the crypto tree got a conflict in: arch/powerpc/Kconfig between commit: c223c90386bc ("powerpc32: provide VIRT_CPU_ACCOUNTING") from the fsl tree and commit: 377ca89f0b37 ("powerpc: Add module autoloading based on CPU features") from the crypto

Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported

2016-07-18 Thread Michael Ellerman
Herbert Xu writes: > On Wed, Jul 13, 2016 at 03:47:16PM +1000, alast...@au1.ibm.com wrote: >> From: Alastair D'Silva >> >> This series allows the vmx_crypto module to be detected and automatically >> loaded via UDEV if the CPU supports the

Re: [RFC 3/3] kexec: extend kexec_file_load system call

2016-07-18 Thread Dave Young
On 07/18/16 at 11:07am, Mark Rutland wrote: > On Mon, Jul 18, 2016 at 10:30:24AM +0800, Dave Young wrote: > > On 07/15/16 at 02:19pm, Mark Rutland wrote: > > > On Fri, Jul 15, 2016 at 09:09:55AM -0400, Vivek Goyal wrote: > > > > On Tue, Jul 12, 2016 at 10:42:01AM +0900, AKASHI Takahiro wrote: > >

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-18 Thread Doug Ledford
On 7/15/2016 12:35 PM, Topi Miettinen wrote: > On 07/15/16 13:04, Balbir Singh wrote: >> On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote: >>> Hello, >>> >>> There are many basic ways to control processes, including capabilities, >>> cgroups and resource limits. However, there are

Re: [PATCH 00/14] Present useful limits to user (v2)

2016-07-18 Thread Doug Ledford
On 7/15/2016 10:19 AM, Richard Weinberger wrote: > Hi! > > Am 15.07.2016 um 12:35 schrieb Topi Miettinen: >> Hello, >> >> There are many basic ways to control processes, including capabilities, >> cgroups and resource limits. However, there are far fewer ways to find out >> useful values for the

Re: [PATCH 09/14] resource limits: track highwater mark of locked memory

2016-07-18 Thread Oleg Nesterov
On 07/15, Topi Miettinen wrote: > > On 07/15/16 15:14, Oleg Nesterov wrote: > > > > Btw this is not right. The same for the previous patch which tracks > > RLIMIT_STACK. The "current" task can debugger/etc. > > acct_stack_growth() is called from expand_upwards() and > expand_downwards(). They call

[PATCH v2 2/2] crypto: vmx - Adding support for XTS

2016-07-18 Thread Paulo Flabiano Smorigo
From: "Leonidas S. Barbosa" This patch add XTS support using VMX-crypto driver. Signed-off-by: Leonidas S. Barbosa Signed-off-by: Paulo Flabiano Smorigo --- drivers/crypto/vmx/Makefile | 2 +-

[PATCH v2 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-18 Thread Paulo Flabiano Smorigo
This patch add XTS subroutines using VMX-crypto driver. It gives a boost of 20 times using XTS. These code has been adopted from OpenSSL project in collaboration with the original author (Andy Polyakov ). Signed-off-by: Leonidas S. Barbosa

[PATCH v2 1/2] powerpc/pseries: Implemented indexed-count hotplug memory add

2016-07-18 Thread Sahil Mehta
Indexed-count add for memory hotplug guarantees that a contiguous block of lmbs beginning at a specified will be assigned (NOT that lmbs will be added). Because of Qemu's per-DIMM memory management, the addition of a contiguous block of memory currently requires a series of individual calls.

[PATCH v2 2/2] powerpc/pseries: Implemented indexed-count hotplug memory remove

2016-07-18 Thread Sahil Mehta
Indexed-count remove for memory hotplug guarantees that a contiguous block of lmbs beginning at a specified will be unassigned (NOT that lmbs will be removed). Because of Qemu's per-DIMM memory management, the removal of a contiguous block of memory currently requires a series of individual

[PATCH v2 0/2] powerpc/pseries: Implemented indexed-count hotplug memory management

2016-07-18 Thread Sahil Mehta
Indexed-count memory management allows addition and removal of contiguous lmb blocks with a single command. When compared to the series of calls previously required to manage contiguous blocks, indexed-count decreases command frequency and reduces risk of buffer overflow. Changes in v2:

[PATCH v2] powerpc/numa: Convert to hotplug state machine

2016-07-18 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. v1…v2: manual callback invocation on boot-CPU (cpuhp is not up yet and we need them all before additional CPUs are up). Signed-off-by: Sebastian Andrzej Siewior

Re: [PATCH] cxl: add option to enable -DDEBUG

2016-07-18 Thread Uma Krishnan
On 7/18/2016 5:49 AM, Michael Ellerman wrote: Andrew Donnellan writes: Developers working on AFUs and AFU drivers often find it useful to see the pr_devel() and dev_dbg() messages from cxl. Give them an easy way to enable -DDEBUG by adding a Kconfig option,

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-18 Thread Vivek Goyal
On Mon, Jul 18, 2016 at 09:26:29AM -0400, Vivek Goyal wrote: > On Mon, Jul 18, 2016 at 10:46:04PM +1000, Balbir Singh wrote: > > On Wed, 2016-07-13 at 14:22 -0400, Vivek Goyal wrote: > > > On Wed, Jul 13, 2016 at 06:40:10PM +0100, Russell King - ARM Linux wrote: > > > >  > > > > On Wed, Jul 13,

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-18 Thread Vivek Goyal
On Mon, Jul 18, 2016 at 10:46:04PM +1000, Balbir Singh wrote: > On Wed, 2016-07-13 at 14:22 -0400, Vivek Goyal wrote: > > On Wed, Jul 13, 2016 at 06:40:10PM +0100, Russell King - ARM Linux wrote: > > >  > > > On Wed, Jul 13, 2016 at 09:03:38AM -0400, Vivek Goyal wrote: > > > >  > > > > On Wed, Jul

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-18 Thread Balbir Singh
On Wed, 2016-07-13 at 14:22 -0400, Vivek Goyal wrote: > On Wed, Jul 13, 2016 at 06:40:10PM +0100, Russell King - ARM Linux wrote: > >  > > On Wed, Jul 13, 2016 at 09:03:38AM -0400, Vivek Goyal wrote: > > >  > > > On Wed, Jul 13, 2016 at 09:26:39AM +0100, Russell King - ARM Linux wrote: > > > >  >

Re: linux-next: manual merge of the kspp tree with the powerpc tree

2016-07-18 Thread Stephen Rothwell
Hi Michael, On Mon, 18 Jul 2016 21:00:05 +1000 Michael Ellerman wrote: > > Stephen Rothwell writes: > > > from the powerpc tree and commit: > > Actually that's in Scott's tree. Oops, sorry. > > Michael: time to sort these selects? > > Yeah I

Re: [PATCH 0/1] pasemi: Add fixup_device_tree function to prom_init

2016-07-18 Thread mpe
On 2016-07-18 04:40, Darren Stevens wrote: Hello All, Hi Darren, I'm currently working on some device tree patches for the AmigaOne X1000, which I hope to push into the mainline kernel, however there is currently no function for PASemi fixes, this patch introduces it. No code changes at

Re: linux-next: manual merge of the kspp tree with the powerpc tree

2016-07-18 Thread Michael Ellerman
Stephen Rothwell writes: > Hi Kees, > > Today's linux-next merge of the kspp tree got a conflict in: > > arch/powerpc/Kconfig > > between commit: > > c223c90386bc ("powerpc32: provide VIRT_CPU_ACCOUNTING") > > from the powerpc tree and commit: Actually that's in

Re: [PATCH] cxl: add option to enable -DDEBUG

2016-07-18 Thread Michael Ellerman
Andrew Donnellan writes: > Developers working on AFUs and AFU drivers often find it useful to see the > pr_devel() and dev_dbg() messages from cxl. Give them an easy way to enable > -DDEBUG by adding a Kconfig option, CONFIG_CXL_DEBUG. Another option is to use

Re: [patch] crypto: nx - off by one bug in nx_of_update_msc()

2016-07-18 Thread Herbert Xu
On Fri, Jul 15, 2016 at 02:09:13PM +0300, Dan Carpenter wrote: > The props->ap[] array is defined like this: > > struct alg_props ap[NX_MAX_FC][NX_MAX_MODE][3]; > > So we can see that if msc->fc and msc->mode are == to NX_MAX_FC or > NX_MAX_MODE then we're off by one. > > Fixes:

Re: [PATCH 0/2] Automatically load the vmx_crypto module if supported

2016-07-18 Thread Herbert Xu
On Wed, Jul 13, 2016 at 03:47:16PM +1000, alast...@au1.ibm.com wrote: > From: Alastair D'Silva > > This series allows the vmx_crypto module to be detected and automatically > loaded via UDEV if the CPU supports the vector crypto feature. > > Alastair D'Silva (2): >

Re: [RFC 3/3] kexec: extend kexec_file_load system call

2016-07-18 Thread Mark Rutland
On Mon, Jul 18, 2016 at 10:30:24AM +0800, Dave Young wrote: > On 07/15/16 at 02:19pm, Mark Rutland wrote: > > On Fri, Jul 15, 2016 at 09:09:55AM -0400, Vivek Goyal wrote: > > > On Tue, Jul 12, 2016 at 10:42:01AM +0900, AKASHI Takahiro wrote: > > > > > > [..] > > > >

Re: [PATCH v3 00/11] mm: Hardened usercopy

2016-07-18 Thread Balbir Singh
On Fri, 2016-07-15 at 14:44 -0700, Kees Cook wrote: > Hi, >  > [I'm going to carry this series in my kspp -next tree now, though I'd > really love to have some explicit Acked-bys or Reviewed-bys. If you've > looked through it or tested it, please consider it. :) (I added Valdis > and mpe's

Re: [PATCH V2 4/5] kvm/stats: Add provisioning for 64-bit vcpu statistics

2016-07-18 Thread Paolo Bonzini
On 18/07/2016 09:17, Christian Borntraeger wrote: > On 07/15/2016 09:52 AM, Suraj Jitindar Singh wrote: >> >> >> On 14/07/16 19:42, Paolo Bonzini wrote: >>> >>> On 13/07/2016 20:00, Christian Borntraeger wrote: I thought u64 still existed on 32-bit architectures. unsigned long

Re: [PATCH] cxl: add option to enable -DDEBUG

2016-07-18 Thread Ian Munsie
Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] cxl: add option to enable -DDEBUG

2016-07-18 Thread Andrew Donnellan
Developers working on AFUs and AFU drivers often find it useful to see the pr_devel() and dev_dbg() messages from cxl. Give them an easy way to enable -DDEBUG by adding a Kconfig option, CONFIG_CXL_DEBUG. Inspired-by: Uma Krishnan Signed-off-by: Andrew Donnellan

[PATCH] powerpc/powernv: fix pci-cxl.c build when CONFIG_MODULES=n

2016-07-18 Thread Andrew Donnellan
From: Ian Munsie pnv_cxl_enable_phb_kernel_api() grabs a reference to the cxl module to prevent it from being unloaded after the PHB has been switched to CX4 mode. This breaks the build when CONFIG_MODULES=n as module_mutex doesn't exist. However, if we don't have modules,

Re: [PATCH V2 4/5] kvm/stats: Add provisioning for 64-bit vcpu statistics

2016-07-18 Thread Christian Borntraeger
On 07/15/2016 09:52 AM, Suraj Jitindar Singh wrote: > > > On 14/07/16 19:42, Paolo Bonzini wrote: >> >> On 13/07/2016 20:00, Christian Borntraeger wrote: >>> I thought u64 still existed on 32-bit architectures. unsigned long >>> would be fine but with the caveat that certain stats would