Re: [PATCH 1/3] perf header: Add die information in CPU topology

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:19PM -0700, kan.li...@linux.intel.com wrote: SNIP > if (sret <= 0) > - goto try_threads; > + goto try_dies; > > p = strchr(buf, '\n'); > if (p) > @@ -57,6 +78,35 @@ static int build_cpu_topology(struct cpu_topology *tp, int

Re: [PATCH 3/3] perf header: Rename "sibling cores" to "sibling sockets"

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:21PM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The "sibling cores" actually shows the sibling CPUs of a socket. > The name "sibling cores" is very misleading. > > Rename "sibling cores" to "sibling sockets" by checking on die topology, I found t

Re: [PATCH 1/3] perf header: Add die information in CPU topology

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:19PM -0700, kan.li...@linux.intel.com wrote: SNIP > diff --git a/tools/perf/util/cputopo.c b/tools/perf/util/cputopo.c > index ece0710..f6e7db7 100644 > --- a/tools/perf/util/cputopo.c > +++ b/tools/perf/util/cputopo.c > @@ -1,5 +1,6 @@ > // SPDX-License-Identifier:

Re: [PATCH 1/3] perf header: Add die information in CPU topology

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:19PM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > With the new CPUID.1F, a new level type of CPU topology, 'die', is > introduced. The 'die' information in CPU topology should be added in > perf header. > > To be compatible with old perf.data, the p

Re: [PATCH 1/3] perf header: Add die information in CPU topology

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:19PM -0700, kan.li...@linux.intel.com wrote: SNIP > @@ -88,7 +138,7 @@ static int build_cpu_topology(struct cpu_topology *tp, int > cpu) > return ret; > } > > -void cpu_topology__delete(struct cpu_topology *tp) > +void cpu_topology__delete(struct cpu_topolo

Re: [PATCH 2/3] perf stat: Support per-die aggregation

2019-05-28 Thread Jiri Olsa
On Thu, May 23, 2019 at 01:41:20PM -0700, kan.li...@linux.intel.com wrote: SNIP > if (cpu_map__build_core_map(evsel_list->cpus, > &stat_config.aggr_map)) { > perror("cannot build core map"); > @@ -936,21 +957,41 @@ static int perf_env__get_socket(struct cpu_ma

ok

2019-05-28 Thread Mrs. Aalia Ahmmed
-- Greetings My Dearest One. My name is Mrs. Aalia Ahmmed, i saw your profile and became interested in you, please contact me through my email address (mrs.aalia. ah...@gmail.com) to know each other and i have something very important to tell you, i wait for your response to my email ID. (mrs

RE: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-28 Thread David Laight
From: Deepa Dinamani > Sent: 24 May 2019 18:02 ... > Maybe a crude userspace application could do something like this: > > sig_handler() > { > set global abort = 1 > } > > poll_the_fds() > { > ret = epoll_pwait() > if (ret) > return ret > if (abort) >

[PATCH net-next 00/12] code optimizations & bugfixes for HNS3 driver

2019-05-28 Thread Huazhong Tan
This patch-set includes code optimizations and bugfixes for the HNS3 ethernet controller driver. [patch 1/12] fixes a compile warning reported by kbuild test robot. [patch 2/12] fixes HNS3_RXD_GRO_SIZE_M macro definition error. [patch 3/12] adds a debugfs command to dump firmware information. [

[PATCH 21/33] fbdev: directly call fbcon_suspended/resumed

2019-05-28 Thread Daniel Vetter
With the sh_mobile notifier removed we can just directly call the fbcon code here. v2: Remove now unused local variable. v3: fixup !CONFIG_FRAMEBUFFER_CONSOLE, noticed by kbuild Signed-off-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: Bartlomiej Zolnierkiewicz

[PATCH 28/33] fbcon: replace FB_EVENT_MODE_CHANGE/_ALL with direct calls

2019-05-28 Thread Daniel Vetter
Create a new wrapper function for this, feels like there's some refactoring room here between the two modes. v2: backlight notifier is also interested in the mode change event, it calls lcd->set_mode, of which there are 3 implementations. Thanks to Maarten for spotting this. So we keep that. We ca

[PATCH 22/33] fbcon: Call fbcon_mode_deleted/new_modelist directly

2019-05-28 Thread Daniel Vetter
I'm not entirely clear on what new_modelist actually does, it seems exclusively for a sysfs interface. Which in the end does amount to a normal fb_set_par to check the mode, but then takes a different path in both fbmem.c and fbcon.c. I have no idea why these 2 paths are different, but then I also

[PATCH net-next 09/12] net: hns3: add handshake with hardware while doing reset

2019-05-28 Thread Huazhong Tan
When reset happens, the hardware reset should begin after the driver has finished its preparatory work, otherwise it may cause some hardware error. Before Hardware's reset, it will wait for the driver to write bit HCLGE_NIC_CMQ_ENABLE of register HCLGE_NIC_CSQ_DEPTH_REG to 1, while the driver fini

[PATCH net-next 04/12] net: hns3: use HCLGE_STATE_NIC_REGISTERED to indicate PF NIC client has registered

2019-05-28 Thread Huazhong Tan
When PF NIC client's init_instance() succeeds, it means this client has been registered successfully, so we use HCLGE_STATE_NIC_REGISTERED to indicate that. And before calling PF NIC client's uninit_instance(), we clear this state. So any operation of PF NIC client from HCLGE is not allowed if thi

[PATCH -next] serial: stm32: Make stm32_get_databits static

2019-05-28 Thread YueHaibing
Fix sparse warning: drivers/tty/serial/stm32-usart.c:603:14: warning: symbol 'stm32_get_databits' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH net-next 01/12] net: hns3: fix compile warning without CONFIG_RFS_ACCEL

2019-05-28 Thread Huazhong Tan
From: Jian Shen The ifdef condition of function hclge_add_fd_entry_by_arfs() is unnecessary. It may cause compile warning when CONFIG_RFS_ACCEL is not chosen. This patch fixes it by removing the ifdef condition. Fixes: d93ed94fbeaf ("net: hns3: add aRFS support for PF") Reported-by: kbuild test

[PATCH net-next 06/12] net: hns3: use HCLGEVF_STATE_NIC_REGISTERED to indicate VF NIC client has registered

2019-05-28 Thread Huazhong Tan
When VF NIC client's init_instance() succeeds, it means this client has been registered successfully, so we use HCLGEVF_STATE_NIC_REGISTERED to indicate that. And before calling VF NIC client's uninit_instance(), we clear this state. So any operation of VF NIC client from HCLGEVF is not allowed if

[PATCH net-next 12/12] net: hns3: fix a memory leak issue for hclge_map_unmap_ring_to_vf_vector

2019-05-28 Thread Huazhong Tan
When hclge_bind_ring_with_vector() fails, hclge_map_unmap_ring_to_vf_vector() returns the error directly, so nobody will free the memory allocated by hclge_get_ring_chain_from_mbx(). So hclge_free_vector_ring_chain() should be called no matter hclge_bind_ring_with_vector() fails or not. Fixes: 84

[PATCH net-next 03/12] net: hns3: add support for dump firmware statistics by debugfs

2019-05-28 Thread Huazhong Tan
From: Zhongzhu Liu This patch prints firmware statistics information. debugfs command: echo dump m7 info > cmd estuary:/dbg/hns3/:7d:00.0$ echo dump m7 info > cmd [ 172.577240] hns3 :7d:00.0: 0x 0x 0x [ 172.583471] hns3 :7d:00.0: 0x 0x 0

[PATCH net-next 10/12] net: hns3: stop schedule reset service while unloading driver

2019-05-28 Thread Huazhong Tan
When unloading driver, the reset task should not be scheduled anymore. If disable IRQ before cancel ongoing reset task, the IRQ may be re-enabled by the reset task. This patch uses HCLGE_STATE_REMOVING/HCLGEVF_STATE_REMOVING flag to indicate that the driver is unloading, and we should stop new com

[PATCH net-next 02/12] net: hns3: fix for HNS3_RXD_GRO_SIZE_M macro

2019-05-28 Thread Huazhong Tan
From: Yunsheng Lin According to hardware user menual, the GRO_SIZE is 14 bits width, the HNS3_RXD_GRO_SIZE_M is 10 bits width now, which may cause hardware GRO received packet error problem. Fixes: a6d53b97a2e7 ("net: hns3: Adds GRO params to SKB for the stack") Signed-off-by: Yunsheng Lin Sign

[PATCH net-next 07/12] net: hns3: modify hclge_init_client_instance()

2019-05-28 Thread Huazhong Tan
hclge_init_client_instance() is a little bloated and there is some duplicated code. This patch adds some cleanup for it. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 90 +- 1 file changed, 53 insertions(+), 37 de

[PATCH net-next 05/12] net: hns3: use HCLGE_STATE_ROCE_REGISTERED to indicate PF ROCE client has registered

2019-05-28 Thread Huazhong Tan
When PF ROCE client's init_instance() succeeds, it means this client has been registered successfully, so we use HCLGE_STATE_ROCE_REGISTERED to indicate that. And before calling PF ROCE client's uninit_instance(), we clear this state. So any operation of the ROCE client from HCLGE is not allowed i

[PATCH net-next 08/12] net: hns3: modify hclgevf_init_client_instance()

2019-05-28 Thread Huazhong Tan
hclgevf_init_client_instance() is a little bloated and there is some duplicated code. This patch adds some cleanup for it. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 79 ++ 1 file changed, 50 insertions(+), 29

[PATCH net-next 11/12] net: hns3: adjust hns3_uninit_phy()'s location in the hns3_client_uninit()

2019-05-28 Thread Huazhong Tan
hns3_uninit_phy() should be called before checking HNS3_NIC_STATE_INITED flags, otherwise when this checking fails, there is nobody to call hns3_uninit_phy(). Fixes: c8a8045b2d0a ("net: hns3: Fix NULL deref when unloading driver") Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/n

[PATCH 11/33] fbdev/sh_mobile: remove sh_mobile_lcdc_display_notify

2019-05-28 Thread Daniel Vetter
It's dead code, and removing it avoids me having to understand what it's doing with lock_fb_info. v2: Also remove sh_mobile_lcdc_must_reconfigure, now unused (Sam). Signed-off-by: Daniel Vetter Reviewed-by: Geert Uytterhoeven (v1) Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: G

Re: [RFCv1 04/12] media: mtk-vcodec: fix copyright indent

2019-05-28 Thread Hans Verkuil
On 5/28/19 7:56 AM, Alexandre Courbot wrote: > From: Yunfei Dong > > Minor identation fix for copyright notice in a few source files. How about converting to using SPDX as well? Regards, Hans > > Signed-off-by: Yunfei Dong > [acourbot: refactor, cleanup and split] > Signed-off-by: A

[PATCH -next] lockd: Make two symbols static

2019-05-28 Thread YueHaibing
Fix sparse warnings: fs/lockd/clntproc.c:57:6: warning: symbol 'nlmclnt_put_lockowner' was not declared. Should it be static? fs/lockd/svclock.c:409:35: warning: symbol 'nlmsvc_lock_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- fs/lockd/cln

[PATCH v6 1/7] Revert "[media] marvell-ccic: reset ccic phy when stop streaming for stability"

2019-05-28 Thread Lubomir Rintel
This accesses the clock registers directly and thus is going to stay in the way of making the driver devicetree friendly. No boards seems to actually use this. If it's somehow actually needed it needs to be done differently. This reverts commit 7c269f454e7a51b151d94f99344120efa1cd0acb. Signed-of

[PATCH v6 0/7] media: make Marvell camera work on DT-based OLPC XO-1.75

2019-05-28 Thread Lubomir Rintel
Hi, this is a re-send of the patch that lacked a Signed-off-by tag and the patches that followd it in the previosu spin of the series. Applies on top of master branch of git://linuxtv.org/media_tree.git Cheers, Lubo

[PATCH v6 2/7] [media] marvell-ccic: drop unused stuff

2019-05-28 Thread Lubomir Rintel
Remove structure members and headers that are not actually used. Saves us from some noise in subsequent cleanup commits. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/media/platform/marvell-ccic/mcam-core.c | 1 - drivers/media/platform/marvell-ccic/mcam-core.h | 2 -- driv

[PATCH v6 3/7] [media] marvell-ccic/mmp: enable clock before accessing registers

2019-05-28 Thread Lubomir Rintel
The access to REG_CLKCTRL or REG_CTRL1 without the clock enabled hangs the machine. Enable the clock first. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/media/platform/marvell-ccic/mmp-driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/med

Re: [RFCv1 04/12] media: mtk-vcodec: fix copyright indent

2019-05-28 Thread Alexandre Courbot
On Tue, May 28, 2019 at 6:07 PM Hans Verkuil wrote: > > On 5/28/19 7:56 AM, Alexandre Courbot wrote: > > From: Yunfei Dong > > > > Minor identation fix for copyright notice in a few source files. > > How about converting to using SPDX as well? Yeah, that would be much better. Should have thought

[PATCH v6 4/7] [media] marvell-ccic: rename the clocks

2019-05-28 Thread Lubomir Rintel
Use the names more suitable for devicetree bindings. There are no board files utilizing this, thus we seem to be at liberty at renaming this without consequences. Signed-off-by: Lubomir Rintel --- Changes since v2: - This patch was added to the series drivers/media/platform/marvell-ccic/mmp-d

[PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-05-28 Thread Adamski, Krzysztof (Nokia - PL/Wroclaw)
The operation done in the pmbus_update_fan() function is a read-modify-write operation but it lacks any kind of lock protection which may cause problems if run more than once simultaneously. This patch uses an existing update_lock mutex to fix this problem. Signed-off-by: Krzysztof Adamski --- d

[PATCH v6 5/7] [media] marvell-ccic/mmp: add devicetree support

2019-05-28 Thread Lubomir Rintel
The platform data is actually not used anywhere (along with the CSI support) and should be safe to remove. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - s/This are/These are/ in a comment .../media/platform/marvell-ccic/mmp-driver.c | 36 ++- 1

[PATCH v6 7/7] [media] marvell-ccic: provide a clock for the sensor

2019-05-28 Thread Lubomir Rintel
The sensor needs the MCLK clock running when it's being probed. On platforms where the sensor is instantiated from a DT (MMP2) it is going to happen asynchronously. Therefore, the current modus operandi, where the bridge driver fiddles with the sensor power and clock itself is not going to fly. As

[PATCH v6 6/7] [media] marvell-ccic: use async notifier to get the sensor

2019-05-28 Thread Lubomir Rintel
An instance of a sensor on DT-based MMP2 platform is always going to be created asynchronously. Let's move the manual device creation away from the core to the Cafe driver (used on OLPC XO-1, not present in DT) and set up appropriate async matches: I2C on Cafe, FWNODE on MMP (OLPC XO-1.75). Signe

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-28 Thread Michal Hocko
On Tue 28-05-19 17:49:27, Minchan Kim wrote: > On Tue, May 28, 2019 at 01:31:13AM -0700, Daniel Colascione wrote: > > On Tue, May 28, 2019 at 1:14 AM Minchan Kim wrote: > > > if we went with the per vma fd approach then you would get this > > > > feature automatically because map_files would refer

Re: [RFCv1 07/12] media: mtk-vcodec: abstract firmware interface

2019-05-28 Thread Hans Verkuil
On 5/28/19 7:56 AM, Alexandre Courbot wrote: > From: Yunfei Dong > > MT8183's codec firwmare is run by a different remote processor from > MT8173. While the firmware interface is basically the same, the way to > invoke it differs. Abstract all firmware calls under a layer that will > allow us to

[PATCH] watchdog: gpio: add support for nowayout option

2019-05-28 Thread Mans Rullgard
Add support for the nowayout option in the gpio watchdog driver. Signed-off-by: Mans Rullgard --- drivers/watchdog/gpio_wdt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/watchdog/gpio_wdt.c b/drivers/watchdog/gpio_wdt.c index ea77cae03c9d..63792bb70213 100644 --- a/drivers

[PATCH net-next] net: stmmac: Fix build error without CONFIG_INET

2019-05-28 Thread YueHaibing
Fix gcc build error while CONFIG_INET is not set drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.o: In function `__stmmac_test_loopback': stmmac_selftests.c:(.text+0x8ec): undefined reference to `ip_send_check' stmmac_selftests.c:(.text+0xacc): undefined reference to `udp4_hwcsum' Add CONFI

Re: [PATCH v2 2/3] KVM: X86: Implement PV sched yield hypercall

2019-05-28 Thread Christian Borntraeger
On 28.05.19 02:53, Wanpeng Li wrote: > From: Wanpeng Li > > The target vCPUs are in runnable state after vcpu_kick and suitable > as a yield target. This patch implements the sched yield hypercall. > > 17% performace increase of ebizzy benchmark can be observed in an > over-subscribe environme

[PATCH v2] mm: Move MAP_SYNC to asm-generic/mman-common.h

2019-05-28 Thread Aneesh Kumar K.V
This enables support for synchronous DAX fault on powerpc The generic changes are added as part of commit b6fb293f2497 ("mm: Define MAP_SYNC and VM_SYNC flags") Without this, mmap returns EOPNOTSUPP for MAP_SYNC with MAP_SHARED_VALIDATE Instead of adding MAP_SYNC with same value to arch/powerpc/

Re: [PATCH v4 3/7] ASoC: sun4i-spdif: Add TX fifo bit flush quirks

2019-05-28 Thread Maxime Ripard
On Mon, May 27, 2019 at 10:06:23PM +0200, Clément Péron wrote: > Allwinner H6 has a different bit to flush the TX FIFO. > > Add a quirks to prepare introduction of H6 SoC. > > Signed-off-by: Clément Péron Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engine

RE: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-28 Thread David Laight
From: Deepa Dinamani > Sent: 24 May 2019 18:02 ... > Look at the code before 854a6ed56839a: > > /* > * If we changed the signal mask, we need to restore the original one. > * In case we've got a signal while waiting, we do not restore the > * signal mask yet, and we allow

Re: [PATCH v4 4/7] ASoC: sun4i-spdif: Add support for H6 SoC

2019-05-28 Thread Maxime Ripard
On Mon, May 27, 2019 at 10:06:24PM +0200, Clément Péron wrote: > Allwinner H6 has a different mapping for the fifo register controller. > > Actually only the fifo TX bit is used in the drivers. > > Use the freshly introduced quirks to make this drivers compatible with > the Allwinner H6. > > Signed

Re: [PATCH v2 0/7] mm: process_vm_mmap() -- syscall for duplication a process mapping

2019-05-28 Thread Kirill Tkhai
On 28.05.2019 02:30, Kirill A. Shutemov wrote: > On Fri, May 24, 2019 at 05:00:32PM +0300, Kirill Tkhai wrote: >> On 24.05.2019 14:52, Kirill A. Shutemov wrote: >>> On Fri, May 24, 2019 at 01:45:50PM +0300, Kirill Tkhai wrote: On 22.05.2019 18:22, Kirill A. Shutemov wrote: > On Mon, May 20

Re: [RFCv1 07/12] media: mtk-vcodec: abstract firmware interface

2019-05-28 Thread Hans Verkuil
On 5/28/19 7:56 AM, Alexandre Courbot wrote: > From: Yunfei Dong > > MT8183's codec firwmare is run by a different remote processor from > MT8173. While the firmware interface is basically the same, the way to > invoke it differs. Abstract all firmware calls under a layer that will > allow us to

[PATCH -next] pinctrl: bcm2835: Fix build error without CONFIG_OF

2019-05-28 Thread YueHaibing
drivers/pinctrl/bcm/pinctrl-bcm2835.c: In function bcm2835_pctl_dt_node_to_map: drivers/pinctrl/bcm/pinctrl-bcm2835.c:720:8: error: implicit declaration of function pinconf_generic_dt_node_to_map_all; drivers/pinctrl/bcm/pinctrl-bcm2835.c: In function bcm2835_pinctrl_probe: drivers/pinctrl/bcm/pin

Re: [RFCv1 00/12] media: mtk-vcodec: support for MT8183 decoder

2019-05-28 Thread Hans Verkuil
On 5/28/19 7:56 AM, Alexandre Courbot wrote: > This series is a refactoring/split of the initial patch for MT8183 codec > support > that was posted for Chrome OS [1] in order to make it upstreamable. > > The line count has been significantly reduced compared to the initial patch, > although suppo

Re: [PATCH] arm64: dts: ulcb-kf: Add support for TI WL1837

2019-05-28 Thread Geert Uytterhoeven
Hi Spyridon, On Thu, Apr 11, 2019 at 2:42 PM Spyridon Papageorgiou wrote: > This patch adds description of TI WL1837 and links interfaces > to communicate with the IC, namely the SDIO interface to WLAN. > > Signed-off-by: Spyridon Papageorgiou Thanks for your patch! > --- a/arch/arm64/boot/dts

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-05-28 Thread Jean Delvare
On Mon, 26 Feb 2018 21:32:55 +0100, Wolfram Sang wrote: > > I'm not maintainer of i2c-i801.ko, Jean Delvare & Wolfram Sang are. > > Therefore instructing future contributors would be up to them. > > This is really Jean's realm. Sorry for the delay. As a general rule I'm all in favor of instanti

[PATCH] arm64: dts: rockchip: Add support for Khadas Edge/Edge-V/Captain boards

2019-05-28 Thread xieqinick
From: Nick Add devicetree support for Khadas Edge/Edge-V/Captain boards. Khadas Edge is an expandable Rockchip RK3399 board with goldfinger. Khadas Captain is the carrier board for Khadas Edge. Khadas Edge-V is a Khadas VIM form factor Rockchip RK3399 board. Signed-off-by: Nick --- arch/arm64/

RE: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-28 Thread Chunfeng Yun
Hi Biju & Yu, On Tue, 2019-05-28 at 06:52 +, Biju Das wrote: > Hi Chunfeng Yun, > > + Chen Yu > > Thanks for the feedback. [...] > > Just a suggestion, Do you think, is it worth to add the below patch[1] also > part of this series? So that we have all common patches in this series. > Or

Re: [PATCH] libbpf: fix warning PTR_ERR_OR_ZERO can be used

2019-05-28 Thread Daniel Borkmann
On 05/25/2019 11:02 AM, Hariprasad Kelam wrote: > fix below warning reported by coccicheck > > /tools/lib/bpf/libbpf.c:3461:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > Signed-off-by: Hariprasad Kelam Applied, thanks!

Re: [PATCH v2] mm: Move MAP_SYNC to asm-generic/mman-common.h

2019-05-28 Thread Jan Kara
On Tue 28-05-19 14:41:20, Aneesh Kumar K.V wrote: > This enables support for synchronous DAX fault on powerpc > > The generic changes are added as part of > commit b6fb293f2497 ("mm: Define MAP_SYNC and VM_SYNC flags") > > Without this, mmap returns EOPNOTSUPP for MAP_SYNC with MAP_SHARED_VALIDAT

Re: [PATCH V1 00/12] LP0 entry and exit support for Tegra210

2019-05-28 Thread Billy Laws
Hi, By the looks of this you configure wake events but the pmc driver still only configures lp1, which is the same as linux 4 tegra 4.4+ which also doesn't support lp0, if its selected in dts it'll just change it to LP1/SC7 (both have same code path and neither set any lp0 stuff trm says). What con

[PATCH -next 0/2] Platform: OLPC: Fix two randbuild error

2019-05-28 Thread YueHaibing
Fix two randbuild error: 1) Fix build error with CONFIG_SPI is not set 2) Fix build error with CONFIG_INPUT is set to m YueHaibing (2): Platform: OLPC: Fix build error without CONFIG_SPI Platform: OLPC: Add INPUT dependencies drivers/platform/olpc/Kconfig | 3 ++- 1 file changed, 2 insertion

[PATCH -next 1/2] Platform: OLPC: Fix build error without CONFIG_SPI

2019-05-28 Thread YueHaibing
Fix gcc build error while CONFIG_SPI is not set drivers/platform/olpc/olpc-xo175-ec.o: In function `olpc_xo175_ec_remove': olpc-xo175-ec.c:(.text+0x190): undefined reference to `spi_slave_abort' drivers/platform/olpc/olpc-xo175-ec.o: In function `olpc_xo175_ec_send_command': olpc-xo175-ec.c:(.text

[PATCH -next 2/2] Platform: OLPC: Add INPUT dependencies

2019-05-28 Thread YueHaibing
Building with CONFIG_INPUT set to m: drivers/platform/olpc/olpc-xo175-ec.o: In function `olpc_xo175_ec_complete': olpc-xo175-ec.c:(.text+0x75d): undefined reference to `input_event' olpc-xo175-ec.c:(.text+0x76f): undefined reference to `input_event' olpc-xo175-ec.c:(.text+0x787): undefined referen

Re: d_lookup: Unable to handle kernel paging request

2019-05-28 Thread Vicente Bergas
On Wednesday, May 22, 2019 6:29:46 PM CEST, Al Viro wrote: ... IOW, here we have also run into bogus hlist forward pointer or head - same 0x100 in one case and 0x88000100 in two others. Have you tried to see if KASAN catches anything on those loads? Use-after-free, for example... An

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-28 Thread Daniel Colascione
On Tue, May 28, 2019 at 2:08 AM Michal Hocko wrote: > > On Tue 28-05-19 17:49:27, Minchan Kim wrote: > > On Tue, May 28, 2019 at 01:31:13AM -0700, Daniel Colascione wrote: > > > On Tue, May 28, 2019 at 1:14 AM Minchan Kim wrote: > > > > if we went with the per vma fd approach then you would get t

[PATCH v3 2/2] lockdep: Fix merging of hlocks with non-zero references

2019-05-28 Thread Imre Deak
The sequence static DEFINE_WW_CLASS(test_ww_class); struct ww_acquire_ctx ww_ctx; struct ww_mutex ww_lock_a; struct ww_mutex ww_lock_b; struct ww_mutex ww_lock_c; struct mutex lock_c; ww_acquire_init(&ww_ctx, &test_ww_class); ww_mu

[PATCH] ARC: [plat-hsdk]: enable creg-gpio controller

2019-05-28 Thread Eugeniy Paltsev
HSDK SOC has CREG GPIO controller which can be used to control SPI chip select lines. Enable it in preparation of enabling SPI peripherals. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 8 arch/arc/configs/hsdk_defconfig | 1 + 2 files changed, 9 insertions(+) di

[PATCH v3 1/2] lockdep: Fix OOO unlock when hlocks need merging

2019-05-28 Thread Imre Deak
The sequence static DEFINE_WW_CLASS(test_ww_class); struct ww_acquire_ctx ww_ctx; struct ww_mutex ww_lock_a; struct ww_mutex ww_lock_b; struct mutex lock_c; struct mutex lock_d; ww_acquire_init(&ww_ctx, &test_ww_class); ww_mutex_in

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-05-28 Thread Pali Rohár
Hi! Thank you finally for response! On Tuesday 28 May 2019 11:19:53 Jean Delvare wrote: > On Mon, 26 Feb 2018 21:32:55 +0100, Wolfram Sang wrote: > > > I'm not maintainer of i2c-i801.ko, Jean Delvare & Wolfram Sang are. > > > Therefore instructing future contributors would be up to them. > > >

Re: [EXT] Re: [V3 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-05-28 Thread Joe Perches
On Tue, 2019-05-28 at 04:47 +, Peng Ma wrote: > -Original Message- > > From: Vinod Koul [] > > > diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.h > > > b/drivers/dma/fsl-dpaa2-qdma/dpdmai.h > > > new file mode 100644 > > > index 000..c8a7b7f > > > --- /dev/null > > > +++ b/drivers/

Re: [PATCH v2] mm: hwpoison: disable memory error handling on 1GB hugepage

2019-05-28 Thread Wanpeng Li
Cc Paolo, Hi all, On Wed, 14 Feb 2018 at 06:34, Mike Kravetz wrote: > > On 02/12/2018 06:48 PM, Michael Ellerman wrote: > > Andrew Morton writes: > > > >> On Thu, 08 Feb 2018 12:30:45 + Punit Agrawal > >> wrote: > >> > > So I don't think that the above test result means that error

Re: [PATCH 1/2] perf ioctl: Add check for the sample_period value

2019-05-28 Thread Michael Ellerman
Ravi Bangoria writes: > On 5/13/19 2:26 PM, Peter Zijlstra wrote: >> On Mon, May 13, 2019 at 09:42:13AM +0200, Peter Zijlstra wrote: >>> On Sat, May 11, 2019 at 08:12:16AM +0530, Ravi Bangoria wrote: Add a check for sample_period value sent from userspace. Negative value does not make se

Re: [PATCH 01/16 v3] function_graph: Convert ret_stack to a series of longs

2019-05-28 Thread Joel Fernandes
On Fri, May 24, 2019 at 11:16:34PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > In order to make it possible to have multiple callbacks registered with the > function_graph tracer, the retstack needs to be converted from an array of > ftrace_ret_stack structures to an array

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-05-28 Thread Jean Delvare
On Tue, 2019-05-28 at 11:41 +0200, Pali Rohár wrote: > This is not a problem. lis3lv02d provides two things: > > 1) 3 axes accelerometer > 2) optional interrupt and signal it to userspace via misc device > > dell-smo8800 does not call any parts of lis2lv02d module. It just > provides for userspac

Re: [PATCH v2 3/3] regulator: lp87565: Add 4-phase lp87561 regulator support

2019-05-28 Thread Keerthy
On 22/05/19 9:05 PM, Mark Brown wrote: On Thu, May 16, 2019 at 10:02:18AM +0530, Keerthy wrote: The LP8756x family has a single output 4-phase regulator configuration. Add support for the same. The control lies in the master buck which is buck0 for 4-phase configuration. Enable/disable/voltag

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-05-28 Thread Pali Rohár
On Tuesday 28 May 2019 11:50:15 Jean Delvare wrote: > On Tue, 2019-05-28 at 11:41 +0200, Pali Rohár wrote: > > This is not a problem. lis3lv02d provides two things: > > > > 1) 3 axes accelerometer > > 2) optional interrupt and signal it to userspace via misc device > > > > dell-smo8800 does not c

ERROR: "hdac_hdmi_jack_port_init" [sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!

2019-05-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cd6c84d8f0cdc911df435bb075ba22ce3c605b07 commit: f70abd75b7c6c04d3219d0b3a0f3f15411b042fb ASoC: Intel: add sof-rt5682 machine driver date: 4 weeks ago config: x86_64-randconfig-b005272310-05281357 (attache

Re: [PATCH v2 2/3] KVM: X86: Implement PV sched yield hypercall

2019-05-28 Thread Wanpeng Li
On Tue, 28 May 2019 at 17:12, Christian Borntraeger wrote: > > On 28.05.19 02:53, Wanpeng Li wrote: > > From: Wanpeng Li > > > > The target vCPUs are in runnable state after vcpu_kick and suitable > > as a yield target. This patch implements the sched yield hypercall. > > > > 17% performace incre

[PATCH v3 0/3] Fix issues with phy configurations in am65x MMC driver

2019-05-28 Thread Faiz Abbas
The following patches fix issues with phy configurations for sdhci_am654 driver. v3: Changed order of patches so that the first one can be applied easily to stable tree. v2: 1. Split patch 1 into 2 separate patches. 2. Improved patch descriptions. Faiz Abbas (3): mmc: sdhci_am654: Fix SLOTTYPE

[PATCH v3 2/3] mmc: sdhci_am654: Improve whitespace utilisation with regmap_*() calls

2019-05-28 Thread Faiz Abbas
Line wrapping with the regmap_*() functions is way more conservative than required by the 80 character rule. Expand the function calls out to use less number of lines. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 34 +- 1 file changed, 13 inserti

[PATCH v3 1/3] mmc: sdhci_am654: Fix SLOTTYPE write

2019-05-28 Thread Faiz Abbas
In the call to regmap_update_bits() for SLOTTYPE, the mask and value fields are exchanged. Fix this. Signed-off-by: Faiz Abbas Cc: stable --- drivers/mmc/host/sdhci_am654.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhc

[PATCH v3 3/3] mmc: sdhci_am654: Print error message if the DLL fails to lock

2019-05-28 Thread Faiz Abbas
Print an error message and return if DLL fails to lock. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 3c32d9fb6e1e..d0b20780dd0f 100644 --- a/drivers/mmc/

[PATCH] riscv: Fix udelay in RV32.

2019-05-28 Thread Nick Hu
In RV32, udelay would delay the wrong cycle. When it shifts right "UDELAY_SHITFT" bits, it either delays 0 cycle or 1 cycle. It only works correctly in RV64. Because the 'ucycles' always needs to be 64 bits variable. Signed-off-by: Nick Hu --- arch/riscv/lib/delay.c | 2 +- 1 file changed, 1 ins

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

2019-05-28 Thread Mika Westerberg
On Mon, May 27, 2019 at 01:18:04PM +0200, Stefan Roese wrote: > This patch adds a check for the GPIOs property existence, before the > GPIO is requested. This fixes an issue seen when the 8250 mctrl_gpio > support is added (2nd patch in this patch series) on x86 platforms using > ACPI. > > Here Mi

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-05-28 Thread Jean Delvare
On Tue, 28 May 2019 11:54:02 +0200, Pali Rohár wrote: > On Tuesday 28 May 2019 11:50:15 Jean Delvare wrote: > > OK, thanks for the explanation. But assuming that we now instantiate > > the lis2lv02d device from i2c-i801 for exactly all the same machines, > > can't we just *enable* the freefall misc

Re: [PATCH 0/8] perf/x86: Rework msr probe interface

2019-05-28 Thread Peter Zijlstra
On Mon, May 27, 2019 at 11:51:21PM +0200, Jiri Olsa wrote: > hi, > following up on [1], [2] and [3], this patchset adds update > attribute groups to pmu, factors out the MSR probe code and > use it in msr,cstate* and rapl PMUs. > > The functionality stays the same with one exception: > the event i

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-05-28 Thread Ran Wang
Hi Felipe, Sorry for the late reply: On Wednesday, November 15, 2017 18:23, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > >> Ran Wang writes: > >> > Add support for USB3 snooping by asserting bits in register > >> > DWC3_GSBUSCFG0 for data and descriptor. > >> > >> we know *how* to e

Re: [PATCH 2/2 v3] tty/serial/8250: use mctrl_gpio helpers

2019-05-28 Thread Mika Westerberg
On Mon, May 27, 2019 at 01:18:05PM +0200, Stefan Roese wrote: > From: Yegor Yefremov > > This patch permits the usage for GPIOs to control > the CTS/RTS/DTR/DSR/DCD/RI signals. > > Changed by Stefan: > Only call mctrl_gpio_init(), if the device has no ACPI companion device > to not break existin

Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS

2019-05-28 Thread Will Deacon
On Thu, May 23, 2019 at 11:22:52AM +0100, Ard Biesheuvel wrote: > Wire up the code introduced in v5.2 to manage the permissions > of executable vmalloc regions (and their linear aliases) more > strictly. > > One of the things that came up in the internal discussion is > whether non-x86 architectur

Re: [PATCH 2/3] mmc: core: API for temporarily disabling auto-retuning due to errors

2019-05-28 Thread Adrian Hunter
On 26/05/19 9:42 PM, Arend Van Spriel wrote: > On 5/18/2019 12:54 AM, Douglas Anderson wrote: >> Normally when the MMC core sees an "-EILSEQ" error returned by a host >> controller then it will trigger a retuning of the card.  This is >> generally a good idea. > > Probably a question for Adrian, b

Re: [PATCH 1/2] fork: add clone6

2019-05-28 Thread Christian Brauner
On Mon, May 27, 2019 at 12:27:08PM -0700, Linus Torvalds wrote: > On Mon, May 27, 2019 at 3:42 AM Christian Brauner > wrote: > > > > Hm, still pondering whether having one unsigned int argument passed > > through registers that captures all the flags from the old clone() would > > be a good idea.

Re: [PATCH V5] ARM: mach-shmobile: Don't init CNTVOFF/counter if PSCI is available

2019-05-28 Thread Oleksandr
On 28.05.19 11:27, Geert Uytterhoeven wrote: Hi Oleksandr, Hi Geert, all Thanks for the update! Reviewed-by: Geert Uytterhoeven Thank you for review! Just FYI: Required support for Gen2 Stout board has been already added to Xen [1]. What needs to be done next is to add support for

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-28 Thread Tetsuo Handa
On 2019/05/28 17:51, Sergey Senozhatsky wrote: >> You are trying to omit passing KERN_UNSUPPRESSED by utilizing implicit printk >> context information. But doesn't such attempt resemble find_printk_buffer() ? > > Adding KERN_UNSUPPRESSED to all printks down the op_p->handler() > line is hardly pos

Re: test VIDIOC_G/S_PARM: FAIL on stable 4.14, 4.9 and 4.4

2019-05-28 Thread Naresh Kamboju
Hi Hans, On Mon, 20 May 2019 at 19:26, Naresh Kamboju wrote: > > Hi Hans, > > On Mon, 13 May 2019 at 19:08, Hans Verkuil wrote: > > > > On 5/13/19 3:32 PM, Naresh Kamboju wrote: > > > Do you see test VIDIOC_G/S_PARM: FAIL on stable 4.14, 4.9 and 4.4 > > > kernel branches ? > > > > Probably relat

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-05-28 Thread Felipe Balbi
Hi, Ran Wang writes: > Hi Felipe, > > Sorry for the late reply: > > On Wednesday, November 15, 2017 18:23, Felipe Balbi wrote: that's 1.5 year ago. I really don't remember the details of this conversation >> Ran Wang writes: >> >> Ran Wang writes: >> >> > Add support for USB3 snooping

Re: [PATCH 0/8] perf/x86: Rework msr probe interface

2019-05-28 Thread Jiri Olsa
On Tue, May 28, 2019 at 12:01:47PM +0200, Peter Zijlstra wrote: > On Mon, May 27, 2019 at 11:51:21PM +0200, Jiri Olsa wrote: > > hi, > > following up on [1], [2] and [3], this patchset adds update > > attribute groups to pmu, factors out the MSR probe code and > > use it in msr,cstate* and rapl PMU

Re: [PATCH 2/7] sched/fair: Replace source_load() & target_load() w/ weighted_cpuload()

2019-05-28 Thread Dietmar Eggemann
On 5/28/19 6:42 AM, Hillf Danton wrote: On Mon, 27 May 2019 07:21:11 +0100 Dietmar Eggemann wrote: [...] @@ -5500,7 +5464,7 @@ wake_affine_weight(struct sched_domain *sd, struct task_struct *p, this_eff_load *= 100; this_eff_load *= capacity_of(prev_cpu); - prev_e

Re: [PATCH] scripts/decode_stacktrace: Look for modules with .ko.debug extension

2019-05-28 Thread Nicolas Boichat
On Tue, May 28, 2019 at 4:38 PM Konstantin Khlebnikov wrote: > > On 22.05.2019 2:41, Nicolas Boichat wrote: > > In Chromium OS kernel builds, we split the debug information as > > .ko.debug files, and that's what decode_stacktrace.sh needs to use. > > > > Relax objfile matching rule to allow any .

Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS

2019-05-28 Thread Ard Biesheuvel
On 5/28/19 12:04 PM, Will Deacon wrote: On Thu, May 23, 2019 at 11:22:52AM +0100, Ard Biesheuvel wrote: Wire up the code introduced in v5.2 to manage the permissions of executable vmalloc regions (and their linear aliases) more strictly. One of the things that came up in the internal discussion

Re: [PATCH v2 2/6] i2c: acpi: Use available IRQ helper functions

2019-05-28 Thread Mika Westerberg
On Mon, May 27, 2019 at 04:19:28PM +0100, Charles Keepax wrote: > static int i2c_acpi_get_info(struct acpi_device *adev, >struct i2c_board_info *info, >struct i2c_adapter *adapter, >acpi_handle *adapter_handle) >

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-28 Thread Minchan Kim
On Tue, May 28, 2019 at 11:08:21AM +0200, Michal Hocko wrote: > On Tue 28-05-19 17:49:27, Minchan Kim wrote: > > On Tue, May 28, 2019 at 01:31:13AM -0700, Daniel Colascione wrote: > > > On Tue, May 28, 2019 at 1:14 AM Minchan Kim wrote: > > > > if we went with the per vma fd approach then you woul

Re: [PATCHv6 0/4] omapdrm: DSI command mode panel support

2019-05-28 Thread Tomi Valkeinen
On 28/05/2019 13:18, Tony Lindgren wrote: This change lets me boot. I don't know that's the correct place, though: diff --git a/arch/arm/boot/dts/am5728.dtsi b/arch/arm/boot/dts/am5728.dtsi index 82e5427ef6a9..c778f9a86b3a 100644 --- a/arch/arm/boot/dts/am5728.dtsi +++ b/arch/arm/boot/dts/am572

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