Re: [PATCH v2] KVM: remove redundant code in kvm_arch_vm_ioctl

2019-10-21 Thread Paolo Bonzini
On 21/10/19 10:52, Miaohe Lin wrote: > If we reach here with r = 0, we will reassign r = 0 > unnecesarry, then do the label set_irqchip_out work. > If we reach here with r != 0, then we will do the label > work directly. So this if statement and r = 0 assignment > is redundant. We remove them and t

Re: [PATCH v4 4/6] cpufreq: Initialize cpufreq-dt driver earlier

2019-10-21 Thread Amit Kucheria
On Mon, Oct 21, 2019 at 1:38 PM Ingo Molnar wrote: > > > * Amit Kucheria wrote: > > > This allows HW drivers that depend on cpufreq-dt to initialise earlier. > > My obsessive-compulsive in-brain spellchecker noticed that the title says > 'initialize' (US spelling), while the comment uses 'initial

Re: [PATCH v4 10/16] x86/alternative: Shrink text_poke_loc

2019-10-21 Thread Ingo Molnar
* Peter Zijlstra wrote: > Employ the fact that all text must be within a s32 displacement of one > another to shrink the text_poke_loc::addr field. Make it relative to > _stext. > > This then shrinks struct text_poke_loc to 16 bytes, and consequently > increases TP_VEC_MAX from 170 to 256. >

Re: [PATCH v4 09/16] x86/alternative: Remove text_poke_loc::len

2019-10-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > * Second step: update all but the first byte of the patched range. > > */ > > for (do_sync = 0, i = 0; i < nr_entries; i++) { > > - if (tp[i].len - sizeof(int3) > 0) { > > + int len = text_opcode_size(tp

Re: [RFC PATCH power-supply] power: supply: cpcap-charger: cpcap_charger_voltage_to_regval() can be static

2019-10-21 Thread Sebastian Reichel
Hi, On Mon, Oct 21, 2019 at 06:20:52AM +0800, kbuild test robot wrote: > Fixes: d4ee021c410f ("power: supply: cpcap-charger: Limit voltage to 4.2V for > battery") > Signed-off-by: kbuild test robot > --- Thanks, I added a long description and queued it to power-supply's -next branch. I did not

Re: [PATCH RFC 2/3] mtd: rawnand: Add support Macronix Block Protection function

2019-10-21 Thread masonccyang
Hi Boris, > > Assign mtd lock/unlock/is_locked hooks to the generic wrappers in > nand_scan_tail(): > >mtd->_lock = nand_lock; >mtd->_unlock = nand_unlock; >mtd->_is_locked = nand_is_locked; > > Seriously, we've almost implemented the thing for you with all the > details we've giv

Re: [PATCH 2/5] mfd: rn5t618: add irq support

2019-10-21 Thread Alexandre Belloni
Hi, On 21/10/2019 07:41:01+0200, Andreas Kemnade wrote: > +#if 0 > +/* > + * REVISIT when implementing charger: > + * according to some other implementation it needs special treatment, > + * inverted but experiments seem not to confirm that. > + */ > + [RN5T618_IRQ_CHG] = { > + .re

Re: [PATCH V2 1/3] firmware: broadcom: add OP-TEE based BNXT f/w manager

2019-10-21 Thread Sheetal Tigadoli
Hi Jakub, Thanks for your comments. On Fri, Oct 18, 2019 at 12:46 AM Jakub Kicinski wrote: > > On Thu, 17 Oct 2019 17:31:20 +0530, Sheetal Tigadoli wrote: > > From: Vikas Gupta > > > > This driver registers on TEE bus to interact with OP-TEE based > > BNXT firmware management modules > > > > Si

Re: [PATCH v4 00/16] Rewrite x86/ftrace to use text_poke (and more)

2019-10-21 Thread Ingo Molnar
* Peter Zijlstra wrote: > Ftrace was one of the last W^X violators (and KLP it seems). These here > patches > move it over to the generic text_poke() interface and thereby get rid of this > oddity. > > The first 6 or so patches are more or less the same as in v3, except it has > the > bugs f

Re: [PATCH 1/2] arm64: dts: rockchip: Add core dts for RK3308 SOC

2019-10-21 Thread Andy Yan
Hi Heiko: Thanks for your kindly review. On 10/18/19 7:30 AM, Heiko Stuebner wrote: Hi Andy, Am Donnerstag, 17. Oktober 2019, 05:04:49 CEST schrieb Andy Yan: + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; Please also provide a ATF impl

[PATCH] seccomp: fix SECCOMP_USER_NOTIF_FLAG_CONTINUE test

2019-10-21 Thread Christian Brauner
The ifndef for SECCOMP_USER_NOTIF_FLAG_CONTINUE was placed under the ifndef for the SECCOMP_FILTER_FLAG_NEW_LISTENER feature. This will not work on systems that do support SECCOMP_FILTER_FLAG_NEW_LISTENER but do not support SECCOMP_USER_NOTIF_FLAG_CONTINUE. So move the latter ifndef out of the form

[tip: sched/core] sched/fair: Clean up asym packing

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 490ba971d8b498ba3a47999ab94c6a0d1830ad41 Gitweb: https://git.kernel.org/tip/490ba971d8b498ba3a47999ab94c6a0d1830ad41 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:28 +02:00 Commit

[tip: sched/core] sched/fair: Rework load_balance()

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 0b0695f2b34a4afa3f6e9aa1ff0e5336d8dad912 Gitweb: https://git.kernel.org/tip/0b0695f2b34a4afa3f6e9aa1ff0e5336d8dad912 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:31 +02:00 Commit

[tip: sched/core] sched/fair: Rework find_idlest_group()

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 57abff067a084889b6e06137e61a3dc3458acd56 Gitweb: https://git.kernel.org/tip/57abff067a084889b6e06137e61a3dc3458acd56 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:38 +02:00 Commit

[tip: sched/core] sched/fair: Optimize find_idlest_group()

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: fc1273f4cefe6670d528715581c848abf64f391c Gitweb: https://git.kernel.org/tip/fc1273f4cefe6670d528715581c848abf64f391c Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:37 +02:00 Commit

[tip: sched/core] sched/fair: Use utilization to select misfit task

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: c63be7be59de65d12ff7b4329acea99cf734d6de Gitweb: https://git.kernel.org/tip/c63be7be59de65d12ff7b4329acea99cf734d6de Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:35 +02:00 Commit

[tip: sched/core] sched/fair: Use load instead of runnable load in load_balance()

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: b0fb1eb4f04ae4768231b9731efb1134e22053a4 Gitweb: https://git.kernel.org/tip/b0fb1eb4f04ae4768231b9731efb1134e22053a4 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:33 +02:00 Commit

[tip: sched/core] sched/fair: Use rq->nr_running when balancing load

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 5e23e474431529b7d1480f649ce33d0e9c1b2e48 Gitweb: https://git.kernel.org/tip/5e23e474431529b7d1480f649ce33d0e9c1b2e48 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:32 +02:00 Commit

[tip: sched/core] sched/fair: Use load instead of runnable load in wakeup path

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 11f10e5420f6cecac7d4823638bff040c257aba9 Gitweb: https://git.kernel.org/tip/11f10e5420f6cecac7d4823638bff040c257aba9 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:36 +02:00 Commit

Re: [PATCH 10/18] kprobes: fix compilation without CONFIG_KRETPROBES

2019-10-21 Thread Masami Hiramatsu
On Fri, 18 Oct 2019 13:02:57 -0400 Steven Rostedt wrote: > > Added Masami who's the maintainer of kprobes. > > -- Steve > > > On Fri, 18 Oct 2019 09:10:25 -0700 > Sami Tolvanen wrote: > > > kprobe_on_func_entry and arch_kprobe_on_func_entry need to be available > > even if CONFIG_KRETPROBES

[PATCH v2 1/2] dt-bindings: watchdog: sama5d4_wdt: add microchip,sam9x60-wdt compatible

2019-10-21 Thread Eugen.Hristev
From: Eugen Hristev The Atmel sama5d4_wdt needs to be compatible with microchip,sam9x60-wdt The sama5d4_wdt driver is updated to work with both hardware blocks (sama5d4/sama5d2 and sam9x60 based blocks) Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/watchdog/atmel-sama5d4-w

[tip: sched/core] sched/fair: Rename sg_lb_stats::sum_nr_running to sum_h_nr_running

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: a34983470301018324f0110791da452fee1318c2 Gitweb: https://git.kernel.org/tip/a34983470301018324f0110791da452fee1318c2 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:29 +02:00 Commit

[PATCH v2 2/2] watchdog: sama5d4_wdt: addition of sam9x60 compatible watchdog

2019-10-21 Thread Eugen.Hristev
From: Eugen Hristev Add support for SAM9X60 WDT into sama5d4_wdt. This means that this driver will have a platform data that will hold differences. Added definitions of different bits. The ops functions will differentiate between the two hardware blocks. Signed-off-by: Eugen Hristev --- Hello,

[tip: sched/core] sched/fair: Remove meaningless imbalance calculation

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: fcf0553db6f4c79387864f6e4ab4a891601f395e Gitweb: https://git.kernel.org/tip/fcf0553db6f4c79387864f6e4ab4a891601f395e Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:30 +02:00 Commit

[tip: sched/core] sched/fair: Spread out tasks evenly when not overloaded

2019-10-21 Thread tip-bot2 for Vincent Guittot
The following commit has been merged into the sched/core branch of tip: Commit-ID: 2ab4092fc82d6001fdd9d51dbba27d04dec967e0 Gitweb: https://git.kernel.org/tip/2ab4092fc82d6001fdd9d51dbba27d04dec967e0 Author:Vincent Guittot AuthorDate:Fri, 18 Oct 2019 15:26:34 +02:00 Commit

Re: [PATCH 11/18] kprobes: disable kretprobes with SCS

2019-10-21 Thread Masami Hiramatsu
On Fri, 18 Oct 2019 13:04:29 -0400 Steven Rostedt wrote: > > [ Added Masami ] > > On Fri, 18 Oct 2019 09:10:26 -0700 > Sami Tolvanen wrote: > > > With CONFIG_KRETPROBES, function return addresses are modified to > > redirect control flow to kretprobe_trampoline. This is incompatible with > >

Re: [PATCH] mmc: fix mmc dma operation

2019-10-21 Thread Jerome Brunet
On Mon 21 Oct 2019 at 09:57, Neil Armstrong wrote: > Hi, > > Thanks for the fix. > > First, you should add "mmc: meson-gx:" in the subject. > > On 21/10/2019 07:59, Jianxin Pan wrote: >> From: Nan Li >> >> In MMC dma transfer, the region requested by dma_map_sg() may be released >> by dma_unm

[PATCH 2/2] arm64: dts: imx8mn-ddr4-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Peng Fan
From: Peng Fan We should not rely on U-Boot to configure the phy reset. So introduce phy-reset-gpios property to let Linux handle phy reset itself. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/

[PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Peng Fan
From: Peng Fan We should not rely on U-Boot to configure the phy reset. So introduce phy-reset-gpios property to let Linux handle phy reset itself. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/f

Re: [PATCH v4 03/16] x86/alternatives,jump_label: Provide better text_poke() batching interface

2019-10-21 Thread Peter Zijlstra
On Mon, Oct 21, 2019 at 10:48:02AM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > --- a/arch/x86/kernel/jump_label.c > > +++ b/arch/x86/kernel/jump_label.c > > @@ -35,18 +35,19 @@ static void bug_at(unsigned char *ip, in > > BUG(); > > } > > > > -static void __jump_label_set_

Re: [RFC PATCH v2 14/16] mm,hwpoison: Return 0 if the page is already poisoned in soft-offline

2019-10-21 Thread Naoya Horiguchi
On Thu, Oct 17, 2019 at 04:21:21PM +0200, Oscar Salvador wrote: > Currently, there is an inconsistency when calling soft-offline from > different paths on a page that is already poisoned. > > 1) madvise: > > madvise_inject_error skips any poisoned page and continues > the loop. >

Re: [PATCH v4 5/5] media: platform: Add jpeg dec/enc feature

2019-10-21 Thread Hans Verkuil
Hi Xia, Some comments about the selection code: On 10/17/19 10:40 AM, Xia Jiang wrote: > Add mtk jpeg encode v4l2 driver based on jpeg decode, because that jpeg > decode and encode have great similarities with function operation. > > Signed-off-by: Xia Jiang > --- > v4: split mtk_jpeg_try_fmt_m

Re: [PATCH] proc: fix inode uid/gid writeback race

2019-10-21 Thread Marco Elver
On Sun, 20 Oct 2019 at 19:30, Alexey Dobriyan wrote: > > (euid, egid) pair is snapshotted correctly from task under RCU, > but writeback to inode can be done in any order. > > Fix by doing writeback under inode->i_lock where necessary > (/proc/* , /proc/*/fd/* , /proc/*/map_files/* revalidate). >

Re: [PATCH v4 10/16] x86/alternative: Shrink text_poke_loc

2019-10-21 Thread Peter Zijlstra
On Mon, Oct 21, 2019 at 11:01:04AM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > Employ the fact that all text must be within a s32 displacement of one > > another to shrink the text_poke_loc::addr field. Make it relative to > > _stext. > > > > This then shrinks struct text_poke_l

[PATCH v2] include/linux/byteorder/generic.h: fix signed/unsigned warnings

2019-10-21 Thread Anatol Belski
From: Anatol Belski This fixes the warnings like below, thrown by GCC warning: comparison of integer expressions of different signedness: \ ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) |^ Signed-off-by: Anatol Belski ---

Re: [PATCH 00/18] add support for Clang's Shadow Call Stack

2019-10-21 Thread Masami Hiramatsu
Hi, On Fri, 18 Oct 2019 09:10:15 -0700 Sami Tolvanen wrote: > This patch series adds support for Clang's Shadow Call Stack (SCS) > mitigation, which uses a separately allocated shadow stack to protect > against return address overwrites. More information can be found here: > > https://clang.l

Re: byteorder: cpu_to_le32_array vs cpu_to_be32_array function API differences

2019-10-21 Thread Andy Shevchenko
On Sun, Oct 20, 2019 at 12:02:52PM -0700, Joe Perches wrote: > There's an argument inconsistency between these 4 functions > in include/linux/byteorder/generic.h > > It'd be more a consistent API with one form and not two. This is done in order to: - avoid changing existing code - start a very

[PATCH] perf tools: Use of the macro IS_ERR_OR_NULL

2019-10-21 Thread Yi Li
From: Yi Li This patch introduces the use of the macro IS_ERR_OR_NULL in place of tests for NULL and IS_ERR. The following Coccinelle semantic patch was used for making the change: @@ expression e; @@ - !e || IS_ERR(e) + IS_ERR_OR_NULL(e) || ... Signed-off-by: Yi Li --- tools/perf/util/bpf

Re: [PATCH 1/2] ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX

2019-10-21 Thread Srinivas Kandagatla
On 20/10/2019 16:30, Stephan Gerhold wrote: According to the PM8916 Hardware Register Description, CDC_D_CDC_CONN_HPHR_DAC_CTL has only a single bit (RX_SEL) to switch between RX1 (0) and RX2 (1). It is not possible to disable it entirely to achieve the "ZERO" state. However, at the moment th

Re: [PATCH 2/2] ASoC: msm8916-wcd-analog: Add earpiece

2019-10-21 Thread Srinivas Kandagatla
On 20/10/2019 16:30, Stephan Gerhold wrote: PM8916 supports an earpiece as another (small) speaker. The earpiece is routed through RX MIX1 similarly to the headphones, except that RDAC2 MUX is set to RX1. Signed-off-by: Stephan Gerhold Looks good to me. Acked-by: Srinivas Kandagatla -

Re: [PATCH] lib/vdso: Use __arch_use_vsyscall() to indicate fallback

2019-10-21 Thread Thomas Gleixner
On Sun, 20 Oct 2019, Andy Lutomirski wrote: > On Sat, Oct 19, 2019 at 3:01 AM Thomas Gleixner wrote: > > __arch_use_vsyscall() is a pointless exercise TBH. The VDSO data should be > > updated unconditionally so all the trivial interfaces like time() and > > getres() just work independently of the

Re: [PATCH v4 10/16] x86/alternative: Shrink text_poke_loc

2019-10-21 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, Oct 21, 2019 at 11:01:04AM +0200, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > Employ the fact that all text must be within a s32 displacement of one > > > another to shrink the text_poke_loc::addr field. Make it relative to > > > _stext. > >

[tip: perf/urgent] perf/aux: Fix tracking of auxiliary trace buffer allocation

2019-10-21 Thread tip-bot2 for Thomas Richter
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 5e6c3c7b1ec217c1c4c95d9148182302b9969b97 Gitweb: https://git.kernel.org/tip/5e6c3c7b1ec217c1c4c95d9148182302b9969b97 Author:Thomas Richter AuthorDate:Mon, 21 Oct 2019 10:33:54 +02:00 Commit

Re: [PATCH v2] include/linux/byteorder/generic.h: fix signed/unsigned warnings

2019-10-21 Thread Andy Shevchenko
On Mon, Oct 21, 2019 at 09:27:37AM +, Anatol Belski wrote: > From: Anatol Belski > > This fixes the warnings like below, thrown by GCC > > warning: comparison of integer expressions of different signedness: \ > ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] > 195 | for (i =

Re: [RFC PATCH v2 15/16] mm/hwpoison-inject: Rip off duplicated checks

2019-10-21 Thread David Hildenbrand
On 17.10.19 16:21, Oscar Salvador wrote: > memory_failure() already performs the same checks, so leave it > to the main routine. > > Signed-off-by: Oscar Salvador > --- > mm/hwpoison-inject.c | 33 +++-- > 1 file changed, 3 insertions(+), 30 deletions(-) > > diff -

Re: [PATCH] pwm: cros-ec: Let cros_ec_pwm_get_state() return the last applied state

2019-10-21 Thread Enric Balletbo i Serra
Hi Thierry, On 17/10/19 13:35, Thierry Reding wrote: > On Wed, Oct 09, 2019 at 03:47:43PM +0200, Enric Balletbo i Serra wrote: [snip] > > --- >8 --- > From 15245e5f0dc02af021451b098df93901c9f49373 Mon Sep 17 00:00:00 2001 > From: Thierry Reding > Date: Thu, 17 Oct 2019 13:21:15 +0200 > Subject:

Re: [PATCH v2 2/2] mm/memory-failure.c: Don't access uninitialized memmaps in memory_failure()

2019-10-21 Thread David Hildenbrand
On 19.10.19 04:05, Andrew Morton wrote: On Thu, 10 Oct 2019 09:17:42 +0200 David Hildenbrand wrote: - pgmap = get_dev_pagemap(pfn, NULL); - if (pgmap) - return memory_failure_dev_pagemap(pfn, flags, pgmap); - - p = pfn_to_page(pfn); This change seems to assume

Re: drivers/usb/usbip/vhci_tx.c:150:8-18: ERROR: reference preceded by free on line 150 (fwd)

2019-10-21 Thread Suwan Kim
On Sat, Oct 19, 2019 at 07:49:29PM +0200, Julia Lawall wrote: > Is it guaranteed that if usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS (line > 123) is true on one iteration, then it will be true on all iterations? If > not, then it could be good to set iso_buffer to NULL after the kfree on > line 150

Re: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Marco Felsch
Hi, On 19-10-21 09:21, Peng Fan wrote: > From: Peng Fan > > We should not rely on U-Boot to configure the phy reset. > So introduce phy-reset-gpios property to let Linux handle phy reset > itself. > > Signed-off-by: Peng Fan > --- > arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 1 + > 1 file

RE: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Peng Fan
> Subject: Re: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for > fec1 > > Hi, > > On 19-10-21 09:21, Peng Fan wrote: > > From: Peng Fan > > > > We should not rely on U-Boot to configure the phy reset. > > So introduce phy-reset-gpios property to let Linux handle phy reset > > itself.

Re: [PATCH v2 05/11] ASoC: wcd934x: add playback dapm widgets

2019-10-21 Thread Srinivas Kandagatla
Thanks Rojewski for taking time to review. On 20/10/2019 21:05, Cezary Rojewski wrote: On 2019-10-18 02:18, Srinivas Kandagatla wrote: +static int wcd934x_codec_enable_slim(struct snd_soc_dapm_widget *w, + struct snd_kcontrol *kc, +   int event) +{ +    s

Re: drivers/usb/usbip/vhci_tx.c:150:8-18: ERROR: reference preceded by free on line 150 (fwd)

2019-10-21 Thread Julia Lawall
On Mon, 21 Oct 2019, Suwan Kim wrote: > On Sat, Oct 19, 2019 at 07:49:29PM +0200, Julia Lawall wrote: > > Is it guaranteed that if usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS (line > > 123) is true on one iteration, then it will be true on all iterations? If > > not, then it could be good to se

[PATCH v3] tools/lib/traceevent, perf tools: Handle %pU format correctly

2019-10-21 Thread Qu Wenruo
[BUG] For btrfs related events, there is a field for fsid, but perf never parse it correctly. # perf trace -e btrfs:qgroup_meta_convert xfs_io -f -c "pwrite 0 4k" \ /mnt/btrfs/file1 0.000 xfs_io/77915 btrfs:qgroup_meta_reserve:(nil)U: refroot=5(FS_TREE) type=0x0 diff=2

[PATCH 3/3] mm, pcpu: Make zone pcp updates and reset internal to the mm

2019-10-21 Thread Mel Gorman
Memory hotplug needs to be able to reset and reinit the pcpu allocator batch and high limits but this action is internal to the VM. Move the declaration to internal.h Signed-off-by: Mel Gorman Acked-by: Michal Hocko --- include/linux/mm.h | 3 --- mm/internal.h | 3 +++ 2 files changed, 3

[PATCH 2/3] mm, pcp: Share common code between memory hotplug and percpu sysctl handler

2019-10-21 Thread Mel Gorman
Both the percpu_pagelist_fraction sysctl handler and memory hotplug have a common requirement of updating the pcpu page allocation batch and high values. Split the relevant helper to share common code. No functional change. Signed-off-by: Mel Gorman Acked-by: Michal Hocko --- mm/page_alloc.c |

[PATCH 1/3] mm, meminit: Recalculate pcpu batch and high limits after init completes

2019-10-21 Thread Mel Gorman
Deferred memory initialisation updates zone->managed_pages during the initialisation phase but before that finishes, the per-cpu page allocator (pcpu) calculates the number of pages allocated/freed in batches as well as the maximum number of pages allowed on a per-cpu list. As zone->managed_pages i

[PATCH 0/3] Recalculate per-cpu page allocator batch and high limits after deferred meminit v2

2019-10-21 Thread Mel Gorman
This is an updated series that addresses some review feedback and an LKP warning. I did not preserve Michal Hocko's ack for the fix as it has changed. This series replaces the following patches in mmotm mm-pcp-share-common-code-between-memory-hotplug-and-percpu-sysctl-handler.patch mm-meminit-re

Re: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Marco Felsch
On 19-10-21 09:46, Peng Fan wrote: > > Subject: Re: [PATCH 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for > > fec1 > > > > Hi, > > > > On 19-10-21 09:21, Peng Fan wrote: > > > From: Peng Fan > > > > > > We should not rely on U-Boot to configure the phy reset. nitpick: s/U-Boot/bootloader/

[PATCH 17/16] mm,hwpoison: introduce MF_MSG_UNSPLIT_THP

2019-10-21 Thread Naoya Horiguchi
On Mon, Oct 21, 2019 at 07:04:40AM +, Naoya Horiguchi wrote: > On Thu, Oct 17, 2019 at 04:21:16PM +0200, Oscar Salvador wrote: > > Place the THP's page handling in a helper and use it > > from both hard and soft-offline machinery, so we get rid > > of some duplicated code. > > > > Signed-off-b

Re: [PATCH V9 2/2] arm64/mm: Enable memory hot remove

2019-10-21 Thread Anshuman Khandual
On 10/18/2019 03:18 PM, Catalin Marinas wrote: > On Fri, Oct 11, 2019 at 08:26:32AM +0530, Anshuman Khandual wrote: >> On 10/10/2019 05:04 PM, Catalin Marinas wrote: >>> Mark Rutland mentioned at some point that, as a preparatory patch to >>> this series, we'd need to make sure we don't hot-remo

[PATCH v6 0/2] phy: intel,lgm-emmc-phy: Add support for eMMC PHY on Intel LGM SoC

2019-10-21 Thread Ramuthevar,Vadivel MuruganX
Rebased to kernel verson 5.4 dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY changes in v6: - cobined comaptible strings - added as contiguous and can be a single entry for reg properties changes in v5: - earlier Review-by tag given by Rob - rework done with syscon

RE: [EXT] [RFT] dmaengine: fsl-qdma: Handle invalid qdma-queue0 IRQ

2019-10-21 Thread Peng Ma
Hi Krzysztof, Thanks for your patch. Reviewed-by: Peng Ma Tested-by: Peng Ma Best Regards, Peng >-Original Message- >From: Krzysztof Kozlowski >Sent: 2019年10月4日 23:08 >To: Vinod Koul ; Dan Williams ; >Peng Ma ; Wen He ; Jiaheng Fan >; Krzysztof Kozlowski ; >dmaeng...@vger.kernel.org; l

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by: Zhu Lingshan ---   drivers/vhost/ifcvf/ifcvf

[PATCH v6 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-10-21 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Andy Shevchenko --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/intel/Kconfig |

[PATCH v6 1/2] dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY

2019-10-21 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add a YAML schema to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- --- .../bindings/phy/intel,lgm-emmc-phy.yaml | 63 ++ 1 file changed, 63 insert

Re: [PATCH V9 2/2] arm64/mm: Enable memory hot remove

2019-10-21 Thread Anshuman Khandual
On 10/21/2019 03:23 PM, Anshuman Khandual wrote: > > On 10/18/2019 03:18 PM, Catalin Marinas wrote: >> On Fri, Oct 11, 2019 at 08:26:32AM +0530, Anshuman Khandual wrote: >>> On 10/10/2019 05:04 PM, Catalin Marinas wrote: Mark Rutland mentioned at some point that, as a preparatory patch to

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 5:53 PM, Simon Horman wrote: Hi Zhu, thanks for your patch. On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. Signed-off-by: Zhu Lingshan --- drivers/vhost/

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 4:45 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: + */ +#define IFCVF_TRANSPORT_F_START 28 +#define IFCVF_TRANSPORT_F_END   34 + +#define IFC_SUPPORTED_FEATURES \ +    ((1ULL << VIRTIO_NET_F_MAC)    | \ + (1ULL << VIRTIO_F_ANY_LAYOUT)  

Re: [PATCH] pwm: cros-ec: Let cros_ec_pwm_get_state() return the last applied state

2019-10-21 Thread Uwe Kleine-König
On Mon, Oct 21, 2019 at 11:42:05AM +0200, Enric Balletbo i Serra wrote: > Hi Thierry, > On 17/10/19 13:35, Thierry Reding wrote: > > On Wed, Oct 09, 2019 at 03:47:43PM +0200, Enric Balletbo i Serra wrote: > > [snip] > > > > > --- >8 --- > > From 15245e5f0dc02af021451b098df93901c9f49373 Mon Sep 1

Re: [PATCH v3 4/4] perf/core,x86: synchronize PMU task contexts on optimized context switches

2019-10-21 Thread Alexey Budankov
On 21.10.2019 10:59, Ingo Molnar wrote: > > * Alexey Budankov wrote: > >> +/* >> + * PMU specific parts of task perf context may require >> + * additional synchronization, at least for proper Intel >> + * LBR calls

Re: [PATCH] proc: fix inode uid/gid writeback race

2019-10-21 Thread Marco Elver
On Mon, 21 Oct 2019 at 11:24, Marco Elver wrote: > > On Sun, 20 Oct 2019 at 19:30, Alexey Dobriyan wrote: > > > > (euid, egid) pair is snapshotted correctly from task under RCU, > > but writeback to inode can be done in any order. > > > > Fix by doing writeback under inode->i_lock where necessary

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 4:40 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. It's better to describe the difference between ifc vf and virtio in the commit log or is there a ope

Re: [PATCH] pwm: cros-ec: Let cros_ec_pwm_get_state() return the last applied state

2019-10-21 Thread Thierry Reding
On Mon, Oct 21, 2019 at 11:42:05AM +0200, Enric Balletbo i Serra wrote: > Hi Thierry, > On 17/10/19 13:35, Thierry Reding wrote: > > On Wed, Oct 09, 2019 at 03:47:43PM +0200, Enric Balletbo i Serra wrote: > > [snip] > > > > > --- >8 --- > > From 15245e5f0dc02af021451b098df93901c9f49373 Mon Sep 1

[PATCH] ia64: remove stale paravirt leftovers

2019-10-21 Thread Juergen Gross
Remove the last leftovers from IA64 Xen pv-guest support. PARAVIRT is long gone from IA64 Kconfig and Xen IA64 support, too. Due to lack of infrastructure no testing done. Signed-off-by: Juergen Gross --- arch/ia64/include/asm/irqflags.h | 4 --- arch/ia64/include/uapi/asm/gcc_intrin

[PATCH] scsi: lpfc: Honor module parameter lpfc_use_adisc

2019-10-21 Thread Daniel Wagner
The initial lpfc_desc_set_adisc implementation dea3101e0a5c ("lpfc: add Emulex FC driver version 8.0.28") enabled ADISC if cfg_use_adisc && RSCN_MODE && FCP_2_DEVICE In commit 92d7f7b0cde3 ("[SCSI] lpfc: NPIV: add NPIV support on top of SLI-3") this changed to (cfg_use_adisc && R

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-21 Thread Peter Zijlstra
On Thu, Oct 17, 2019 at 05:27:46PM -0700, Stephane Eranian wrote: > @@ -2153,6 +2157,7 @@ __perf_remove_from_context(struct perf_event *event, > void *info) > { > unsigned long flags = (unsigned long)info; > + int was_necessary = ctx->rotate_necessary; > >

[PATCH] lib/vdso: Make clock_getres() POSIX compliant again

2019-10-21 Thread Thomas Gleixner
A recent commit removed the NULL pointer check from the clock_getres() implementation causing a test case to fault. POSIX requires an explicit NULL pointer check for clock_getres() aside of the validity check of the clock_id argument for obscure reasons. Add it back for both 32bit and 64bit. Not

Re: [PATCH v2] include/linux/byteorder/generic.h: fix signed/unsigned warnings

2019-10-21 Thread Anatol Belski
On Mon, 2019-10-21 at 12:38 +0300, Andy Shevchenko wrote: > We have explicitly disabled this warnings in the kernel Makefile. > How did you achieve this? (yes, I know the possible answer, perhaps > this has to be mentioned as well) Added W=12 to the make command, used GCC 9.1.0. There are quite som

Re: [PATCH] scsi: lpfc: Honor module parameter lpfc_use_adisc

2019-10-21 Thread Hannes Reinecke
On 10/21/19 12:05 PM, Daniel Wagner wrote: > The initial lpfc_desc_set_adisc implementation dea3101e0a5c ("lpfc: > add Emulex FC driver version 8.0.28") enabled ADISC if > > cfg_use_adisc && RSCN_MODE && FCP_2_DEVICE > > In commit 92d7f7b0cde3 ("[SCSI] lpfc: NPIV: add NPIV support on top of

Re: pwm_bl on i.MX6Q broken on 5.4-RC1+

2019-10-21 Thread Uwe Kleine-König
Hello Ondřej, On Sun, Oct 20, 2019 at 08:24:28PM +0200, Ondřej Jirman wrote: > On Wed, Oct 16, 2019 at 02:55:54PM -0500, Adam Ford wrote: > > I have an i.MX6Q with an LCD and PWM controlled backlight. On 5.4-RC1 > > through the current master (16 Oct 2019), the backlight does not come > > on by d

Re: [PATCH 5/5] rtc: rtc-rc5t583: add ricoh rc5t619 RTC driver

2019-10-21 Thread Alexandre Belloni
Hi, The subject line is weird, how is it related to rc5t583? On 21/10/2019 07:41:04+0200, Andreas Kemnade wrote: > config RTC_DRV_S35390A > tristate "Seiko Instruments S-35390A" > select BITREVERSE > diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile > index 6b09c21dc1b6..1d067

[PATCH v2 net-next] net: axienet: In kconfig add ARM64 as supported platform

2019-10-21 Thread Radhey Shyam Pandey
xilinx axi_emac driver is supported on ZynqMP UltraScale platform. So enable ARCH64 in kconfig. It also removes redundant ARCH_ZYNQ dependency. Basic sanity testing is done on zu+ mpsoc zcu102 evaluation board. Signed-off-by: Radhey Shyam Pandey --- Changes for v2: Remove redundant ARCH_ZYNQ depe

[PATCH V2 1/2] arm64: dts: imx8mm-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Peng Fan
From: Peng Fan We should not rely on bootloader to configure the phy reset. So introduce phy-reset-gpios property to let Linux handle phy reset itself. Signed-off-by: Peng Fan Reviewed-by: Marco Felsch --- V2: U-Boot->bootloader Add R-b tag arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 1

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-21 Thread Jason Wang
On 2019/10/21 下午5:53, Zhu, Lingshan wrote: On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by:

[PATCH V2 2/2] arm64: dts: imx8mn-ddr4-evk: add phy-reset-gpios for fec1

2019-10-21 Thread Peng Fan
From: Peng Fan We should not rely on bootloader to configure the phy reset. So introduce phy-reset-gpios property to let Linux handle phy reset itself. Signed-off-by: Peng Fan --- V2: U-Boot->bootloader arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH V8 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-21 Thread Daniel Thompson
On Fri, Oct 18, 2019 at 06:03:27PM +0530, Kiran Gunda wrote: > WLED4 peripheral is present on some PMICs like pmi8998 and > pm660l. It has a different register map and configurations > are also different. Add support for it. > > Signed-off-by: Kiran Gunda > Reviewed-by: Bjorn Andersson Reviewed

[RESEND] [PATCH v3 2/5] cpufreq: merge arm_big_little and vexpress-spc

2019-10-21 Thread Sudeep Holla
arm_big_little cpufreq driver was designed as a generic big little driver that could be used by any platform and make use of bL switcher. Over years alternate solutions have been designed and merged to deal with bL/HMP systems like EAS. Also since no other driver made use of generic arm_big_little

[PATCH v1] usb: fsl: Remove unused variable

2019-10-21 Thread Yinbo Zhu
From: Nikhil Badola Remove unused variable td_complete Signed-off-by: Nikhil Badola Reviewed-by: Ran Wang Reviewed-by: Peter Chen --- drivers/usb/gadget/udc/fsl_udc_core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers

Re: [PATCH] perf/core: fix multiplexing event scheduling issue

2019-10-21 Thread Peter Zijlstra
On Thu, Oct 17, 2019 at 05:27:46PM -0700, Stephane Eranian wrote: > This patch complements the following commit: > 7fa343b7fdc4 ("perf/core: Fix corner case in perf_rotate_context()") > > The fix from Song addresses the consequences of the problem but > not the cause. This patch fixes the causes a

[PATCH v1] usb: fsl: Check memory resource before releasing it

2019-10-21 Thread Yinbo Zhu
From: Nikhil Badola Check memory resource existence before releasing it to avoid NULL pointer dereference Signed-off-by: Nikhil Badola Reviewed-by: Ran Wang Reviewed-by: Peter Chen --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH v1] usb: gadget: Correct NULL pointer checking in fsl gadget

2019-10-21 Thread Yinbo Zhu
From: Nikhil Badola Correct NULL pointer checking for endpoint descriptor before it gets dereferenced Signed-off-by: Nikhil Badola Signed-off-by: Ran Wang Reviewed-by: Peter Chen --- drivers/usb/gadget/udc/fsl_udc_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2] dt-bindings: sound: Convert Samsung Exynos Odroid XU3/XU4 audio complex to dt-schema

2019-10-21 Thread Krzysztof Kozlowski
On Thu, Oct 17, 2019 at 12:05:29PM +0200, Marek Szyprowski wrote: > From: Maciej Falkowski > > Convert Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec > to newer dt-schema format. > > 'clocks' property is unneeded in the bindings and is left undefined in > 'properties'. > > 'sa

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Jason Wang
On 2019/10/21 下午5:57, Zhu, Lingshan wrote: On 10/16/2019 4:45 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: + */ +#define IFCVF_TRANSPORT_F_START 28 +#define IFCVF_TRANSPORT_F_END   34 + +#define IFC_SUPPORTED_FEATURES \ +    ((1ULL << VIRTIO_NET_F_MAC)    | \

[PATCH] arm64: dts: rockchip: Add LED nodes on rk3399-roc-pc

2019-10-21 Thread Markus Reichl
rk3399-roc-pc has three gpio LEDs, enable them. Signed-off-by: Markus Reichl --- .../arm64/boot/dts/rockchip/rk3399-roc-pc.dts | 41 +++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts

Re: [PATCH 1/3] mm, meminit: Recalculate pcpu batch and high limits after init completes

2019-10-21 Thread Michal Hocko
On Mon 21-10-19 10:48:06, Mel Gorman wrote: > Deferred memory initialisation updates zone->managed_pages during > the initialisation phase but before that finishes, the per-cpu page > allocator (pcpu) calculates the number of pages allocated/freed in > batches as well as the maximum number of pages

Re: [PATCH v3 1/4] perf/core,x86: introduce sync_task_ctx() method at struct pmu

2019-10-21 Thread Peter Zijlstra
On Fri, Oct 18, 2019 at 12:42:44PM +0300, Alexey Budankov wrote: > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index 61448c19a132..60bf17af69f0 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -409,6 +409,13 @@ struct pmu { >*/ >

Re: [PATCH 01/10] ARM: dts: imx6ul-kontron-n6310: Move common SoM nodes to a separate file

2019-10-21 Thread k...@kernel.org
On Wed, Oct 16, 2019 at 03:07:19PM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > The Kontron N6311 and N6411 SoMs are very similar to N6310. In > preparation to add support for them, we move the common nodes to a > separate file imx6ul-kontron-n6x1x-som-common.dtsi. > > Signed-off-

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-21 Thread Sudeep Holla
On Mon, Oct 21, 2019 at 07:45:51AM +0530, Viresh Kumar wrote: > On 18-10-19, 12:06, Sudeep Holla wrote: > > Callstack is: > > > > (cpufreq_notifier_max) > > (notifier_call_chain) > > (blocking_notifier_call_chain) > > (pm_qos_update_target) > > (freq_qos_apply) > > (freq_qos_remove_request) > > (cp

Re: [PATCH 02/10] ARM: dts: Add support for two more Kontron SoMs N6311 and N6411

2019-10-21 Thread k...@kernel.org
On Wed, Oct 16, 2019 at 03:07:21PM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > The N6311 and the N6411 SoM are similar to the Kontron N6310 SoM. > They are pin-compatible, but feature a larger RAM and NAND flash > (512MiB instead of 256MiB). Further, the N6411 has an i.MX6ULL SoC,

Re: [Letux-kernel] [PATCH 5/5] rtc: rtc-rc5t583: add ricoh rc5t619 RTC driver

2019-10-21 Thread H. Nikolaus Schaller
Just a meta-comment... > Am 21.10.2019 um 12:15 schrieb Alexandre Belloni > : > > Hi, > > The subject line is weird, how is it related to rc5t583? > > On 21/10/2019 07:41:04+0200, Andreas Kemnade wrote: >> config RTC_DRV_S35390A >> tristate "Seiko Instruments S-35390A" >> select BITR

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