Re: [PATCH v2] cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Ian Munsie
Acked-by: Ian Munsie

[PATCH] MAINTAINERS: Drop separate pseries entry

2016-10-04 Thread Michael Ellerman
Paul is no longer acting as a separate maintainer for pseries, it is handled along with the rest of powerpc. The URL no longer links anywhere meaningful, so drop it also. Signed-off-by: Michael Ellerman --- MAINTAINERS | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH] MAINTAINERS: Update powerpc website & add selftests

2016-10-04 Thread Michael Ellerman
The selftests under tools/testing/selftests/powerpc are maintained by us, so add a file pattern for them. Also drop the www.penguinppc.org link, it's not dead, but the site is dead (database error). Instead link to the wiki attached to our github, there is some info there which may be useful,

Re: [PATCH v2] cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Andrew Donnellan
On 04/10/16 22:00, Frederic Barrat wrote: If the capi link is going down while the PSL owns a dirty cache line, any access from the host for that data could lead to an Uncorrectable Error. So when resetting the capi adapter through sysfs, make sure the PSL cache is flushed. It won't help if

[PATCH] selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes

2016-10-04 Thread Michael Ellerman
The changes to make EXPORT_SYMBOL work in asm, specifically commit 9445aa1a3062 ("ppc: move exports to definitions"), in the kbuild tree, breaks some of our selftests. That is because we symlink the kernel code into the selftest, and shim the required headers, and we are now missing asm/export.h

Re: [PATCH v3 4/5] powerpc/mm: restore top-down allocation when using movable_node

2016-10-04 Thread Reza Arbab
On Tue, Oct 04, 2016 at 11:48:30AM +1100, Balbir Singh wrote: On 27/09/16 10:14, Reza Arbab wrote: Right. To be clear, the background info I put in the commit log refers to x86, where the SRAT can describe movable nodes which exist at boot. They're trying to avoid allocations from those nodes

Re: [PATCH v6] powerpc: Do not make the entire heap executable

2016-10-04 Thread Kees Cook
On Mon, Oct 3, 2016 at 5:18 PM, Michael Ellerman wrote: > Kees Cook writes: > >> On Mon, Oct 3, 2016 at 9:13 AM, Denys Vlasenko wrote: >>> On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, >>> or with a

[net-next 00/13] fsl/fman: cleanup and small fixes

2016-10-04 Thread Madalin Bucur
This series contains fixes for the DPAA FMan driver. Adding myself as maintainer of the driver. The following are changes since commit a4cc96d1f0170b779c32c6b2cc58764f5d2cdef0 net: phy: Add Edge-rate driver for Microsemi PHYs. and are available on the fman-next branch in the git repository at

[net-next 01/13] fsl/fman: split lines over 80 characters

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_muram.c | 3 ++- drivers/net/ethernet/freescale/fman/fman_muram.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_muram.c

[net-next 09/13] fsl/fman: check of_get_phy_mode() return value

2016-10-04 Thread Madalin Bucur
For unknown compatibles avoid crashing and default to SGMII. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/mac.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/mac.c

[net-next 07/13] fsl/fman: MEMAC may use QSGMII PHY interface mode

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_memac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index

[net-next 06/13] fsl/fman: return a phy_dev pointer from init

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/mac.c | 22 +++--- drivers/net/ethernet/freescale/fman/mac.h | 3 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/mac.c

[net-next 13/13] MAINTAINERS: net: add entry for Freescale QorIQ DPAA FMan driver

2016-10-04 Thread Madalin Bucur
Add record for Freescale QORIQ DPAA FMan driver adding myself as maintainer. Signed-off-by: Madalin Bucur --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 669909e..3460152 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[net-next 02/13] fsl/fman: fix loadable module compilation

2016-10-04 Thread Madalin Bucur
From: Igal Liberman Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile| 10 --- drivers/net/ethernet/freescale/fman/fman.c | 35 +++--

[net-next 03/13] fsl/fman: small fixes

2016-10-04 Thread Madalin Bucur
From: Madalin Bucur Make module params static, proper NULL checks, remove __iomem label when misused. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman.c | 6 +++---

Re: [GIT PULL 00/22] perf/core improvements and fixes

2016-10-04 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Build and test stats at the end of the message. > > The following changes since commit 41aad2a6d4fcdda8d73c9739daf7a9f3f49499d6: > > Merge tag 'perf-core-for-mingo-20160929'

Re: [PATCH v21 16/19] perf, tools: Make alias matching case-insensitive

2016-10-04 Thread Jiri Olsa
On Mon, Oct 03, 2016 at 09:47:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Sep 15, 2016 at 03:24:53PM -0700, Sukadev Bhattiprolu escreveu: > > From: Andi Kleen > > > > Make alias matching the events parser case-insensitive. This is useful > > with the JSON events.

[net-next 00/13] fsl/fman: cleanup and small fixes

2016-10-04 Thread Madalin Bucur
This series contains fixes for the DPAA FMan driver. Adding myself as maintainer of the driver. The following are changes since commit a4cc96d1f0170b779c32c6b2cc58764f5d2cdef0 net: phy: Add Edge-rate driver for Microsemi PHYs. and are available on the fman-next branch in the git repository at

[net-next 12/13] fsl/fman: remove leftover comment

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_mac.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_mac.h b/drivers/net/ethernet/freescale/fman/fman_mac.h index ddf0260..dd6d052 100644 ---

[net-next 10/13] fsl/fman: simplify redundant condition

2016-10-04 Thread Madalin Bucur
Change suggested by David Binderman, thanks. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman.c

Re: [PATCH] cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Frederic Barrat
Hi Vaibhav, Le 04/10/2016 à 07:49, Vaibhav Jain a écrit : Hi Fred, Frederic Barrat writes: + /* the adapter is about to be reset, so ignore errors */ + cxl_data_cache_flush(adapter); + Will be a good idea if we return error and not let the reset to

[net-next 04/13] fsl/fman: use of_get_phy_mode()

2016-10-04 Thread Madalin Bucur
From: Madalin Bucur Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/mac.c | 33 ++- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git

[net-next 05/13] fsl/fman: simplify device tree reads

2016-10-04 Thread Madalin Bucur
From: Madalin Bucur Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman.c | 30 ++--- drivers/net/ethernet/freescale/fman/fman_port.c | 24 ++--

[net-next 11/13] fsl/fman: fix return value checking

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman.c b/drivers/net/ethernet/freescale/fman/fman.c index 1fc1049..dafd9e1 100644 ---

[net-next 08/13] fsl/fman: check pcsphy pointer before use

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_memac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index 96dfe7e..53ef51e 100644 ---

Re: [PATCH v21 16/19] perf, tools: Make alias matching case-insensitive

2016-10-04 Thread Jiri Olsa
On Mon, Oct 03, 2016 at 09:54:48PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Oct 03, 2016 at 09:47:06PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Sep 15, 2016 at 03:24:53PM -0700, Sukadev Bhattiprolu escreveu: > > > From: Andi Kleen > > > > > > Make alias

[net-next 01/13] fsl/fman: split lines over 80 characters

2016-10-04 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_muram.c | 3 ++- drivers/net/ethernet/freescale/fman/fman_muram.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_muram.c

[PATCH] net: ps3_gelic: Add missing \n to end of deb_dbg message

2016-10-04 Thread Colin King
From: Colin Ian King Trival fix, dev_dbg message is missing a \n, so add it. Signed-off-by: Colin Ian King --- drivers/net/ethernet/toshiba/ps3_gelic_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/2] powernv: Pass PSSCR value and mask to power9_idle_stop

2016-10-04 Thread Michael Ellerman
"Gautham R. Shenoy" writes: > From: "Gautham R. Shenoy" > > The power9_idle_stop method currently takes only the requested stop > level as a parameter and picks up the rest of the PSSCR bits from a > hand-coded macro. This is not a very flexible

[PATCH v2] cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Frederic Barrat
If the capi link is going down while the PSL owns a dirty cache line, any access from the host for that data could lead to an Uncorrectable Error. So when resetting the capi adapter through sysfs, make sure the PSL cache is flushed. It won't help if there are any active Process Elements on the

Re: [PATCH 2/2] powernv: Pass PSSCR value and mask to power9_idle_stop

2016-10-04 Thread Balbir Singh
On 04/10/16 21:32, Michael Ellerman wrote: > "Gautham R. Shenoy" writes: > >> From: "Gautham R. Shenoy" >> >> The power9_idle_stop method currently takes only the requested stop >> level as a parameter and picks up the rest of the PSSCR bits

Re: [PATCH] crypto: sha1-powerpc: little-endian support

2016-10-04 Thread Marcelo Cerri
Hi Michael, On Ubuntu, CRYPTO_MANAGER_DISABLE_TESTS is set by default. So I had to disable this config in order to make sha1-powerpc fail in the crypto API tests. However, even with tests disabled, any usage of sha1-powerpc should result in incorrect results. -- Regards, Marcelo On Tue, Oct

RE: [net-next 08/13] fsl/fman: check pcsphy pointer before use

2016-10-04 Thread David Laight
From: Madalin Bucur > Sent: 04 October 2016 08:33 > Subject: [net-next 08/13] fsl/fman: check pcsphy pointer before use .. > --- a/drivers/net/ethernet/freescale/fman/fman_memac.c > +++ b/drivers/net/ethernet/freescale/fman/fman_memac.c > @@ -507,6 +507,9 @@ static void

[PATCH v3 11/42] powerpc/64s: Consolidate External 0x500 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git

[PATCH v3 15/42] powerpc/64s: Consolidate Decrementer 0x900 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v3 19/42] powerpc/64s: Consolidate System Call 0xc00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 121 ++- 1 file changed, 61 insertions(+), 60 deletions(-) diff --git

[PATCH v3 20/42] powerpc/64s: Consolidate Trace 0xd00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Linus Torvalds
On Tue, Oct 4, 2016 at 5:00 PM, Luis R. Rodriguez wrote: > > I am not sure how/why a firmware loading daemon would be a better > idea now. What Marc describes that Josh proposed with signals for > userspcae seems more aligned with what we likely need Quite frankly, I doubt you

[PATCH v3 02/42] powerpc/64s: Consolidate exception handler alignment

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Move exception handler alignment directives into the head-64.h macros, beause they will no longer work in-place after the next patch. This slightly changes functions that have alignments applied and therefore code generation, which is why it was not done

[PATCH v3 04/42] powerpc: Use gas sections for arranging exception vectors

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Use assembler sections of fixed size and location to arrange the 64-bit Book3S exception vector code (64-bit Book3E also uses it in head_64.S for 0x0..0x100). This allows better flexibility in arranging exception code and hiding unimportant details

[PATCH v3 08/42] powerpc/64s: Consolidate Data Segment 0x380 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 50 ++-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[PATCH v3 09/42] powerpc/64s: Consolidate Instruction Storage 0x400 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git

[PATCH v3 12/42] powerpc/64s: Consolidate Alignment 0x600 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git

[PATCH v3 13/42] powerpc/64s: Consolidate Program 0x700 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git

[PATCH v3 16/42] powerpc/64s: Consolidate Hypervisor Decrementer 0x980 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v3 17/42] powerpc/64s: Consolidate Directed Privileged Doorbell 0xa00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v3 22/42] powerpc/64s: Consolidate Hypervisor Instruction Storage 0xe20 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[PATCH v3 23/42] powerpc/64s: Consolidate Hypervisor Emulation Assistance 0xe40 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Luis R. Rodriguez
On Sat, Sep 24, 2016 at 10:41:46AM -0700, Dmitry Torokhov wrote: > On Fri, Sep 23, 2016 at 6:37 PM, Herbert, Marc wrote: > > On 03/09/2016 11:10, Dmitry Torokhov wrote: > >> I was thinking if we kernel could post > >> "conditions" (maybe simple stings) that it waits for,

[PATCH v3 01/42] powerpc/64s: Add new exception vector macros

2016-10-04 Thread Michael Ellerman
Create arch/powerpc/include/asm/head-64.h with macros that specify an exception vector (name, type, location), which will be used to label and lay out exceptions into the object file. Naming is moved out of exception-64s.h, which is used to specify the implementation of exception handlers.

[PATCH v3 00/42] powerpc/64: use asm sections for head/exception layout

2016-10-04 Thread Michael Ellerman
This is v3 of Nick's series to change the way we construct the 64-bit Book3S exception vectors, as applied to the tree by me. Changes since his v2 are: - macro names have been shortened to EXC_REAL() etc. - the end macros which were empty have been dropped (until/if we need them) - some minor

[PATCH v3 05/42] powerpc/64s: Consolidate System Reset 0x100 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH v3 03/42] powerpc/64: Change the way relocation copy is calculated

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin With a subsequent patch to put text into different sections, (_end - _stext) can no longer be computed at link time to determine the end of the copy. Instead, calculate it at runtime with (copy_to_here - _stext) + (_end - copy_to_here). Signed-off-by:

[PATCH v3 06/42] powerpc/64s: Consolidate Machine Check 0x200 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 659 +-- 1 file changed, 329 insertions(+), 330 deletions(-) diff --git

[PATCH v3 07/42] powerpc/64s: Consolidate Data Storage 0x300 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 53 ++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git

[PATCH v3 10/42] powerpc/64s: Consolidate Instruction Segment 0x480 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 224 ++- 1 file changed, 113 insertions(+), 111 deletions(-) diff --git

[PATCH v3 14/42] powerpc/64s: Consolidate FP Unavailable 0x800 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 61 ++-- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git

[PATCH v3 18/42] powerpc/64s: Consolidate Reserved 0xb00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH v3 21/42] powerpc/64s: Consolidate Hypervisor Data Storage 0xe00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 42 1 file changed, 18 insertions(+), 24 deletions(-) diff --git

[PATCH v3 24/42] powerpc/64s: Consolidate Hypervisor Maintenance 0xe60 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 113 +-- 1 file changed, 56 insertions(+), 57 deletions(-) diff --git

[PATCH v3 26/42] powerpc/64s: Consolidate Hypervisor Virtualization 0xea0 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

[PATCH v3 25/42] powerpc/64s: Consolidate Directed Hypervisor Doorbell 0xe80 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git

[PATCH v3 30/42] powerpc/64s: Consolidate VSX Unavailable 0xf40 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 74 ++-- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git

[PATCH v3 33/42] powerpc/64s: Consolidate Reserved 0xfa0-0x1200 interrupts

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S

[PATCH v3 34/42] powerpc/64s: Consolidate CBE System Error 0x1200 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH v3 37/42] powerpc/64s: Consolidate Debug 0x1600 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH v3 38/42] powerpc/64s: Consolidate Altivec 0x1700 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[PATCH v3 40/42] powerpc/64s: Move __replay_interrupt function below handlers

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin This is not an exception handler as such, it's called from local_irq_enable(), not exception entry. Also clean up some now redundant comments at the end of the consolidation series. Signed-off-by: Nicholas Piggin Signed-off-by:

[PATCH v3 41/42] powerpc/64s: Use a single macro for both parts of OOL exception

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Simple substitution. This is possible now that both parts of the OOL initial handler get linked into their correct location. Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman ---

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Josh Triplett
On Tue, Oct 04, 2016 at 05:12:58PM -0700, Linus Torvalds wrote: > On Tue, Oct 4, 2016 at 5:00 PM, Luis R. Rodriguez wrote: > > I am not sure how/why a firmware loading daemon would be a better > > idea now. What Marc describes that Josh proposed with signals for > > userspcae

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Linus Torvalds
On Tue, Oct 4, 2016 at 6:48 PM, Josh Triplett wrote: > >I definitely don't think it > should be a system-wide "mount event"; it should be a per-device "go > direct-load your firmware" poke from userspace. I don't disagree with that kind of interface. We already have

Re: [v3,01/42] powerpc/64s: Add new exception vector macros

2016-10-04 Thread Michael Ellerman
On Wed, 2016-05-10 at 00:22:23 UTC, Michael Ellerman wrote: > Create arch/powerpc/include/asm/head-64.h with macros that specify > an exception vector (name, type, location), which will be used to > label and lay out exceptions into the object file. > > Naming is moved out of exception-64s.h,

Re: [1/9] powerpc/powernv: Pass CPU-endian PE number to opal_pci_eeh_freeze_clear()

2016-10-04 Thread Michael Ellerman
On Tue, 2016-02-08 at 04:10:29 UTC, Gavin Shan wrote: > The PE number (@frozen_pe_no), filled by opal_pci_next_error() is in > big-endian format. It should be converted to CPU-dian before it is > passed to opal_pci_eeh_freeze_clear() when clearing the frozen state > if the PE is invalid one. As

Re: [1/4] powerpc/configs: Enable VMX crypto

2016-10-04 Thread Michael Ellerman
On Fri, 2016-30-09 at 10:39:50 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > We see big improvements with the VMX crypto functions (often 10x or more), > so enable it as a module. > > Signed-off-by: Anton Blanchard Series applied to powerpc next,

Re: [1/3] bpf powerpc: introduce accessors for using the tmp local stack space

2016-10-04 Thread Michael Ellerman
On Fri, 2016-23-09 at 20:35:00 UTC, "Naveen N. Rao" wrote: > While at it, ensure that the location of the local save area is > consistent whether or not we setup our own stackframe. This property is > utilised in the next patch that adds support for tail calls. > > Signed-off-by: Naveen N. Rao

Re: powerpc: During context switch, check before setting mm_cpumask

2016-10-04 Thread Michael Ellerman
On Mon, 2016-03-10 at 06:40:29 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > During context switch, switch_mm() sets our current CPU in mm_cpumask. > We can avoid this atomic sequence in most cases by checking before > setting the bit. > > Testing on a POWER8 using

Re: powerpc: Align hot loops of memset() and backwards_memcpy()

2016-10-04 Thread Michael Ellerman
On Thu, 2016-04-08 at 06:53:22 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > Align the hot loops in our assembly implementation of memset() > and backwards_memcpy(). > > backwards_memcpy() is called from tcp_v4_rcv(), so we might > want to optimise this a little more.

Re: cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-10-04 Thread Michael Ellerman
On Fri, 2016-29-07 at 03:55:34 UTC, Andrew Donnellan wrote: > Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use > for_each_child_of_node() rather than a hand-coded for loop. > > Remove the useless of_node_put(afu_np) call after the loop, where it's > guaranteed that afu_np == NULL. >

[PATCH v3 29/42] powerpc/64s: Consolidate Vector Unavailable 0xf20 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 76 ++-- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git

[PATCH v3 35/42] powerpc/64s: Consolidate Instruction Breakpoint 0x1300 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH v3 36/42] powerpc/64s: Consolidate Softpatch 0x1500 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 72 ++-- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git

[PATCH v3 42/42] powerpc/64s: Remove unused exception code, small cleanups

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin This was not done before the big patches because I only noticed them afterwards. It has become much easier to see which handlers are branched to from which exception vectors now, and to see exactly what vector space is being used for what. Signed-off-by:

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Linus Torvalds
On Tue, Oct 4, 2016 at 5:24 PM, Luis R. Rodriguez wrote: > > Note that the races are beyond firmware, so all > kernel_read_file_from_path() users, as such re-using such old /sys/ > interafeces for firmware will not suffice to cover all ground now for > the same race for other

Re: [v5, 02/20] powerpc: Always restore FPU/VEC/VSX if hardware transactional memory in use

2016-10-04 Thread Michael Ellerman
On Fri, 2016-23-09 at 06:18:08 UTC, Cyril Bur wrote: > Comment from arch/powerpc/kernel/process.c:967: > If userspace is inside a transaction (whether active or > suspended) and FP/VMX/VSX instructions have ever been enabled > inside that transaction, then we have to keep them enabled > and

Re: [3/9] powerpc/powernv: Specify proper data type for PCI_SLOT_ID_PREFIX

2016-10-04 Thread Michael Ellerman
On Tue, 2016-02-08 at 04:10:31 UTC, Gavin Shan wrote: > This fixes the warning reported from sparse: > > gwshan@gwshan:~/sandbox/l$ make C=2 CF=-D__CHECK_ENDIAN__ \ > arch/powerpc/platforms/powernv/eeh-powernv.o > : >

Re: [4/9] powerpc/powernv: Use CPU-endian PEST in pnv_pci_dump_p7ioc_diag_data()

2016-10-04 Thread Michael Ellerman
On Tue, 2016-02-08 at 04:10:32 UTC, Gavin Shan wrote: > This fixes the warnings reported from sparse: > > gwshan@gwshan:~/sandbox/l$ make C=2 CF=-D__CHECK_ENDIAN__ \ > arch/powerpc/platforms/powernv/pci.o > : > arch/powerpc/platforms/powernv/pci.c:312:33:

Re: [v4, 6/7] drivers/pci/hotplug: Use of_property_read_u32() in powernv driver

2016-10-04 Thread Michael Ellerman
On Thu, 2016-29-09 at 05:52:04 UTC, Gavin Shan wrote: > This replaces of_get_property() with of_property_read_u32() or > of_property_read_string() so that we needn't consider the endian > issue, the returned value always is in CPU-endian. > > Signed-off-by: Gavin Shan

Re: cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Michael Ellerman
On Mon, 2016-03-10 at 19:36:02 UTC, Frederic Barrat wrote: > If the capi link is going down while the PSL owns a dirty cache line, > any access from the host for that data could lead to an Unrecoverable > Error. > So when resetting the capi adapter through sysfs, make sure the PSL > cache is

Re: powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n

2016-10-04 Thread Michael Ellerman
On Fri, 2016-30-09 at 00:51:46 UTC, Michael Ellerman wrote: > The fadump code calls vmcore_cleanup() which only exists if > CONFIG_PROC_VMCORE=y. We don't want to depend on CONFIG_PROC_VMCORE, > because it's user selectable, so just wrap the call in an #ifdef. > > Signed-off-by: Michael Ellerman

[PATCH v3 27/42] powerpc/64s: Consolidate Reserved 0xec0, 0xee0 interrupts

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S

[PATCH v3 28/42] powerpc/64s: Consolidate Performance Monitor 0xf00 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH v3 31/42] powerpc/64s: Consolidate Facility Unavailable 0xf60 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH v3 32/42] powerpc/64s: Consolidate Hypervisor Facility Unavailable 0xf80 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git

[PATCH v3 39/42] powerpc/64s: Consolidate CBE Thermal 0x1800 interrupt

2016-10-04 Thread Michael Ellerman
From: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git

Re: [RFC] fs: add userspace critical mounts event support

2016-10-04 Thread Luis R. Rodriguez
On Tue, Oct 4, 2016 at 5:12 PM, Linus Torvalds wrote: > On Tue, Oct 4, 2016 at 5:00 PM, Luis R. Rodriguez wrote: >> >> I am not sure how/why a firmware loading daemon would be a better >> idea now. What Marc describes that Josh proposed with

Re: [1/2] powerpc: tm: Add TM Unavailable Exception

2016-10-04 Thread Michael Ellerman
On Wed, 2016-14-09 at 08:02:15 UTC, Cyril Bur wrote: > If the kernel disables transactional memory (TM) and userspace still > tries TM related actions (TM instructions or TM SPR accesses) TM aware > hardware will cause the kernel to take a facility unavailable > exception. > > Add checks for the

Re: [1/2] powerpc: Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little endian

2016-10-04 Thread Michael Ellerman
On Sun, 2016-25-09 at 12:35:40 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > POWER8 handles unaligned accesses in little endian mode, but commit > 0b5e6661ac69 ("powerpc: Don't set HAVE_EFFICIENT_UNALIGNED_ACCESS on > little endian builds") disabled it for all. > >

Re: [2/9] powerpc/powernv: Use CPU-endian hub diag-data type in pnv_eeh_get_and_dump_hub_diag()

2016-10-04 Thread Michael Ellerman
On Tue, 2016-02-08 at 04:10:30 UTC, Gavin Shan wrote: > The hub diag-data type is filled with big-endian data by OPAL call > opal_pci_get_hub_diag_data(). We need convert it to CPU-endian value > before using it. The issue is reported by sparse as pointed by Michael > Ellerman: > >

Re: [7/9] powerpc/powernv: Fix data type for @r in pnv_ioda_parse_m64_window()

2016-10-04 Thread Michael Ellerman
On Tue, 2016-02-08 at 04:10:35 UTC, Gavin Shan wrote: > This fixes warning reported from sparse: > > gwshan@gwshan:~/sandbox/l$ make C=2 CF=-D__CHECK_ENDIAN__ \ > arch/powerpc/platforms/powernv/pci-ioda.o > : >

Re: powerpc: Remove static branch prediction in atomic{, 64}_add_unless

2016-10-04 Thread Michael Ellerman
On Mon, 2016-03-10 at 06:03:03 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > I see quite a lot of static branch mispredictions on a simple > web serving workload. The issue is in __atomic_add_unless(), called > from _atomic_dec_and_lock(). There is no obvious common

  1   2   >