Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-03-02 Thread Ulf Magnusson
On Fri, Mar 02, 2018 at 02:50:39PM +0900, Masahiro Yamada wrote: > 2018-02-22 6:39 GMT+09:00 Ulf Magnusson : > > On Wed, Feb 21, 2018 at 09:57:03PM +0900, Masahiro Yamada wrote: > >> 2018-02-21 19:52 GMT+09:00 Arnd Bergmann : > >> > On Wed, Feb 21, 2018 at 11:20 AM, Masahiro Yamada > >> > wrote: >

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-03-02 Thread Ulf Magnusson
On Fri, Mar 02, 2018 at 10:03:26AM +0100, Ulf Magnusson wrote: > On Fri, Mar 02, 2018 at 02:50:39PM +0900, Masahiro Yamada wrote: > > 2018-02-22 6:39 GMT+09:00 Ulf Magnusson : > > > On Wed, Feb 21, 2018 at 09:57:03PM +0900, Masahiro Yamada wrote: > > >> 2018-02-21 19:52 GMT+09:00 Arnd Bergmann : >

[PATCH v10 1/2] powerpc/powernv: Enable tunneled operations

2018-03-02 Thread Philippe Bergheaud
P9 supports PCI tunneled operations (atomics and as_notify). This patch adds support for tunneled operations on powernv, with a new API, to be called by device drivers: pnv_pci_enable_tunnel() Enable tunnel operations, tell driver the 16-bit ASN indication used by kernel. pnv_pci_disable_tu

[PATCH v10 2/2] cxl: read PHB indications from the device tree

2018-03-02 Thread Philippe Bergheaud
Configure the P9 XSL_DSNCTL register with PHB indications found in the device tree, or else use legacy hard-coded values. Signed-off-by: Philippe Bergheaud Reviewed-by: Frederic Barrat --- Changelog: v2: New patch. Use the new device tree property "ibm,phb-indications". v3: No change. v4: No

[PATCH] KVM: PPC: Book3S HV: Fix guest time accounting with VIRT_CPU_ACCOUNTING_GEN

2018-03-02 Thread Laurent Vivier
Since commit 8b24e69fc47e ("KVM: PPC: Book3S HV: Close race with testing for signals on guest entry"), if CONFIG_VIRT_CPU_ACCOUNTING_GEN is set, the guest time is not accounted to guest time and user time, but instead to system time. This is because guest_enter()/guest_exit() are called while inte

Re: [PATCH] KVM: PPC: Book3S HV: Fix guest time accounting with VIRT_CPU_ACCOUNTING_GEN

2018-03-02 Thread Paolo Bonzini
On 02/03/2018 11:51, Laurent Vivier wrote: > Since commit 8b24e69fc47e ("KVM: PPC: Book3S HV: Close race with testing > for signals on guest entry"), if CONFIG_VIRT_CPU_ACCOUNTING_GEN is set, the > guest time is not accounted to guest time and user time, but instead to > system time. > > This is b

[RFC PATCH 7/10] powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()

2018-03-02 Thread Michael Ellerman
Now that we have the security flags we can significantly simplify the code in pnv_setup_rfi_flush(), because we can use the flags instead of checking device tree properties and because the security flags have pessimistic defaults. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powern

[RFC PATCH 8/10] powerpc/pseries: Use the security flags in pseries_setup_rfi_flush()

2018-03-02 Thread Michael Ellerman
Now that we have the security flags we can simplify the code in pseries_setup_rfi_flush() because the security flags have pessimistic defaults. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/pseries/setup.c | 39 ++ 1 file changed, 16 insertions(+), 23

[RFC PATCH 9/10] powerpc/64s: Wire up cpu_show_spectre_v1()

2018-03-02 Thread Michael Ellerman
Add a definition for cpu_show_spectre_v1() to override the generic version. Currently this just prints "Not affected" or "Vulnerable" based on the firmware flag. Although the kernel does have array_index_nospec() in a few places, we haven't yet audited all the powerpc code to see where it's necess

[RFC PATCH 10/10] powerpc/64s: Wire up cpu_show_spectre_v2()

2018-03-02 Thread Michael Ellerman
Add a definition for cpu_show_spectre_v2() to override the generic version. This has several permuations, though in practice some may not occur we cater for any combination. The most verbose is: Mitigation: Indirect branch serialisation (kernel only), Indirect branch cache disabled, ori31 spe

Re: [PATCH] powerpc: dts: replace 'linux, stdout-path' with 'stdout-path'

2018-03-02 Thread Michael Ellerman
Rob Herring writes: > On Wed, Feb 28, 2018 at 7:33 PM, Michael Ellerman wrote: >> Rob Herring writes: >> >>> 'linux,stdout-path' has been deprecated for some time in favor of >>> 'stdout-path'. Now dtc will warn on occurrences of 'linux,stdout-path'. >>> Search and replace all the of occurrence

Re: [PATCH] powerpc: boot: add strrchr function

2018-03-02 Thread Michael Ellerman
Rob Herring writes: > libfdt gained a new dependency on strrchr, so copy the implementation > from lib/string.c. Most of the string functions are in assembly, but > stdio.c already has strnlen, so add strrchr there. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > S

Re: Hotplug + Reboot is crashing HPT guest with HPT resizing enabled

2018-03-02 Thread Bharata B Rao
On Fri, Mar 2, 2018 at 7:51 AM, David Gibson wrote: > On Fri, Feb 23, 2018 at 03:02:40PM +0530, Bharata B Rao wrote: > > Hi, > > > > Rebooting a hash guest after hotplugging memory to it is crashing the > > guest. This is seen only when HPT resizing is enabled. I see guest > crashing > > at multi

Re: [PATCH 17/18] crypto: talitos - chain in buffered data for ahash on SEC1

2018-03-02 Thread Horia Geantă
On 10/6/2017 4:05 PM, Christophe Leroy wrote: [...] > @@ -1778,6 +1814,36 @@ static int common_nonsnoop_hash(struct talitos_edesc > *edesc, > if (is_sec1 && from_talitos_ptr_len(&desc->ptr[3], true) == 0) > talitos_handle_buggy_hash(ctx, edesc, &desc->ptr[3]); > > + if (i

Re: [PATCH 17/18] crypto: talitos - chain in buffered data for ahash on SEC1

2018-03-02 Thread Christophe LEROY
Le 02/03/2018 à 18:27, Horia Geantă a écrit : On 10/6/2017 4:05 PM, Christophe Leroy wrote: [...] @@ -1778,6 +1814,36 @@ static int common_nonsnoop_hash(struct talitos_edesc *edesc, if (is_sec1 && from_talitos_ptr_len(&desc->ptr[3], true) == 0) talitos_handle_buggy_has

Re: [PATCH 1/2] crypto: talitos - don't persistently map req_ctx->hw_context and req_ctx->buf

2018-03-02 Thread Horia Geantă
On 2/26/2018 6:40 PM, Christophe Leroy wrote: > Commit 49f9783b0cea ("crypto: talitos - do hw_context DMA mapping > outside the requests") introduced a persistent dma mapping of > req_ctx->hw_context > Commit 37b5e8897eb5 ("crypto: talitos - chain in buffered data for ahash > on SEC1") introduced a

[PATCH v2 01/21] powerpc: Remove warning on array size when empty

2018-03-02 Thread Mathieu Malaterre
When neither CONFIG_ALTIVEC, nor CONFIG_VSX or CONFIG_PPC64 is defined, the array feature_properties is defined as an empty array, which in turn triggers the following warning (treated as error on W=1): CC arch/powerpc/kernel/prom.o arch/powerpc/kernel/prom.c: In function ‘check_cpu_feature

[PATCH v2 06/21] powerpc: Avoid comparison of unsigned long >= 0 in __access_ok

2018-03-02 Thread Mathieu Malaterre
Rewrite function-like macro into regular static inline function to avoid a warning during macro expansion. Fix warning (treated as error in W=1): CC arch/powerpc/kernel/signal_32.o In file included from ./include/linux/uaccess.h:14:0, from ./include/asm-generic/termios-base

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread Mathieu Malaterre
On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: > On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: >> Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : >> >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < >> >max_mapnr) >> >+#define pfn_valid(p

Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h

2018-03-02 Thread James Hogan
On Mon, Jan 15, 2018 at 06:18:10PM -0800, Deepa Dinamani wrote: > All the current architecture specific defines for these > are the same. Refactor these common defines to a common > header file. > > The new common linux/compat_time.h is also useful as it > will eventually be used to hold all the d

Re: [PATCH v2 06/21] powerpc: Avoid comparison of unsigned long >= 0 in __access_ok

2018-03-02 Thread christophe leroy
Le 02/03/2018 à 20:50, Mathieu Malaterre a écrit : Rewrite function-like macro into regular static inline function to avoid a warning during macro expansion. Fix warning (treated as error in W=1): CC arch/powerpc/kernel/signal_32.o In file included from ./include/linux/uaccess.h:14:0,

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread christophe leroy
Le 02/03/2018 à 20:54, Mathieu Malaterre a écrit : On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : -#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET &