Re: [PATCH 1/2] scsi: Move scsi_cmd->jiffies_at_alloc initialization to allocation time

2017-08-22 Thread h...@lst.de
On Mon, Aug 21, 2017 at 05:13:20PM -0500, Brian King wrote: > Move the initialization of scsi_cmd->jiffies_at_alloc to allocation > time rather than prep time. Also ensure that jiffies_at_alloc > is preserved when we go through prep. This lets us send retries > through prep again and not break the

Re: [PATCH 2/2] scsi: Preserve retry counter through scsi_prep_fn

2017-08-22 Thread h...@lst.de
On Mon, Aug 21, 2017 at 05:14:00PM -0500, Brian King wrote: > Save / restore the retry counter in scsi_cmd in scsi_init_command. > This allows us to go back through scsi_init_command for retries > and not forget we are doing a retry. So where will we initialize it to zero now?

Re: [PATCH resend] timers: Fix excessive granularity of new timers after a nohz idle

2017-08-22 Thread Thomas Gleixner
On Tue, 22 Aug 2017, Nicholas Piggin wrote: > I would have preferred to get comments from the timer maintainers, but > they've been busy or away for the past copule of weeks. Perhaps you > would consider carrying it until then? Yes, I was on vacation, but that patch never hit my LKML inbox >

Re: RCU lockup issues when CONFIG_SOFTLOCKUP_DETECTOR=n - any one else seeing this?

2017-08-22 Thread Jonathan Cameron
On Mon, 21 Aug 2017 13:55:04 -0700 David Miller wrote: > From: Nicholas Piggin > Date: Tue, 22 Aug 2017 00:19:28 +1000 > > > Thanks here's an updated version with a couple more bugs fixed. If > > you could try testing, that would be much appreciated. > > I'm not getting RCU stalls on sparc64

Re: [PATCH resend] timers: Fix excessive granularity of new timers after a nohz idle

2017-08-22 Thread Nicholas Piggin
On Tue, 22 Aug 2017 09:45:46 +0200 (CEST) Thomas Gleixner wrote: > On Tue, 22 Aug 2017, Nicholas Piggin wrote: > > I would have preferred to get comments from the timer maintainers, but > > they've been busy or away for the past copule of weeks. Perhaps you > > would consider carrying it until th

[PATCH 00/11] crypto: gcm - add GCM IV size constant

2017-08-22 Thread Corentin Labbe
Many GCM users use directly GCM IV size instead of using some constant. This patch add all IV size constant used by GCM and convert drivers for using them.. Corentin Labbe (11): crypto: gcm - add GCM iv size constant crypto: caam - Use GCM IV size constant crypto: ccp - Use GCM IV size con

[PATCH 01/11] crypto: gcm - add GCM IV size constant

2017-08-22 Thread Corentin Labbe
Many GCM users use directly GCM IV size instead of using some constant. This patch add all IV size constant used by GCM. Signed-off-by: Corentin Labbe --- include/crypto/gcm.h | 8 1 file changed, 8 insertions(+) create mode 100644 include/crypto/gcm.h diff --git a/include/crypto/gcm

[PATCH 02/11] crypto: caam - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/caam/caamalg.c | 10 +- drivers/crypto/caam/compat.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/c

[PATCH 03/11] crypto: ccp - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/ccp/ccp-crypto-aes-galois.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/ccp/ccp-crypto-aes-galois.c b/drivers/crypto/ccp/ccp-crypto-aes-g

[PATCH 05/11] crypto: atmel - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/atmel-aes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 29e20c37f3a6..903fd43f23a5 100644 --- a

[PATCH 04/11] crypto: nx - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/nx/nx-aes-gcm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/nx/nx-aes-gcm.c b/drivers/crypto/nx/nx-aes-gcm.c index abd465f479c4..a810596b9

[PATCH 06/11] crypto: bcm - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/bcm/cipher.c | 8 drivers/crypto/bcm/cipher.h | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c i

[PATCH 07/11] crypto: mediatek - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/mediatek/mtk-aes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek/mtk-aes.c index 9e845e866dec..87e15b

[PATCH 08/11] crypto: chelsio - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/chelsio/chcr_algo.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c index 0e81607018

[PATCH 09/11] crypto: omap - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- drivers/crypto/omap-aes-gcm.c | 7 --- drivers/crypto/omap-aes.c | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-ae

[PATCH 10/11] crypto: gcm - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- crypto/gcm.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 3841b5eafa7e..80cf6cfe082b 100644 --- a/crypto/gcm.c +++ b/c

[PATCH 11/11] crypto: aesni - Use GCM IV size constant

2017-08-22 Thread Corentin Labbe
This patch replace GCM IV size value by their constant name. Signed-off-by: Corentin Labbe --- arch/x86/crypto/aesni-intel_glue.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 5c15d6b57329

[PATCH] net: ethernet: freescale: fs_enet: make mdiobb_ops const

2017-08-22 Thread Bhumika Goyal
Make this const as it is only stored in a const field of a mdiobb_ctrl structure. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c b/driv

Re: RCU lockup issues when CONFIG_SOFTLOCKUP_DETECTOR=n - any one else seeing this?

2017-08-22 Thread Abdul Haleem
On Tue, 2017-08-22 at 08:49 +0100, Jonathan Cameron wrote: > On Mon, 21 Aug 2017 13:55:04 -0700 > David Miller wrote: > > > From: Nicholas Piggin > > Date: Tue, 22 Aug 2017 00:19:28 +1000 > > > > > Thanks here's an updated version with a couple more bugs fixed. If > > > you could try testing, t

Re: [PATCH 5/6] powerpc/mm: Optimize detection of thread local mm's

2017-08-22 Thread Frederic Barrat
Le 21/08/2017 à 19:35, Benjamin Herrenschmidt a écrit : On Mon, 2017-08-21 at 19:27 +0200, Frederic Barrat wrote: Hi Ben, Le 24/07/2017 à 06:28, Benjamin Herrenschmidt a écrit : Instead of comparing the whole CPU mask every time, let's keep a counter of how many bits are set in the mask. Thu

Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-22 Thread David Hildenbrand
On 22.08.2017 16:28, nixiaoming wrote: > miss kfree(stt) when anon_inode_getfd return fail > so add check anon_inode_getfd return val, and kfree stt > > Signed-off-by: nixiaoming > --- > arch/powerpc/kvm/book3s_64_vio.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-22 Thread David Hildenbrand
On 22.08.2017 17:15, David Hildenbrand wrote: > On 22.08.2017 16:28, nixiaoming wrote: >> miss kfree(stt) when anon_inode_getfd return fail >> so add check anon_inode_getfd return val, and kfree stt >> >> Signed-off-by: nixiaoming >> --- >> arch/powerpc/kvm/book3s_64_vio.c | 5 - >> 1 file ch

Re: RCU lockup issues when CONFIG_SOFTLOCKUP_DETECTOR=n - any one else seeing this?

2017-08-22 Thread Paul E. McKenney
On Tue, Aug 22, 2017 at 02:21:32PM +0530, Abdul Haleem wrote: > On Tue, 2017-08-22 at 08:49 +0100, Jonathan Cameron wrote: > > On Mon, 21 Aug 2017 13:55:04 -0700 > > David Miller wrote: > > > > > From: Nicholas Piggin > > > Date: Tue, 22 Aug 2017 00:19:28 +1000 > > > > > > > Thanks here's an up

Re: [PATCH] fix memory leak on kvm_vm_ioctl_get_htab_fd

2017-08-22 Thread Paolo Bonzini
On 22/08/2017 16:18, nixiaoming wrote: > ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); > but no free when anon_inode_getfd return fail > so, add kfree(ctx) to fix memory leak > > Signed-off-by: nixiaoming > --- > arch/powerpc/kvm/book3s_64_mmu_hv.c | 1 + > 1 file changed, 1 insertion(+) > > diff --

Re: 32-bit powerpc, aty128fb: vmap allocation for size 135168 failed

2017-08-22 Thread Andreas Schwab
On Aug 18 2017, Meelis Roos wrote: > Aug 17 23:53:57 pohl kernel: [ 2940.146546] aty128fb :00:10.0: Invalid > PCI ROM header signature: expecting 0xaa55, got 0x > Aug 17 23:54:02 pohl kernel: [ 2944.804838] aty128fb :00:10.0: Invalid > PCI ROM header signature: expecting 0xaa55, got

Re: 32-bit powerpc, aty128fb: vmap allocation for size 135168 failed

2017-08-22 Thread Meelis Roos
> > Aug 17 23:53:57 pohl kernel: [ 2940.146546] aty128fb :00:10.0: Invalid > > PCI ROM header signature: expecting 0xaa55, got 0x > > Aug 17 23:54:02 pohl kernel: [ 2944.804838] aty128fb :00:10.0: Invalid > > PCI ROM header signature: expecting 0xaa55, got 0x1110 > > I think these me

Re: [RFC Part1 PATCH v3 13/17] x86/io: Unroll string I/O when SEV is active

2017-08-22 Thread Borislav Petkov
On Wed, Jul 26, 2017 at 03:07:14PM -0500, Brijesh Singh wrote: > Are you commenting on amount of code duplication ? If so, I can certainly > improve > and use the similar macro used into header file to generate the functions > body. So the argument about having CONFIG_AMD_MEM_ENCRYPT disabled do

Re: [PATCH 1/2] powerpc/workqueue: update list of possible CPUs

2017-08-22 Thread Tejun Heo
Hello, Michael. On Tue, Aug 22, 2017 at 11:41:41AM +1000, Michael Ellerman wrote: > > This is something powerpc needs to fix. > > There is no way for us to fix it. I don't think that's true. The CPU id used in kernel doesn't have to match the physical one and arch code should be able to pre-map

Re: [PATCH 5/6] powerpc/mm: Optimize detection of thread local mm's

2017-08-22 Thread Benjamin Herrenschmidt
On Tue, 2017-08-22 at 15:18 +0200, Frederic Barrat wrote: > > Or you could just incrementer my counter. Just make sure you increment > > it at most once per CXL context and decrement when the context is gone. > > Ah great, I didn't dare messing with your counter, it makes it easier. > Arguably wh

[PATCH v2 0/6] Add RSS to DPAA 1.x Ethernet driver

2017-08-22 Thread Madalin Bucur
This patch set introduces Receive Side Scaling for the DPAA Ethernet driver. Documentation is updated with details related to the new feature and limitations that apply. Added also a small fix. Change from v1: removed a C++ style comment Iordache Florinel-R70177 (1): fsl/fman: enable FMan Keyge

[PATCH v2 2/6] dpaa_eth: use multiple Rx frame queues

2017-08-22 Thread Madalin Bucur
Add a block of 128 Rx frame queues per port. The FMan hardware will send traffic on one of these queues based on the FMan port Parse Classify Distribute setup. The hash computed by the FMan Keygen block will select the Rx FQ. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/d

[PATCH v2 3/6] dpaa_eth: enable Rx hashing control

2017-08-22 Thread Madalin Bucur
Allow ethtool control of the Rx flow hashing. By default RSS is enabled, this allows to turn it off by bypassing the FMan Keygen block and sending all traffic on the default Rx frame queue. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 113

[PATCH v2 1/6] fsl/fman: enable FMan Keygen

2017-08-22 Thread Madalin Bucur
From: Iordache Florinel-R70177 Add support for the FMan Keygen with a hardcoded scheme to spread incoming traffic on a FQ range based on source and destination IPs and ports. Signed-off-by: Iordache Florinel Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/Makefile |

[PATCH v2 4/6] dpaa_eth: add NETIF_F_RXHASH

2017-08-22 Thread Madalin Bucur
Set the skb hash when then FMan Keygen hash result is available. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 23 +++--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 9 +++

[PATCH v2 5/6] Documentation: networking: add RSS information

2017-08-22 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- Documentation/networking/dpaa.txt | 68 ++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/Documentation/networking/dpaa.txt b/Documentation/networking/dpaa.txt index 76e016d..f88194f 100644 --- a/Documentation/n

[PATCH v2 6/6] dpaa_eth: check allocation result

2017-08-22 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 73ca8d7..4225806 100644 --- a/drivers/net/ethernet/freescal

[PATCH] fix memory leak on kvm_vm_ioctl_get_htab_fd

2017-08-22 Thread nixiaoming
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); but no free when anon_inode_getfd return fail so, add kfree(ctx) to fix memory leak Signed-off-by: nixiaoming --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/k

[PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-22 Thread nixiaoming
miss kfree(stt) when anon_inode_getfd return fail so add check anon_inode_getfd return val, and kfree stt Signed-off-by: nixiaoming --- arch/powerpc/kvm/book3s_64_vio.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_64_vio.c b/arch/powerpc/kvm/boo

Re: [RFC v6 35/62] powerpc: Deliver SEGV signal on pkey violation

2017-08-22 Thread Ram Pai
On Sat, Aug 19, 2017 at 02:09:58PM -0500, Eric W. Biederman wrote: > Ram Pai writes: > > > diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c > > index d4e545d..fe1e7c7 100644 > > --- a/arch/powerpc/kernel/traps.c > > +++ b/arch/powerpc/kernel/traps.c > > @@ -20,6 +20,7 @@ > >

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Stephen Rothwell
Hi all, This tree fails to boot on my qemu test. 2 boot logs attached. Paul, Nick, is this the same/similar to the other RCU/lockup bug you are chasing. This is the first time I have seen this failure. This qemu boot is in full emulation mode if I add --enable-kvm to the qemu command, it does

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Stephen Rothwell
Hi all, On Wed, 23 Aug 2017 04:11:17 +1000 Stephen Rothwell wrote: > > This tree fails to boot on my qemu test. 2 boot logs attached. > > Paul, Nick, is this the same/similar to the other RCU/lockup bug you > are chasing. This is the first time I have seen this failure. > > This qemu boot is

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Paul E. McKenney
On Wed, Aug 23, 2017 at 04:14:24AM +1000, Stephen Rothwell wrote: > Hi all, > > On Wed, 23 Aug 2017 04:11:17 +1000 Stephen Rothwell > wrote: > > > > This tree fails to boot on my qemu test. 2 boot logs attached. > > > > Paul, Nick, is this the same/similar to the other RCU/lockup bug you > > a

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Stephen Rothwell
Hi Paul, On Tue, 22 Aug 2017 11:59:23 -0700 "Paul E. McKenney" wrote: > > On Wed, Aug 23, 2017 at 04:14:24AM +1000, Stephen Rothwell wrote: > > Hi all, > > > > On Wed, 23 Aug 2017 04:11:17 +1000 Stephen Rothwell > > wrote: > > > > > > This tree fails to boot on my qemu test. 2 boot logs at

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Paul E. McKenney
On Wed, Aug 23, 2017 at 05:12:16AM +1000, Stephen Rothwell wrote: > Hi Paul, > > On Tue, 22 Aug 2017 11:59:23 -0700 "Paul E. McKenney" > wrote: > > > > On Wed, Aug 23, 2017 at 04:14:24AM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > On Wed, 23 Aug 2017 04:11:17 +1000 Stephen Rothwell

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Paul E. McKenney
On Tue, Aug 22, 2017 at 12:32:31PM -0700, Paul E. McKenney wrote: > On Wed, Aug 23, 2017 at 05:12:16AM +1000, Stephen Rothwell wrote: > > Hi Paul, > > > > On Tue, 22 Aug 2017 11:59:23 -0700 "Paul E. McKenney" > > wrote: > > > > > > On Wed, Aug 23, 2017 at 04:14:24AM +1000, Stephen Rothwell wrote

Re: 32-bit powerpc, aty128fb: vmap allocation for size 135168 failed

2017-08-22 Thread Meelis Roos
> > I think these messages are harmless and expected. This device has no > > x86 option ROM but a OpenFirmware one. This is likely unrelated to the > > sddm crash. > > Yes, but after these crashes have happened for a while, vmalloc > problems appear. > > sddm crash might be related to X server

Re: [PATCH] net: ethernet: freescale: fs_enet: make mdiobb_ops const

2017-08-22 Thread David Miller
From: Bhumika Goyal Date: Tue, 22 Aug 2017 13:45:59 +0530 > Make this const as it is only stored in a const field of a > mdiobb_ctrl structure. > > Signed-off-by: Bhumika Goyal Applied.

Re: [PATCH v2 1/6] fsl/fman: enable FMan Keygen

2017-08-22 Thread David Miller
From: Madalin Bucur Date: Tue, 22 Aug 2017 20:31:01 +0300 > /** > + * fman_get_keygen > + * > + * @fman:A Pointer to FMan device > + * > + * Get the handle to KeyGen module part of FM driver > + * > + * Return: Handle to KeyGen > + */ > +struct fman_keygen *fman_get_keygen(struct fman *fman)

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Stephen Rothwell
Hi Paul, On Tue, 22 Aug 2017 12:36:20 -0700 "Paul E. McKenney" wrote: > > To complete the thought, if you aren't already using it, I suggest > applying Nick's patch: > > http://lkml.kernel.org/r/20170822084348.21436-1-npig...@gmail.com OK, I applied that - with a little shoehorning due to comm

Re: [PATCH v2 1/1] Split VGA default device handler out of VGA arbiter

2017-08-22 Thread Bjorn Helgaas
On Mon, Aug 21, 2017 at 11:53:01AM +0100, Lorenzo Pieralisi wrote: > On Thu, Aug 17, 2017 at 09:30:28PM +1000, Daniel Axtens wrote: > > A system without PCI legacy resources (e.g. ARM64) may find that no > > default/boot VGA device has been marked, because the VGA arbiter > > checks for legacy reso

Re: linux-next: Tree for Aug 22

2017-08-22 Thread Stephen Rothwell
Hi Paul, On Wed, 23 Aug 2017 07:57:05 +1000 Stephen Rothwell wrote: > > On Tue, 22 Aug 2017 12:36:20 -0700 "Paul E. McKenney" > wrote: > > > > To complete the thought, if you aren't already using it, I suggest > > applying Nick's patch: > > > > http://lkml.kernel.org/r/20170822084348.21436-1-

[PATCH RFC 0/7] powerpc: Beef up single-stepping/instruction emulation infrastructure

2017-08-22 Thread Paul Mackerras
This patch series extends the code in arch/powerpc/lib/sstep.c so that it handles almost all load and store instructions -- all except the atomic memory operations (lwat, stwat, etc.). It also makes sure that we use the largest possible aligned accesses to access memory and that we don't access th

[PATCH RFC 1/7] powerpc: Extend instruction emulation infrastructure

2017-08-22 Thread Paul Mackerras
This extends the instruction emulation infrastructure in sstep.c to handle all the load and store instructions defined in the Power ISA v3.0, except for the atomic memory operations, ldmx (which was never implemented), lfdp/stfdp, and the vector element load/stores. The instructions added are: In

[PATCH RFC 2/7] powerpc: Change analyse_instr so it doesn't modify *regs

2017-08-22 Thread Paul Mackerras
The analyse_instr function currently doesn't just work out what an instruction does, it also executes those instructions whose effect is only to update CPU registers that are stored in struct pt_regs. This is undesirable because optprobes uses analyse_instr to work out if an instruction could be su

[PATCH RFC 3/7] powerpc: Make load/store emulation use larger memory accesses

2017-08-22 Thread Paul Mackerras
At the moment, emulation of loads and stores of up to 8 bytes to unaligned addresses on a little-endian system uses a sequence of single-byte loads or stores to memory. This is rather inefficient, and the code is hard to follow because it has many ifdefs. In addition, the Power ISA has requirement

[PATCH RFC 4/7] powerpc: Emulate FP/vector/VSX loads/stores correctly when regs not live

2017-08-22 Thread Paul Mackerras
At present, the analyse_instr/emulate_step code checks for the relevant MSR_FP/VEC/VSX bit being set when a FP/VMX/VSX load or store is decoded, but doesn't recheck the bit before reading or writing the relevant FP/VMX/VSX register in emulate_step(). Since we don't have preemption disabled, it is

[PATCH RFC 5/7] powerpc: Handle vector element load/stores in emulation code

2017-08-22 Thread Paul Mackerras
This adds code to analyse_instr() and emulate_step() to handle the vector element loads and stores: lvebx, lvehx, lvewx, stvebx, stvehx, stvewx. Signed-off-by: Paul Mackerras --- arch/powerpc/lib/sstep.c | 50 ++-- 1 file changed, 48 insertions(+), 2

[PATCH RFC 6/7] powerpc: Emulate load/store floating double pair instructions

2017-08-22 Thread Paul Mackerras
This adds lfdp[x] and stfdp[x] to the set of instructions that analyse_instr() and emulate_step() understand. Signed-off-by: Paul Mackerras --- arch/powerpc/lib/sstep.c | 76 ++-- 1 file changed, 60 insertions(+), 16 deletions(-) diff --git a/arch/pow

[PATCH RFC 7/7] powerpc: Handle opposite-endian processes in emulation code

2017-08-22 Thread Paul Mackerras
This adds code to the load and store emulation code to byte-swap the data appropriately when the process being emulated is set to the opposite endianness to that of the kernel. Signed-off-by: Paul Mackerras --- arch/powerpc/include/asm/sstep.h | 4 +- arch/powerpc/lib/sstep.c | 146 +++

Re:Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-22 Thread Nixiaoming
>On 22.08.2017 17:15, David Hildenbrand wrote: >> On 22.08.2017 16:28, nixiaoming wrote: >>> miss kfree(stt) when anon_inode_getfd return fail so add check >>> anon_inode_getfd return val, and kfree stt >>> >>> Signed-off-by: nixiaoming >>> --- >>> arch/powerpc/kvm/book3s_64_vio.c | 5 - >>>

RE: [PATCH v2 1/6] fsl/fman: enable FMan Keygen

2017-08-22 Thread Madalin-cristian Bucur
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of David Miller > Sent: Wednesday, August 23, 2017 12:35 AM > Subject: Re: [PATCH v2 1/6] fsl/fman: enable FMan Keygen > > From: Madalin Bucur > Date: Tue, 22 Aug 2017 20:31:01 +030

Re: [PATCH v2 1/6] fsl/fman: enable FMan Keygen

2017-08-22 Thread David Miller
From: Madalin-cristian Bucur Date: Wed, 23 Aug 2017 04:36:56 + > The struct fman is only visible in the fman file, the fman port > module uses struct fman as an opaque pointer, thus this export. Don't use that programming model. Export the datastructure properly to it's users. This abstrac

RE: [PATCH v2 1/6] fsl/fman: enable FMan Keygen

2017-08-22 Thread Madalin-cristian Bucur
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, August 23, 2017 7:47 AM > To: Madalin-cristian Bucur > Cc: net...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH v2 1/6] fsl/fman: enable FMan Ke

[PATCH 00/46] Update powerpc defconfigs

2017-08-22 Thread Michael Ellerman
Our defconfigs have gotten quite out of date. This is the result of a semi-automated script to update the saved defconfigs, and only drop options that are no longer necessary / removed etc. And reinstate those that we still want but have been dropped due to Kconfig changes. This gets us back to e

[PATCH 01/46] powerpc/configs: Update for symbol movement only

2017-08-22 Thread Michael Ellerman
Update defconfigs for symbols that have moved around, without their value changing. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/40x/virtex_defconfig | 2 +- arch/powerpc/configs/44x/virtex5_defconfig | 2 +- arch/powerpc/configs/52xx/lite5200b_defconfig | 2 +- arch/

[PATCH 03/46] powerpc/configs: Explicitly drop CONFIG_INPUT_MOUSEDEV

2017-08-22 Thread Michael Ellerman
In commit 73d8ef76006b ("Input: mousedev - stop offering PS/2 to userspace by default") (Jan 2017), CONFIG_INPUT_MOUSEDEV was switched from default y to default n, with the explanation: Evdev interface has been available for many years and by now everyone is switched to using it, so let's stop

[PATCH 02/46] powerpc/configs: Drop unneeded CONFIG_CRYPTO_ANSI_CPRNG

2017-08-22 Thread Michael Ellerman
Since commit 401e4238f35c ("crypto: rng - Make DRBG the default RNG") we no longer need to set CONFIG_CRYPTO_ANSI_CPRNG in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/40x/acadia_defconfig | 1 - arch/powerpc/configs/40x/ep405_defconfig | 1 - arch/p

[PATCH 05/46] powerpc/configs: Drop no longer needed CONFIG_DEVKMEM

2017-08-22 Thread Michael Ellerman
Since commit e334cd69fa65 ("Move CONFIG_DEVKMEM default to n") we no longer need to set CONFIG_DEVKMEM in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/40x/klondike_defconfig | 1 - arch/powerpc/configs/83xx/kmeter1_defconfig | 1 - arch/powerpc/configs/83xx/mp

[PATCH 04/46] powerpc/configs: Drop no longer needed CONFIG_FHANDLE

2017-08-22 Thread Michael Ellerman
Since commit f76be61755c5 ("Make CONFIG_FHANDLE default y") we no longer need to set CONFIG_FHANDLE in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/cell_defconfig| 1 - arch/powerpc/configs/g5_defconfig | 1 - arch/powerpc/configs/maple_defconfig | 1 - arc

[PATCH 07/46] powerpc/configs: Update for CONFIG_FIXED_PHY being selected by CONFIG_OF_MDIO

2017-08-22 Thread Michael Ellerman
In commit a5e4bd991362 ("of_mdio: select fixed phy support unconditionally"), CONFIG_OF_MDIO began selecting CONFIG_FIXED_PHY. That means we no longer need to set it some of our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/52xx/tqm5200_defconfig | 1 - arch/powerpc/c

[PATCH 06/46] powerpc/configs: Update for CONFIG_DEBUG_FS being selected via CONFIG_RCU_TRACE

2017-08-22 Thread Michael Ellerman
In commit 961518259b3b ("rcu: Enable RCU tracepoints by default to aid in debugging"), CONFIG_RCU_TRACE was made default y (if CONFIG_TREE_RCU=y, which it is for some of our configs). That in turn causes CONFIG_TREE_RCU_TRACE to be enabled, which selects CONFIG_DEBUG_FS. The end result is that CON

[PATCH 08/46] powerpc/configs: Update for CONFIG_NF_CT_PROTO_(SCTP|UDPLITE)=y

2017-08-22 Thread Michael Ellerman
In commit a85406afeb3e ("netfilter: conntrack: built-in support for SCTP"), NF_CT_PROTO_SCTP switched from tristate to bool and became default y. Similarly in commit 9b91c96c5d1f ("netfilter: conntrack: built-in support for UDPlite"), NF_CT_PROTO_UDPLITE switched from tristate to bool and became de

[PATCH 09/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_DEV_VMX_ENCRYPT

2017-08-22 Thread Michael Ellerman
Since commit ccf5c442a1b8 ("crypto: vmx - Convert to CPU feature based module autoloading") we no longer need to set CONFIG_CRYPTO_DEV_VMX_ENCRYPT in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/powernv_defconfig | 1 - arch/powerpc/configs/ppc64_defconfig | 1 - ar

[PATCH 10/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_HMAC

2017-08-22 Thread Michael Ellerman
Since commit 401e4238f35c ("crypto: rng - Make DRBG the default RNG") we no longer need to set CONFIG_CRYPTO_HMAC in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/44x/eiger_defconfig | 1 - arch/powerpc/configs/44x/redwood_defconfig | 1 - 2 files changed, 2 deletion

[PATCH 11/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_ECB

2017-08-22 Thread Michael Ellerman
Since commit 12cb3a1c4184 ("crypto: xts - Add ECB dependency") we no longer need to set CONFIG_CRYPTO_ECB in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/44x/eiger_defconfig | 1 - arch/powerpc/configs/44x/redwood_defconfig | 1 - 2 files changed, 2 deletions(-) di

[PATCH 12/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_SHA256

2017-08-22 Thread Michael Ellerman
Since commit 826775bbf38f ("crypto: drbg - Add select on sha256") we no longer need to set CONFIG_CRYPTO_SHA256 in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/44x/eiger_defconfig | 1 - arch/powerpc/configs/44x/redwood_defconfig | 1 - arch/powerpc/configs/mpc83xx_

[PATCH 13/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_NULL

2017-08-22 Thread Michael Ellerman
Since commit 00b9cfa3ff38 ("mac80111: Add GCMP and GCMP-256 ciphers") we no longer need to set CONFIG_CRYPTO_NULL in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/pmac32_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/pmac32_defconfig

[PATCH 14/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_NULL in g5 / c2k

2017-08-22 Thread Michael Ellerman
Since commit 3491244c6298 ("crypto: echainiv - Set Kconfig default to m") we no longer need to set CONFIG_CRYPTO_NULL in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/c2k_defconfig | 1 - arch/powerpc/configs/g5_defconfig | 1 - 2 files changed, 2 deletions(-) diff -

[PATCH 15/46] powerpc/configs: Drop no longer needed CONFIG_CRYPTO_GCM

2017-08-22 Thread Michael Ellerman
Since commit 00b9cfa3ff38 ("mac80111: Add GCMP and GCMP-256 ciphers") we no longer need to set CONFIG_CRYPTO_GCM in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc6xx_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc6xx_defconfig

[PATCH 17/46] powerpc/configs: Drop unnecessary CONFIG_NUMA_BALANCING_DEFAULT_ENABLED

2017-08-22 Thread Michael Ellerman
In commit 9654f95a081a ("powerpc: Enable NUMA balancing in pseries[_le]_defconfig") we added CONFIG_NUMA_BALANCING_DEFAULT_ENABLED to our defconfigs. But it's already enabled by default, so drop it. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/pseries_defconfig | 1 - 1 file changed,

[PATCH 16/46] powerpc/configs: Drop no longer needed CONFIG_DEVPTS_MULTIPLE_INSTANCES

2017-08-22 Thread Michael Ellerman
Since commit eedf265aa003 ("devpts: Make each mount of devpts an independent filesystem.") we no longer need to set CONFIG_DEVPTS_MULTIPLE_INSTANCES in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/powernv_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 -

[PATCH 18/46] powerpc/configs: Drop unnecessary CONFIG_UPROBE_EVENT

2017-08-22 Thread Michael Ellerman
In commit 6b0b7551428e ("perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS") it was renamed to CONFIG_UPROBE_EVENTS. Additionally it's default y, and we have the prerequisites enabled, so we don't need it in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/conf

[PATCH 19/46] powerpc/configs: Drop no longer needed CONFIG_SMP for pseries/ppc64/powernv

2017-08-22 Thread Michael Ellerman
In commit 40e275653e2c ("powerpc/powernv: Always enable SMP when building powernv") and 270e2dc9b803 ("powerpc/pseries: Always enable SMP when building pseries") we forced CONFIG_SMP on for some configs. Therefore we don't need to set it in those configs anymore. Signed-off-by: Michael Ellerman -

[PATCH 21/46] powerpc/configs: Drop unnecessary CONFIG_POWERNV_OP_PANEL

2017-08-22 Thread Michael Ellerman
In commit 43a1dd9b5fc6 ("powerpc/powernv: Add driver for operator panel on FSP machines") we added CONFIG_POWERNV_OP_PANEL=m to the powernv defconfig, but it's default m so that's no necessary. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/powernv_defconfig | 1 - 1 file changed, 1 de

[PATCH 20/46] powerpc/configs: Drop no longer needed PCI_MSI on powernv

2017-08-22 Thread Michael Ellerman
In commit a311e738b6d8 ("powerpc/powernv: Make PCI non-optional") we made PCI (and therefore PCI_MSI) non-optional on powernv, so it doesn't need to be in the defconfig anymore. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/powernv_defconfig | 1 - 1 file changed, 1 deletion(-) diff

[PATCH 22/46] powerpc/configs: Drop MEMORY_HOTREMOVE from ppc64/cell

2017-08-22 Thread Michael Ellerman
In commit 577ec789a79e ("powerpc/cell: Drop select of MEMORY_HOTPLUG") we removed the last traces of any dependency between --- arch/powerpc/configs/cell_defconfig | 1 - arch/powerpc/configs/ppc64_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/powerpc/configs/cell_defc

[PATCH 23/46] powerpc/configs: Drop CONFIG_SERIAL_TXX9_* from cell/ppc64

2017-08-22 Thread Michael Ellerman
In commit bf4981a00636 ("powerpc: Remove the celleb support") we dropped the celleb support, which made these symbols unselectable because we no longer select HAS_TX99_SERIAL. So drop them from the defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/cell_defconfig | 2 -- arch/

[PATCH 24/46] powerpc/configs: Drop no longer needed CONFIG_AUDITSYSCALL

2017-08-22 Thread Michael Ellerman
Since commit cb74ed278f80 ("audit: always enable syscall auditing when supported and audit is enabled") we no longer need to set CONFIG_AUDITSYSCALL in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/pseries_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/ar

[PATCH 25/46] powerpc/configs: Add CONFIG_RAS now required for CONFIG_EDAC

2017-08-22 Thread Michael Ellerman
In commit e3c4ff6d8c94 ("EDAC: Remove EDAC_MM_EDAC") CONFIG_EDAC grew a dependency on CONFIG_RAS. Some of our defconfigs don't have the latter, which means we lose CONFIG_EDAC, so add CONFIG_RAS to fix that. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/pasemi_defconfig | 1 + arch/po

[PATCH 26/46] powerpc/configs: Drop no longer needed CONFIG_IPV6

2017-08-22 Thread Michael Ellerman
Since commit de551f2eb22a ("net: Build IPv6 into kernel by default") we no longer need to set CONFIG_IPV6 in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/85xx/xes_mpc85xx_defconfig | 1 - arch/powerpc/configs/cell_defconfig | 1 - 2 files changed, 2 deleti

[PATCH 27/46] powerpc/configs: Drop no longer needed CONFIG_SCSI

2017-08-22 Thread Michael Ellerman
Since commit 67f6d6655993 ("powerpc: convert amigaone_defconfig to use libata PATA drivers") we no longer need to set CONFIG_SCSI in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/amigaone_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs

[PATCH 28/46] powerpc/configs: Drop unnecessary CONFIG_EDAC from ppc64e

2017-08-22 Thread Michael Ellerman
There are no EDAC drivers for ppc64e. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64e_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc64e_defconfig b/arch/powerpc/configs/ppc64e_defconfig index 1f5e0b107083..d0fe0f8f77c2 100644 --- a/arch/pow

[PATCH 29/46] powerpc/configs: Drop no longer needed CONFIG_LIBCRC32C

2017-08-22 Thread Michael Ellerman
Since commit 300ae149468f ("netfilter: select LIBCRC32C together with SCTP conntrack") we no longer need to set CONFIG_LIBCRC32C in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/pmac32_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/pm

[PATCH 30/46] powerpc/configs: Turn CONFIG_R128 back in pmac32_defconfig

2017-08-22 Thread Michael Ellerman
In commit d92d9c3a1448 ("drm: hide legacy drivers with CONFIG_DRM_LEGACY") CONFIG_R128 was moved behind CONFIG_DRM_LEGACY meaning it stopped being enabled by pmac32_defconfig. Although no one has noticed, given this is basically a legacy platform, it seems anyone who is using it probably still want

[PATCH 31/46] powerpc/configs: Drop removed CONFIG_LOGFS

2017-08-22 Thread Michael Ellerman
In commit 1d0fd57a50aa ("logfs: remove from tree"), logfs was removed from the tree, so we can drop it from our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc44x_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc44x_defconfig b/arch/p

[PATCH 32/46] powerpc/configs: Update for CONFIG_INPUT_MOUSEDEV=n

2017-08-22 Thread Michael Ellerman
In commit 73d8ef76006b ("Input: mousedev - stop offering PS/2 to userspace by default") the symbol INPUT_MOUSEDEV went from being 'default y' to 'default n' (implied). That means we no longer need to explicitly disable it in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/confi

[PATCH 33/46] powerpc/configs: Update for CONFIG_SND changes

2017-08-22 Thread Michael Ellerman
Commit eb3b705aaed9 ("ALSA: Make CONFIG_SND_OSSEMUL user-selectable") means we need to set CONFIG_SND_OSSEMUL in our configs, otherwise we lose some of the SND symbols. And commit 0181307abc1d ("ALSA: seq: Reorganize kconfig and build") reorganised things, which causes the churn. Signed-off-by: M

[PATCH 34/46] powerpc/configs/mpc5200: Drop no longer needed CONFIG_FB

2017-08-22 Thread Michael Ellerman
Since commit a03fdcb18632 ("drm: Add top level Kconfig option for DRM fbdev emulation") we no longer need to set CONFIG_FB in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/mpc5200_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/configs/mpc52

[PATCH 35/46] powerpc/configs/6xx: Turn CONFIG_DRM_RADEON back on

2017-08-22 Thread Michael Ellerman
In commit d92d9c3a1448 ("drm: hide legacy drivers with CONFIG_DRM_LEGACY") CONFIG_DRM_RADEON was moved behind CONFIG_DRM_LEGACY meaning it stopped being enabled by ppc6xx_defconfig. Although no one has noticed, given this is basically a legacy platform, it seems anyone who is using it probably stil

[PATCH 36/46] powerpc/configs/6xx: Drop no longer needed CONFIG_TIMER_STATS

2017-08-22 Thread Michael Ellerman
Since commit dfb4357da6dd ("time: Remove CONFIG_TIMER_STATS") we no longer need to set CONFIG_TIMER_STATS in our defconfigs. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc6xx_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/ppc6xx_defconfig b/arch/

  1   2   >