[ 1/1] KVM/MMU: Fix comment in walk_shadow_page_lockless_end()

2018-09-06 Thread Tianyu Lan
kvm_commit_zap_page() has been renamed to kvm_mmu_commit_zap_page() This patch is to fix the commit. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 7ccd29b95746..648b839a349d

Re: [PATCH AUTOSEL 4.4 01/30] usb: usbtest: use irqsave() in USB's complete callback

2018-09-06 Thread Greg Kroah-Hartman
On Fri, Sep 07, 2018 at 12:38:56AM +, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable()

Re: [PATCH AUTOSEL 4.9 01/43] usb: usbtest: use irqsave() in USB's complete callback

2018-09-06 Thread Greg Kroah-Hartman
On Fri, Sep 07, 2018 at 12:38:19AM +, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable()

Re: [PATCH AUTOSEL 4.14 02/67] usb: usbtest: use irqsave() in USB's complete callback

2018-09-06 Thread Greg Kroah-Hartman
On Fri, Sep 07, 2018 at 12:37:22AM +, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable()

Re: [PATCH AUTOSEL 4.18 02/88] usb: usbtest: use irqsave() in USB's complete callback

2018-09-06 Thread Greg Kroah-Hartman
On Fri, Sep 07, 2018 at 12:35:52AM +, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable()

Re: [PATCH V3 21/26] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 03:05:38PM +0200, Arnd Bergmann wrote: > On Thu, Sep 6, 2018 at 4:13 AM Guo Ren wrote: > > > > On Wed, Sep 05, 2018 at 07:43:10PM -0500, Rob Herring wrote: > > > On Wed, Sep 5, 2018 at 7:10 AM Guo Ren wrote: > > > > > > > > Signed-off-by: Guo Ren > > > > + > > > > +

[PATCH 6/6] ARM: dts: qcom-msm8974: change invalid flag IRQ NONE to valid value

2018-09-06 Thread frowand . list
From: Frank Rowand Change the third field of the "interrupts" property from IRQ_TYPE_NONE to the correct value. I do not have hardware documentation for these devices, so I followed a mail list suggestion to copy the flag values from the same type of node in

[PATCH 2/6] ARM: dts: qcom-msm8974: use named constant for interrupt type GIC_SPI

2018-09-06 Thread frowand . list
From: Frank Rowand Cosmetic change of integer value "0" in the first field of the "interrupts" property to the correct named constant. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/qcom-msm8974.dtsi | 56 +++-- 1 file changed, 29 insertions(+), 27

[PATCH 1/6] ARM: dts: qcom-msm8974: use named constant for interrupt type GIC_PPI

2018-09-06 Thread frowand . list
From: Frank Rowand Cosmetic change of integer value "1" in the first field of the "interrupts" property to the correct named constant. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 0/6] ARM: dts: qcom-msm8974: change invalid flag IRQ NONE to valid value

2018-09-06 Thread frowand . list
From: Frank Rowand A boot time warning of devicetree interrupts types set to the invalid value of none was added by 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE"). This patch series fixes the devicetree source to replace IRQ_TYPE_NONE with the appropriate value.

[PATCH 4/6] ARM: dts: qcom-msm8974: use named constant for interrupt flag LEVEL HIGH

2018-09-06 Thread frowand . list
From: Frank Rowand Cosmetic change of integer value "4" in the third field of the "interrupts" property to the correct named constant. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/qcom-msm8974.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 5/6] ARM: dts: qcom-msm8974: use named constant for interrupt flag NONE

2018-09-06 Thread frowand . list
From: Frank Rowand Cosmetic change of integer value "0" in the third field of the "interrupts" property to the correct named constant. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/qcom-msm8974.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 3/6] ARM: dts: qcom-msm8974: use named constant for interrupt flag EDGE RISING

2018-09-06 Thread frowand . list
From: Frank Rowand Cosmetic change of integer value "1" in the third field of the "interrupts" property to the correct named constant. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 6/8] perf/x86/intel/lbr: guest requesting KVM for lbr stack save/restore

2018-09-06 Thread Wei Wang
On 09/07/2018 11:27 AM, Andi Kleen wrote: On Thu, Sep 06, 2018 at 07:30:54PM +0800, Wei Wang wrote: This patch adds an interface to enable a guest to request KVM to save and restore the lbr stack on vCPU context switching. KVM couldn't capture the info about whether the guest is actively using

Re: [PATCH V3 17/26] csky: Misc headers

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:16:30PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > diff --git a/arch/csky/boot/dts/qemu.dts b/arch/csky/boot/dts/qemu.dts > > new file mode 100644 > > index 000..d36e4cd > > --- /dev/null > > +++ b/arch/csky/boot/dts/qemu.dts

Re: [PATCH V3 13/26] csky: Library functions

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 05:50:02PM +0200, Geert Uytterhoeven wrote: > On Thu, Sep 6, 2018 at 4:25 PM Arnd Bergmann wrote: > > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > --- /dev/null > > > +++ b/arch/csky/abiv1/memset.c > > > @@ -0,0 +1,38 @@ > > > + if ((long)d & 0x3) > > > +

linux-next: Tree for Sep 7

2018-09-06 Thread Stephen Rothwell
Hi all, Changes since 20180906: Dropped trees: xarray, ida (temporarily) The vfs tree still had its build failures for which I disabled some sample programs. The net-next tree still had its build failure for which I reverted a commit. The bfp-next tree gained a conflict against the above

Re: [PATCH V3 13/26] csky: Library functions

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:24:59PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > --- /dev/null > > +++ b/arch/csky/abiv1/memset.c > > @@ -0,0 +1,38 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > >

[LKP] [tty] 0b4f83d510: INFO:task_blocked_for_more_than#seconds

2018-09-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 0b4f83d510f6fef6bb9da25f122c8d733d50516f ("[PATCH 2/4] tty: Hold tty_ldisc_lock() during tty_reopen()") url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/tty-Hold-write-ldisc-sem-in-tty_reopen/20180829-165618 base:

Re: [PATCH] vme: remove unneeded kfree

2018-09-06 Thread Linus Torvalds
On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang wrote: > > put_device will call vme_dev_release to free vdev, kfree is > unnecessary here. That does seem to be the case. I think "unnecessary" is overly kind, it does seem to be a double free. Looks like the issue was introduced back in 2013 by commit

Re: [PATCH v4 3/4] drivers: edac: Add EDAC driver support for QCOM SoCs

2018-09-06 Thread Sai Prakash Ranjan
On 9/7/2018 4:01 AM, vnkgu...@codeaurora.org wrote: On 2018-09-06 05:38, Sai Prakash Ranjan wrote: On 9/5/2018 4:52 AM, Venkata Narendra Kumar Gutta wrote: +static const struct of_device_id qcom_llcc_edac_match_table[] = { +    { .compatible = "qcom,llcc-edac" }, +    { }, +}; + Hi Venkata,

[PATCH] 9p locks: add mount option for lock retry interval

2018-09-06 Thread Dominique Martinet
From: Dinu-Razvan Chis-Serban The default P9_LOCK_TIMEOUT can be too long for some users exporting a local file system to a guest VM (30s), make this configurable at mount time. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195727 Signed-off-by: Dinu-Razvan Chis-Serban Signed-off-by:

[PATCH] ARM: qcom_defconfig: Enable MAILBOX

2018-09-06 Thread frowand . list
From: Frank Rowand Problem: ab460a2e72da ("rpmsg: qcom_smd: Access APCS through mailbox framework" added a "depends on MAILBOX") to RPMSG_QCOM_SMD, thus RPMSG_QCOM_SMD becomes unset since MAILBOX was not enabled in qcom_defconfig and is not otherwise selected for the dragonboard. When the

Re: [PATCH] mm: hugepage: mark splitted page dirty when needed

2018-09-06 Thread Peter Xu
On Thu, Sep 06, 2018 at 05:08:42PM +0300, Kirill A. Shutemov wrote: > On Thu, Sep 06, 2018 at 07:39:33PM +0800, Peter Xu wrote: > > On Wed, Sep 05, 2018 at 03:55:22PM +0300, Kirill A. Shutemov wrote: > > > On Wed, Sep 05, 2018 at 03:30:37PM +0800, Peter Xu wrote: > > > > On Tue, Sep 04, 2018 at

[PATCH] apparmor: Fix network performance issue in aa_label_sk_perm

2018-09-06 Thread Tony Jones
The netperf benchmark shows a 5.73% reduction in throughput for small (64 byte) transfers by unconfined tasks. DEFINE_AUDIT_SK() in aa_label_sk_perm() should not be performed unconditionally, rather only when the label is confined. netperf-tcp 56974a6fc^

Re: [PATCH 4.19 regression fix] printk: For early boot messages check loglevel when flushing the buffer

2018-09-06 Thread Sergey Senozhatsky
On (09/06/18 16:28), Petr Mladek wrote: > On Thu 2018-09-06 16:29:40, Sergey Senozhatsky wrote: > > On (09/05/18 13:02), Petr Mladek wrote: > > > Note that the first registered console prints all messages > > > even without this flag. > > > > Hmm, OK, interesting point. > > > > I assumed that

Re: [PATCH 2/2] pci: dwc: add UniPhier PCIe host controller support

2018-09-06 Thread Kunihiko Hayashi
Hi Bjorn, On Thu, 6 Sep 2018 09:09:27 -0500 wrote: > On Thu, Sep 06, 2018 at 10:38:20AM +0900, Kunihiko Hayashi wrote: > > > > +++ b/drivers/pci/controller/dwc/pcie-uniphier.c > > > > @@ -0,0 +1,464 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > +// > > > > +// PCI-express host

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Brijesh Singh
On 9/6/18 1:50 PM, Brijesh Singh wrote: ... >> >> #define HVC_DECRYPTED_ARRAY_SIZE  \ >> PAGE_ALIGN((NR_CPUS - HVC_BOOT_ARRAY_SIZE) * \ >>    sizeof(struct pvclock_vsyscall_time_info)) >> > Since the hv_clock_aux array will have NR_CPUS elements hence the following definition is

Re: [LKP] [rcutorture] 894b343aa8: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_fwd_prog

2018-09-06 Thread Paul E. McKenney
On Fri, Sep 07, 2018 at 11:01:56AM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 894b343aa8bec5ee732329f1db09b9f5c2794de5 ("rcutorture: Add call_rcu() > flooding forward-progress tests") >

Re: linux-next: build warnings from the build of Linus' tree

2018-09-06 Thread Stephen Rothwell
Hi Peter, On Fri, 7 Sep 2018 08:14:40 +1000 Stephen Rothwell wrote: > > On Thu, 6 Sep 2018 12:49:39 +0200 Peter Oberparleiter > wrote: > > > > I've attached a quick fix that should address both problems. I'd > > appreciate if this patch could get some testing before I post proper fix > >

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-09-06 Thread Minchan Kim
Thanks, Martijn, Greg, could you have a look to pick up? On Mon, Aug 27, 2018 at 03:35:24PM +0200, Martijn Coenen wrote: > Thanks Minchan! > > On Thu, Aug 23, 2018 at 7:29 AM, Minchan Kim wrote: > > Signed-off-by: Todd Kjos > > Signed-off-by: Minchan Kim > Reviewed-by: Martijn Coenen > > >

[PATCH v11 1/2] leds: core: Introduce LED pattern trigger

2018-09-06 Thread Baolin Wang
This patch adds one new led trigger that LED device can configure the software or hardware pattern and trigger it. Consumers can write 'pattern' file to enable the software pattern which alters the brightness for the specified duration with one software timer. Moreover consumers can write

Re: [PATCH v2 1/8] perf/x86: add a function to get the lbr stack

2018-09-06 Thread Andi Kleen
> +int perf_get_lbr_stack(struct perf_lbr_stack *stack) > +{ > + stack->lbr_nr = x86_pmu.lbr_nr; > + stack->lbr_tos = x86_pmu.lbr_tos; > + stack->lbr_from = x86_pmu.lbr_from; > + stack->lbr_to = x86_pmu.lbr_to; > + > + if (x86_pmu.intel_cap.lbr_format == LBR_FORMAT_INFO) > +

[PATCH v11 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-06 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang Acked-by: Pavel Machek --- Changes from v10: - Add duration alignment function suggested by Jacek. - Add acked tag from Pavel. Changes from v9: - Optimize

Re: [PATCH v2 6/8] perf/x86/intel/lbr: guest requesting KVM for lbr stack save/restore

2018-09-06 Thread Andi Kleen
On Thu, Sep 06, 2018 at 07:30:54PM +0800, Wei Wang wrote: > This patch adds an interface to enable a guest to request KVM to save > and restore the lbr stack on vCPU context switching. > > KVM couldn't capture the info about whether the guest is actively using > the lbr feature via the lbr enable

[PATCH] lib: rbtree: Fixed assign coding style issue

2018-09-06 Thread Pablo Pellecchia
Fixed coding style issue. Signed-off-by: Pablo Pellecchia --- lib/rbtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtree.c b/lib/rbtree.c index d3ff682fd4b8..c47745c39671 100644 --- a/lib/rbtree.c +++ b/lib/rbtree.c @@ -539,7 +539,7 @@ struct rb_node

Re: [PATCH] ASoC: max98373: usleep_range() needs include/delay.h

2018-09-06 Thread Benson Leung
Hi Grant, On Thu, Sep 06, 2018 at 05:27:28PM -0700, Grant Grundler wrote: > Commit ca917f9fe1a0fab added use of usleep_range() but not > the corresponding "include ". The result is > with Chrome OS won't build because warnings are forced > to be errors: >

Re: [PATCH V3 09/26] csky: VDSO and rt_sigreturn

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:02:42PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > + > > + /* > > +* __NR_rt_sigreturn must be 173 > > +* Because gcc/config/csky/linux-unwind.h use hard code to parse > > rt_sigframe. > > +*/ > > +

linux-next: manual merge of the kspp tree with the tip tree

2018-09-06 Thread Stephen Rothwell
Hi Kees, Today's linux-next merge of the kspp tree got a conflict in: drivers/misc/lkdtm/core.c between commit: bef459026b16 ("lkdtm: Test copy_to_user() on bad kernel pointer under KERNEL_DS") from the tip tree and commit: f90d1e0c7804 ("lkdtm: Add a test for STACKLEAK") from the

Re: [PATCH V3 06/26] csky: Cache and TLB routines

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:31:16PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > diff --git a/arch/csky/include/asm/io.h b/arch/csky/include/asm/io.h > > new file mode 100644 > > index 000..fcb2142 > > --- /dev/null > > +++ b/arch/csky/include/asm/io.h > >

[LKP] [rcutorture] 894b343aa8: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_fwd_prog

2018-09-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 894b343aa8bec5ee732329f1db09b9f5c2794de5 ("rcutorture: Add call_rcu() flooding forward-progress tests") https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2018.08.30a in testcase: trinity with following

Re: [PATCH v10 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-06 Thread Baolin Wang
Hi Pavel, On 7 September 2018 at 05:16, Pavel Machek wrote: > Hi! > >> diff --git a/Documentation/ABI/testing/sysfs-class-led-driver-sc27xx >> b/Documentation/ABI/testing/sysfs-class-led-driver-sc27xx >> new file mode 100644 >> index 000..d8056d5 >> --- /dev/null >> +++

Re: [PATCH v10 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-06 Thread Baolin Wang
Hi Jacek, On 7 September 2018 at 04:16, Jacek Anaszewski wrote: > Hi Baolin, > > Thank you for the patch. I really appreciate your effort. > > I see one more thing I forgot to mention in the previous > review. Please take a look at my comment to pattern_set(). > > On 09/06/2018 04:37 AM, Baolin

Re: [PATCH v2 2/9] nios2: build .dtb files in dts directory

2018-09-06 Thread Ley Foon Tan
On Wed, 2018-09-05 at 18:53 -0500, Rob Herring wrote: > Align nios2 with other architectures which build the dtb files in the > same directory as the dts files. This is also in line with most other > build targets which are located in the same directory as the source. > This move will help enable

Re: [LKP] 0a3856392c [ 10.513760] INFO: trying to register non-static key.

2018-09-06 Thread Matthew Wilcox
On Fri, Sep 07, 2018 at 09:05:39AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 0a3856392cff1542170b5bc37211c9a21fd0c3f6 >

Re: Plumbers 2018 - Performance and Scalability Microconference

2018-09-06 Thread Huang, Ying
Christopher Lameter writes: > On Thu, 6 Sep 2018, Huang, Ying wrote: > >> > Certainly interested in attending but this overlaps supercomputing 2018 in >> > Dallas Texas... >> >> Sorry to know this. It appears that there are too many conferences in >> November... > > I will try to get to it in

Re: [PATCH v3 5/5] x86/mm: add WARN_ON_ONCE() for wrong large page mapping

2018-09-06 Thread Yang, Bin
On Tue, 2018-09-04 at 18:52 +0200, Thomas Gleixner wrote: > On Tue, 4 Sep 2018, Thomas Gleixner wrote: > > On Tue, 4 Sep 2018, Yang, Bin wrote: > > > On Tue, 2018-09-04 at 00:27 +0200, Thomas Gleixner wrote: > > > > On Tue, 21 Aug 2018, Bin Yang wrote: > > > > > @@ -625,6 +625,7 @@

Re: [PATCH V3 00/26] C-SKY(csky) Linux Kernel Port

2018-09-06 Thread Guenter Roeck
Hi, On Wed, Sep 05, 2018 at 08:07:39PM +0800, Guo Ren wrote: > This is the 3th version patchset to add the Linux kernel port for C-SKY(csky). > Thanks to everyone who provided feedback on the previous version. > > This patchset adds architecture support to Linux for C-SKY's 32-bit embedded > CPU

Re: [PATCH 4.4 123/124] crypto: padlock-aes - Fix Nano workaround data corruption

2018-09-06 Thread Ben Hutchings
On Sat, 2018-08-04 at 11:01 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Herbert Xu > > commit 46d8c4b28652d35dc6cfb5adf7f54e102fc04384 upstream. > > This was detected by the self-test thanks to

Re: [PATCH V3 05/26] csky: System Call

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:10:49PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > +SYSCALL_DEFINE6(mmap2, > > + unsigned long, addr, > > + unsigned long, len, > > + unsigned long, prot, > > + unsigned long, flags, > > + unsigned

Re: [PATCH V3 02/26] csky: defconfig

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 03:58:51PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > > Signed-off-by: Guo Ren > > --- > > arch/csky/configs/defconfig | 76 > > + > > +CONFIG_USELIB=y > > CONFIG_USELIB seems misplaced

[PATCH -next] interconnect: Remove set but not used variable 'p'

2018-09-06 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/interconnect/core.c: In function 'icc_set': drivers/interconnect/core.c:350:23: warning: variable 'p' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/interconnect/core.c | 2 -- 1 file changed, 2

[PATCH -next] interconnect: qcom: fix return value of qnoc_probe

2018-09-06 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/interconnect/qcom/msm8916.c: In function 'qnoc_probe': drivers/interconnect/qcom/msm8916.c:439:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] if icc_node_create failed, err code 'ret' will be returned, so it cannot

[PATCH 1/2] tools: include: Add PTR_ERR_OR_ZERO to err.h

2018-09-06 Thread Ding Xiang
Add PTR_ERR_OR_ZERO, and tools can use it. Signed-off-by: Ding Xiang --- tools/include/linux/err.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/include/linux/err.h b/tools/include/linux/err.h index 7a8b61a..0946496 100644 --- a/tools/include/linux/err.h +++

[PATCH 2/2] perf tools: use PTR_ERR_OR_ZERO inetead of return code

2018-09-06 Thread Ding Xiang
use PTR_ERR_OR_ZERO for bpf__setup_stdout return code, it looks better. Signed-off-by: Ding Xiang --- tools/perf/util/bpf-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c index 47aac41..f9ae1a9 100644 ---

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-06 Thread Yang, Bin
On Tue, 2018-09-04 at 14:22 +0200, Thomas Gleixner wrote: > On Tue, 21 Aug 2018, Bin Yang wrote: > > > > +static inline bool > > +overlap(unsigned long start1, unsigned long end1, > > + unsigned long start2, unsigned long end2) > > +{ > > + /* Is 'start2' within area 1? */ > > + if

[PATCH AUTOSEL 4.18 21/88] clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure

2018-09-06 Thread Sasha Levin
From: Rajan Vaja [ Upstream commit f6dab4233d6b64d719109040503b567f71fbfa01 ] Fixed factor clock has two initializations at of_clk_init() time and during platform driver probe. Before of_clk_init() call, node is marked as populated and so its probe never gets called. During of_clk_init() fixed

[PATCH AUTOSEL 4.18 07/88] ALSA: pcm: Add __force to cast in snd_pcm_lib_read/write()

2018-09-06 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 95a48b7d4459948b6bacf809809cf01a7dc06d1d ] The snd_pcm_lib_read() and snd_pcm_lib_write() inline functions have the explicit cast from a user pointer to a kernel pointer, but they lacks of __force prefix. This fixes sparse warnings like:

[PATCH AUTOSEL 4.18 22/88] kbuild: add .DELETE_ON_ERROR special target

2018-09-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 9c2af1c7377a8a6ef86e5cabf80978f3dbbb25c0 ] If Make gets a fatal signal while a shell is executing, it may delete the target file that the recipe was supposed to update. This is needed to make sure that it is remade from scratch when Make is next run; if

[PATCH AUTOSEL 4.18 24/88] media: tw686x: Fix oops on buffer alloc failure

2018-09-06 Thread Sasha Levin
From: Krzysztof Ha?asa [ Upstream commit 5a1a2f63d840dc2631505b607e11ff65ac1b7d3c ] The error path currently calls tw686x_video_free() which requires vc->dev to be initialized, causing a NULL dereference on uninitizalized channels. Fix this by setting the vc->dev fields for all the channels

[PATCH AUTOSEL 4.18 11/88] xfrm: fix 'passing zero to ERR_PTR()' warning

2018-09-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 934ffce1343f22ed5e2d0bd6da4440f4848074de ] Fix a static code checker warning: net/xfrm/xfrm_policy.c:1836 xfrm_resolve_and_create_bundle() warn: passing zero to 'ERR_PTR' xfrm_tmpl_resolve return 0 just means no xdst found, return NULL instead of passing

[PATCH AUTOSEL 4.18 26/88] MIPS: ath79: fix system restart

2018-09-06 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit f8a7bfe1cb2c1ebfa07775c9c8ac0ad3ba8e5ff5 ] This patch disables irq on reboot to fix hang issues that were observed due to pending interrupts. Signed-off-by: Felix Fietkau Signed-off-by: John Crispin Signed-off-by: Paul Burton Patchwork:

[PATCH AUTOSEL 4.18 25/88] dmaengine: pl330: fix irq race with terminate_all

2018-09-06 Thread Sasha Levin
From: John Keeping [ Upstream commit e49756544a21f5625b379b3871d27d8500764670 ] In pl330_update() when checking if a channel has been aborted, the channel's lock is not taken, only the overall pl330_dmac lock. But in pl330_terminate_all() the aborted flag (req_running==-1) is set under the

[PATCH AUTOSEL 4.18 27/88] media: videobuf2-core: check for q->error in vb2_core_qbuf()

2018-09-06 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit b509d733d337417bcb7fa4a35be3b9a49332b724 ] The vb2_core_qbuf() function didn't check if q->error was set. It is checked in __buf_prepare(), but that function isn't called if the buffer was already prepared before with VIDIOC_PREPARE_BUF. So check it at the

[PATCH AUTOSEL 4.18 08/88] ALSA: msnd: Fix the default sample sizes

2018-09-06 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 7c500f9ea139d0c9b80fdea5a9c911db3166ea54 ] The default sample sizes set by msnd driver are bogus; it sets ALSA PCM format, not the actual bit width. Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/isa/msnd/msnd_pinnacle.c | 4 ++-- 1

[PATCH AUTOSEL 4.18 06/88] iommu/io-pgtable-arm: Fix pgtable allocation in selftest

2018-09-06 Thread Sasha Levin
From: Jean-Philippe Brucker [ Upstream commit fac83d29d95471ad6a104f8c0d21669a3d59097b ] Commit 4b123757eeaa ("iommu/io-pgtable-arm: Make allocations NUMA-aware") added a NUMA hint to page table allocation, but the pgtable selftest doesn't provide an SMMU device parameter. Since dev_to_node

[PATCH AUTOSEL 4.18 09/88] ALSA: usb-audio: Add support for Encore mDSD USB DAC

2018-09-06 Thread Sasha Levin
From: Jeff Crukley [ Upstream commit b080dc5bd0dfc0b33c6cfc31f909c93d5e63c186 ] This patch adds native DSD playback support for the Encore mDSD USB DAC by specifying the vendor and product ID's Signed-off-by: Jeff Crukley Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.18 23/88] kbuild: do not update config when running install targets

2018-09-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit d79424137a7312d381d131d707a462440c0e8df9 ] "make syncconfig" is automatically invoked when any of the following happens: - .config is updated - any of Kconfig files is updated - any of environment variables referenced in Kconfig is changed Then, it

[PATCH AUTOSEL 4.18 30/88] IB/ipoib: Fix error return code in ipoib_dev_init()

2018-09-06 Thread Sasha Levin
From: Wei Yongjun [ Upstream commit 99a7e2bf704d64c966dfacede1ba2d9b47cb676e ] Fix to return a negative error code from the ipoib_neigh_hash_init() error handling case instead of 0, as done elsewhere in this function. Fixes: 515ed4f3aab4 ("IB/IPoIB: Separate control and data related

[PATCH AUTOSEL 4.18 17/88] clk: imx6sll: fix missing of_node_put()

2018-09-06 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 7f5eac5934d747535f9ffc997792a0a6eb289374 ] of_find_compatible_node() is returning a device node with refcount incremented and must be explicitly decremented after the last use which is right after the us in of_iomap() here. Signed-off-by: Nicholas Mc

[PATCH AUTOSEL 4.18 15/88] gfs2: Special-case rindex for gfs2_grow

2018-09-06 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit 776125785a87ff05d49938bd5b9f336f2a05bff6 ] To speed up the common case of appending to a file, gfs2_write_alloc_required presumes that writing beyond the end of a file will always require additional blocks to be allocated. This assumption is

[PATCH AUTOSEL 4.18 33/88] perf test: Fix subtest number when showing results

2018-09-06 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 9ef0112442bdddef5fb55adf20b3a5464b33de75 ] Perf test 40 for example has several subtests numbered 1-4 when displaying the start of the subtest. When the subtest results are displayed the subtests are numbered 0-3. Use this command to generate trace

[PATCH AUTOSEL 4.18 14/88] iwlwifi: cancel the injective function between hw pointers to tfd entry index

2018-09-06 Thread Sasha Levin
From: Golan Ben Ami [ Upstream commit f5955a6cc3862a02d46f50b723c3172d24d749a5 ] Nowadays, the tfd queue max size is 2^8, and the reserved size in the command header sequence field for the tfd entry index is 8 bits, allowing an injective function from the hw pointers to the tfd entry index in

[PATCH AUTOSEL 4.18 34/88] gfs2: Don't reject a supposedly full bitmap if we have blocks reserved

2018-09-06 Thread Sasha Levin
From: Bob Peterson [ Upstream commit e79e0e1428188b24c3b57309ffa54a33c4ae40c4 ] Before this patch, you could get into situations like this: 1. Process 1 searches for X free blocks, finds them, makes a reservation 2. Process 2 searches for free blocks in the same rgrp, but now the bitmap is

[PATCH AUTOSEL 4.18 10/88] ALSA: usb-audio: Fix multiple definitions in AU0828_DEVICE() macro

2018-09-06 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit bd1cd0eb2ce9141100628d476ead4de485501b29 ] AU0828_DEVICE() macro in quirks-table.h uses USB_DEVICE_VENDOR_SPEC() for expanding idVendor and idProduct fields. However, the latter macro adds also match_flags and bInterfaceClass, which are different from the

[PATCH AUTOSEL 4.18 32/88] media: ov5645: Supported external clock is 24MHz

2018-09-06 Thread Sasha Levin
From: Todor Tomov [ Upstream commit 4adb0a0432f489c5eb802b33dae7737f69e6fd7a ] The external clock frequency was set to 23.88MHz by mistake because of a platform which cannot get closer to 24MHz. The supported by the driver external clock is 24MHz so set it correctly and also fix the values of

[PATCH AUTOSEL 4.18 35/88] ARM: exynos: Define EINT_WAKEUP_MASK registers for S5Pv210 and Exynos5433

2018-09-06 Thread Sasha Levin
From: Krzysztof Kozlowski [ Upstream commit e5cda42c16d89720c29678f51d95a119490ef7d8 ] S5Pv210 and Exynos5433/Exynos7 have different address of EINT_WAKEUP_MASK register. Rename existing S5P_EINT_WAKEUP_MASK to avoid confusion and add new ones. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz

[PATCH AUTOSEL 4.18 36/88] perf tools: Synthesize GROUP_DESC feature in pipe mode

2018-09-06 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit e8fedff1cc729fd227924305152ccc6f580e8c83 ] Stephan reported, that pipe mode does not carry the group information and thus the piped report won't display the grouped output for following command: # perf record -e '{cycles,instructions,branches}' -a sleep 4 |

[PATCH AUTOSEL 4.18 37/88] iio: ad9523: Fix displayed phase

2018-09-06 Thread Sasha Levin
From: Lars-Peter Clausen [ Upstream commit 5a4e33c1c53ae7d4425f7d94e60e4458a37b349e ] Fix the displayed phase for the ad9523 driver. Currently the most significant decimal place is dropped and all other digits are shifted one to the left. This is due to a multiplication by 10, which is not

[PATCH AUTOSEL 4.18 55/88] powerpc/powernv: opal_put_chars partial write fix

2018-09-06 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit bd90284cc6c1c9e8e48c8eadd0c79574fcce0b81 ] The intention here is to consume and discard the remaining buffer upon error. This works if there has not been a previous partial write. If there has been, then total_len is no longer total number of bytes to

[PATCH AUTOSEL 4.18 56/88] perf script: Show correct offsets for DWARF-based unwinding

2018-09-06 Thread Sasha Levin
From: Sandipan Das [ Upstream commit 2a9d5050dc84fa2060f08a52f632976923e0fa7e ] When perf/data is recorded with the dwarf call-graph option, the callchain shown by 'perf script' still shows the binary offsets of the userspace symbols instead of their virtual addresses. Since the symbol offset

[PATCH AUTOSEL 4.18 39/88] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

2018-09-06 Thread Sasha Levin
From: Sandipan Das [ Upstream commit 3eae52f842329a95f8549124079518231c0daba8 ] For powerpc64, this test currently fails due to a mismatch in the expected output. This can be observed on a powerpc64le system running Fedora 27 as shown below. # perf test -v "probe libc's inet_pton &

[PATCH AUTOSEL 4.18 19/88] Input: pxrc - fix freeing URB on device teardown

2018-09-06 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 34dad2cf1104869ce2db2bddb34f8e6780c2ddaa ] URB is the only resource that is not managed, and thus is destroyed too early, before we unregister input device and stop URB in pxrc_close(). To fix it let's install custom devm handler to free the URB at the

[PATCH AUTOSEL 4.18 60/88] MIPS: jz4740: Bump zload address

2018-09-06 Thread Sasha Levin
From: Paul Cercueil [ Upstream commit c6ea7e9747318e5a6774995f4f8e3e0f7c0fa8ba ] Having the zload address at 0x8060. means the size of the uncompressed kernel cannot be bigger than around 6 MiB, as it is deflated at address 0x8001.. This limit is too small; a kernel with some built-in

[PATCH AUTOSEL 4.18 57/88] staging: bcm2835-camera: fix timeout handling in wait_for_completion_timeout

2018-09-06 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit b7afce51d95726a619743aaad8870db66dfa1479 ] wait_for_completion_timeout returns unsigned long not int so a variable of proper type is introduced. Further the check for <= 0 is ambiguous and should be == 0 here indicating timeout which is the only error

[PATCH AUTOSEL 4.18 58/88] staging: bcm2835-camera: handle wait_for_completion_timeout return properly

2018-09-06 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 5b70084f6cbcd53f615433f9d216e01bd71de0bb ] wait_for_completion_timeout returns unsigned long not int so a variable of proper type is introduced. Further the check for <= 0 is ambiguous and should be == 0 here indicating timeout. Signed-off-by: Nicholas

[PATCH AUTOSEL 4.18 42/88] fbdev: omapfb: off by one in omapfb_register_client()

2018-09-06 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 5ec1ec35b2979b59d0b33381e7c9aac17e159d16 ] The omapfb_register_client[] array has OMAPFB_PLANE_NUM elements so the > should be >= or we are one element beyond the end of the array. Fixes: 8b08cf2b64f5 ("OMAP: add TI OMAP framebuffer driver") Signed-off-by:

[PATCH AUTOSEL 4.18 45/88] fbdev/via: fix defined but not used warning

2018-09-06 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit b6566b47a67e07fdca44cf51abb14e2fbe17d3eb ] Fix a build warning in viafbdev.c when CONFIG_PROC_FS is not enabled by marking the unused function as __maybe_unused. ../drivers/video/fbdev/via/viafbdev.c:1471:12: warning: 'viafb_sup_odev_proc_show' defined but

[PATCH AUTOSEL 4.18 59/88] ASoC: rt5514: Fix the issue of the delay volume applied

2018-09-06 Thread Sasha Levin
From: Oder Chiou [ Upstream commit d96f8bd28cd0bae3e6702ae90df593628ef6906f ] The patch fixes the issue of the delay volume applied. Signed-off-by: Oder Chiou Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5514.c | 8 1 file changed, 4 insertions(+), 4

[PATCH AUTOSEL 4.18 67/88] ALSA: usb-audio: Generic DSD detection for Thesycon-based implementations

2018-09-06 Thread Sasha Levin
From: Yue Wang [ Upstream commit 1ea0358ecb848058b35b6da13d7f4c08610a73a8 ] Thesycon provides solutions to XMOS chips, and has its own device vendor id. In this patch, we use generic method to detect DSD capability of Thesycon-based UAC2 implementations in order to support a wide range of

[PATCH AUTOSEL 4.18 68/88] nfp: avoid buffer leak when FW communication fails

2018-09-06 Thread Sasha Levin
From: Jakub Kicinski [ Upstream commit 07300f774fec9519663a597987a4083225588be4 ] After device is stopped we reset the rings by moving all free buffers to positions [0, cnt - 2], and clear the position cnt - 1 in the ring. We then proceed to clear the read/write pointers. This means that if we

[PATCH AUTOSEL 4.14 02/67] usb: usbtest: use irqsave() in USB's complete callback

2018-09-06 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] The USB completion callback does not disable interrupts while acquiring the lock. We want to remove the local_irq_disable() invocation from __usb_hcd_giveback_urb() and therefore it is required for the

[PATCH AUTOSEL 4.18 46/88] perf powerpc: Fix callchain ip filtering when return address is in a register

2018-09-06 Thread Sasha Levin
From: Sandipan Das [ Upstream commit 9068533e4f470daf2b0f29c71d865990acd8826e ] For powerpc64, perf will filter out the second entry in the callchain, i.e. the LR value, if the return address of the function corresponding to the probed location has already been saved on its caller's stack. The

[PATCH AUTOSEL 4.18 61/88] mac80211: restrict delayed tailroom needed decrement

2018-09-06 Thread Sasha Levin
From: Manikanta Pubbisetty [ Upstream commit 133bf90dbb8b873286f8ec2e81ba26e863114b8c ] As explained in ieee80211_delayed_tailroom_dec(), during roam, keys of the old AP will be destroyed and new keys will be installed. Deletion of the old key causes crypto_tx_tailroom_needed_cnt to go from 1

[PATCH AUTOSEL 4.18 72/88] soc: qcom: smem: Correct check for global partition

2018-09-06 Thread Sasha Levin
From: Bjorn Andersson [ Upstream commit 0b65c59e3a5475895c93ea5f130597db16b8abf6 ] The moved check for the global partition ended up in the wrong place and I failed to spot this in my review. This moves it to the correct place. Fixes: 11d2e7edac6a ("soc: qcom: smem: check sooner in

[PATCH AUTOSEL 4.18 65/88] reset: imx7: Fix always writing bits as 0

2018-09-06 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 26fce0557fa639fb7bbc33e31a57cff7df25c3a0 ] Right now the only user of reset-imx7 is pci-imx6 and the reset_control_assert and deassert calls on pciephy_reset don't toggle the PCIEPHY_BTN and PCIEPHY_G_RST bits as expected. Fix this by writing 1 or 0

[PATCH AUTOSEL 4.18 62/88] Smack: Fix handling of IPv4 traffic received by PF_INET6 sockets

2018-09-06 Thread Sasha Levin
From: Piotr Sawicki [ Upstream commit 129a99890936766f4b69b9da7ed88366313a9210 ] A socket which has sk_family set to PF_INET6 is able to receive not only IPv6 but also IPv4 traffic (IPv4-mapped IPv6 addresses). Prior to this patch, the smk_skb_to_addr_ipv6() could have been called for socket

[PATCH AUTOSEL 4.18 70/88] arm64: dts: qcom: db410c: Fix Bluetooth LED trigger

2018-09-06 Thread Sasha Levin
From: Loic Poulain [ Upstream commit e53db018315b7660bb7000a29e79faff2496c2c2 ] Current LED trigger, 'bt', is not known/used by any existing driver. Fix this by renaming it to 'bluetooth-power' trigger which is controlled by the Bluetooth subsystem. Fixes: 9943230c8860 ("arm64: dts: qcom: Add

linux-next: build warning after merge of the sound-asoc tree

2018-09-06 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/soc/soc-dapm.c: In function 'snd_soc_dai_link_event': sound/soc/soc-dapm.c:3771:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] return

[PATCH AUTOSEL 4.18 64/88] arm64: fix possible spectre-v1 write in ptrace_hbp_set_event()

2018-09-06 Thread Sasha Levin
From: Mark Rutland [ Upstream commit 14d6e289a89780377f8bb09de8926d3c62d763cd ] It's possible for userspace to control idx. Sanitize idx when using it as an array index, to inhibit the potential spectre-v1 write gadget. Found by smatch. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc:

  1   2   3   4   5   6   7   8   9   10   >