[RFC PATCH v1 04/13] powerpc/ptrace: split out VSX related functions.

2019-06-25 Thread Christophe Leroy
Move CONFIG_VSX functions out of ptrace.c, into ptrace-vsx.c and ptrace-novsx.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 18 +++ arch/powerpc/kernel/ptrace/ptrace-novsx.c | 83 ++

[RFC PATCH v1 05/13] powerpc/ptrace: split out ALTIVEC related functions.

2019-06-25 Thread Christophe Leroy
Move CONFIG_ALTIVEC functions out of ptrace.c, into ptrace-altivec.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-altivec.c | 151 arch/powerpc/kernel/ptrace/ptrace-decl.h| 9 ++

[RFC PATCH v1 12/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2019-06-25 Thread Christophe Leroy
ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/hw_breakpoint.c | 16 arch/powerpc/kernel/ptrace/ptrace.c | 18 -- 2

Re: [PATCH 3/4] fs: teach vfs_ioc_fssetxattr_check to check project id info

2019-06-25 Thread Christoph Hellwig
On Fri, Jun 21, 2019 at 04:56:37PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > Standardize the project id checks for FSSETXATTR. > > Signed-off-by: Darrick J. Wong > Reviewed-by: Jan Kara Looks good, Reviewed-by: Christoph Hellwig

[RFC PATCH v1 10/13] powerpc/ptrace: create ptrace_get_debugreg()

2019-06-25 Thread Christophe Leroy
Create ptrace_get_debugreg() to handle PTRACE_GET_DEBUGREG and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 9 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 2 ++ arch/powerpc/kernel/ptrace/ptrace-noadv.c | 13 +

Re: [PATCH 4/4] vfs: teach vfs_ioc_fssetxattr_check to check extent size hints

2019-06-25 Thread Christoph Hellwig
On Fri, Jun 21, 2019 at 04:56:45PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > Move the extent size hint checks that aren't xfs-specific to the vfs. > > Signed-off-by: Darrick J. Wong > Reviewed-by: Jan Kara Looks good, Reviewed-by: Christoph Hellwig

[RFC PATCH v1 06/13] powerpc/ptrace: split out SPE related functions.

2019-06-25 Thread Christophe Leroy
Move CONFIG_SPE functions out of ptrace.c, into ptrace-spe.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 9 +++ arch/powerpc/kernel/ptrace/ptrace-spe.c | 94

[RFC PATCH v1 00/13] Reduce ifdef mess in ptrace

2019-06-25 Thread Christophe Leroy
The purpose of this series is to reduce the amount of #ifdefs in ptrace.c This is a first try. Most of it is done, there are still some #ifdefs that could go away. Please comment and tell whether it is worth continuing in that direction. Christophe Leroy (13): powerpc: move ptrace into a

[RFC PATCH v1 09/13] powerpc/ptrace: split out ADV_DEBUG_REGS related functions.

2019-06-25 Thread Christophe Leroy
Move ADV_DEBUG_REGS functions out of ptrace.c, into ptrace-adv.c and ptrace-noadv.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-adv.c | 487 ++ arch/powerpc/kernel/ptrace/ptrace-decl.h | 6 +

[RFC PATCH v1 08/13] powerpc/ptrace: move register viewing functions out of ptrace.c

2019-06-25 Thread Christophe Leroy
Create a dedicated ptrace-view.c file. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 +- arch/powerpc/kernel/ptrace/ptrace-decl.h | 42 ++ arch/powerpc/kernel/ptrace/ptrace-view.c | 966 ++ arch/powerpc/kernel/ptrace/ptrace.c

[RFC PATCH v1 13/13] powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler()

2019-06-25 Thread Christophe Leroy
On 8xx, breakpoints stop after executing the instruction, so stepping/emulation is not needed. Move it into a sub-function and remove the #ifdefs. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/hw_breakpoint.c | 60 - 1 file changed, 33

Re: [PATCH v7 07/10] vsprintf: Consolidate handling of unknown pointer specifiers

2019-06-25 Thread Geert Uytterhoeven
Hi Petr, On Wed, Apr 17, 2019 at 1:56 PM Petr Mladek wrote: > There are few printk formats that make sense only with two or more > specifiers. Also some specifiers make sense only when a kernel feature > is enabled. > > The handling of unknown specifiers is inconsistent and not helpful. > Using

Re: [PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-25 Thread Liran Alon
> On 25 Jun 2019, at 11:51, Vitaly Kuznetsov wrote: > > Liran Alon writes: > >>> On 24 Jun 2019, at 16:30, Vitaly Kuznetsov wrote: >>> >>> >>> +bool nested_enlightened_vmentry(struct kvm_vcpu *vcpu, u64 *evmptr) >> >> I prefer to rename evmptr to evmcs_ptr. I think it’s more readable

Re: WARNING in mark_lock

2019-06-25 Thread Peter Zijlstra
On Tue, Jun 25, 2019 at 08:20:56AM +0200, Thomas Gleixner wrote: > On Mon, 24 Jun 2019, syzbot wrote: > > syzbot found the following crash on: > > > > HEAD commit:dc636f5d Add linux-next specific files for 20190620 > > git tree: linux-next > > console output:

Re: WARNING in mark_lock

2019-06-25 Thread Peter Zijlstra
On Tue, Jun 25, 2019 at 01:03:01PM +0200, Peter Zijlstra wrote: > On Tue, Jun 25, 2019 at 08:20:56AM +0200, Thomas Gleixner wrote: > > On Mon, 24 Jun 2019, syzbot wrote: > > > > syzbot found the following crash on: > > > > > > HEAD commit:dc636f5d Add linux-next specific files for 20190620 >

Re: [PATCH v5 00/14] epoll: support pollable epoll from userspace

2019-06-25 Thread Roman Penyaev
On 2019-06-25 02:24, Eric Wong wrote: Roman Penyaev wrote: Hi all, +cc Jason Baron ** Limitations 4. No support for EPOLLEXCLUSIVE If device does not pass pollflags to wake_up() there is no way to call poll() from the context under spinlock, thus special work is

Re: [PATCH 2/4] null_blk: add zone open, close, and finish support

2019-06-25 Thread Matias Bjørling
On 6/22/19 3:02 AM, Damien Le Moal wrote: On 2019/06/21 22:07, Matias Bjørling wrote: From: Ajay Joshi Implement REQ_OP_ZONE_OPEN, REQ_OP_ZONE_CLOSE and REQ_OP_ZONE_FINISH support to allow explicit control of zone states. Signed-off-by: Ajay Joshi Signed-off-by: Matias Bjørling ---

memory leak in genl_register_family

2019-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4b972a01 Linux 5.2-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1305b385a0 kernel config: https://syzkaller.appspot.com/x/.config?x=1db8bd6825f9661c dashboard link:

linux-next: Signed-off-by missing for commit in the parisc-hd tree

2019-06-25 Thread Stephen Rothwell
Hi all, Commit 7148d434d451 ("parisc: asm: psw.h: missing header guard") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpFct7G9U4px.pgp Description: OpenPGP digital signature

linux-next: Signed-off-by missing for commit in the cifs tree

2019-06-25 Thread Stephen Rothwell
Hi all, Commit c1ed2864526e ("smb3: minor cleanup of compound_send_recv") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgp_aNCaYj0tA.pgp Description: OpenPGP digital signature

Re: [PATCH net-next 3/3] net: stmmac: Convert to phylink and remove phylib logic

2019-06-25 Thread Jon Hunter
On 25/06/2019 08:37, Jose Abreu wrote: > From: Jon Hunter > >> Any further feedback? I am still seeing this issue on today's -next. > > Apologies but I was in FTO. > > Is there any possibility you can just disable the ethX configuration in > the rootfs mount and manually configure it after

Re: [PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-25 Thread Vitaly Kuznetsov
Liran Alon writes: >> On 25 Jun 2019, at 11:51, Vitaly Kuznetsov wrote: >> >> Liran Alon writes: >> On 24 Jun 2019, at 16:30, Vitaly Kuznetsov wrote: +bool nested_enlightened_vmentry(struct kvm_vcpu *vcpu, u64 *evmptr) >>> >>> I prefer to rename evmptr to evmcs_ptr. I

Re: [PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-25 Thread Liran Alon
> On 25 Jun 2019, at 14:15, Vitaly Kuznetsov wrote: > > Liran Alon writes: > >>> On 25 Jun 2019, at 11:51, Vitaly Kuznetsov wrote: >>> >>> Liran Alon writes: >>> > On 24 Jun 2019, at 16:30, Vitaly Kuznetsov wrote: > > > +bool nested_enlightened_vmentry(struct kvm_vcpu

Re: [PATCH v5 00/14] epoll: support pollable epoll from userspace

2019-06-25 Thread Roman Penyaev
On 2019-06-24 22:38, Linus Torvalds wrote: On Mon, Jun 24, 2019 at 10:42 PM Roman Penyaev wrote: So harvesting events from userspace gives 15% gain. Though bench_http is not ideal benchmark, but at least it is the part of libevent and was easy to modify. Worth to mention that uepoll is

Re: [PATCH 3/3] media: ttpci: add RC_CORE dependency

2019-06-25 Thread Arnd Bergmann
On Tue, Jun 25, 2019 at 12:56 PM Sean Young wrote: > > On Mon, Jun 17, 2019 at 01:16:53PM +0200, Arnd Bergmann wrote: > > The ttpci driver now uses the rc-core, so we need to ensure it > > is enabled: > > > > ERROR: "rc_unregister_device" [drivers/media/pci/ttpci/dvb-ttpci.ko] > > undefined! > >

Re: [PATCH v3 2/5] regulator: core: Expose some of core functions needed by couplers

2019-06-25 Thread Mark Brown
On Mon, Jun 24, 2019 at 12:08:32AM +0300, Dmitry Osipenko wrote: > Expose some of internal functions that are required for implementation of > customized regulator couplers. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700)

Re: [PATCH 1/2 v9] serial: mctrl_gpio: Check if GPIO property exisits before requesting it

2019-06-25 Thread Andy Shevchenko
On Tue, Jun 25, 2019 at 07:27:33AM +0200, Stefan Roese wrote: > On 24.06.19 17:35, Geert Uytterhoeven wrote: > > On Mon, Jun 24, 2019 at 5:29 PM Stefan Roese wrote: > > > On 24.06.19 10:42, Geert Uytterhoeven wrote: > > > Should both options be supported ("cts-gpio" vs "cts-gpios")? > > >

Re: [GIT PULL] SPDX update for 5.2-rc1 - round 1

2019-06-25 Thread Masahiro Yamada
Hi Joe, On Wed, May 22, 2019 at 3:37 PM Joe Perches wrote: > > On Wed, 2019-05-22 at 13:32 +0900, Masahiro Yamada wrote: > > On Tue, May 21, 2019 at 10:34 PM Greg KH wrote: > [] > > > - Add GPL-2.0-only or GPL-2.0-or-later tags to files where our scan > > > tools can determine the license

Applied "regulator: core: Expose some of core functions needed by couplers" to the regulator tree

2019-06-25 Thread Mark Brown
The patch regulator: core: Expose some of core functions needed by couplers has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "regulator: core: Introduce API for regulators coupling customization" to the regulator tree

2019-06-25 Thread Mark Brown
The patch regulator: core: Introduce API for regulators coupling customization has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Re: [RFC] remove arch/sh?

2019-06-25 Thread Adam Borowski
On Tue, Jun 25, 2019 at 11:02:36AM +0200, John Paul Adrian Glaubitz wrote: > On 6/25/19 10:56 AM, Christoph Hellwig wrote: > > arch/sh seems pretty much unmaintained these days. The last time I got > > any reply to sh patches from the list maintainers, and the last maintainer > > pull request was

RE: [PATCH v5 2/5] net: macb: add support for sgmii MAC-PHY interface

2019-06-25 Thread Parshuram Raju Thombare
>If you are interested in supporting SFPs as well, then using phylink >makes sense, but you need to implement your phylink conversion properly, >and that means supporting dynamic switching of the PHY interface mode, >and allowing phylink to determine whether a PHY interface mode is >supported or

RE: [PATCH v4 4/5] net: macb: add support for high speed interface

2019-06-25 Thread Parshuram Raju Thombare
>The closed nature of the USXGMII spec makes it very hard for us to know >whether your implementation is correct or not. > >I have some documentation which suggests that USVGMII is a USXGMII link >running at "5GR" rate as opposed to USXGMII running at "10GR" rate. > >So, I think 5G mode should be

[patch 0/5] x86/irq: Cure various interrupt issues

2019-06-25 Thread Thomas Gleixner
This series addresses a few long standing issues: 1) The spurious interrupt warning which is emitted occasionally for no obvious reason. Partially harmless but annoying 2) The spurious system vector detection which got wreckaged quite some time ago and can completely wedge a

[patch 3/5] x86/ioapic: Implement irq_inflight() callback

2019-06-25 Thread Thomas Gleixner
When an interrupt is shut down in free_irq() there might be an inflight interrupt which is not yet serviced pending in the IO-APIC remote IRR. That means the interrupt has been sent to the target CPUs local APIC, but the target CPU is in a state which delays the servicing. So free_irq() would

[patch 5/5] x86/irq: Seperate unused system vectors from spurious entry again

2019-06-25 Thread Thomas Gleixner
Quite some time ago the interrupt entry stubs for unused vectors in the system vector range got removed and directly mapped to the spurious interrupt vector entry point. Sounds reasonable, but it's subtly broken. The spurious interrupt vector entry point pushes vector number 0xFF on the stack

[patch 2/5] genirq: Add optional hardware synchronization for shutdown

2019-06-25 Thread Thomas Gleixner
free_irq() ensures that no hardware interrupt handler is executing on a different CPU before actually releasing resources and deactivating the interrupt completely in a domain hierarchy. But that does not catch the case where the interrupt is on flight at the hardware level but not yet serviced

[patch 1/5] genirq: Delay deactivation in free_irq()

2019-06-25 Thread Thomas Gleixner
When interrupts are shutdown, they are immediately deactivated in the irqdomain hierarchy. While this looks obviously correct there is a subtle issue: There might be an interrupt in flight when free_irq() is invoking the shutdown. This is properly handled at the irq descriptor / primary handler

[patch 4/5] x86/irq: Handle spurious interrupt after shutdown gracefully

2019-06-25 Thread Thomas Gleixner
Since the rework of the vector management, warnings about spurious interrupts have been reported. Robert provided some more information and did an initial analysis. The following situation leads to these warnings: CPU 0 CPU 1 IO_APIC

RE: [PATCH net-next 3/3] net: stmmac: Convert to phylink and remove phylib logic

2019-06-25 Thread Jose Abreu
From: Jon Hunter > I have been looking at this a bit closer and I can see the problem. What > happens is that ... > > 1. stmmac_mac_link_up() is called and priv->eee_active is set to false > 2. stmmac_eee_init() is called but because priv->eee_active is false, >timer_setup() for

Re: [PATCH v10 08/13] drivers: memory: add DMC driver for Exynos5422

2019-06-25 Thread Lukasz Luba
Hi Krzysztof, On 6/14/19 3:47 PM, Krzysztof Kozlowski wrote: > On Fri, 14 Jun 2019 at 11:53, Lukasz Luba wrote: >> >> This patch adds driver for Exynos5422 Dynamic Memory Controller. >> The driver provides support for dynamic frequency and voltage scaling for >> DMC and DRAM. It supports

Re: [PATCH v4 13/16] PM / devfreq: tegra: Support Tegra30

2019-06-25 Thread Dmitry Osipenko
25.06.2019 4:42, MyungJoo Ham пишет: > Sender : Dmitry Osipenko >> 24.06.2019 14:11, MyungJoo Ham пишет: - Original Message - Sender : Dmitry Osipenko 24.06.2019 10:34, MyungJoo Ham пишет: >> >> A question: >> >> Does this driver support

Re: [LKP] [x86/hotplug] e1056a25da: WARNING:at_arch/x86/kernel/apic/apic.c:#setup_local_APIC

2019-06-25 Thread Thomas Gleixner
Rong, On Tue, 25 Jun 2019, Rong Chen wrote: > On 6/25/19 2:24 PM, Thomas Gleixner wrote: > > > On 6/22/19 3:08 AM, Thomas Gleixner wrote: > > > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp > > > > > 2 -m > > > > > 2G > > > > I cannot reproduce that issue. What's the

[PATCH V3 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-25 Thread Daniel Lezcano
Currently the function cpufreq_cooling_register() returns a cooling device pointer which is used back as a pointer to call the function cpufreq_cooling_unregister(). Even if it is correct, it would make sense to not leak the structure inside a cpufreq driver and keep the code thermal code

[PATCH V3 1/3] cpufreq: Move the IS_ENABLED(CPU_THERMAL) macro in a stub

2019-06-25 Thread Daniel Lezcano
The cpufreq_online and the cpufreq_offline [un]register the driver as a cooling device. This is done if the driver is flagged as a cooling device in addition with a IS_ENABLED macro to compile out the branching code. Group this test in a stub function added in the cpufreq header instead of having

[PATCH V3 3/3] thermal/drivers/cpu_cooling: cpufreq_cooling_register returns an int

2019-06-25 Thread Daniel Lezcano
It looks like after the changes in the patch the only reason for returning (struct thermal_cooling_device *) from cpufreq_cooling_register() is error checking, but it would be much more straightforward to return int for this purpose. Moreover, that would prevent the callers of it from doing

[PATCH 7/8] staging: kpc2000: introduce __func__

2019-06-25 Thread Fabian Krueger
Instead of using the function name hard coded as string, using __func__ and the '%s'-placeholder will always give the current name of the function. When renaming a function, the debugging-messages won't have to be rewritten. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer ---

[PATCH 8/8] staging: kpc2000: remove needless 'break'

2019-06-25 Thread Fabian Krueger
The unconditioned jump will prohibit to ever reach the break-statement. Deleting this needless statement, the code becomes more understandable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 1 - 1 file changed, 1 deletion(-) diff

[PATCH 5/8] staging: kpc2000: remove unnecessary brackets

2019-06-25 Thread Fabian Krueger
Removed brackets on around one-lined if-cases. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git

[PATCH 1/8] staging: kpc2000: add line breaks

2019-06-25 Thread Fabian Krueger
To fix some checkpatch-warnings some lines of this module had to be shortened so that they do not exceed 80 characters per line. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 77

[PATCH 0/8] staging: kpc2000: style refactoring

2019-06-25 Thread Fabian Krueger
A patch-series that will remove warnings, errors and check-messages, noted and highlighted by the checkpatch.pl script concerning kpc2000_spi.c. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: Fabian Krueger (8): staging: kpc2000: add line breaks staging: kpc2000:

[PATCH 2/8] staging: kpc2000: blank lines after declaration

2019-06-25 Thread Fabian Krueger
After the declarations in a function, there should be a blank line, so that the declaration part is visibly separated from the rest. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 4

[PATCH 4/8] staging: kpc2000: add spaces

2019-06-25 Thread Fabian Krueger
Added spaces on the left side of parenthesis and on both sides of binary operators. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 15 ++- 1 file changed, 6 insertions(+), 9

Re: [PATCH v4 00/10] klp-convert livepatch build tooling

2019-06-25 Thread Miroslav Benes
On Fri, 14 Jun 2019, Petr Mladek wrote: > On Thu 2019-06-13 16:48:02, Joe Lawrence wrote: > > On 6/13/19 9:15 AM, Joe Lawrence wrote: > > > On 6/13/19 9:00 AM, Miroslav Benes wrote: > > >> Hi Joe, > > >> > > >> first, I'm sorry for the lack of response so far. > > >> > > >> Maybe you've already

[PATCH 3/8] staging: kpc2000: introduce usage of __packed

2019-06-25 Thread Fabian Krueger
Replaced __attribute__((packed)) with __packed. Both ways of attributing are equivalent, but being shorter, __packed should be preferred. This refactoring makes the core more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 6

[PATCH 6/8] staging: kpc2000: introduce 'unsigned int'

2019-06-25 Thread Fabian Krueger
Replaced 'unsigned' with it's equivalent 'unsigned int' to reduce confusion while reading the code. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer --- drivers/staging/kpc2000/kpc2000_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[[PATCH net-next]] net: core: xdp: make __mem_id_disconnect to be static

2019-06-25 Thread Ivan Khoronzhuk
Add missed static for local __mem_id_disconnect(). Signed-off-by: Ivan Khoronzhuk --- net/core/xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/xdp.c b/net/core/xdp.c index b29d7b513a18..829377cc83db 100644 --- a/net/core/xdp.c +++ b/net/core/xdp.c @@ -85,7

Re: [PATCH 2/2] dma-mapping: remove dma_max_pfn

2019-06-25 Thread Marc Gonzalez
Hello Christoph, There are some typos in the commit message that make it harder (for me) to parse. On 25/06/2019 11:20, Christoph Hellwig wrote: > These days the DMA mapping code must bounce buffer for any not supported Add comma after "These days" ? s/must bounce buffer/must bounce buffers/ ?

Re: [PATCH v6 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core

2019-06-25 Thread Mika Westerberg
On Fri, Jun 21, 2019 at 11:08:12AM +0100, Charles Keepax wrote: > In preparation for more refactoring make i2c_acpi_get_irq available > outside i2c-core-acpi.c. > > Signed-off-by: Charles Keepax > --- > > Changes since v5: > - Pass a struct device rather than acpi_device to i2c_acpi_get_irq, >

Re: [PATCH 1/8] staging: kpc2000: add line breaks

2019-06-25 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 01:27:12PM +0200, Fabian Krueger wrote: > diff --git a/drivers/staging/kpc2000/kpc2000_spi.c > b/drivers/staging/kpc2000/kpc2000_spi.c > index c3e5c1848f53..7ed0fb6b4abb 100644 > --- a/drivers/staging/kpc2000/kpc2000_spi.c > +++ b/drivers/staging/kpc2000/kpc2000_spi.c > @@

Re: [PATCH 4/8] staging: kpc2000: add spaces

2019-06-25 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 01:27:15PM +0200, Fabian Krueger wrote: > Added spaces on the left side of parenthesis and on both sides of binary > operators. > This refactoring makes the code more readable. > > Signed-off-by: Fabian Krueger > Signed-off-by: Michael Scheiderer > --- >

Re: [PATCH 6/8] staging: kpc2000: introduce 'unsigned int'

2019-06-25 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 01:27:17PM +0200, Fabian Krueger wrote: > Replaced 'unsigned' with it's equivalent 'unsigned int' to reduce > confusion while reading the code. > > Signed-off-by: Fabian Krueger > Signed-off-by: Michael Scheiderer > --- > drivers/staging/kpc2000/kpc2000_spi.c | 4 ++-- >

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread liaoweixiong
Oh, i am sorry that i had misunderstanded your letter. Thank you for your document and guidance. On 2019/6/25 PM 3:04, Schrempf Frieder wrote: > Hi liaoweixiong, > > On 25.06.19 05:08, Greg KH wrote: >> On Tue, Jun 25, 2019 at 09:02:29AM +0800, liaoweixiong wrote: >>> In case of the last page

Re: [PATCH 11/16] mm: consolidate the get_user_pages* implementations

2019-06-25 Thread Jason Gunthorpe
On Tue, Jun 25, 2019 at 09:56:50AM +0200, Christoph Hellwig wrote: > On Fri, Jun 21, 2019 at 11:41:31AM -0300, Jason Gunthorpe wrote: > > > static bool gup_fast_permitted(unsigned long start, unsigned long end) > > > { > > > - return true; > > > + return IS_ENABLED(CONFIG_HAVE_FAST_GUP) ? true :

Re: [PATCH] iommu: io-pgtable: Support non-coherent page tables

2019-06-25 Thread Will Deacon
On Mon, Jun 24, 2019 at 12:53:49PM +0100, Will Deacon wrote: > On Tue, Jun 18, 2019 at 06:39:33PM +0100, Will Deacon wrote: > > On Wed, May 15, 2019 at 04:32:34PM -0700, Bjorn Andersson wrote: > > > Describe the memory related to page table walks as non-cachable for iommu > > > instances that are

Re: [PATCH bpf-next] MAINTAINERS: add reviewer to maintainers entry

2019-06-25 Thread Daniel Borkmann
On 06/24/2019 10:54 PM, Jonathan Lemon wrote: > On 23 Jun 2019, at 22:24, Björn Töpel wrote: >> From: Björn Töpel >> >> Jonathan Lemon has volunteered as an official AF_XDP reviewer. Thank >> you, Jonathan! >> >> Signed-off-by: Björn Töpel > Acked-by: Jonathan Lemon Given it's a doc update,

[PATCH v2 0/7] misc fixes to PV extentions code

2019-06-25 Thread Zhenzhong Duan
[PATCH v2 1/7] x86/xen: Mark xen_hvm_need_lapic() and xen_hvm_need_lapic() as __init [PATCH v2 2/7] x86/jailhouse: Mark jailhouse_x2apic_available as __init Above two patches only add __init annotation to some functions, not related to other patches. I didn't split the two out as following

[PATCH v2 1/7] x86/xen: Mark xen_hvm_need_lapic() and xen_hvm_need_lapic() as __init

2019-06-25 Thread Zhenzhong Duan
.. as they are only called at early bootup stage. In fact, other functions in x86_hyper_xen_hvm.init.* are all marked as __init. Unexport xen_hvm_need_lapic as it's never used outside. Signed-off-by: Zhenzhong Duan Reviewed-by: Juergen Gross Cc: Boris Ostrovsky Cc: Stefano Stabellini Cc:

[PATCH v2 5/7] x86/xen: nopv parameter support for HVM guest

2019-06-25 Thread Zhenzhong Duan
PVH guest needs PV extentions to work, so nopv parameter is ignored for PVH but not for HVM guest. In order for nopv parameter to take effect for HVM guest, we need to distinguish between PVH and HVM guest early in hypervisor detection code. By moving the detection of PVH in xen_platform_hvm(),

[PATCH v2 4/7] Revert "xen: Introduce 'xen_nopv' to disable PV extensions for HVM guests."

2019-06-25 Thread Zhenzhong Duan
This reverts commit 8d693b911bb9c57009c24cb1772d205b84c7985c. Instead we use an unified parameter 'nopv' for all the hypervisor platforms. Signed-off-by: Zhenzhong Duan Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc:

[PATCH v2 6/7] locking/spinlocks, paravirt, hyperv: Correct the hv_nopvspin case

2019-06-25 Thread Zhenzhong Duan
With the boot parameter "hv_nopvspin" specified a Hyperv guest should not make use of paravirt spinlocks, but behave as if running on bare metal. This is not true, however, as the qspinlock code will fall back to a test-and-set scheme when it is detecting a hypervisor. In order to avoid this

[PATCH v2 7/7] Revert "x86/paravirt: Set up the virt_spin_lock_key after static keys get initialized"

2019-06-25 Thread Zhenzhong Duan
This reverts commit ca5d376e17072c1b60c3fee66f3be58ef018952d. Commit 8990cac6e5ea ("x86/jump_label: Initialize static branching early") adds jump_label_init() call in setup_arch() to make static keys initialized early, so we could use the original simpler code again. Signed-off-by: Zhenzhong

[PATCH v2 3/7] x86: Add nopv parameter to disable PV extensions

2019-06-25 Thread Zhenzhong Duan
In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) we want to disable PV extensions. As such introduce the 'nopv' parameter that will do

Re: [PATCH v2 03/11] ASoC: compress: Fix memory leak from snd_soc_new_compress

2019-06-25 Thread Mark Brown
On Mon, Jun 17, 2019 at 01:36:36PM +0200, Amadeusz Sławiński wrote: > Change kzalloc to devm_kzalloc, so compr gets automatically freed when > it's no longer needed. > > Signed-off-by: Amadeusz Sławiński > --- > sound/soc/soc-compress.c | 17 ++--- > 1 file changed, 6 insertions(+),

Re: [PATCH bpf-next] MAINTAINERS: add reviewer to maintainers entry

2019-06-25 Thread Björn Töpel
On 2019-06-25 14:00, Daniel Borkmann wrote: Given it's a doc update, I've applied it to bpf, thanks! Perfect, thanks!

Re: [RFC] remove arch/sh?

2019-06-25 Thread John Paul Adrian Glaubitz
Adam, On 6/25/19 1:21 PM, Adam Borowski wrote: >> We're still using sh4 in Debian > > I wouldn't call it "used": it has popcon of 1, and despite watching many > Debian channels, I don't recall hearing a word about sh4 in quite a while. So, according to your logic, Debian should drop the

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-25 Thread John Ogness
On 2019-06-25, Sergey Senozhatsky wrote: In vprintk_emit(), are we going to always reserve 1024-byte records, since we don't know the size in advance, e.g. printk("%pS %s\n", regs->ip, current->name) prb_reserve(, , ); or are we going to run

[RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: liaoweixiong Reviewed-by: Boris

Re: [PATCH net v2] net: mvpp2: prs: Don't override the sign bit in SRAM parser shift

2019-06-25 Thread Maxime Chevallier
Hello David, On Thu, 20 Jun 2019 11:42:45 +0200 Maxime Chevallier wrote: >The Header Parser allows identifying various fields in the packet >headers, used for various kind of filtering and classification >steps. > >This is a re-entrant process, where the offset in the packet header >depends on

Re: [GIT PULL] Hisilicon fixes for v5.2

2019-06-25 Thread Olof Johansson
On Tue, Jun 25, 2019 at 11:23:21AM +0100, Wei Xu wrote: > Hi ARM-SoC team, > > Please consider to pull the following changes. > Thanks! > > Best Regards, > Wei > > --- > > The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: > > Linux 5.2-rc1 (2019-05-19 15:47:09

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread Schrempf Frieder
On 25.06.19 13:56, liaoweixiong wrote: > Oh, i am sorry that i had misunderstanded your letter. No problem ;) > Thank you for your document and guidance. You're welcome! > On 2019/6/25 PM 3:04, Schrempf Frieder wrote: >> Hi liaoweixiong, >> >> On 25.06.19 05:08, Greg KH wrote: >>> On Tue, Jun

Re: [GIT PULL] ARM: at91: DT for 5.3

2019-06-25 Thread Olof Johansson
On Fri, Jun 21, 2019 at 11:22:46PM +0200, Alexandre Belloni wrote: > Arnd, Olof, > > Still very few updates. It is mostly about removing DTC warnings by > switching the sckc to the proper bindings and converting the atmel > bindings to json-schema. > > The following changes since commit

Re: [PATCH v2 00/11] Fix driver reload issues

2019-06-25 Thread Mark Brown
On Mon, Jun 17, 2019 at 01:36:33PM +0200, Amadeusz Sławiński wrote: > Hi, > > This series of patches introduces fixes to various issues found while > trying to unload all snd* modules and then loading them again. This > allows for modules to be really _modules_ and be unloaded and loaded on >

[PATCH 0/2] ACPI: PM: Fix two issues in acpi_device_set_power()

2019-06-25 Thread Rafael J. Wysocki
Hi All, There are two, arguably minor, issues in acpi_device_set_power() that have been introduced while making the code follow the ACPI 6 recommendations. One of them is that, if the device is in D3hot, transitioning it into D3cold only involves dropping references to some power resources and

Re: [PATCH] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-25 Thread Daniel Borkmann
Hello, On 06/25/2019 02:13 AM, allanzhang wrote: > Software event output is only enabled by a few prog types right now (TC, > LWT out, XDP, sockops). Many other skb based prog types need > bpf_skb_event_output to produce software event. > > Added socket_filter, cg_skb, sk_skb

[PATCH 2/2] ACPI: PM: Allow transitions to D0 to occur in special cases

2019-06-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a device with ACPI PM is left in D0 during a system-wide transition to the S3 (suspend-to-RAM) or S4 (hibernation) sleep state, the actual state of the device need not be D0 during resume from it, although its power.state value will still reflect D0 (that is, the power

[PATCH 1/2] ACPI: PM: Avoid evaluating _PS3 on transitions from D3hot to D3cold

2019-06-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the power state of a device with ACPI PM is changed from D3hot to D3cold, it merely is a matter of dropping references to additional power resources (specifically, those in the list returned by _PR3), and the _PS3 method should not be invoked for the device then (as it

Re: WARNING in mark_lock

2019-06-25 Thread Dmitry Vyukov
On Tue, Jun 25, 2019 at 1:06 PM Peter Zijlstra wrote: > > On Tue, Jun 25, 2019 at 01:03:01PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 25, 2019 at 08:20:56AM +0200, Thomas Gleixner wrote: > > > On Mon, 24 Jun 2019, syzbot wrote: > > > > > > syzbot found the following crash on: > > > > > > > >

Re: [PATCH 3/3] jz4740_fb: fix DMA API abuse

2019-06-25 Thread Christoph Hellwig
On Fri, Jun 21, 2019 at 01:32:16PM +0200, Bartlomiej Zolnierkiewicz wrote: > I've just removed the "Switch the driver.." sentence myself from > the patch description and applied the change, thanks! Sorry for not getting back to you earlier and thanks for fixing this up and applying the patch.

[PATCH] PCI: PM/ACPI: Refresh all stale power state data in pci_pm_complete()

2019-06-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In pci_pm_complete() there are checks to decide whether or not to resume devices that were left in runtime-suspend during the preceding system-wide transition into a sleep state. They involve checking the current power state of the device and comparing it with the power

[PATCH] au1200fb: don't use DMA_ATTR_NON_CONSISTENT

2019-06-25 Thread Christoph Hellwig
au1200fb allocates DMA memory using DMA_ATTR_NON_CONSISTENT, but never calls dma_cache_sync to synchronize the memory between the CPU and the device. If it was use on a not cache coherent bus that would be fatal, but as far as I can tell from the naming and the mips platform implementation it

Re: [PATCH 1/3] notifier: Fix broken error handling pattern

2019-06-25 Thread Josh Poimboeuf
On Tue, Jun 25, 2019 at 09:38:21AM +0200, Peter Zijlstra wrote: > > > @@ -156,43 +169,30 @@ int atomic_notifier_chain_unregister(str > > > } > > > EXPORT_SYMBOL_GPL(atomic_notifier_chain_unregister); > > > > > > -/** > > > - * __atomic_notifier_call_chain - Call functions in an atomic >

Re: linux-next: Fixes tag needs some work in the pinctrl tree

2019-06-25 Thread Linus Walleij
On Thu, Jun 20, 2019 at 1:08 PM Stephen Rothwell wrote: > In commit > > 905dade66268 ("pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call > order") > > Fixes tag > > Fixes: 02e389e63 ("pinctrl: mcp23s08: fix irq setup order") > > has these problem(s): > > - SHA1 should be at

"arm64: vdso: Substitute gettimeofday() with C implementation" breaks clang build

2019-06-25 Thread Qian Cai
The linux-next commit "arm64: vdso: Substitute gettimeofday() with C implementation" [1] breaks clang build. error: invalid value 'tiny' in '-mcode-model tiny' make[1]: *** [scripts/Makefile.build:279: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1 make[1]: *** Waiting for unfinished jobs

Re: [tip:locking/core] locking/lockdep: Move mark_lock() inside CONFIG_TRACE_IRQFLAGS && CONFIG_PROVE_LOCKING

2019-06-25 Thread Will Deacon
On Tue, Jun 25, 2019 at 01:46:07AM -0700, tip-bot for Arnd Bergmann wrote: > Commit-ID: 886532aee3cd42d95196601ed16d7c3d4679e9e5 > Gitweb: > https://git.kernel.org/tip/886532aee3cd42d95196601ed16d7c3d4679e9e5 > Author: Arnd Bergmann > AuthorDate: Mon, 17 Jun 2019 14:47:05 +0200 >

Re: [PATCH v2] pinctrl: qcom: Add irq_enable callback for msm gpio

2019-06-25 Thread Linus Walleij
On Tue, Jun 25, 2019 at 12:29 PM Neeraj Upadhyay wrote: > On 6/25/19 2:28 PM, Linus Walleij wrote: > > Please don't name functions __like __that. > > > >> -static void msm_gpio_irq_unmask(struct irq_data *d) > >> +static void __msm_gpio_irq_unmask(struct irq_data *d, bool status_clear) > >

Re: [PATCH] perf: Fix race between close() and fork()

2019-06-25 Thread Alexander Shishkin
Peter Zijlstra writes: > Solve it by using the fact that detached events still have a reference > count on their (previous) context. With this perf_event_free_task() > can detect when events have escaped and wait for their destruction. > > Cc: Mark Rutland > Fixes: 82d94856fa22 ("perf/core: Fix

Re: [PATCH v2 1/4] dt-bindings: pinctrl: mvebu: Document bindings for 98DX1135

2019-06-25 Thread Linus Walleij
On Mon, Jun 17, 2019 at 11:55 PM Chris Packham wrote: > The 98DX1135 is similar to the 98DX4122 except the MPP options differ. > > Signed-off-by: Chris Packham > Reviewed-by: Andrew Lunn Patch applied as uncontroversial. Yours, Linus Walleij

Re: [PATCH] time/tick-broadcast: Fix tick_broadcast_offline() lockdep complaint

2019-06-25 Thread Frederic Weisbecker
On Tue, Jun 25, 2019 at 09:51:39AM +0200, Peter Zijlstra wrote: > On Tue, Jun 25, 2019 at 02:43:00AM +0200, Frederic Weisbecker wrote: > > Yeah, unfortunately there is no atomic_add_not_zero_return(). > > There is atomic_fetch_add_unless(). Ah, that could work!

Re: [PATCH v2 3/4] pinctrl: mvebu: Add support for MV98DX1135

2019-06-25 Thread Linus Walleij
On Mon, Jun 17, 2019 at 11:55 PM Chris Packham wrote: > The 98DX1135 is a switch chip with an integrated CPU. This is similar to > the 98DX4122 except the MPP assignments differ. > > Signed-off-by: Chris Packham > Reviewed-by: Andrew Lunn Patch applied. I just assume this one has no

<    1   2   3   4   5   6   7   8   9   10   >