Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset

2017-02-27 Thread Michael Ellerman
Arnaldo Carvalho de Melo writes: > Em Wed, Feb 22, 2017 at 07:23:38PM +0530, Naveen N. Rao escreveu: >> With ABIv2, we offset 8 bytes into a function to get at the local entry >> point. > > So, I think I can carry the first one via Ingo, etc, what about this > one? > > Is it ok for me to process

Re: [PATCH v4 03/11] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2017-02-27 Thread Rob Herring
On Sun, Feb 19, 2017 at 01:50:21PM -0500, Anurup M wrote: > 1) Device tree bindings for Hisilicon SoC PMU. > 2) Add example for Hisilicon L3 cache and MN PMU. > 3) Add child nodes of L3C and MN in djtag bindings example. > > Signed-off-by: Anurup M > Signed-off-by: Shaokun Zhang > --- >

Re: [PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-27 Thread David Daney
On 02/27/2017 10:49 AM, Jason Baron wrote: The core jump_label code makes use of the 2 lower bits of the static_key::[type|entries|next] field. Thus, ensure that the jump_entry table is at least 4-byte aligned. [...] diff --git a/arch/mips/include/asm/jump_label.h

Re: [PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-27 Thread David Daney
On 02/27/2017 10:49 AM, Jason Baron wrote: The core jump_label code makes use of the 2 lower bits of the static_key::[type|entries|next] field. Thus, ensure that the jump_entry table is at least 4-byte aligned. [...] diff --git a/arch/mips/include/asm/jump_label.h

Re: [PATCH V2] vhost: introduce O(1) vq metadata cache

2017-02-27 Thread Michael S. Tsirkin
On Wed, Feb 15, 2017 at 01:37:17PM +0800, Jason Wang wrote: > > > On 2016年12月14日 17:53, Jason Wang wrote: > > When device IOTLB is enabled, all address translations were stored in > > interval tree. O(lgN) searching time could be slow for virtqueue > > metadata (avail, used and descriptors)

Re: [PATCH V2] vhost: introduce O(1) vq metadata cache

2017-02-27 Thread Michael S. Tsirkin
On Wed, Feb 15, 2017 at 01:37:17PM +0800, Jason Wang wrote: > > > On 2016年12月14日 17:53, Jason Wang wrote: > > When device IOTLB is enabled, all address translations were stored in > > interval tree. O(lgN) searching time could be slow for virtqueue > > metadata (avail, used and descriptors)

Re: [PATCH] Add pidfs filesystem

2017-02-27 Thread Michael Kerrisk
[CC += linux-...@vger.kernel.org] Hi Alexey This is a change to the kernel-user-space API. Please CC linux-...@vger.kernel.org on any future iterations of this patch. Thanks, Michael On Sat, Feb 18, 2017 at 11:53 PM, Alexey Gladkov wrote: > The pidfs filesystem

Re: [PATCH] PCI: dwc: Fix crashes seen due to missing assignments

2017-02-27 Thread Bjorn Helgaas
On Sat, Feb 25, 2017 at 02:08:12AM -0800, Guenter Roeck wrote: > Fix the following crash, seen in dwc/pci-imx6. > > Unable to handle kernel NULL pointer dereference at virtual address 0070 > pgd = c0004000 > [0070] *pgd= > Internal error: Oops: 805 [#1] SMP ARM > Modules linked

Re: [PATCH] Add pidfs filesystem

2017-02-27 Thread Michael Kerrisk
[CC += linux-...@vger.kernel.org] Hi Alexey This is a change to the kernel-user-space API. Please CC linux-...@vger.kernel.org on any future iterations of this patch. Thanks, Michael On Sat, Feb 18, 2017 at 11:53 PM, Alexey Gladkov wrote: > The pidfs filesystem contains a subset of the

Re: [PATCH] PCI: dwc: Fix crashes seen due to missing assignments

2017-02-27 Thread Bjorn Helgaas
On Sat, Feb 25, 2017 at 02:08:12AM -0800, Guenter Roeck wrote: > Fix the following crash, seen in dwc/pci-imx6. > > Unable to handle kernel NULL pointer dereference at virtual address 0070 > pgd = c0004000 > [0070] *pgd= > Internal error: Oops: 805 [#1] SMP ARM > Modules linked

Re: [PATCH v4 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-02-27 Thread Rob Herring
On Sun, Feb 19, 2017 at 01:50:13PM -0500, Anurup M wrote: > From: Tan Xiaojun > > Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die > > Signed-off-by: Tan Xiaojun > Signed-off-by: Anurup M > --- >

Re: [PATCH v4 02/11] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2017-02-27 Thread Rob Herring
On Sun, Feb 19, 2017 at 01:50:13PM -0500, Anurup M wrote: > From: Tan Xiaojun > > Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die > > Signed-off-by: Tan Xiaojun > Signed-off-by: Anurup M > --- > .../devicetree/bindings/arm/hisilicon/djtag.txt| 51 > ++

Re: automatic IRQ affinity for virtio V3

2017-02-27 Thread Michael S. Tsirkin
On Mon, Feb 27, 2017 at 09:48:32AM +0100, Christoph Hellwig wrote: > On Thu, Feb 09, 2017 at 06:01:57PM +0200, Michael S. Tsirkin wrote: > > > Any chance to get this in for 4.11 after I got reviews from Jason > > > for most of the patches? > > > > Absolutely, I intend to merge it. > > So, what

Re: automatic IRQ affinity for virtio V3

2017-02-27 Thread Michael S. Tsirkin
On Mon, Feb 27, 2017 at 09:48:32AM +0100, Christoph Hellwig wrote: > On Thu, Feb 09, 2017 at 06:01:57PM +0200, Michael S. Tsirkin wrote: > > > Any chance to get this in for 4.11 after I got reviews from Jason > > > for most of the patches? > > > > Absolutely, I intend to merge it. > > So, what

[PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-27 Thread Jason Baron
The core jump_label code makes use of the 2 lower bits of the static_key::[type|entries|next] field. Thus, ensure that the jump_entry table is at least 4-byte aligned. Reported-and-tested-by: Sachin Sant Cc: Steven Rostedt Cc: Ingo Molnar

[PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-27 Thread Jason Baron
The core jump_label code makes use of the 2 lower bits of the static_key::[type|entries|next] field. Thus, ensure that the jump_entry table is at least 4-byte aligned. Reported-and-tested-by: Sachin Sant Cc: Steven Rostedt Cc: Ingo Molnar Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc:

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-02-27 Thread Michael S. Tsirkin
On Fri, Feb 10, 2017 at 07:39:49PM +0200, Michael S. Tsirkin wrote: > sparse is unhappy about this code in hlist_add_tail_rcu: > > struct hlist_node *i, *last = NULL; > > for (i = hlist_first_rcu(h); i; i = hlist_next_rcu(i)) > last = i; > > This is because

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-02-27 Thread Michael S. Tsirkin
On Fri, Feb 10, 2017 at 07:39:49PM +0200, Michael S. Tsirkin wrote: > sparse is unhappy about this code in hlist_add_tail_rcu: > > struct hlist_node *i, *last = NULL; > > for (i = hlist_first_rcu(h); i; i = hlist_next_rcu(i)) > last = i; > > This is because

Re: [PATCH v2 0/7] Tegra210 clock bug fixes

2017-02-27 Thread Mikko Perttunen
Series, Reviewed-by: Mikko Perttunen Tested-by: Mikko Perttunen On 02/23/2017 12:44 PM, Peter De Schrijver wrote: A number of bug fixes for the Tegra210 clock implementation. Changelog: v2: add better description for 'remove non-existing

Re: [PATCH v2 0/7] Tegra210 clock bug fixes

2017-02-27 Thread Mikko Perttunen
Series, Reviewed-by: Mikko Perttunen Tested-by: Mikko Perttunen On 02/23/2017 12:44 PM, Peter De Schrijver wrote: A number of bug fixes for the Tegra210 clock implementation. Changelog: v2: add better description for 'remove non-existing pll_m_out1 clock' Peter De Schrijver (7): clk:

Re: automatic IRQ affinity for virtio V3

2017-02-27 Thread Michael S. Tsirkin
On Mon, Feb 27, 2017 at 08:45:25PM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 27, 2017 at 09:48:32AM +0100, Christoph Hellwig wrote: > > On Thu, Feb 09, 2017 at 06:01:57PM +0200, Michael S. Tsirkin wrote: > > > > Any chance to get this in for 4.11 after I got reviews from Jason > > > > for

Re: automatic IRQ affinity for virtio V3

2017-02-27 Thread Michael S. Tsirkin
On Mon, Feb 27, 2017 at 08:45:25PM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 27, 2017 at 09:48:32AM +0100, Christoph Hellwig wrote: > > On Thu, Feb 09, 2017 at 06:01:57PM +0200, Michael S. Tsirkin wrote: > > > > Any chance to get this in for 4.11 after I got reviews from Jason > > > > for

Re: [tpmdd-devel] [PATCH 1/2] tpm: Apply an adapterlimit for retransmission.

2017-02-27 Thread Enric Balletbo Serra
Bounce to Wolfram Sang 2017-02-22 15:01 GMT+01:00 Andrew Lunn : > On Wed, Feb 22, 2017 at 12:16:08PM +0100, Enric Balletbo i Serra wrote: >> Hi Andrew, >> >> Removing Bryan Freed from the loop as seems his email is not valid anymore. >> I already CC'ied Andrey which is doing the

Re: [tpmdd-devel] [PATCH 1/2] tpm: Apply an adapterlimit for retransmission.

2017-02-27 Thread Enric Balletbo Serra
Bounce to Wolfram Sang 2017-02-22 15:01 GMT+01:00 Andrew Lunn : > On Wed, Feb 22, 2017 at 12:16:08PM +0100, Enric Balletbo i Serra wrote: >> Hi Andrew, >> >> Removing Bryan Freed from the loop as seems his email is not valid anymore. >> I already CC'ied Andrey which is doing the TPM bit in

Re: [PATCH 1/2] lightnvm: add generic ocssd detection

2017-02-27 Thread Keith Busch
On Mon, Feb 27, 2017 at 08:35:06PM +0200, Sagi Grimberg wrote: > > On Sat, Feb 25, 2017 at 08:16:04PM +0100, Matias Bjørling wrote: > > > On 02/25/2017 07:21 PM, Christoph Hellwig wrote: > > > > No way in hell. vs is vendor specific and we absolutely can't overload > > > > it with any sort of

Re: [PATCH] ASoC: fsl: Remove unneeded init of static variable

2017-02-27 Thread Nicolin Chen
On Sat, Feb 25, 2017 at 12:47:26PM +0200, Alin Grigorean wrote: > This was reported by checkpatch.pl > > Signed-off-by: Alin Grigorean Acked-by: Nicolin Chen > --- > sound/soc/fsl/imx-pcm-fiq.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH 1/2] lightnvm: add generic ocssd detection

2017-02-27 Thread Keith Busch
On Mon, Feb 27, 2017 at 08:35:06PM +0200, Sagi Grimberg wrote: > > On Sat, Feb 25, 2017 at 08:16:04PM +0100, Matias Bjørling wrote: > > > On 02/25/2017 07:21 PM, Christoph Hellwig wrote: > > > > No way in hell. vs is vendor specific and we absolutely can't overload > > > > it with any sort of

Re: [PATCH] ASoC: fsl: Remove unneeded init of static variable

2017-02-27 Thread Nicolin Chen
On Sat, Feb 25, 2017 at 12:47:26PM +0200, Alin Grigorean wrote: > This was reported by checkpatch.pl > > Signed-off-by: Alin Grigorean Acked-by: Nicolin Chen > --- > sound/soc/fsl/imx-pcm-fiq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-02-27 Thread Steven Rostedt
On Fri, 10 Feb 2017 19:39:49 +0200 "Michael S. Tsirkin" wrote: > diff --git a/include/linux/rculist.h b/include/linux/rculist.h > index 4f7a956..bf578e8 100644 > --- a/include/linux/rculist.h > +++ b/include/linux/rculist.h > @@ -509,7 +509,7 @@ static inline void

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-02-27 Thread Steven Rostedt
On Fri, 10 Feb 2017 19:39:49 +0200 "Michael S. Tsirkin" wrote: > diff --git a/include/linux/rculist.h b/include/linux/rculist.h > index 4f7a956..bf578e8 100644 > --- a/include/linux/rculist.h > +++ b/include/linux/rculist.h > @@ -509,7 +509,7 @@ static inline void hlist_add_tail_rcu(struct

Re: __queue_work oops.

2017-02-27 Thread Tejun Heo
Hello, On Mon, Feb 27, 2017 at 12:14:39PM -0500, Dave Jones wrote: > Oops: [#1] PREEMPT SMP DEBUG_PAGEALLOC > CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.10.0-think+ #9 > task: 88017f105440 task.stack: c9094000 > RIP: 0010:__queue_work+0x2d/0x700 > RSP: 0018:880507c03df8

Re: __queue_work oops.

2017-02-27 Thread Tejun Heo
Hello, On Mon, Feb 27, 2017 at 12:14:39PM -0500, Dave Jones wrote: > Oops: [#1] PREEMPT SMP DEBUG_PAGEALLOC > CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.10.0-think+ #9 > task: 88017f105440 task.stack: c9094000 > RIP: 0010:__queue_work+0x2d/0x700 > RSP: 0018:880507c03df8

Re: mm: GPF in bdi_put

2017-02-27 Thread Al Viro
On Mon, Feb 27, 2017 at 06:11:11PM +0100, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in bdi_put: > https://gist.githubusercontent.com/dvyukov/15b3e211f937ff6abc558724369066ce/raw/cc017edf57963e30175a6a6fe2b8d917f6e92899/gistfile1.txt What happens is * attempt

Re: mm: GPF in bdi_put

2017-02-27 Thread Al Viro
On Mon, Feb 27, 2017 at 06:11:11PM +0100, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in bdi_put: > https://gist.githubusercontent.com/dvyukov/15b3e211f937ff6abc558724369066ce/raw/cc017edf57963e30175a6a6fe2b8d917f6e92899/gistfile1.txt What happens is * attempt

Re: [REGRESSION] pinctrl, of, unable to find hogs

2017-02-27 Thread Tony Lindgren
* Gary Bisson [170227 08:42]: > On Mon, Feb 27, 2017 at 05:27:47PM +0100, Gary Bisson wrote: > > Mika, Tony, All, > > > > On Mon, Feb 27, 2017 at 07:53:53AM -0800, Tony Lindgren wrote: > > > * Mika Penttilä [170226 21:46]: > > > > >

Re: [REGRESSION] pinctrl, of, unable to find hogs

2017-02-27 Thread Tony Lindgren
* Gary Bisson [170227 08:42]: > On Mon, Feb 27, 2017 at 05:27:47PM +0100, Gary Bisson wrote: > > Mika, Tony, All, > > > > On Mon, Feb 27, 2017 at 07:53:53AM -0800, Tony Lindgren wrote: > > > * Mika Penttilä [170226 21:46]: > > > > > > > > With current linus git (pre 4.11), unable to find the

Re: [PATCH 2/5] clk: tegra: define Tegra210 DMIC sync clocks

2017-02-27 Thread Mikko Perttunen
On 02/23/2017 02:39 PM, Peter De Schrijver wrote: Tegra210 has 3 DMIC inputs which can be clocked from the recovered clock of several other audio inputs (eg. i2s0, i2s1, ...). To model this, we add a 3 new clocks similar to the audio* clocks which handle the same function for the i2s and spdif

Re: [PATCH 2/5] clk: tegra: define Tegra210 DMIC sync clocks

2017-02-27 Thread Mikko Perttunen
On 02/23/2017 02:39 PM, Peter De Schrijver wrote: Tegra210 has 3 DMIC inputs which can be clocked from the recovered clock of several other audio inputs (eg. i2s0, i2s1, ...). To model this, we add a 3 new clocks similar to the audio* clocks which handle the same function for the i2s and spdif

Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-02-27 Thread Michal Hocko
On Mon 27-02-17 11:28:52, Reza Arbab wrote: > On Mon, Feb 27, 2017 at 10:28:17AM +0100, Michal Hocko wrote: > >diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h > >index 134a2f69c21a..a72f7f64ee26 100644 > >--- a/include/linux/memory_hotplug.h > >+++

Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-02-27 Thread Michal Hocko
On Mon 27-02-17 11:28:52, Reza Arbab wrote: > On Mon, Feb 27, 2017 at 10:28:17AM +0100, Michal Hocko wrote: > >diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h > >index 134a2f69c21a..a72f7f64ee26 100644 > >--- a/include/linux/memory_hotplug.h > >+++

Re: [RFC PATCH v4 21/28] x86: Check for memory encryption on the APs

2017-02-27 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:46:47AM -0600, Tom Lendacky wrote: > Add support to check if memory encryption is active in the kernel and that > it has been enabled on the AP. If memory encryption is active in the kernel > but has not been enabled on the AP, then set the SYS_CFG MSR bit to enable >

Re: [RFC PATCH v4 21/28] x86: Check for memory encryption on the APs

2017-02-27 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:46:47AM -0600, Tom Lendacky wrote: > Add support to check if memory encryption is active in the kernel and that > it has been enabled on the AP. If memory encryption is active in the kernel > but has not been enabled on the AP, then set the SYS_CFG MSR bit to enable >

Re: [PATCH v2 1/6] arm64: dts: Add symlinks for cros-ec-keyboard and cros-ec-sbs

2017-02-27 Thread Heiko Stuebner
Hi Olof, Am Dienstag, 21. Februar 2017, 15:47:31 CET schrieb Olof Johansson: > On Thu, Feb 9, 2017 at 5:05 PM, Brian Norris wrote: > > From: Douglas Anderson > > > > We'd like to be able to use the cros-ec-keyboard.dtsi and > > cros-ec-sbs.dtsi

Re: [PATCH v2 1/6] arm64: dts: Add symlinks for cros-ec-keyboard and cros-ec-sbs

2017-02-27 Thread Heiko Stuebner
Hi Olof, Am Dienstag, 21. Februar 2017, 15:47:31 CET schrieb Olof Johansson: > On Thu, Feb 9, 2017 at 5:05 PM, Brian Norris wrote: > > From: Douglas Anderson > > > > We'd like to be able to use the cros-ec-keyboard.dtsi and > > cros-ec-sbs.dtsi snippets for arm64 devices. Currently those

Re: net/ipv6: null-ptr-deref in ip6_route_del/lock_acquire

2017-02-27 Thread Cong Wang
On Mon, Feb 27, 2017 at 7:28 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit e5d56efc97f8240d0b5d66c03949382b6d7e5570 (Feb 26). > > A reproducer and .config are attached. > > kasan:

Re: net/ipv6: null-ptr-deref in ip6_route_del/lock_acquire

2017-02-27 Thread Cong Wang
On Mon, Feb 27, 2017 at 7:28 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit e5d56efc97f8240d0b5d66c03949382b6d7e5570 (Feb 26). > > A reproducer and .config are attached. > > kasan: CONFIG_KASAN_INLINE enabled >

Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao > > Add i2c DT binding to i2c-mt6577.txt for MT2701 and there is no need to > modify i2c driver. Wrap your lines. > > Change-Id: I892f866d755aa3865bffd1a80884cd41b6ecc1f1 Remove Gerrit Ids. >

Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao > > Add i2c DT binding to i2c-mt6577.txt for MT2701 and there is no need to > modify i2c driver. Wrap your lines. > > Change-Id: I892f866d755aa3865bffd1a80884cd41b6ecc1f1 Remove Gerrit Ids. > Signed-off-by: Jun Gao >

Re: [PATCH] sched: Optimize pick_next_task for idle_sched_class too

2017-02-27 Thread Steven Rostedt
Sorry, for the late reply. Just got back from traveling. On Thu, 23 Feb 2017 18:54:38 +0100 Peter Zijlstra wrote: > On Thu, Feb 23, 2017 at 06:45:05PM +0100, Peter Zijlstra wrote: > > Hurm.. maybe we should do what Steve initially suggested. The > > alternative is link

Re: [PATCH] sched: Optimize pick_next_task for idle_sched_class too

2017-02-27 Thread Steven Rostedt
Sorry, for the late reply. Just got back from traveling. On Thu, 23 Feb 2017 18:54:38 +0100 Peter Zijlstra wrote: > On Thu, Feb 23, 2017 at 06:45:05PM +0100, Peter Zijlstra wrote: > > Hurm.. maybe we should do what Steve initially suggested. The > > alternative is link order trickery, and I'm

[PATCH 2/5] staging: rtl8192u: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal ---

[PATCH 2/5] staging: rtl8192u: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal ---

[PATCH 5/5] staging: gdm724x: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal ---

[PATCH 5/5] staging: gdm724x: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/gdm724x/gdm_endian.c | 12

[PATCH 3/5] staging: rtl8712: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal ---

[PATCH 3/5] staging: rtl8712: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/rtl8712/os_intfs.c | 3 +-- 1

[PATCH 1/5] staging: lustre: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c | 3

[PATCH 1/5] staging: lustre: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c | 3 +--

[PATCH 4/5] staging: sm750fb: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal ---

[PATCH 4/5] staging: sm750fb: Remove unnecessary else after return

2017-02-27 Thread simran singhal
This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: simran singhal --- drivers/staging/sm750fb/ddk750_sii164.c | 6

Re: [PATCH] ptrace: fix PTRACE_LISTEN race corrupting task->state

2017-02-27 Thread bsegall
Oleg Nesterov writes: > (add akpm, we usually route ptrace fixes via -mm tree) > > On 02/21, bseg...@google.com wrote: >> >> --- a/kernel/ptrace.c >> +++ b/kernel/ptrace.c >> @@ -184,10 +184,14 @@ static void ptrace_unfreeze_traced(struct task_struct >> *task) >> >>

Re: [PATCH] ptrace: fix PTRACE_LISTEN race corrupting task->state

2017-02-27 Thread bsegall
Oleg Nesterov writes: > (add akpm, we usually route ptrace fixes via -mm tree) > > On 02/21, bseg...@google.com wrote: >> >> --- a/kernel/ptrace.c >> +++ b/kernel/ptrace.c >> @@ -184,10 +184,14 @@ static void ptrace_unfreeze_traced(struct task_struct >> *task) >> >>

Re: tip.today - scheduler bam boom crash (cpu hotplug)

2017-02-27 Thread Thomas Gleixner
On Mon, 27 Feb 2017, Paolo Bonzini wrote: > diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c > index 2724dc82f992..3080b6877190 100644 > --- a/arch/x86/kernel/tsc.c > +++ b/arch/x86/kernel/tsc.c > @@ -1398,6 +1398,9 @@ void __init tsc_init(void) > > use_tsc_delay(); > > + if

Re: tip.today - scheduler bam boom crash (cpu hotplug)

2017-02-27 Thread Thomas Gleixner
On Mon, 27 Feb 2017, Paolo Bonzini wrote: > diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c > index 2724dc82f992..3080b6877190 100644 > --- a/arch/x86/kernel/tsc.c > +++ b/arch/x86/kernel/tsc.c > @@ -1398,6 +1398,9 @@ void __init tsc_init(void) > > use_tsc_delay(); > > + if

Re: Schedule affinity_notify work while migrating IRQs during hot plug

2017-02-27 Thread Thomas Gleixner
On Mon, 27 Feb 2017, Sodagudi Prasad wrote: > So I am thinking that, adding following sched_work() would notify clients. And break the world and some more. > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index 6b66959..5e4766b 100644 > --- a/kernel/irq/manage.c > +++

Re: [lkp-robot] [x86/mm/ptdump] 243b72aae2: WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page

2017-02-27 Thread Masami Hiramatsu
On Mon, 27 Feb 2017 16:01:34 +0300 Andrey Ryabinin wrote: > On 02/27/2017 04:03 AM, kernel test robot wrote: > > > > FYI, we noticed the following commit: > > > > commit: 243b72aae28ca1032284028323bb81c9235b15c9 ("x86/mm/ptdump: Optimize > > check for W+X mappings for

Re: Schedule affinity_notify work while migrating IRQs during hot plug

2017-02-27 Thread Thomas Gleixner
On Mon, 27 Feb 2017, Sodagudi Prasad wrote: > So I am thinking that, adding following sched_work() would notify clients. And break the world and some more. > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index 6b66959..5e4766b 100644 > --- a/kernel/irq/manage.c > +++

Re: [lkp-robot] [x86/mm/ptdump] 243b72aae2: WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page

2017-02-27 Thread Masami Hiramatsu
On Mon, 27 Feb 2017 16:01:34 +0300 Andrey Ryabinin wrote: > On 02/27/2017 04:03 AM, kernel test robot wrote: > > > > FYI, we noticed the following commit: > > > > commit: 243b72aae28ca1032284028323bb81c9235b15c9 ("x86/mm/ptdump: Optimize > > check for W+X mappings for CONFIG_KASAN=y") > >

Re: [PATCH V5 3/6] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-27 Thread Johannes Weiner
On Fri, Feb 24, 2017 at 01:31:46PM -0800, Shaohua Li wrote: > madv MADV_FREE indicate pages are 'lazyfree'. They are still anonymous > pages, but they can be freed without pageout. To destinguish them > against normal anonymous pages, we clear their SwapBacked flag. > > MADV_FREE pages could be

Re: [PATCH V5 3/6] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-27 Thread Johannes Weiner
On Fri, Feb 24, 2017 at 01:31:46PM -0800, Shaohua Li wrote: > madv MADV_FREE indicate pages are 'lazyfree'. They are still anonymous > pages, but they can be freed without pageout. To destinguish them > against normal anonymous pages, we clear their SwapBacked flag. > > MADV_FREE pages could be

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-27 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: > Add warnings to let the user know when bounce buffers are being used for > DMA when SME is active. Since the bounce buffers are not in encrypted > memory, these notifications are to allow the user to determine some > appropriate

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-27 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: > Add warnings to let the user know when bounce buffers are being used for > DMA when SME is active. Since the bounce buffers are not in encrypted > memory, these notifications are to allow the user to determine some > appropriate

Re: [PATCH V5 4/6] mm: reclaim MADV_FREE pages

2017-02-27 Thread Johannes Weiner
On Fri, Feb 24, 2017 at 01:31:47PM -0800, Shaohua Li wrote: > When memory pressure is high, we free MADV_FREE pages. If the pages are > not dirty in pte, the pages could be freed immediately. Otherwise we > can't reclaim them. We put the pages back to anonumous LRU list (by > setting SwapBacked

Re: [PATCH V5 4/6] mm: reclaim MADV_FREE pages

2017-02-27 Thread Johannes Weiner
On Fri, Feb 24, 2017 at 01:31:47PM -0800, Shaohua Li wrote: > When memory pressure is high, we free MADV_FREE pages. If the pages are > not dirty in pte, the pages could be freed immediately. Otherwise we > can't reclaim them. We put the pages back to anonumous LRU list (by > setting SwapBacked

Re: [PATCH v2] mm/vmscan: fix high cpu usage of kswapd if there are no reclaimable pages

2017-02-27 Thread Johannes Weiner
On Mon, Feb 27, 2017 at 09:50:24AM +0100, Michal Hocko wrote: > On Fri 24-02-17 11:51:05, Johannes Weiner wrote: > [...] > > >From 29fefdca148e28830e0934d4e6cceb95ed2ee36e Mon Sep 17 00:00:00 2001 > > From: Johannes Weiner > > Date: Fri, 24 Feb 2017 10:56:32 -0500 > > Subject:

Re: [PATCH v2] mm/vmscan: fix high cpu usage of kswapd if there are no reclaimable pages

2017-02-27 Thread Johannes Weiner
On Mon, Feb 27, 2017 at 09:50:24AM +0100, Michal Hocko wrote: > On Fri 24-02-17 11:51:05, Johannes Weiner wrote: > [...] > > >From 29fefdca148e28830e0934d4e6cceb95ed2ee36e Mon Sep 17 00:00:00 2001 > > From: Johannes Weiner > > Date: Fri, 24 Feb 2017 10:56:32 -0500 > > Subject: [PATCH] mm: vmscan:

Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao And for the subject, please use "dt-bindings: i2c: ..."

Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao And for the subject, please use "dt-bindings: i2c: ..."

Re: tip.today - scheduler bam boom crash (cpu hotplug)

2017-02-27 Thread Paolo Bonzini
On 27/02/2017 17:36, Peter Zijlstra wrote: > diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c > index 4e95b2e0d95f..bc3bbb6a8ab0 100644 > --- a/arch/x86/kernel/cpu/amd.c > +++ b/arch/x86/kernel/cpu/amd.c > @@ -555,10 +555,8 @@ static void early_init_amd(struct cpuinfo_x86 *c) >

Re: tip.today - scheduler bam boom crash (cpu hotplug)

2017-02-27 Thread Paolo Bonzini
On 27/02/2017 17:36, Peter Zijlstra wrote: > diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c > index 4e95b2e0d95f..bc3bbb6a8ab0 100644 > --- a/arch/x86/kernel/cpu/amd.c > +++ b/arch/x86/kernel/cpu/amd.c > @@ -555,10 +555,8 @@ static void early_init_amd(struct cpuinfo_x86 *c) >

Re: [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-27 Thread Jason Gunthorpe
On Sun, Feb 26, 2017 at 01:44:40PM +0200, Jarkko Sakkinen wrote: > There's now tabrm-v3 branch. I had to tweak error handling in your > device adding patch because of b4e9d7561a70. I hope I didn't break > anything. Just looked, the flow seemed like it works to me. Just confusing that

Re: [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-27 Thread Jason Gunthorpe
On Sun, Feb 26, 2017 at 01:44:40PM +0200, Jarkko Sakkinen wrote: > There's now tabrm-v3 branch. I had to tweak error handling in your > device adding patch because of b4e9d7561a70. I hope I didn't break > anything. Just looked, the flow seemed like it works to me. Just confusing that

Re: [PATCH 2/3] of: add vendor prefix for Sensirion company

2017-02-27 Thread Rob Herring
On Sun, Feb 19, 2017 at 8:59 AM, Tomasz Duszynski wrote: > This patch adds prefix for Sensirion company. > > Signed-off-by: Tomasz Duszynski > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) There's

Re: [PATCH 2/3] of: add vendor prefix for Sensirion company

2017-02-27 Thread Rob Herring
On Sun, Feb 19, 2017 at 8:59 AM, Tomasz Duszynski wrote: > This patch adds prefix for Sensirion company. > > Signed-off-by: Tomasz Duszynski > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) There's another patch already adding this that I'm

Re: [PATCH v2 3/3] percpu: improve allocation success rate for non-GFP_KERNEL callers

2017-02-27 Thread Michal Hocko
On Mon 27-02-17 18:07:53, Michal Hocko wrote: > On Mon 27-02-17 09:01:09, Tahsin Erdogan wrote: > > On Mon, Feb 27, 2017 at 7:25 AM, Michal Hocko wrote: > > > /* > > > * No space left. Create a new chunk. We don't want multiple > > > * tasks to

Re: [PATCH v2 3/3] percpu: improve allocation success rate for non-GFP_KERNEL callers

2017-02-27 Thread Michal Hocko
On Mon 27-02-17 18:07:53, Michal Hocko wrote: > On Mon 27-02-17 09:01:09, Tahsin Erdogan wrote: > > On Mon, Feb 27, 2017 at 7:25 AM, Michal Hocko wrote: > > > /* > > > * No space left. Create a new chunk. We don't want multiple > > > * tasks to create chunks

Re: [PATCH v6 4/6] i2c: designware: introducing I2C_SLAVE definitions

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 12:22:13PM +, Luis Oliveira wrote: > - Definitions were added to core library > - A example was added to designware-core.txt Documentation that shows > how the slave can be setup using DTS > > SLAVE related definitions were added to the core of the controller. > >

Re: [PATCH v6 4/6] i2c: designware: introducing I2C_SLAVE definitions

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 12:22:13PM +, Luis Oliveira wrote: > - Definitions were added to core library > - A example was added to designware-core.txt Documentation that shows > how the slave can be setup using DTS > > SLAVE related definitions were added to the core of the controller. > >

Re: [tpmdd-devel] [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-27 Thread Jason Gunthorpe
On Sat, Feb 25, 2017 at 12:04:49PM -0500, James Bottomley wrote: > > device cgroup blocks access to the cdevs of tpm0 but not to the > > sysfs files. > > What the device cgroup currently does for us and what it could do are > two different things. It seems if it exported >

Re: [tpmdd-devel] [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-27 Thread Jason Gunthorpe
On Sat, Feb 25, 2017 at 12:04:49PM -0500, James Bottomley wrote: > > device cgroup blocks access to the cdevs of tpm0 but not to the > > sysfs files. > > What the device cgroup currently does for us and what it could do are > two different things. It seems if it exported >

Re: [PATCH v15 2/5] Documentation: bindings: add dt documentation for cdn DP controller

2017-02-27 Thread Enric Balletbo Serra
Hi all, 2016-09-10 4:15 GMT+02:00 Chris Zhong : > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > Acked-by: Rob Herring > Reviewed-by: Guenter Roeck > >

Re: [PATCH v15 2/5] Documentation: bindings: add dt documentation for cdn DP controller

2017-02-27 Thread Enric Balletbo Serra
Hi all, 2016-09-10 4:15 GMT+02:00 Chris Zhong : > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > Acked-by: Rob Herring > Reviewed-by: Guenter Roeck > > --- > > Changes in v15: None > Changes in v14: None > Changes in v13: > - add

Re: [PATCH v1 1/3] ASoC: zx-96p22: add documentation for zte's aud96p22 controller

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 06:55:08PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zte's aud96p22 controller. > > Signed-off-by: Baoyou Xie > --- > .../devicetree/bindings/sound/zte,zx-96p22.txt | 24 > ++ > 1 file changed,

Re: [PATCH v1 1/3] ASoC: zx-96p22: add documentation for zte's aud96p22 controller

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 06:55:08PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zte's aud96p22 controller. > > Signed-off-by: Baoyou Xie > --- > .../devicetree/bindings/sound/zte,zx-96p22.txt | 24 > ++ > 1 file changed, 24 insertions(+) >

Re: Schedule affinity_notify work while migrating IRQs during hot plug

2017-02-27 Thread Sodagudi Prasad
On 2017-02-21 12:59, Sodagudi Prasad wrote: Hi Thomas, Currently irq_set_affinity() is called to migrate irqs from migrate_one_irq() during cpu hot plug and clients which are interested to know the irq affinity change not getting notified take_cpu_down () --> __cpu_disable() -->

Re: Schedule affinity_notify work while migrating IRQs during hot plug

2017-02-27 Thread Sodagudi Prasad
On 2017-02-21 12:59, Sodagudi Prasad wrote: Hi Thomas, Currently irq_set_affinity() is called to migrate irqs from migrate_one_irq() during cpu hot plug and clients which are interested to know the irq affinity change not getting notified take_cpu_down () --> __cpu_disable() -->

mm: GPF in bdi_put

2017-02-27 Thread Dmitry Vyukov
Hello, The following program triggers GPF in bdi_put: https://gist.githubusercontent.com/dvyukov/15b3e211f937ff6abc558724369066ce/raw/cc017edf57963e30175a6a6fe2b8d917f6e92899/gistfile1.txt general protection fault: [#1] SMP KASAN Modules linked in: CPU: 0 PID: 2952 Comm: a.out Not tainted

mm: GPF in bdi_put

2017-02-27 Thread Dmitry Vyukov
Hello, The following program triggers GPF in bdi_put: https://gist.githubusercontent.com/dvyukov/15b3e211f937ff6abc558724369066ce/raw/cc017edf57963e30175a6a6fe2b8d917f6e92899/gistfile1.txt general protection fault: [#1] SMP KASAN Modules linked in: CPU: 0 PID: 2952 Comm: a.out Not tainted

Re: [PATCH 1/2] dt-bindings: qoriq-clock: Add coreclk

2017-02-27 Thread Rob Herring
On Wed, Feb 15, 2017 at 01:47:35PM +0800, yuantian.t...@nxp.com wrote: > From: Tang Yuantian > > ls1012a has separate input root clocks for core PLLs versus the platform > PLL, with the latter described as sysclk in the hw docs. > Update the qoriq-clock binding to allow a

RE: [PATCH] Drivers: hv: util: on deinit, don't wait the release event, if we shouldn't

2017-02-27 Thread Stephen Hemminger
The patch looks good. I don't understand the exact semantics here and therefore have a couple of naïve questions Is it possible device could be opened multiple times? Is reference counting done above? If device was never opened do you even have to do all the cleanup steps at all?

<    4   5   6   7   8   9   10   11   12   13   >