Re: [PATCH] crypto: vmx - CTR: always increment IV as quadword

2019-05-16 Thread Herbert Xu
On Wed, May 15, 2019 at 08:24:50PM +1000, Daniel Axtens wrote: > The kernel self-tests picked up an issue with CTR mode: > alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test > vector 3, cfg="uneven misaligned splits, may sleep" > > Test vector 3 has an IV of F

Re: [PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Herbert Xu
On Fri, May 17, 2019 at 01:40:02AM +1000, Daniel Axtens wrote: > VMX ghash was using a fallback that did not support interleaving simd > and nosimd operations, leading to failures in the extended test suite. > > If I understood correctly, Eric's suggestion was to use the same > data format that th

Re: [PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Herbert Xu
On Fri, May 17, 2019 at 10:32:12AM +1000, Daniel Axtens wrote: > > Yes, I think that's the right fixes tag. Not quite sure how I managed to > miss that! Herbert, I assume this will go via your tree: do you want me > to send a v2 with the tag or are you OK to just add that in when you > merge it? I

Re: [RESEND PATCH v3 04/11] s390/cpacf: mark scpacf_query() as __always_inline

2019-05-16 Thread Masahiro Yamada
On Fri, May 17, 2019 at 8:01 AM Laura Abbott wrote: > > On 4/22/19 8:49 PM, Masahiro Yamada wrote: > > This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common > > place. We need to eliminate potential issues beforehand. > > > > If it is enabled for s390, the following error is reported

Re: [RESEND PATCH v3 10/11] powerpc/mm/radix: mark as __tlbie_pid() and friends as__always_inline

2019-05-16 Thread Masahiro Yamada
Hi Laura, On Fri, May 17, 2019 at 7:55 AM Laura Abbott wrote: > What gcc version was this tested with? I use kernel.org toolchains https://mirrors.edge.kernel.org/pub/tools/crosstool/ It is GCC 8.1 > We're still seeing errors on > Fedora rawhide with gcc 9.1.1 on a version > (8c05f3b965da1

Re: [RFC PATCH 3/3] powerpc/mm/hugetlb: Don't enable HugeTLB if we don't have a page table cache

2019-05-16 Thread Aneesh Kumar K.V
On 5/16/19 8:17 PM, Michael Ellerman wrote: "Aneesh Kumar K.V" writes: This makes sure we don't enable HugeTLB if the cache is not configured. I am still not sure about this. IMHO hugetlb support should be a hardware support derivative and any cache allocation failure should be handled as I did

[PATCH V2 3/3] soc: fsl: add RCPM driver

2019-05-16 Thread Ran Wang
The NXP's QorIQ Processors based on ARM Core have RCPM module (Run Control and Power Management), which performs all device-level tasks associated with power management such as wakeup source control. This driver depends on PM wakeup source framework which help to collect wake information. Signed-

[PATCH V2 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-16 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. And is user's responsibility to identify if this wakeup source he is inter

[PATCH V2 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-05-16 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc SoC.

RE: [EXT] Re: [PATCH 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes

2019-05-16 Thread Xiaowei Bao
Hi Arnd, -Original Message- From: Arnd Bergmann Sent: 2019年5月15日 16:05 To: Xiaowei Bao Cc: Bjorn Helgaas ; Rob Herring ; Mark Rutland ; Shawn Guo ; Leo Li ; Kishon ; Lorenzo Pieralisi ; gregkh ; M.h. Lian ; Mingkai Hu ; Roy Zang ; Kate Stewart ; Philippe Ombredanne ; Shawn Lin ;

Re: [PATCH] powerpc/64s: Make boot look nice(r)

2019-05-16 Thread Thiago Jung Bauermann
Hello, Nicholas Piggin writes: > Christophe Leroy's on May 16, 2019 2:47 pm: >> >> >> Le 16/05/2019 à 04:04, Nicholas Piggin a écrit: >>> Radix boot looks like this: >>> >>> - >>> phys_mem_size = 0x2 >>> dcache_bsize

[PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun

2019-05-16 Thread S.j. Wang
There is chip errata ERR008000, the reference doc is (https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf), The issue is "While using ESAI transmit or receive and an underrun/overrun happens, channel swap may occur. The only recovery mechanism is to reset the ESAI." In this commit add a tasklet to ha

[PATCH 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-05-16 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc SoC.

[PATCH 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-16 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. And is user's responsibility to identify if this wakeup source he is inter

[PATCH 3/3] soc: fsl: add RCPM driver

2019-05-16 Thread Ran Wang
The NXP's QorIQ Processors based on ARM Core have RCPM module (Run Control and Power Management), which performs all device-level tasks associated with power management such as wakeup source control. This driver depends on PM wakeup source framework which help to collect wake information. Signed-

Re: [PATCH] crypto: vmx - CTR: always increment IV as quadword

2019-05-16 Thread Nayna
On 05/15/2019 06:24 AM, Daniel Axtens wrote: The kernel self-tests picked up an issue with CTR mode: alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" Test vector 3 has an IV of FFFD, so aft

Re: [PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Daniel Axtens
Michael Ellerman writes: > Daniel Axtens writes: >> VMX ghash was using a fallback that did not support interleaving simd >> and nosimd operations, leading to failures in the extended test suite. >> >> If I understood correctly, Eric's suggestion was to use the same >> data format that the gener

Re: [PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Michael Ellerman
Daniel Axtens writes: > VMX ghash was using a fallback that did not support interleaving simd > and nosimd operations, leading to failures in the extended test suite. > > If I understood correctly, Eric's suggestion was to use the same > data format that the generic code uses, allowing us to call

Re: [RESEND PATCH v3 04/11] s390/cpacf: mark scpacf_query() as __always_inline

2019-05-16 Thread Laura Abbott
On 4/22/19 8:49 PM, Masahiro Yamada wrote: This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common place. We need to eliminate potential issues beforehand. If it is enabled for s390, the following error is reported: In file included from arch/s390/crypto/des_s390.c:19: ./arch/s390/i

Re: [PATCH 1/3] powerpc/pseries: Simplify cpu readd to use drc_index

2019-05-16 Thread Nathan Lynch
Tyrel Datwyler writes: > The current dlpar_cpu_readd() takes in a cpu_id and uses that to look up > the cpus device_node so that we can get at the ibm,my-drc-index > property. The only user of cpu readd is an OF notifier call back. This > call back already has a reference to the device_node and th

Re: [RFC PATCH] powerpc/64/ftrace: mprofile-kernel patch out mflr

2019-05-16 Thread Naveen N. Rao
Nicholas Piggin wrote: Naveen N. Rao's on May 14, 2019 6:32 pm: Michael Ellerman wrote: "Naveen N. Rao" writes: Michael Ellerman wrote: Nicholas Piggin writes: The new mprofile-kernel mcount sequence is mflr r0 bl_mcount Dynamic ftrace patches the branch instruction with a noop,

Applied "ASoC: fsl_asrc: replace the process_option table with function" to the asoc tree

2019-05-16 Thread Mark Brown
The patch ASoC: fsl_asrc: replace the process_option table with function has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Applied "ASoC: fsl_asrc: Fix the issue about unsupported rate" to the asoc tree

2019-05-16 Thread Mark Brown
The patch ASoC: fsl_asrc: Fix the issue about unsupported rate has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

[PATCH 3.16 09/86] jump_label: Allow jump labels to be used in assembly

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Anton Blanchard commit c0ccf6f99e3a43b87980c9df7da48427885206d0 upstream. To use jump labels in assembly we need the HAVE_JUMP_LABEL define, so we select a fallback version if the toolchain do

[PATCH 3.16 79/86] cpu/speculation: Add 'mitigations=' cmdline option

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit 98af8452945c55652de68536afdde3b520fec429 upstream. Keeping track of the number of mitigations for all the CPU speculation bugs has become overwhelming for many users. It

[PATCH 3.16 08/86] jump_label: Allow asm/jump_label.h to be included in assembly

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Anton Blanchard commit 55dd0df781e58ec23d218376ea4a676e7362a98c upstream. Wrap asm/jump_label.h for all archs with #ifndef __ASSEMBLY__. Since these are kernel only headers, we don't need #ifd

[PATCH 3.16 80/86] x86/speculation: Support 'mitigations=' cmdline option

2019-05-16 Thread Ben Hutchings
3.16.68-rc1 review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit d68be4c4d31295ff6ae34a8ddfaa4c1a8ff42812 upstream. Configure x86 runtime CPU speculation bug mitigations in accordance with the 'mitigations=' cmdline option. This affec

Re: [PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Ard Biesheuvel
On Thu, 16 May 2019 at 17:40, Daniel Axtens wrote: > > VMX ghash was using a fallback that did not support interleaving simd > and nosimd operations, leading to failures in the extended test suite. > > If I understood correctly, Eric's suggestion was to use the same > data format that the generic

[PATCH] crypto: vmx - ghash: do nosimd fallback manually

2019-05-16 Thread Daniel Axtens
VMX ghash was using a fallback that did not support interleaving simd and nosimd operations, leading to failures in the extended test suite. If I understood correctly, Eric's suggestion was to use the same data format that the generic code uses, allowing us to call into it with the same contexts.

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
On Thu, May 16, 2019 at 05:22:53PM +0200, Oleg Nesterov wrote: > On 05/17, Aleksa Sarai wrote: > > > > On 2019-05-16, Oleg Nesterov wrote: > > > On 05/17, Aleksa Sarai wrote: > > > > On 2019-05-16, Oleg Nesterov wrote: > > > > > On 05/16, Christian Brauner wrote: > > > > > > With the introduction

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Oleg Nesterov
On 05/17, Aleksa Sarai wrote: > > On 2019-05-16, Oleg Nesterov wrote: > > On 05/17, Aleksa Sarai wrote: > > > On 2019-05-16, Oleg Nesterov wrote: > > > > On 05/16, Christian Brauner wrote: > > > > > With the introduction of pidfds through CLONE_PIDFD it is possible to > > > > > created pidfds at

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Aleksa Sarai
On 2019-05-16, Oleg Nesterov wrote: > On 05/17, Aleksa Sarai wrote: > > On 2019-05-16, Oleg Nesterov wrote: > > > On 05/16, Christian Brauner wrote: > > > > With the introduction of pidfds through CLONE_PIDFD it is possible to > > > > created pidfds at process creation time. > > > > > > Now I am

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Oleg Nesterov
On 05/17, Aleksa Sarai wrote: > > On 2019-05-16, Oleg Nesterov wrote: > > On 05/16, Christian Brauner wrote: > > > > > > With the introduction of pidfds through CLONE_PIDFD it is possible to > > > created pidfds at process creation time. > > > > Now I am wondering why do we need CLONE_PIDFD, you c

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
On Thu, May 16, 2019 at 04:56:08PM +0200, Geert Uytterhoeven wrote: > Hi Christian, David, > > On Thu, May 16, 2019 at 4:00 PM Christian Brauner > wrote: > > This adds the pidfd_open() syscall. It allows a caller to retrieve pollable > > pidfds for a process which did not get created via CLONE_P

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
On Thu, May 16, 2019 at 04:27:00PM +0200, Oleg Nesterov wrote: > On 05/16, Christian Brauner wrote: > > > > With the introduction of pidfds through CLONE_PIDFD it is possible to > > created pidfds at process creation time. > > Now I am wondering why do we need CLONE_PIDFD, you can just do > >

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Aleksa Sarai
On 2019-05-16, Oleg Nesterov wrote: > On 05/16, Christian Brauner wrote: > > > > With the introduction of pidfds through CLONE_PIDFD it is possible to > > created pidfds at process creation time. > > Now I am wondering why do we need CLONE_PIDFD, you can just do > > pid = fork(); > p

Re: [PATCH 1/2] pid: add pidfd_open()

2019-05-16 Thread Aleksa Sarai
On 2019-05-16, Christian Brauner wrote: > On Wed, May 15, 2019 at 10:45:06AM -0700, Daniel Colascione wrote: > > On Wed, May 15, 2019 at 3:04 AM Christian Brauner > > wrote: > > > + if (pid <= 0) > > > + return -EINVAL; > > > > WDYT of defining pid == 0 to mean "open myself"

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Geert Uytterhoeven
Hi Christian, David, On Thu, May 16, 2019 at 4:00 PM Christian Brauner wrote: > This adds the pidfd_open() syscall. It allows a caller to retrieve pollable > pidfds for a process which did not get created via CLONE_PIDFD, i.e. for a > process that is created via traditional fork()/clone() calls t

Re: [RFC PATCH 3/3] powerpc/mm/hugetlb: Don't enable HugeTLB if we don't have a page table cache

2019-05-16 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > This makes sure we don't enable HugeTLB if the cache is not configured. > I am still not sure about this. IMHO hugetlb support should be a hardware > support derivative and any cache allocation failure should be handled as I did > in the earlier patch. But then if we w

Re: [PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Oleg Nesterov
On 05/16, Christian Brauner wrote: > > With the introduction of pidfds through CLONE_PIDFD it is possible to > created pidfds at process creation time. Now I am wondering why do we need CLONE_PIDFD, you can just do pid = fork(); pidfd_open(pid); > +SYSCALL_DEFINE2(pidfd_open, pid

PROBLEM: Power9: kernel oops on memory hotunplug from ppc64le guest

2019-05-16 Thread srikanth
Hello, On power9 host, performing memory hotunplug from ppc64le guest results in kernel oops. Kernel used : https://github.com/torvalds/linux/tree/v5.1 built using ppc64le_defconfig for host and ppc64le_guest_defconfig for guest. Recreation steps: 1. Boot a guest with below mem configurati

[PATCH v1 2/2] tests: add pidfd_open() tests

2019-05-16 Thread Christian Brauner
This adds testing for the new pidfd_open() syscalls. Specifically, we test: - that no invalid flags can be passed to pidfd_open() - that no invalid pid can be passed to pidfd_open() - that a pidfd can be retrieved with pidfd_open() - that the retrieved pidfd references the correct pid Signed-off-b

Re: [PATCH 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
On Thu, May 16, 2019 at 04:03:27PM +0200, Jann Horn wrote: > On Thu, May 16, 2019 at 3:08 PM Christian Brauner > wrote: > > On Wed, May 15, 2019 at 10:45:06AM -0700, Daniel Colascione wrote: > > > On Wed, May 15, 2019 at 3:04 AM Christian Brauner > > > wrote: > > > > > > > > This adds the pidfd

[PATCH v1 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
This adds the pidfd_open() syscall. It allows a caller to retrieve pollable pidfds for a process which did not get created via CLONE_PIDFD, i.e. for a process that is created via traditional fork()/clone() calls that is only referenced by a PID: int pidfd = pidfd_open(1234, 0); ret = pidfd_send_si

[Bug 203609] Build error: implicit declaration of function 'cpu_mitigations_off'

2019-05-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203609 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug 203609] Build error: implicit declaration of function 'cpu_mitigations_off'

2019-05-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203609 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEW |ASSIGNED

Re: [PATCH] powerpc/book3s/mm: Clear MMU_FTR_HPTE_TABLE when radix is enabled.

2019-05-16 Thread Aneesh Kumar K.V
On 5/16/19 10:34 AM, Nicholas Piggin wrote: Aneesh Kumar K.V's on May 14, 2019 4:02 pm: Avoids confusion when printing Oops message like below Faulting instruction address: 0xc008bdb4 Oops: Kernel access of bad area, sig: 11 [#1] LE PAGE_SIZE=64K MMU=Radix MMU=Hash SMP NR_CPUS=204

Re: [PATCH] crypto: talitos - fix skcipher failure due to wrong output IV

2019-05-16 Thread Christophe Leroy
Le 16/05/2019 à 04:30, Eric Biggers a écrit : On Wed, May 15, 2019 at 08:49:48PM +0200, Christophe Leroy wrote: Le 15/05/2019 à 16:05, Horia Geanta a écrit : On 5/15/2019 3:29 PM, Christophe Leroy wrote: Selftests report the following: [2.984845] alg: skcipher: cbc-aes-talitos encryp

Re: Latest Git kernel: Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup()

2019-05-16 Thread Shawn Landden
Hi El mié., 15 may. 2019 5:17, Christophe Leroy escribió: > Hi, > > Le 15/05/2019 à 12:09, Christian Zigotzky a écrit : > > Hi All, > > > > I got the following error messages with the latest Git kernel today: > > > > GEN .version > >CHK include/generated/compile.h > >LD vmli

Re: [PATCH 1/2] pid: add pidfd_open()

2019-05-16 Thread Christian Brauner
On Wed, May 15, 2019 at 10:45:06AM -0700, Daniel Colascione wrote: > On Wed, May 15, 2019 at 3:04 AM Christian Brauner > wrote: > > > > This adds the pidfd_open() syscall. It allows a caller to retrieve pollable > > pidfds for a process which did not get created via CLONE_PIDFD, i.e. for a > > pr

[PATCH] powerpc/mm/hash: Improve address limit checks

2019-05-16 Thread Aneesh Kumar K.V
Different parts of the code do the limit check by ignoring the top nibble of EA. ie. we do checks like if ((ea & EA_MASK) >= H_PGTABLE_RANGE) error This patch makes sure we don't insert SLB entries for addresses whose top nibble doesn't match the ignored bits. With an ad

[PATCH AUTOSEL 5.0 11/34] KVM: PPC: Book3S HV: Perserve PSSCR FAKE_SUSPEND bit on guest exit

2019-05-16 Thread Sasha Levin
From: Suraj Jitindar Singh [ Upstream commit 7cb9eb106d7a4efab6bcf30ec9503f1d703c77f5 ] There is a hardware bug in some POWER9 processors where a treclaim in fake suspend mode can cause an inconsistency in the XER[SO] bit across the threads of a core, the workaround being to force the core into

[PATCH AUTOSEL 5.0 12/34] KVM: PPC: Book3S: Protect memslots while validating user address

2019-05-16 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit 345077c8e172c255ea0707214303ccd099e5656b ] Guest physical to user address translation uses KVM memslots and reading these requires holding the kvm->srcu lock. However recently introduced kvmppc_tce_validate() broke the rule (see the lockdep warning be

Re: [PATCH 0/1] Forced-wakeup for stop lite states on Powernv

2019-05-16 Thread Gautham R Shenoy
Hi Nicholas, On Thu, May 16, 2019 at 04:13:17PM +1000, Nicholas Piggin wrote: > > > The motivation behind this patch was a HPC customer issue where they > > were observing some CPUs in the core getting stuck at stop0_lite > > state, thereby lowering the performance on the other CPUs of the core

Re: [PATCH 4.4 247/266] cpu/speculation: Add mitigations= cmdline option

2019-05-16 Thread Geert Uytterhoeven
Hi Greg, Ben, On Wed, May 15, 2019 at 1:12 PM Greg Kroah-Hartman wrote: > From: Josh Poimboeuf > > commit 98af8452945c55652de68536afdde3b520fec429 upstream. > > Keeping track of the number of mitigations for all the CPU speculation > bugs has become overwhelming for many users. It's getting mor