Re: [PATCH v2] powerpc: Invalidate ERAT on powersave wakeup for POWER9

2017-06-24 Thread Nicholas Piggin
On Sat, 24 Jun 2017 12:29:01 -0500 Benjamin Herrenschmidt wrote: > On POWER9 the ERAT may be incorrect on wakeup from some stop states > that lose state. This causes random segvs and illegal instructions > when these stop states are enabled. > > This patch invalidates the ERAT on wakeup on POWER

Re: [PATCH v3 4/6] powerpc/mm: Add devmap support for ppc64

2017-06-24 Thread kbuild test robot
Hi Oliver, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc6 next-20170623] [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/Oliver-O-Halloran/mm-x86-Add-ARCH_HAS_ZONE_DE

Re: drivers:soc:fsl:qbman:qman.c: Change a comment for an entry check inside drain_mr_fqrni function

2017-06-24 Thread Scott Wood
On Fri, May 05, 2017 at 10:05:56AM +0200, Karim Eshapa wrote: > Change the comment for an entry check inside function > drain_mr_fqrni() with sleep for sufficient period > of time instead of long time proccessor cycles. > > Signed-off-by: Karim Eshapa > --- > drivers/soc/fsl/qbman/qman.c | 25 ++

Re: [v3] drivers:soc:fsl:qbman:qman.c: Sleep instead of stuck hacking jiffies.

2017-06-24 Thread Scott Wood
On Fri, May 05, 2017 at 07:45:18AM +0200, Karim Eshapa wrote: > Use msleep() instead of stucking with > long delay will be more efficient. > > Signed-off-by: Karim Eshapa > --- > drivers/soc/fsl/qbman/qman.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) Acked-by: Scott Wood (th

[PATCH] powerpc/ipic: Support edge on IRQ0

2017-06-24 Thread Scott Wood
External IRQ0 has the same capabilities as the other IRQ1-7 and is handled by the same register IPIC_SEPNR. When this register is not specified for "ack" in "ipic_info", you cannot configure this IRQ as IRQ_TYPE_EDGE_FALLING. This oversight was probably due to the non-contiguous hwirq numbering o

Re: [PATCH V6 2/2] powerpc/numa: Update CPU topology when VPHN enabled

2017-06-24 Thread kbuild test robot
Hi Michael, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc6 next-20170623] [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/Michael-Bringmann/powerpc-hotplug-Ensure-eno

[PATCH] powerpc/xive: Silence message about VP block allocation

2017-06-24 Thread Benjamin Herrenschmidt
There is no reason for that message to be pr_info(), it will be printed every time we start a KVM guest. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index ab9ecce..0f95476b 100644 --- a/arch/powerpc/sysdev/xive/nati

Re: [PATCH v2 1/5] binfmt_elf: Use ELF_ET_DYN_BASE only for PIE

2017-06-24 Thread Kees Cook
On Fri, Jun 23, 2017 at 1:59 PM, Kees Cook wrote: > For 32-bit tasks when RLIMIT_STACK is set to RLIM_INFINITY, programs > are loaded below the mmap region. This means they can be made to collide > (CVE-2017-1000370) or nearly collide (CVE-2017-1000371) with pathological > stack regions. Lowering

Re: Regression in kernel 4.12-rc1 for Powerpc 32 - bisected to commit 3448890c32c3

2017-06-24 Thread Larry Finger
On 06/23/2017 03:29 PM, Al Viro wrote: On Fri, Jun 23, 2017 at 01:49:16PM -0500, Larry Finger wrote: BTW, could you try to check what happens if you kill the if (__builtin_constant_p(n) && (n <= 8)) bits in raw_copy_{to,from}_user()? The usefulness of those (in __copy_from_user() orig

[PATCH v2] powerpc: Invalidate ERAT on powersave wakeup for POWER9

2017-06-24 Thread Benjamin Herrenschmidt
On POWER9 the ERAT may be incorrect on wakeup from some stop states that lose state. This causes random segvs and illegal instructions when these stop states are enabled. This patch invalidates the ERAT on wakeup on POWER9 to prevent this from causing a problem. Signed-off-by: Michael Neuling Si

Re: clean up and modularize arch dma_mapping interface V2

2017-06-24 Thread Benjamin Herrenschmidt
On Sat, 2017-06-24 at 09:18 +0200, Christoph Hellwig wrote: > On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote: > > Thanks for doing this. > > So archs can still have their own definition for dma_set_mask() if > > HAVE_ARCH_DMA_SET_MASK is y? > > (and similarly for dma_set_coherent_mask() wh

Re: [PATCH v2 0/5] Use ELF_ET_DYN_BASE only for PIE

2017-06-24 Thread Kees Cook
On Sat, Jun 24, 2017 at 2:11 AM, Russell King - ARM Linux wrote: > On Fri, Jun 23, 2017 at 01:59:55PM -0700, Kees Cook wrote: >> This is v2 (to refresh the 5 patches in -mm) for moving ELF_ET_DYN_BASE >> safely lower. Changes are clarifications in the commit logs (suggested >> by mpe), a compat th

[PATCH v2 7/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2017-06-24 Thread Horia Geantă
Now that ioread64 and iowrite64 are always available we don't need the ugly ifdefs to change their implementation when they are not. Signed-off-by: Logan Gunthorpe Cc: Horia Geantă Cc: Dan Douglass Cc: Herbert Xu Cc: "David S. Miller" Updated patch such that behaviour does not change from i.

Re: [PATCH 2/2] selftests/ftrace: Update multiple kprobes test for powerpc

2017-06-24 Thread Masami Hiramatsu
On Sat, 24 Jun 2017 02:30:21 +0900 Masami Hiramatsu wrote: > On Thu, 22 Jun 2017 22:33:25 +0530 > "Naveen N. Rao" wrote: > > > On 2017/06/22 06:07PM, Masami Hiramatsu wrote: > > > On Thu, 22 Jun 2017 00:20:28 +0530 > > > "Naveen N. Rao" wrote: > > > > > > > KPROBES_ON_FTRACE is only available

[PATCH] powerpc/smp: Do not BUG_ON if invalid CPU during kick

2017-06-24 Thread Santosh Sivaraj
During secondary start, we do not need to BUG_ON if an invalid CPU number is passed. We alreay print an error if secondary cannot be started, so just return an error instead. Signed-off-by: Santosh Sivaraj --- arch/powerpc/kernel/smp.c| 3 ++- arch/powerpc/platforms/cell/smp.c| 3

Re: [PATCH v2 0/5] Use ELF_ET_DYN_BASE only for PIE

2017-06-24 Thread Russell King - ARM Linux
On Fri, Jun 23, 2017 at 01:59:55PM -0700, Kees Cook wrote: > This is v2 (to refresh the 5 patches in -mm) for moving ELF_ET_DYN_BASE > safely lower. Changes are clarifications in the commit logs (suggested > by mpe), a compat think-o fix for arm64 (thanks to Ard), and to add > Rik and mpe's Acks. >

Re: [PATCH v3 1/6] mm, x86: Add ARCH_HAS_ZONE_DEVICE to Kconfig

2017-06-24 Thread John Hubbard
On 06/23/2017 01:31 AM, Oliver O'Halloran wrote: Currently ZONE_DEVICE depends on X86_64 and this will get unwieldly as new architectures (and platforms) get ZONE_DEVICE support. Move to an arch selected Kconfig option to save us the trouble. Cc: linux...@kvack.org Acked-by: Ingo Molnar Acked-b

Re: clean up and modularize arch dma_mapping interface V2

2017-06-24 Thread Christoph Hellwig
On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote: > Thanks for doing this. > So archs can still have their own definition for dma_set_mask() if > HAVE_ARCH_DMA_SET_MASK is y? > (and similarly for dma_set_coherent_mask() when > CONFIG_ARCH_HAS_DMA_SET_COHERENT_MASK is y) > Any plan to change