[tip:locking/core] locking/lockdep: Make check_prev_add() able to handle external stack_trace

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: ce07a9415f266e181a0a33033a5f7138760240a4 Gitweb: http://git.kernel.org/tip/ce07a9415f266e181a0a33033a5f7138760240a4 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:51 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:06 +0200 locking/lockdep: Make chec

[tip:locking/core] locking/lockdep: Implement the 'crossrelease' feature

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: b09be676e0ff25bd6d2e7637e26d349f9109ad75 Gitweb: http://git.kernel.org/tip/b09be676e0ff25bd6d2e7637e26d349f9109ad75 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:52 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:07 +0200 locking/lockdep: Implement

[PATCH v2 13/29] drm/imx: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

Re: [PATCH v3 21/49] blk-merge: compute bio->bi_seg_front_size efficiently

2017-08-10 Thread Christoph Hellwig
On Tue, Aug 08, 2017 at 04:45:20PM +0800, Ming Lei wrote: > It is enough to check and compute bio->bi_seg_front_size just > after the 1st segment is found, but current code checks that > for each bvec, which is inefficient. > > This patch follows the way in __blk_recalc_rq_segments() > for comput

[tip:locking/core] locking/lockdep: Detect and handle hist_lock ring buffer overwrite

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: 23f873d8f9526ed7e49a1a02a45f8afb9ae5fb84 Gitweb: http://git.kernel.org/tip/23f873d8f9526ed7e49a1a02a45f8afb9ae5fb84 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:53 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:08 +0200 locking/lockdep: Detect an

[tip:locking/core] locking/lockdep: Make print_circular_bug() aware of crossrelease

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: 383a4bc88849b804385162e81bf704f8f9690a87 Gitweb: http://git.kernel.org/tip/383a4bc88849b804385162e81bf704f8f9690a87 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:55 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:09 +0200 locking/lockdep: Make prin

[tip:locking/core] locking/lockdep: Handle non(or multi)-acquisition of a crosslock

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: 28a903f63ec0811ead70ad0f8665e838d207a25e Gitweb: http://git.kernel.org/tip/28a903f63ec0811ead70ad0f8665e838d207a25e Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:54 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:08 +0200 locking/lockdep: Handle no

[tip:locking/core] locking/lockdep: Apply crossrelease to completions

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: cd8084f91c02c1afd256a39aa833bff737631304 Gitweb: http://git.kernel.org/tip/cd8084f91c02c1afd256a39aa833bff737631304 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:12:56 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:29:10 +0200 locking/lockdep: Apply cro

[PATCH v2 11/29] drm/hisilicon: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[PATCH v2 12/29] drm/i915: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[tip:locking/core] locking/lockdep: Add 'crossrelease' feature documentation

2017-08-10 Thread tip-bot for Byungchul Park
Commit-ID: ef0758dd0fd70b98b889af26e27f003656952db8 Gitweb: http://git.kernel.org/tip/ef0758dd0fd70b98b889af26e27f003656952db8 Author: Byungchul Park AuthorDate: Mon, 7 Aug 2017 16:13:01 +0900 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:32:37 +0200 locking/lockdep: Add 'cros

[tip:sched/core] sched/numa: Scale scan period with tasks in group and shared/private

2017-08-10 Thread tip-bot for Rik van Riel
Commit-ID: b5dd77c8bdada7b6262d0cba02a6ed525bf4e6e1 Gitweb: http://git.kernel.org/tip/b5dd77c8bdada7b6262d0cba02a6ed525bf4e6e1 Author: Rik van Riel AuthorDate: Mon, 31 Jul 2017 15:28:47 -0400 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:18:16 +0200 sched/numa: Scale scan peri

[PATCH] ACPI/IORT: fix build regression without IOMMU

2017-08-10 Thread Arnd Bergmann
A recent change reintroduced a bug that had previously been fixed by commit d49f2dedf33b ("ACPI/IORT: Fix CONFIG_IOMMU_API dependency"): drivers/acpi/arm64/iort.c: In function 'iort_iommu_configure': drivers/acpi/arm64/iort.c:829:26: error: 'struct iommu_fwspec' has no member named 'ops' This do

[PATCH v2 09/29] drm/exynos: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[tip:x86/asm] x86/xen/64: Rearrange the SYSCALL entries

2017-08-10 Thread tip-bot for Andy Lutomirski
Commit-ID: 8a9949bc71a71b3dd633255ebe8f8869b1f73474 Gitweb: http://git.kernel.org/tip/8a9949bc71a71b3dd633255ebe8f8869b1f73474 Author: Andy Lutomirski AuthorDate: Mon, 7 Aug 2017 20:59:21 -0700 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 13:14:32 +0200 x86/xen/64: Rearrange the

[PATCH v2 10/29] drm/gma500: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[PATCH v2 05/29] drm/atmel-hlcdc: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[PATCH v2 07/29] drm/cirrus: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[tip:x86/asm] x86/asm/64: Clear AC on NMI entries

2017-08-10 Thread tip-bot for Andy Lutomirski
Commit-ID: e93c17301ac55321fc18e0f8316e924e58a83c8c Gitweb: http://git.kernel.org/tip/e93c17301ac55321fc18e0f8316e924e58a83c8c Author: Andy Lutomirski AuthorDate: Mon, 7 Aug 2017 19:43:13 -0700 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 13:13:15 +0200 x86/asm/64: Clear AC on N

[tip:sched/core] sched/numa: Slow down scan rate if shared faults dominate

2017-08-10 Thread tip-bot for Rik van Riel
Commit-ID: 37ec97deb3a8c68a7adfab61beb261ffeab19d09 Gitweb: http://git.kernel.org/tip/37ec97deb3a8c68a7adfab61beb261ffeab19d09 Author: Rik van Riel AuthorDate: Mon, 31 Jul 2017 15:28:46 -0400 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:18:16 +0200 sched/numa: Slow down scan

[PATCH] Subject:staging:media:atomisp:ap1302: fix comments style

2017-08-10 Thread Harold Gomez
fix comment style Warning in ap1302.c fix WARNING on Block comments use * on subsequent lines Signed-off-by: Harold Gomez --- drivers/staging/media/atomisp/i2c/ap1302.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/st

[PATCH v2 06/29] drm/bochs: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

Re: [PATCH v3 20/49] block: introduce bio_for_each_segment_mp()

2017-08-10 Thread Christoph Hellwig
First: as mentioned in the previous patches I really hate the name scheme with the _sp and _mp postfixes. To be clear and understandable we should always name the versions that iterate over segments *segment* and the ones that iterate over pages *page*. To make sure we have a clean compile break

[PATCH v2 04/29] drm/ast: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[tip:x86/asm] x86/asm/32: Fix regs_get_register() on segment registers

2017-08-10 Thread tip-bot for Andy Lutomirski
Commit-ID: 603e492e861861ddfec7139a007abad74f0d3af0 Gitweb: http://git.kernel.org/tip/603e492e861861ddfec7139a007abad74f0d3af0 Author: Andy Lutomirski AuthorDate: Wed, 9 Aug 2017 14:39:45 -0700 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 13:14:58 +0200 x86/asm/32: Fix regs_get_

[PATCH v2 03/29] drm/armada: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

[PATCH v2 01/29] drm/amdgpu: switch to drm_*_get(), drm_*_put() helpers

2017-08-10 Thread Cihangir Akturk
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers. drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() and should not be used by new code. So convert all users of compatibility functions

Re: [PATCH 02/17] pinctrl: artpec6: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures

2017-08-10 Thread Lars Persson
On 08/10/2017 12:06 PM, Julia Lawall wrote: This pinctrl_ops structure is only stored in the const pctlops field of a pinctrl_desc structure. Make the pinctrl_ops structure const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/pinctrl/pinctrl-artpec6.c |

Re: [PATCH] KVM: X86: Fix residual mmio emulation request to userspace

2017-08-10 Thread Dmitry Vyukov
On Thu, Aug 10, 2017 at 7:33 AM, Wanpeng Li wrote: > Reported by syzkaller: > > The kvm-intel.unrestricted_guest=0 > >WARNING: CPU: 5 PID: 1014 at > /home/kernel/data/kvm/arch/x86/kvm//x86.c:7227 > kvm_arch_vcpu_ioctl_run+0x38b/0x1be0 [kvm] >CPU: 5 PID: 1014 Comm: warn_test Tainted: G

Re: Re: [PATCH] oom_reaper: close race without using oom_lock

2017-08-10 Thread Michal Hocko
On Thu 10-08-17 21:10:30, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Tue 08-08-17 11:14:50, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > On Sat 05-08-17 10:02:55, Tetsuo Handa wrote: > > > > > Michal Hocko wrote: > > > > > > On Wed 26-07-17 20:33:21, Tetsuo Handa wrote: > > > > > > >

Re: [PATCH 07/17] pinctrl: digicolor: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures

2017-08-10 Thread Baruch Siach
Hi Julia, On Thu, Aug 10, 2017 at 12:06:19PM +0200, Julia Lawall wrote: > These structures are only stored in fields of a pinctrl_desc > structure (pctlops and pmxops) that are const. Make the > structures const as well. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Ack

[PATCH 3/3] iio: adc: at91-sama5d2_adc: add support for DMA

2017-08-10 Thread Eugen Hristev
Added support for DMA transfers. The implementation uses the user watermark to decide whether DMA will be used or not. For watermark 1, DMA will not be used. If watermark is bigger, DMA will be used. Sysfs attributes are created to indicate whether the DMA is used, with hwfifo_enabled, and the curr

[PATCH 0/3] iio: adc: at91-sama5d2_adc: add DMA support

2017-08-10 Thread Eugen Hristev
This patch implements the DMA support for the ADC in sam5d2 SOC. After discussing on the mailing list, this approach is based on triggered kfifo buffer, with DMA support added on top of it. Thus, the trigger is enabled by the buffer. The ADC itself will not have an IRQ enabled if using DMA. With DM

[PATCH 1/3] Documentation: dt: iio: at91-sama5d2_adc: add optional dma property

2017-08-10 Thread Eugen Hristev
Added property for DMA configuration of the device. Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetre

[PATCH 2/3] ARM: dts: at91: sama5d2: added dma property for ADC device

2017-08-10 Thread Eugen Hristev
Added DMA property for ADC device Signed-off-by: Eugen Hristev --- arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 8067c71..2f1dc77 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/ar

[PATCH] tegra114: fix to a race condition due to early registration of interrupt handler

2017-08-10 Thread Anton Volkov
The early registration of interrupt handler made possible a race condition leading to the usage of an incorrect physical address obtained by reading uninitialized tspi->tx_dma_phys. This patch moves the registration of an interrupt handler further down the code of tegra_spi_probe to make the race

[PATCH] staging:media:atomisp: Add blank line after declarations

2017-08-10 Thread Harold Gomez
Add blank line after declarations to avoid warning from checkpatch.pl script Signed-off-by: Harold Gomez --- drivers/staging/media/atomisp/i2c/ap1302.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/staging/media/atomisp/i2c/ap1302.c ind

[PATCH] stm: Potential read overflow in stm_char_policy_set_ioctl()

2017-08-10 Thread Dan Carpenter
The "size" variable comes from the user so we need to verify that it's large enough to hold an stp_policy_id struct. Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices") Signed-off-by: Dan Carpenter diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtra

Re: [PATCH v8 06/14] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-08-10 Thread Boqun Feng
On Thu, Aug 10, 2017 at 09:11:32PM +0900, Byungchul Park wrote: > > -Original Message- > > From: Boqun Feng [mailto:boqun.f...@gmail.com] > > Sent: Thursday, August 10, 2017 8:59 PM > > To: Byungchul Park > > Cc: pet...@infradead.org; mi...@kernel.org; t...@linutronix.de; > > wal...@google.

[PATCH 0/3] x86: paravirt related cleanup

2017-08-10 Thread Juergen Gross
Cleanup special cases of paravirt patching: - Xen doesn't need a custom patching function, it can use paravirt_patch_default() - Remove lguest completely from the tree. A LKML mail asking for any users 3 months ago did not reveal any need for keeping lguest [1]. - Remove vsmp paravirt suppor

[PATCH 3/3] x86/vsmp: remove vsmp paravirt support

2017-08-10 Thread Juergen Gross
vSMP has seen its last functional patch more than 3 years ago. It is not clear whether the vSMP paravirtualized irq functions are still needed. Remove them as they seem to be optional and their existence is blocking some simplification work of paravirt infrastructure. Signed-off-by: Juergen Gross

[PATCH] media:staging:atomisp:ap1302: Fix comment style

2017-08-10 Thread Harold Gomez
fix comment style to avoid warning from checkpatch.pl script Signed-off-by: Harold Gomez --- drivers/staging/media/atomisp/i2c/ap1302.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/staging/media/atomisp/i2

[PATCH v4 0/4] crypto: add driver for Axis ARTPEC crypto accelerator

2017-08-10 Thread Lars Persson
This series adds a driver for the crypto accelerator in the ARTPEC series of SoCs from Axis Communications AB. Changelog v4: - The skcipher conversion had a mistake where the algos were registered instead of unregistered at module unloading. Changelog v3: - The patch author added his Signed-off

Re: Increased memory usage with scsi-mq

2017-08-10 Thread Paolo Bonzini
On 10/08/2017 14:22, Richard W.M. Jones wrote: > On Wed, Aug 09, 2017 at 06:50:10PM +0200, Paolo Bonzini wrote: >> On 09/08/2017 18:01, Christoph Hellwig wrote: >>> On Mon, Aug 07, 2017 at 03:07:48PM +0200, Paolo Bonzini wrote: can_queue should depend on the virtqueue size, which unfortunately

[PATCH v4 3/4] crypto: axis: add ARTPEC-6/7 crypto accelerator driver

2017-08-10 Thread Lars Persson
This is an asynchronous crypto API driver for the accelerator present in the ARTPEC-6 and -7 SoCs from Axis Communications AB. The driver supports AES in ECB/CTR/CBC/XTS/GCM modes and SHA1/2 hash standards. Signed-off-by: Lars Persson --- drivers/crypto/Kconfig | 21 + drivers/c

[PATCH v4 1/4] dt-bindings: crypto: add ARTPEC crypto

2017-08-10 Thread Lars Persson
Document the device tree bindings for the ARTPEC crypto accelerator on ARTPEC-6 and ARTPEC-7 SoCs. Acked-by: Rob Herring Signed-off-by: Lars Persson --- .../devicetree/bindings/crypto/artpec6-crypto.txt| 16 1 file changed, 16 insertions(+) create mode 100644 Documenta

Re: [RFC PATCH 0/9] Introduce housekeeping subsystem

2017-08-10 Thread Frederic Weisbecker
On Fri, Jul 21, 2017 at 03:48:16PM -0400, Chris Metcalf wrote: > On 7/21/2017 9:21 AM, Frederic Weisbecker wrote: > >I'm leaving for two weeks so this is food for thoughts in the meantime :) > > > >We have a design issue with nohz_full: it drives the isolation features > >through the *housekeeping*

[PATCH v3] Fix header-name to read state name and adjust column width

2017-08-10 Thread Seeteena Thoufeek
root:~# cpupower monitor |Idle_Stats PKG |CORE|CPU | snoo | stop | stop 0| 8| 0| 0.00| 0.00| 2.79 0| 8| 1| 0.00| 0.00| 70.68 In this patch, we modify the output to print the state name and adjust the column width, that results in a legible output. root:~#cpupo

[PATCH v4 2/4] crypto: add crypto_(un)register_ahashes()

2017-08-10 Thread Lars Persson
From: Rabin Vincent There are already helpers to (un)register multiple normal and AEAD algos. Add one for ahashes too. Signed-off-by: Lars Persson Signed-off-by: Rabin Vincent --- v4: crypto_register_skciphers was used where crypto_unregister_skciphers was intended. crypto/ahash.c

[PATCH v4 4/4] MAINTAINERS: Add ARTPEC crypto maintainer

2017-08-10 Thread Lars Persson
Assign the Axis kernel team as maintainer for crypto drivers under drivers/crypto/axis. Signed-off-by: Lars Persson --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5b6c71e783e..72186cf9820d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1129,6

[PATCH 1/3] paravirt,xen: remove xen_patch()

2017-08-10 Thread Juergen Gross
Xen's paravirt patch function xen_patch() does some special casing for irq_ops functions to apply relocations when those functions can be patched inline instead of calls. Unfortunately none of the special case function replacements is small enough to be patches inline, so the special case never ap

Re: [PATCH v5 03/10] swiotlb: Map the buffer if it was unmapped by XPFO

2017-08-10 Thread Konrad Rzeszutek Wilk
On Wed, Aug 09, 2017 at 02:07:48PM -0600, Tycho Andersen wrote: > From: Juerg Haefliger > > Signed-off-by: Juerg Haefliger > Tested-by: Tycho Andersen > --- > include/linux/xpfo.h | 4 > lib/swiotlb.c| 3 ++- > mm/xpfo.c| 9 + > 3 files changed, 15 insertions(+

[PATCH 0/5] ASoC: dapm: Adjustments for some function implementations

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:54:32 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete error messages for a failed memory allocation in snd_soc_dapm_new_pcm() Improve a size determination in two functions Use

[PATCH v3] Fix header-name to read state name and adjust column width

2017-08-10 Thread Seeteena Thoufeek
The names of the idle states in the output of cpupower monitor command are truncated to 4 characters. Hence, On POWER9, since the states are named "stop0, stop1, stop2, stop4, stop11", this output is ambiguous root:~# cpupower monitor |Idle_Stats PKG |CORE|CPU | snoo | stop | stop

Re: [PATCH] backlight: add DDC/CI brightness driver

2017-08-10 Thread Miłosz Rachwał
On 13.02.2017 13:12, Daniel Thompson wrote: > On 21/01/17 18:31, Miłosz Rachwał wrote: >> This patch contains driver for exposing VESA DDC/CI MCCS brightness >> settings via kernel backlight API. This allows to control monitor >> brightness using standard software which uses /sys/class/backlight/ >

[PATCH 2/5] ASoC: dapm: Improve a size determination in two functions

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:15:47 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Marku

[PATCH 1/5] ASoC: dapm: Delete error messages for a failed memory allocation in snd_soc_dapm_new_pcm()

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:09:19 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed

Re: [RFC Part1 PATCH v3 05/17] x86, realmode: Don't decrypt trampoline area under SEV

2017-08-10 Thread Tom Lendacky
On 7/26/2017 11:03 AM, Borislav Petkov wrote: Subject: x86/realmode: ... Done. On Mon, Jul 24, 2017 at 02:07:45PM -0500, Brijesh Singh wrote: From: Tom Lendacky When SEV is active the trampoline area will need to be in encrypted memory so only mark the area decrypted if SME is active.

[PATCH 3/5] ASoC: dapm: Use kcalloc() in snd_soc_dapm_new_widgets()

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:30:48 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle softwar

Re: [PATCH] Subject:staging:media:atomisp:ap1302: fix comments style

2017-08-10 Thread Sakari Ailus
On Thu, Aug 10, 2017 at 05:57:35PM +0530, Harold Gomez wrote: > fix comment style Warning in ap1302.c > fix WARNING on Block comments use * on subsequent lines > > Signed-off-by: Harold Gomez If you're making a number of trivial cleanups to a single driver, please submit them as a single patch i

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-10 Thread Michal Hocko
On Mon 07-08-17 10:59:51, Rik van Riel wrote: > On Mon, 2017-08-07 at 15:46 +0200, Michal Hocko wrote: > > On Mon 07-08-17 15:22:57, Michal Hocko wrote: > > > This is an user visible API so make sure you CC linux-api (added) > > > > > > On Sun 06-08-17 10:04:23, Rik van Riel wrote: > > > > > > >

[PATCH 5/5] ASoC: dapm: Adjust seven checks for null pointers

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:41:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix affected source code places

[PATCH 4/5] ASoC: dapm: Adjust one function call together with a variable assignment

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 14:34:35 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- sound/soc/soc-dapm.c | 3 ++- 1 file chang

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-10 Thread Michal Hocko
On Mon 07-08-17 16:19:18, Florian Weimer wrote: > On 08/07/2017 03:46 PM, Michal Hocko wrote: > > How do they know that they need to regenerate if they do not get SEGV? > > Are they going to assume that a read of zeros is a "must init again"? Isn't > > that too fragile? > > Why would it be fragile

[PATCH] media:atomisp:ap1302 Fix style warning

2017-08-10 Thread Harold Gomez
Add a blank line after declarations to avoid checkpatch.pl script warning Signed-off-by: Harold Gomez --- drivers/staging/media/atomisp/i2c/ap1302.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/staging/media/atomisp/i2c/ap1302.c index

Re: [PATCH v5 08/10] arm64/mm: Add support for XPFO to swiotlb

2017-08-10 Thread Konrad Rzeszutek Wilk
On Wed, Aug 09, 2017 at 02:07:53PM -0600, Tycho Andersen wrote: > From: Juerg Haefliger > > Pages that are unmapped by XPFO need to be mapped before and unmapped > again after (to restore the original state) the __dma_{map,unmap}_area() > operations to prevent fatal page faults. > > Signed-off-b

Re: [Linux-ima-devel] [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-10 Thread Mimi Zohar
On Wed, 2017-08-09 at 19:18 +0200, Roberto Sassu wrote: > On 8/9/2017 4:30 PM, Mimi Zohar wrote: > > On Wed, 2017-08-09 at 11:15 +0200, Roberto Sassu wrote: > >> On 8/2/2017 9:22 AM, James Morris wrote: > >>> On Tue, 1 Aug 2017, Roberto Sassu wrote: > >>> > On 8/1/2017 12:27 PM, Christoph Hell

Re: [PATCH v6 2/2] thermal: uniphier: add UniPhier thermal driver

2017-08-10 Thread Kunihiko Hayashi
Hi, On Tue, 8 Aug 2017 21:29:10 +0800 wrote: > On Tue, 2017-08-01 at 17:04 +0900, Kunihiko Hayashi wrote: > > Add a thermal driver for on-chip PVT (Process, Voltage and > > Temperature) > > monitoring unit implemented on UniPhier SoCs. This driver supports > > temperature monitoring and alert fu

Re: [PATCH v8 06/14] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-08-10 Thread Boqun Feng
On Thu, Aug 10, 2017 at 08:51:33PM +0800, Boqun Feng wrote: [...] > > > > + /* Check if the ring was overwritten. */ > > > > + if (h->hist_id != cur->hist_id_save[c]) > > > > > > Could we use: > > > > > > if (h->hist_id != idx) > > > > No, we cannot. > > >

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-10 Thread Eric Farman
On 08/08/2017 04:14 AM, Longpeng (Mike) wrote: On 2017/8/8 15:41, Cornelia Huck wrote: On Tue, 8 Aug 2017 12:05:31 +0800 "Longpeng(Mike)" wrote: This is a simple optimization for kvm_vcpu_on_spin, the main idea is described in patch-1's commit msg. I think this generally looks good now

Re: [PATCH v7 7/9] mm: Add address parameter to arch_validate_prot()

2017-08-10 Thread Michael Ellerman
Khalid Aziz writes: > A protection flag may not be valid across entire address space and > hence arch_validate_prot() might need the address a protection bit is > being set on to ensure it is a valid protection flag. For example, sparc > processors support memory corruption detection (as part of

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-10 Thread Michal Hocko
On Mon 07-08-17 17:55:45, Colm MacCárthaigh wrote: > On Mon, Aug 7, 2017 at 3:46 PM, Michal Hocko wrote: > > > > > > > The use case is libraries that store or cache information, and > > > > want to know that they need to regenerate it in the child process > > > > after fork. > > > > How do they k

Re: [PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-10 Thread Colm MacCárthaigh
On Thu, Aug 10, 2017 at 3:05 PM, Michal Hocko wrote: >> Too late for that. VM_DONTFORK is already implemented >> through MADV_DONTFORK & MADV_DOFORK, in a way that is >> very similar to the MADV_WIPEONFORK from these patches. > > Yeah, those two seem to be breaking the "madvise as an advise" seman

Re: [PATCH] staging: bcm2835-audio: Fix memory corruption

2017-08-10 Thread Phil Elwell
On 10/08/2017 12:24, Dan Carpenter wrote: > On Thu, Aug 10, 2017 at 11:52:42AM +0100, Phil Elwell wrote: >> On 10/08/2017 11:21, Dan Carpenter wrote: >>> The original patch did not go through the normal review process... >>> >>> On Tue, Aug 08, 2017 at 01:05:02PM +0100, Phil Elwell wrote: I'

Re: [RESEND PATCH v5] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-10 Thread Waiman Long
On 08/10/2017 07:50 AM, Peter Zijlstra wrote: > On Wed, May 24, 2017 at 09:38:28AM -0400, Waiman Long wrote: >> # of thread w/o patchwith patch % Change >> --- --- >>4 4053.3 Mop/s 4223.7 Mop/s +4.2% >>8

Re: [PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-10 Thread Michal Hocko
On Thu 10-08-17 10:21:18, Michal Hocko wrote: > On Tue 08-08-17 19:48:55, Andrea Arcangeli wrote: > [...] > > The bug corrected by this patch 1/2 I pointed it out last week while > > reviewing other oom reaper fixes so that looks fine. > > > > However I'd prefer to dump MMF_UNSTABLE for good inste

Re: [PATCH v3 3/5] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-08-10 Thread Damien Riegel
Hi, On Thu, Aug 10, 2017 at 11:02:34AM +0100, Srinivas Kandagatla wrote: > Hi Damien, > Thanks for testing. > > On 09/08/17 22:10, Damien Riegel wrote: > > Hi Srinivas, > > > > On Wed, Aug 09, 2017 at 06:49:25PM +0200, srinivas.kandaga...@linaro.org > > wrote: > > > From: Srinivas Kandagatla >

Re: [PATCH 04/12] [media] V4L2: platform: rcar_jpu: constify v4l2_m2m_ops structures

2017-08-10 Thread Mikhail Ulyanov
On Sun, Aug 6, 2017 at 11:25 AM, Julia Lawall wrote: > The v4l2_m2m_ops structures are only passed as the only > argument to v4l2_m2m_init, which is declared as const. > Thus the v4l2_m2m_ops structures themselves can be const. > > Done with the help of Coccinelle. > > // > @r disable optional_qu

[PATCH] staging: media: atomisp: Add blank line after variable declarations.

2017-08-10 Thread Harold Gomez
This patch fixes the checkpatch.pl warning WARNING: Missing a blank line after declarations + int i; + dev_dbg(&client->dev, "Dump registers for context[%d]:\n", context) WARNING: Missing a blank line after declarations + int ret; + ret = request_firmware(&dev->fw, "ap1302

[PATCH 0/3] staging: pi433: rf69.c style errors fixes - braces

2017-08-10 Thread Marcin Ciupak
This set of patches is intended to fix coding style errors with braces in rf69.c file in order to comply with kernel coding style guide as requested by TODO file. The following errors were fixed: ERROR: that open brace { should be on the previous line ERROR: else should follow close brace '}' ERRO

[PATCH 1/3] staging: pi433: rf69.c style fix - that open brace

2017-08-10 Thread Marcin Ciupak
This patch fixes the following checkpatch.pl error: ERROR: that open brace { should be on the previous line in rf69.c file as requested by TODO file. Note: ERROR: else should follow close brace '}' remains valid here and is going to be fixed by the next patch in set. Additionally some style war

[PATCH 2/3] staging: pi433: rf69.c style fix - else close brace

2017-08-10 Thread Marcin Ciupak
This patch fixes the following checkpatch.pl error: ERROR: else should follow close brace '}' in rf69.c file as requested by TODO file. Signed-off-by: Marcin Ciupak --- drivers/staging/pi433/rf69.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/pi433/rf69

[PATCH 3/3] staging: pi433: rf69.c style fix - spaces open brace

2017-08-10 Thread Marcin Ciupak
This patch fixes the following checkpatch.pl error: ERROR: space required before the open brace '{' in rf69.c file as requested by TODO file. Signed-off-by: Marcin Ciupak --- drivers/staging/pi433/rf69.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/

Re: [PATCH 05/16] mm: Protect VMA modifications using VMA sequence count

2017-08-10 Thread Kirill A. Shutemov
On Thu, Aug 10, 2017 at 10:27:50AM +0200, Laurent Dufour wrote: > On 10/08/2017 02:58, Kirill A. Shutemov wrote: > > On Wed, Aug 09, 2017 at 12:43:33PM +0200, Laurent Dufour wrote: > >> On 09/08/2017 12:12, Kirill A. Shutemov wrote: > >>> On Tue, Aug 08, 2017 at 04:35:38PM +0200, Laurent Dufour wro

Re: [PATCH] KVM: X86: Fix residual mmio emulation request to userspace

2017-08-10 Thread Paolo Bonzini
On 10/08/2017 07:33, Wanpeng Li wrote: > Reported by syzkaller: > > The kvm-intel.unrestricted_guest=0 > >WARNING: CPU: 5 PID: 1014 at > /home/kernel/data/kvm/arch/x86/kvm//x86.c:7227 > kvm_arch_vcpu_ioctl_run+0x38b/0x1be0 [kvm] >CPU: 5 PID: 1014 Comm: warn_test Tainted: GW OE

Re: [PATCH] fixdep: trivial: typo fix and correction

2017-08-10 Thread Cao jin
Hi Masahiro-san On 08/10/2017 12:05 AM, Masahiro Yamada wrote: > 2017-08-08 22:20 GMT+09:00 Cao jin : >> Signed-off-by: Cao jin > > Applied to linux-kbuild/fixes. Thanks! > I want to ask a question via this thread. I am tracing how each kernel source file compiled, and I met mounts-y in init

[PATCH net-next] fsl/fman: implement several errata workarounds

2017-08-10 Thread Florinel Iordache
Implemented workarounds for the following dTSEC Erratum: A002, A004, A0012, A0014, A004839 on several operations that involve MAC CFG register changes: adjust link, rx pause frames, modify MAC address. Signed-off-by: Florinel Iordache --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 118 ++

Re: suspicious __GFP_NOMEMALLOC in selinux

2017-08-10 Thread Paul Moore
On Thu, Aug 10, 2017 at 3:02 AM, Michal Hocko wrote: > On Tue 08-08-17 09:34:15, Paul Moore wrote: >> On Mon, Aug 7, 2017 at 2:58 AM, Michal Hocko wrote: >> > On Fri 04-08-17 13:12:04, Paul Moore wrote: >> >> On Fri, Aug 4, 2017 at 3:56 AM, Michal Hocko wrote: >> > [...] >> >> > Btw. Should I re

[PATCH v5 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-10 Thread David Wu
Make the rockchip PHY driver built into the kernel. Signed-off-by: David Wu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 --- a/arch/arm64/configs/defconfig +++ b/arc

[PATCH v5 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-10 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index f0

[PATCH v5 01/11] net: phy: Add rockchip PHY driver support

2017-08-10 Thread David Wu
Support integrated ethernet PHY currently. Signed-off-by: David Wu --- changes in v4: - Remove SUPPORTED_[Asym_]Pause. - Some minor fix like defines. changes in v5: - Rename internal to integrated. - Remove PHY_IS_INTERNAL flag. drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile

[PATCH v5 02/11] multi_v7_defconfig: Make rockchip PHY built-in

2017-08-10 Thread David Wu
Enable the rockchip PHY driver for multi_v7_defconfig builds. Signed-off-by: David Wu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..94d7e71 100644 --- a/arch/ar

[PATCH v5 00/11] Add the integrated PHY support

2017-08-10 Thread David Wu
The rk3228 and rk3328 support integrated PHY inside, let's enable it to work. And the integrated PHY need to do some special setting, so register the rockchip integrated PHY driver. David Wu (11): net: phy: Add rockchip PHY driver support multi_v7_defconfig: Make rockchip PHY built-in arm64:

Re: [PATCH] kernel/watchdog: fix Kconfig constraints for perf hardlockup watchdog

2017-08-10 Thread Don Zickus
On Thu, Aug 10, 2017 at 09:44:52PM +1000, Nicholas Piggin wrote: > Patch 05a4a9527931 ("kernel/watchdog: split up config options") lost > the perf-based hardlockup detector's dependency on PERF_EVENTS, which > can result in broken builds with some powerpc configurations. > > Restore the dependency

[PATCH v5 05/11] Documentation: net: phy: Add phy-is-integrated binding

2017-08-10 Thread David Wu
Add the documentation for integrated PHY. A boolean property indicates the PHY is integrated into the same physical package as the Ethernet MAC. If needed, muxers should be configured to ensure the integrated PHY is used. The absence of this property indicates the muxers should be configured so tha

[PATCH v5 06/11] net: stmmac: dwmac-rk: Add integrated PHY support

2017-08-10 Thread David Wu
To make integrated PHY work, need to configure the PHY clock, PHY cru reset and related registers. Signed-off-by: David Wu --- change in v4: - PHY is internal or not base on the phy-is-internal property via phy node. changes in v5: - Use phy-is-integrated property via PHY node. - Get the PHY

[PATCH v5 07/11] net: stmmac: dwmac-rk: Add integrated PHY support for rk3228

2017-08-10 Thread David Wu
There is only one mac controller in rk3228, which could connect to external PHY or integrated PHY, use the grf_com_mux bit15 to route external/integrated PHY. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file changed, 12 insertions(+) diff --gi

[PATCH v5 08/11] net: stmmac: dwmac-rk: Add integrated PHY supprot for rk3328

2017-08-10 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external PHY, and the other one connects to integrated PHY. Like the mac of external PHY, the integrated PHY's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/s

[PATCH] KVM: MMU: Fix softlockup due to mmu_lock is held too long

2017-08-10 Thread Wanpeng Li
From: Wanpeng Li watchdog: BUG: soft lockup - CPU#5 stuck for 22s! [warn_test:3089] irq event stamp: 20532 hardirqs last enabled at (20531): [] restore_regs_and_iret+0x0/0x1d hardirqs last disabled at (20532): [] apic_timer_interrupt+0x98/0xb0 softirqs last enabled at (8266): [] __do_soft

[PATCH v5 09/11] ARM: dts: rk3228-evb: Enable the integrated PHY for gmac

2017-08-10 Thread David Wu
This patch enables the integrated PHY for rk3228 evb board by default. To use the external 1000M PHY on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu Reviewed-by: Florian Fainelli --- changes in v5: - Use phy-is-integrated property via PHY node. - Move the

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