Patch "powerpc/fsl: Add macro to flush the branch predictor" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Add macro to flush the branch predictor to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: p

Patch "powerpc/fsl: Add nospectre_v2 command line argument" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Add nospectre_v2 command line argument to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: po

Patch "powerpc/fsl: Emulate SPRN_BUCSR register" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Emulate SPRN_BUCSR register to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: powerpc-fsl-e

Patch "powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "powerpc/fsl: Fix the flush of branch predictor." has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Fix the flush of branch predictor. to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: powerp

Patch "powerpc/fsl: Flush branch predictor when entering KVM" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Flush branch predictor when entering KVM to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit)" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit) to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Flush the branch predictor at each kernel entry (64bit) to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "powerpc/fsl: Update Spectre v2 reporting" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Update Spectre v2 reporting to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: powerpc-fsl-u

Patch "powerpc/security: Fix spectre_v2 reporting" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/security: Fix spectre_v2 reporting to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: powerpc-sec

Patch "powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'" has been added to the 4.19-stable tree

2019-03-29 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup' to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

Re: [PATCH stable v4.14 00/32] powerpc spectre backports for 4.14

2019-03-29 Thread Greg KH
On Fri, Mar 29, 2019 at 03:51:16PM +0100, Greg KH wrote: > On Fri, Mar 29, 2019 at 10:25:48PM +1100, Michael Ellerman wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi Greg, > > > > Please queue up these powerpc patches for 4.14 if you have no objections. > > Some of these

Re: [PATCH 13/13] dpaa_eth: fix SG frame cleanup

2019-03-29 Thread Joakim Tjernlund
Should this one go stable 4.14/4.19 too? On Fri, 2019-03-29 at 16:00 +0200, laurentiu.tu...@nxp.com wrote: > > From: Laurentiu Tudor > > Fix issue with the entry indexing in the sg frame cleanup code being > off-by-1. This problem showed up when doing some basic iperf tests and > manifested in

Re: [Qemu-ppc] pseries on qemu-system-ppc64le crashes in doorbell_core_ipi()

2019-03-29 Thread Steven Rostedt
[ Added Peter ] On Fri, 29 Mar 2019 19:13:55 +1000 Nicholas Piggin wrote: > Suraj Jitindar Singh's on March 29, 2019 3:20 pm: > > On Wed, 2019-03-27 at 17:51 +0100, Cédric Le Goater wrote: > >> On 3/27/19 5:37 PM, Cédric Le Goater wrote: > >> > On 3/27/19 1:36 PM, Sebastian Andrzej Siewior w

[PATCH -next] ocxl: remove set but not used variables 'tid' and 'lpid'

2019-03-29 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/ocxl/link.c: In function 'xsl_fault_handler': drivers/misc/ocxl/link.c:187:17: warning: variable 'tid' set but not used [-Wunused-but-set-variable] drivers/misc/ocxl/link.c:187:6: warning: variable 'lpid' set but not u

Re: [PATCH stable v4.14 13/32] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E

2019-03-29 Thread Joakim Tjernlund
On Fri, 2019-03-29 at 22:26 +1100, Michael Ellerman wrote: > > From: Diana Craciun > > commit ebcd1bfc33c7a90df941df68a6e5d4018c022fba upstream. > > Implement the barrier_nospec as a isync;sync instruction sequence. > The implementation uses the infrastructure built for BOOK3S 64. > > Signed-o

[PATCH v2 04/17] powerpc/40x: Don't use SPRN_SPRG_SCRATCH2 in EXCEPTION_PROLOG

2019-03-29 Thread Christophe Leroy
Unlike said in the comment, r1 is not reused by the critical exception handler, as it uses a dedicated critirq_ctx stack. Decrementing r1 early is then unneeded. Should the above be valid, the code is crap buggy anyway as r1 gets some intermediate values that would jeopardise the whole process (fo

[PATCH v2 00/17] powerpc/32: Implement fast syscall entry

2019-03-29 Thread Christophe Leroy
The purpose of this series is to implement a fast syscall entry on ppc32, as already done on ppc64. Unlike all other exceptions which can happen at any time and require to preserve all registers, the syscalls do not require the preservation of volatile registers (except LR). Syscall entries can t

[PATCH v2 02/17] powerpc/32: move LOAD_MSR_KERNEL() into head_32.h and use it

2019-03-29 Thread Christophe Leroy
As preparation for using head_32.h for head_40x.S, move LOAD_MSR_KERNEL() there and use it to load r10 with MSR_KERNEL value. In the mean time, this patch modifies it so that it takes into account the size of the passed value to determine if 'li' can be used or if 'lis/ori' is needed instead of us

[PATCH v2 01/17] powerpc/32: Refactor EXCEPTION entry macros for head_8xx.S and head_32.S

2019-03-29 Thread Christophe Leroy
EXCEPTION_PROLOG is similar in head_8xx.S and head_32.S This patch creates head_32.h and moves EXCEPTION_PROLOG macro into it. It also converts it from a GCC macro to a GAS macro in order to ease refactorisation with 40x later, since GAS macros allows the use of #ifdef/#else/#endif inside it. And

[PATCH v2 03/17] powerpc/32: make the 6xx/8xx EXC_XFER_TEMPLATE() similar to the 40x/booke one

2019-03-29 Thread Christophe Leroy
6xx/8xx EXC_XFER_TEMPLATE() macro adds a i##n symbol which is unused and can be removed. 40x and booke EXC_XFER_TEMPLATE() macros takes msr from the caller while the 6xx/8xx version uses only MSR_KERNEL as msr value. This patch modifies the 6xx/8xx version to make it similar to the 40x and booke v

[PATCH v2 05/17] powerpc/40x: add exception frame marker

2019-03-29 Thread Christophe Leroy
This patch adds STACK_FRAME_REGS_MARKER in the stack at exception entry in order to see interrupts in call traces as below: [0.013964] Call Trace: [0.014014] [c0745db0] [c007a9d4] tick_periodic.constprop.5+0xd8/0x104 (unreliable) [0.014086] [c0745dc0] [c007aa20] tick_handle_periodic+0

[PATCH v2 06/17] powerpc/40x: Split and rename NORMAL_EXCEPTION_PROLOG

2019-03-29 Thread Christophe Leroy
This patch splits NORMAL_EXCEPTION_PROLOG in the same way as in head_8xx.S and head_32.S and renames it EXCEPTION_PROLOG() as well to match head_32.h Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 26 -- 1 file changed, 16 insertions(+), 10 deletions

[PATCH v2 08/17] powerpc/fsl_booke: ensure SPEFloatingPointException() reenables interrupts

2019-03-29 Thread Christophe Leroy
SPEFloatingPointException() is the only exception handler which 'forgets' to re-enable interrupts. This patch makes sure it does. Suggested-by: Benjamin Herrenschmidt Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/traps.c | 8 1 file changed, 8 insertions(+) diff --git a/arch

[PATCH v2 07/17] powerpc/40x: Refactor exception entry macros by using head_32.h

2019-03-29 Thread Christophe Leroy
Refactor exception entry macros by using the ones defined in head_32.h Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h | 4 ++ arch/powerpc/kernel/head_40x.S | 88 +- 2 files changed, 6 insertions(+), 86 deletions(-) diff --git a/arch/

[PATCH v2 09/17] powerpc/32: enter syscall with MSR_EE inconditionaly set

2019-03-29 Thread Christophe Leroy
syscalls are expected to be entered with MSR_EE set. Lets make it inconditional by forcing MSR_EE on syscalls. This patch adds EXC_XFER_SYS for that. Suggested-by: Benjamin Herrenschmidt [splited out from benh RFC patch] Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S

[PATCH v2 10/17] powerpc/32: Enter exceptions with MSR_EE unset

2019-03-29 Thread Christophe Leroy
All exceptions handlers know when to reenable interrupts, so it is safer to enter all of them with MSR_EE unset, except for syscalls. Suggested-by: Benjamin Herrenschmidt [splited out from benh RFC patch] Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S| 68 +++

[PATCH v2 11/17] powerpc/32: get rid of COPY_EE in exception entry

2019-03-29 Thread Christophe Leroy
EXC_XFER_TEMPLATE() is not called with COPY_EE anymore so we can get rid of copyee parameters and related COPY_EE and NOCOPY macros. Suggested-by: Benjamin Herrenschmidt [splited out from benh RFC patch] Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h| 12 ar

[PATCH v2 12/17] powerpc: Fix 32-bit handling of MSR_EE on exceptions

2019-03-29 Thread Christophe Leroy
[text mostly copied from benh's RFC/WIP] ppc32 are still doing something rather gothic and wrong on 32-bit which we stopped doing on 64-bit a while ago. We have that thing where some handlers "copy" the EE value from the original stack frame into the new MSR before transferring to the handler. T

[PATCH v2 13/17] powerpc/32: implement fast entry for syscalls on non BOOKE

2019-03-29 Thread Christophe Leroy
This patch implements a fast entry for syscalls. Syscalls don't have to preserve non volatile registers except LR. This patch then implement a fast entry for syscalls, where volatile registers get clobbered. As this entry is dedicated to syscall it always sets MSR_EE and warns in case MSR_EE was

[PATCH v2 14/17] powerpc/32: implement fast entry for syscalls on BOOKE

2019-03-29 Thread Christophe Leroy
This patch implements a fast entry for syscalls. Syscalls don't have to preserve non volatile registers except LR. This patch then implement a fast entry for syscalls, where volatile registers get clobbered. As this entry is dedicated to syscall it always sets MSR_EE and warns in case MSR_EE was

[PATCH v2 15/17] powerpc/32: Remove MSR_PR test when returning from syscall

2019-03-29 Thread Christophe Leroy
syscalls are from user only, so we can account time without checking whether returning to kernel or user as it will only be user. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/power

[PATCH v2 16/17] powerpc/32: don't do syscall stuff in transfer_to_handler

2019-03-29 Thread Christophe Leroy
As syscalls are now handled via a fast entry path, syscall related actions can be removed from the generic transfer_to_handler path. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/powerpc/kernel/entr

[PATCH v2 17/17] powerpc/32: Don't add dummy frames when calling trace_hardirqs_on/off

2019-03-29 Thread Christophe Leroy
No need to add dummy frames when calling trace_hardirqs_on or trace_hardirqs_off. GCC properly handles empty stacks. In addition, powerpc doesn't set CONFIG_FRAME_POINTER, therefore __builtin_return_address(1..) returns NULL at all time. So the dummy frames are definitely unneeded here. In the me

Re: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-03-29 Thread Li Yang
On Fri, Mar 29, 2019 at 9:03 AM wrote: > > From: Laurentiu Tudor > > Add a one-to-one iommu mapping for bman private data memory (FBPR). > This is required for BMAN to work without faults behind an iommu. > > Signed-off-by: Laurentiu Tudor > --- > drivers/soc/fsl/qbman/bman_ccsr.c | 11

Re: [PATCH -next] ocxl: remove set but not used variables 'tid' and 'lpid'

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 9:14 PM, Yue Haibing wrote: From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/ocxl/link.c: In function 'xsl_fault_handler': drivers/misc/ocxl/link.c:187:17: warning: variable 'tid' set but not used [-Wunused-but-set-variable] drivers/misc/ocxl/link.c:

Re: [PATCH 01/13] soc/fsl/qman: fixup liodns only on ppc targets

2019-03-29 Thread Li Yang
On Fri, Mar 29, 2019 at 9:01 AM wrote: > > From: Laurentiu Tudor > > ARM SoCs use SMMU so the liodn fixup done in the qman driver is no > longer making sense and it also breaks the ICID settings inherited > from u-boot. Do the fixups only for PPC targets. > > Signed-off-by: Laurentiu Tudor > ---

Re: [PATCH 05/13] soc/fsl/bqman: page align iommu mapping sizes

2019-03-29 Thread Li Yang
On Fri, Mar 29, 2019 at 9:01 AM wrote: > > From: Laurentiu Tudor > > Prior to calling iommu_map()/iommu_unmap() page align the size or > failures such as below could happen: > > iommu: unaligned: iova 0x... pa 0x... size 0x4000 min_pagesz 0x1 > qman_portal 5.qman-portal: failed to iom

[PATCH AUTOSEL 4.19 11/57] powerpc/pseries: Remove prrn_work workqueue

2019-03-29 Thread Sasha Levin
From: Nathan Fontenot [ Upstream commit cd24e457fd8b2d087d9236700c8d2957054598bf ] When a PRRN event is received we are already running in a worker thread. Instead of spawning off another worker thread on the prrn_work workqueue to handle the PRRN event we can just call the PRRN handler routine

[PATCH AUTOSEL 4.14 08/37] powerpc/pseries: Remove prrn_work workqueue

2019-03-29 Thread Sasha Levin
From: Nathan Fontenot [ Upstream commit cd24e457fd8b2d087d9236700c8d2957054598bf ] When a PRRN event is received we are already running in a worker thread. Instead of spawning off another worker thread on the prrn_work workqueue to handle the PRRN event we can just call the PRRN handler routine

Re: CONFIG_ARCH_SUPPORTS_INT128: Why not mips, s390, powerpc, and alpha?

2019-03-29 Thread Michael Cree
On Fri, Mar 29, 2019 at 01:07:07PM +, George Spelvin wrote: > I was working on some scaling code that can benefit from 64x64->128-bit > multiplies. GCC supports an __int128 type on processors with hardware > support (including z/Arch and MIPS64), but the support was broken on > early compilers

Re: [Qemu-ppc] pseries on qemu-system-ppc64le crashes in doorbell_core_ipi()

2019-03-29 Thread Nicholas Piggin
Steven Rostedt's on March 30, 2019 1:31 am: > [ Added Peter ] > > On Fri, 29 Mar 2019 19:13:55 +1000 > Nicholas Piggin wrote: > >> Suraj Jitindar Singh's on March 29, 2019 3:20 pm: >> > On Wed, 2019-03-27 at 17:51 +0100, Cédric Le Goater wrote: >> >> On 3/27/19 5:37 PM, Cédric Le Goater wrote:

[PATCH] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-03-29 Thread Aneesh Kumar K.V
With some architectures like ppc64, set_pmd_at() cannot cope with a situation where there is already some (different) valid entry present. Use pmdp_set_access_flags() instead to modify the pfn which is built to deal with modifying existing PMD entries. This is similar to commit cae85cb8add3 ("mm/

[RFC PATCH] drivers/dax: Allow to include DEV_DAX_PMEM as builtin

2019-03-29 Thread Aneesh Kumar K.V
This move the dependency to DEV_DAX_PMEM_COMPAT such that only if DEV_DAX_PMEM is built as module we can allow the compat support. This allows to test the new code easily in a emulation setup where we often build things without module support. Signed-off-by: Aneesh Kumar K.V --- drivers/dax/Kco

[PATCH] powerpc/mm: Fix section mismatch warning

2019-03-29 Thread Aneesh Kumar K.V
This patch fix the below section mismatch warnings. WARNING: vmlinux.o(.text+0x2d1f44): Section mismatch in reference from the function devm_memremap_pages_release() to the function .meminit.text:arch_remove_memory() WARNING: vmlinux.o(.text+0x2d265c): Section mismatch in reference from the fun

[PATCH -next] crypto: nx842 - remove set but not used variables 'dpadding' and 'max_sync_size'

2019-03-29 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/crypto/nx/nx-842.c: In function 'decompress': drivers/crypto/nx/nx-842.c:356:25: warning: variable 'dpadding' set but not used [-Wunused-but-set-variable] drivers/crypto/nx/nx-842-pseries.c: In function 'nx842_pseries_compr

Re: [PATCH] powerpc/64s/radix: Fix radix segment exception handling

2019-03-29 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > Commit 48e7b76957 ("powerpc/64s/hash: Convert SLB miss handlers to C") > broke the radix-mode segment exception handler. In radix mode, this is > exception is not an SLB miss, rather it signals that the EA is outside > the range translated by any page table. > > The comm

Re: CONFIG_ARCH_SUPPORTS_INT128: Why not mips, s390, powerpc, and alpha?

2019-03-29 Thread Segher Boessenkool
Hi! On Fri, Mar 29, 2019 at 01:07:07PM +, George Spelvin wrote: > I was working on some scaling code that can benefit from 64x64->128-bit > multiplies. GCC supports an __int128 type on processors with hardware > support (including z/Arch and MIPS64), but the support was broken on > early comp

<    1   2