Re: [PATCH 8/9] mtd: nand: qcom: helper function for raw read

2018-04-22 Thread Miquel Raynal
Hi Abhishek, On Mon, 23 Apr 2018 11:58:42 +0530, Abhishek Sahu wrote: > On 2018-04-22 21:49, Miquel Raynal wrote: > > Hi Abhishek, > > > On Thu, 12 Apr 2018 12:36:42 +0530, Abhishek Sahu > > wrote: > > >> On 2018-04-10 15:14, Miquel Raynal wrote: > >> > Hi Abhishek, > >> > > On Wed, 4

Re: [PATCH 4.4 00/97] 4.4.129-stable review

2018-04-22 Thread Greg Kroah-Hartman
On Sun, Apr 22, 2018 at 01:44:07PM -0700, Nathan Chancellor wrote: > On Sun, Apr 22, 2018 at 03:52:38PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.129 release. > > There are 97 patches in this series, all will be posted as a response > > to this on

Re: [patch 0/9] LICENSES: Add missing License Text and fixup bogus identifiers

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:08AM +0200, Thomas Gleixner wrote: > There are a few bogus SPDX identifiers in various files and SPDX > Identifiers used in tree or about to be used which have no corresponding > License Text file in the LICENSES directory or use the new variant of the > GPL-2.0[+] lic

Re: KASAN: slab-out-of-bounds Read in __sctp_v6_cmp_addr

2018-04-22 Thread Xin Long
On Mon, Apr 23, 2018 at 9:02 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 83beed7b2b26f232d782127792dd0cd4362fdc41 (Fri Apr 20 17:56:32 2018 +) > Merge branch 'fixes' of > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal > syzbot da

Re: [patch 9/9] LICENSES: Add Linux-OpenIB license text

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:17AM +0200, Thomas Gleixner wrote: > The infiniband code uses a variant of the OpenIB license. This license is > BSD-2-Clause with the MIT disclaimer. The linux kernel uses this license > extensively throughout the driver subsystem since 2005. Note that the > OpenIB.or

Re: [patch 8/9] LICENSES: Add CC-BY-SA-4.0 license text

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:16AM +0200, Thomas Gleixner wrote: > Add the full text of the CC-BY-SA-4.0 license to the kernel tree. It was > copied directly from: > >https://spdx.org/licenses/CC-BY-SA-4.0.html#licenseText > > Signed-off-by: Thomas Gleixner As we only have 1 user of th

Re: [patch 4/9] LICENSES/GPL2.0: Add GPL-2.0-only/or-later as valid identifiers

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:12AM +0200, Thomas Gleixner wrote: > Quite some files have been flagged with the new GPL-2.0-only and > GPL-2.0-or-later identifiers which replace the original GPL-2.0 and > GPL-2.0+ identifiers in the SPDX license identifier specification, but the > identifiers are no

Re: next-20180416 - warnings from 'make tools/perf'

2018-04-22 Thread Ingo Molnar
* valdis.kletni...@vt.edu wrote: > Seeing these warnings. 'diff' tells me that the files > are in fact significantly different. > > Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from > latest version at 'include/uapi/linux/kvm.h' > Warning: Kernel ABI header at 'tools

Re: [patch 1/9] x86/jailhouse: Fix incorrect SPDX identifier

2018-04-22 Thread Jan Kiszka
On 2018-04-23 00:02, Thomas Gleixner wrote: > GPL2.0 is not a valid SPDX identiier. Replace it with GPL-2.0. > > Fixes: 4a362601baa6 ("x86/jailhouse: Add infrastructure for running in > non-root cell") > Signed-off-by: Thomas Gleixner > Cc: Jan Kiszka > --- > arch/x86/include/asm/jailhouse_par

Re: [patch 7/9] LICENSES: Add Apache 2.0 license text

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:15AM +0200, Thomas Gleixner wrote: > Add the full text of the Apache License version 2 to the kernel tree. It > was copied directly from: > >https://spdx.org/licenses/Apache-2.0.html#licenseText > > Signed-off-by: Thomas Gleixner Ugh, blame Android for thi

Re: [patch 6/9] LICENSES: Add CDDL-1.0 license text

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:14AM +0200, Thomas Gleixner wrote: > Add the full text of the CDDL-1.0 to the kernel tree. It was copied directly > from: > >https://spdx.org/licenses/CDDL-1.0.html#licenseText > > Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman

Re: [patch 5/9] LICENSES: Add X11 license

2018-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 23, 2018 at 12:02:13AM +0200, Thomas Gleixner wrote: > Add the full text of the X11 to the kernel tree. It was copied directly > from: > >https://spdx.org/licenses/X11.html#licenseText > > Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-22 Thread Greentime Hu
2018-04-20 16:03 GMT+08:00 Christoph Hellwig : > Switch to the generic noncoherent direct mapping implementation. > > This makes sure kmap_atomic_pfn is consistently used for access to > virtual addresses instead of either using the slower plain kmap > or blindly expecting page_address() to work. >

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-22 Thread Ulf Hansson
On 20 April 2018 at 17:53, Eugeniy Paltsev wrote: > Hi Ulf, > > On Fri, 2018-04-20 at 09:35 +0200, Ulf Hansson wrote: >> [...] >> >> > >> > 2. Add missing stuff to support multislot mode in DesignWare MMC driver. >> > * Add missing slot switch to __dw_mci_start_request() function. >> > * Refacto

Re: [PATCH 05/18 v2] regulator: max77686: Pass descriptor instead of GPIO number

2018-04-22 Thread Krzysztof Kozlowski
On Mon, Apr 23, 2018 at 1:07 AM, Linus Walleij wrote: > Instead of passing a global GPIO number, pass a descriptor looked > up from the device tree configuration node. > > Cc: Chanwoo Choi > Cc: Krzysztof Kozlowski > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Linus Walleij > --- > ChangeLo

Re: [PATCH 1/9] mtd: nand: qcom: use the ecc strength from device parameter

2018-04-22 Thread Abhishek Sahu
On 2018-04-22 22:04, Miquel Raynal wrote: Hi Abhishek, On Thu, 12 Apr 2018 15:29:48 +0530, Abhishek Sahu wrote: On 2018-04-10 13:37, Boris Brezillon wrote: > On Tue, 10 Apr 2018 09:55:58 +0200 > Miquel Raynal wrote: > >> > Hi Abhishek, >> > >> > On Tue, 10 Apr 2018 11:39:35 +0530, Abhishek S

Re: [PATCH v2] mfd: tps65911-comparator: Fix an off by one bug

2018-04-22 Thread Lee Jones
On Fri, 20 Apr 2018, Dan Carpenter wrote: > The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is > accessing the wrong elements and one space beyond the end of the array. > We should be using "id - 1" instead. > > The "id" variable is never COMP (0) so that code can be removed

Re: [PATCH] phy: exynos-mipi-video: Simplify code by using regmap_update_bits()

2018-04-22 Thread Kishon Vijay Abraham I
On Monday 16 April 2018 09:49 PM, Sylwester Nawrocki wrote: > There is no functional change, just replacing regmap_read()/modify/ > regmap_write() with regmap_update_bits() function calls. merged, thanks! -Kishon > > Signed-off-by: Sylwester Nawrocki > --- > drivers/phy/samsung/phy-exynos-m

Re: [PATCH v10 08/25] mm: VMA sequence count

2018-04-22 Thread Minchan Kim
On Tue, Apr 17, 2018 at 04:33:14PM +0200, Laurent Dufour wrote: > From: Peter Zijlstra > > Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence > counts such that we can easily test if a VMA is changed. So, seqcount is to protect modifying all attributes of vma? > > The unmap

[PATCH v2 1/2] regmap: include from include/linux/regmap.h

2018-04-22 Thread sean.wang
From: Sean Wang Similar to the readx_poll_timeout() macro calling ktime_* and using ktime_t type, which is declared in . So, make include/linux/regmap.h explicitly include , like include/linux/iopoll.h does. Otherwise, users of the macro will see below errors. error: implicit declaration of fun

Re: [PATCH] phy: Add a driver for the ATH79 USB phy

2018-04-22 Thread Kishon Vijay Abraham I
On Sunday 25 March 2018 04:08 AM, Alban Bedel wrote: > The ATH79 USB phy is very simple, it only have a reset. On some SoC a > second reset is used to force the phy in suspend mode regardless of the > USB controller status. > > This driver is added to the qualcom directory as atheros is now part

Re: [PATCH v2] phy: core: Allow phy_pm_runtime_xxx API calls with NULL phy

2018-04-22 Thread Kishon Vijay Abraham I
On Tuesday 20 March 2018 11:31 AM, Manu Gautam wrote: > phy_init() and phy_exit() calls, and phy_power_on() and > phy_power_off() already accept NULL as valid PHY reference > and act as NOP. Extend same concept to phy runtime_pm APIs > to keep drivers (e.g. dwc3) code simple while dealing with >

[PATCH v2 2/2] soc: mediatek: reuse regmap_read_poll_timeout helpers

2018-04-22 Thread sean.wang
From: Sean Wang Reuse the common helpers regmap_read_poll_timeout provided by Linux core instead of an open-coded handling. v1 -> v2: - use macro definitions MTK_POLL_DELAY_US and MTK_POLL_TIMEOUT for arguments sleep_us and timeout_us passing in regmap_read_poll_timeout. - remove unnecessar

Re: [PATCH v2 0/5] ALSA: xen-front: Add Xen para-virtualized frontend driver

2018-04-22 Thread Oleksandr Andrushchenko
On 04/18/2018 06:15 PM, Oleksandr Andrushchenko wrote: On 04/16/2018 09:24 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Please note: this patch series depends on [3]. The dependency is now merged into Xen kernel tree [4] for-linus-4.17 The dependency is now pulled into Li

[PATCH v6 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg

2018-04-22 Thread Jagan Teki
Add usb otg support for bananapi-m64 board, - USB-ID connected with PH9 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v6: - Rebase on master Changes for v5: - Kept reg_drivevbus node in alphabetical order. - Collect Chen-Y

[PATCH v6 1/3] regulator: axp20x: add drivevbus support for axp803

2018-04-22 Thread Jagan Teki
Like axp221, axp223, axp813 the axp803 is also supporting external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Add support for it. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai --- Changes for v6: - Rebase on master Changes for v5: - Collect Chen

[PATCH v6 2/3] arm64: allwinner: axp803: Add drivevbus regulator

2018-04-22 Thread Jagan Teki
Add reg_drivevbus regualtor for boards which are using external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v6: - Rebase on master Changes for v5: - Collect Chen-Yu reviewed-by tag Changes for v4: - rebase on mas

Re: [PATCH v10 06/25] mm: make pte_unmap_same compatible with SPF

2018-04-22 Thread Minchan Kim
On Tue, Apr 17, 2018 at 04:33:12PM +0200, Laurent Dufour wrote: > pte_unmap_same() is making the assumption that the page table are still > around because the mmap_sem is held. > This is no more the case when running a speculative page fault and > additional check must be made to ensure that the fi

Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-22 Thread Abhishek Sahu
On 2018-04-22 21:55, Miquel Raynal wrote: Hi Abhishek, On Thu, 12 Apr 2018 12:24:16 +0530, Abhishek Sahu wrote: On 2018-04-10 14:42, Miquel Raynal wrote: > Hi Abhishek, > > On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu > wrote: > >> parse_read_errors can be called with only oob buf also

Re: [PATCH 8/9] mtd: nand: qcom: helper function for raw read

2018-04-22 Thread Abhishek Sahu
On 2018-04-22 21:49, Miquel Raynal wrote: Hi Abhishek, On Thu, 12 Apr 2018 12:36:42 +0530, Abhishek Sahu wrote: On 2018-04-10 15:14, Miquel Raynal wrote: > Hi Abhishek, > > On Wed, 4 Apr 2018 18:12:24 +0530, Abhishek Sahu > wrote: > >> This patch does minor code reorganization for raw reads

Re: [PATCH] mfd: tps65911-comparator: Fix an off by one bug

2018-04-22 Thread Lee Jones
On Fri, 20 Apr 2018, Dan Carpenter wrote: > On Fri, Apr 20, 2018 at 09:39:09AM +0100, Lee Jones wrote: > > On Fri, 20 Apr 2018, Dan Carpenter wrote: > > > > > On Fri, Apr 20, 2018 at 09:09:43AM +0100, Lee Jones wrote: > > > > On Thu, 19 Apr 2018, Dan Carpenter wrote: > > > > > > > > > The tps_co

Re: New sparse warning from min_t(): expression using sizeof(void)

2018-04-22 Thread Luciano Coelho
On Sat, 2018-04-21 at 11:54 +0300, Kalle Valo wrote: > Joey Pabalinas writes: > > > On Sat, Apr 21, 2018 at 10:50:51AM +0300, Kalle Valo wrote: > > > Is there any way to fix it? With ath10k I use sparse a lot and > > > because > > > of these warnings sparse is now very annoying to use. > > > > I

Re: [PATCH v2] KVM: s390: reset crypto attributes for all vcpus

2018-04-22 Thread Janosch Frank
On 22.04.2018 17:37, Tony Krowiak wrote: > Introduces a new function to reset the crypto attributes for all > vcpus whether they are running or not. Each vcpu in KVM will > be removed from SIE prior to resetting the crypto attributes in its > SIE state description. After all vcpus have had their cr

Re: [RFC v2 06/83] Add inode get/read methods.

2018-04-22 Thread Darrick J. Wong
[haaa, I finally found time to read more of these] On Sat, Mar 10, 2018 at 10:17:47AM -0800, Andiry Xu wrote: > From: Andiry Xu > > These routines are incomplete and currently only support reserved inodes, > whose addresses are fixed. This is necessary for fill_super to work. > File/dir operatio

Re: [RFC PATCH 16/35] ovl: readd lsattr/chattr support

2018-04-22 Thread Ritesh Harjani
On 4/12/2018 8:38 PM, Miklos Szeredi wrote: Implement FS_IOC_GETFLAGS and FS_IOC_SETFLAGS. Needs vfs_ioctl() exported to modules. Do you think if it is better to separate out ovl implementation and export of vfs_ioctl method ? Probably there are other users which should be using vfs_ioctl met

Re: [PATCH] [net] ipv6: sr: fix NULL pointer dereference in seg6_do_srh_encap()- v4 pkts

2018-04-22 Thread Ahmed Abdelsalam
On Sun, 22 Apr 2018 21:06:04 -0400 (EDT) David Miller wrote: > From: Ahmed Abdelsalam > Date: Fri, 20 Apr 2018 15:58:05 +0200 > > > In case of seg6 in encap mode, seg6_do_srh_encap() calls set_tun_src() > > in order to set the src addr of outer IPv6 header. > > > > The net_device is required f

Re: [PATCH 10/61] gpio: simplify getting .drvdata

2018-04-22 Thread Michal Simek
Hi Wolfram, On 21.4.2018 18:23, Wolfram Sang wrote: > Hi Michal, > > Thanks for the reviews! > >> There are two more occurences in this gpio-zynq driver. >> zynq_gpio_resume, zynq_gpio_suspend. It wasn't detected because these >> two lines are not together. But the same change can be applied for

Re: [PATCH] mmc: disable card sleep via device-tree

2018-04-22 Thread Vladimir Zapolskiy
Hi Lukasz, On 04/23/2018 12:31 AM, Lukasz Majewski wrote: > From: Stanislav Meduna > > On a TQMa53 module the mmc_sleep leaves the eMMC card in a state > that the imx53 rom boot code is unable to probe, resulting in > reboot hanging. Add a device tree property to disable sleeping > on suspend. >

Re: [PATCH 4.9 37/95] ext4: add validity checks for bitmap block numbers

2018-04-22 Thread Theodore Y. Ts'o
On Sun, Apr 22, 2018 at 10:54:23PM +0100, Ben Hutchings wrote: > > offset = blk - group_first_block; > > - if (!ext4_test_bit(EXT4_B2C(sbi, offset), bh->b_data)) > > + if (offset < 0 || EXT4_B2C(sbi, offset) >= sb->s_blocksize || > > + !ext4_test_bit(EXT4_B2C(sbi, offset), bh->b_data)

[PATCH] fsck.f2fs: fix to avoid accessing invalid memory address

2018-04-22 Thread Chao Yu
This patch adds to check return value of calloc in write_superblock(). Signed-off-by: Chao Yu --- fsck/mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fsck/mount.c b/fsck/mount.c index 7e936dc056e5..badbe639742e 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -2155,6 +2155,7 @@ void

Re: [PATCH v10 01/25] mm: introduce CONFIG_SPECULATIVE_PAGE_FAULT

2018-04-22 Thread Minchan Kim
Hi Laurent, I guess it's good timing to review. Guess LSF/MM goes so might change a lot since then. :) Anyway, I grap a time to review. On Tue, Apr 17, 2018 at 04:33:07PM +0200, Laurent Dufour wrote: > This configuration variable will be used to build the code needed to > handle speculative page

next-20180416 - warnings from 'make tools/perf'

2018-04-22 Thread valdis . kletnieks
Seeing these warnings. 'diff' tells me that the files are in fact significantly different. Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from lates

Re: [PATCH 2/6] dmaengine: at_xdmac: simplify getting .drvdata

2018-04-22 Thread Ludovic Desroches
On Sun, Apr 22, 2018 at 11:14:10AM +0200, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang Acked-by: Ludovic Desroches Thanks > --- > > Build tested only. buildbot is happy.

Re: [PATCH 1/6] dmaengine: at_hdmac: simplify getting .drvdata

2018-04-22 Thread Ludovic Desroches
On Sun, Apr 22, 2018 at 11:14:09AM +0200, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang Acked-by: Ludovic Desroches Thanks > --- > > Build tested only. buildbot is happy.

Re: [REVIEW][PATCH 15/22] signal/s390: Use force_sig_fault where appropriate

2018-04-22 Thread Martin Schwidefsky
On Fri, 20 Apr 2018 09:38:04 -0500 "Eric W. Biederman" wrote: > Filling in struct siginfo before calling force_sig_info a tedious and > error prone process, where once in a great while the wrong fields > are filled out, and siginfo has been inconsistently cleared. > > Simplify this process by us

Re: [RFC v2] virtio: support packed ring

2018-04-22 Thread Jason Wang
On 2018年04月01日 22:12, Tiwei Bie wrote: Hello everyone, This RFC implements packed ring support for virtio driver. The code was tested with DPDK vhost (testpmd/vhost-PMD) implemented by Jens at http://dpdk.org/ml/archives/dev/2018-January/089417.html Minor changes are needed for the vhost code

[RFC V3 PATCH 5/8] vhost: vhost_put_user() can accept metadata type

2018-04-22 Thread Jason Wang
We assumes used ring update is the only user for vhost_put_user() in the past. This may not be the case for the incoming packed ring which may update the descriptor ring for used. So introduce a new type parameter. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 14 +++--- 1 file c

[RFC V3 PATCH 2/8] vhost: hide used ring layout from device

2018-04-22 Thread Jason Wang
We used to return descriptor head by vhost_get_vq_desc() to device and pass it back to vhost_add_used() and its friends. This exposes the internal used ring layout to device which makes it hard to be extended for e.g packed ring layout. So this patch tries to hide the used ring layout by - lettin

[RFC V3 PATCH 4/8] vhost_net: do not explicitly manipulate vhost_used_elem

2018-04-22 Thread Jason Wang
Two helpers of setting/getting used len were introduced to avoid explicitly manipulating vhost_used_elem in zerocopy code. This will be used to hide used_elem internals and simplify packed ring implementation. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 11 +-- drivers/vhost/vh

[RFC V3 PATCH 6/8] virtio: introduce packed ring defines

2018-04-22 Thread Jason Wang
Signed-off-by: Jason Wang --- include/uapi/linux/virtio_config.h | 9 + include/uapi/linux/virtio_ring.h | 13 + 2 files changed, 22 insertions(+) diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index 308e209..5903d51 100644 --- a/incl

[RFC V3 PATCH 8/8] vhost: event suppression for packed ring

2018-04-22 Thread Jason Wang
This patch introduces basic support for event suppression aka driver and device area. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c| 170 --- drivers/vhost/vhost.h| 10 ++- include/uapi/linux/virtio_ring.h | 19 + 3 files ch

[RFC V3 PATCH 7/8] vhost: packed ring support

2018-04-22 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 3 +- drivers/vhost/vhost.c | 535 ++ drivers/vhost/vhost.h | 8 +- 3 files changed, 509 insertions(+), 37 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 30273ad..

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-04-22 Thread Sergey Senozhatsky
On (01/23/18 07:43), Tejun Heo wrote: > > > > We can have more. But if printk is causing printks, that's a major bug. > > And work queues are not going to fix it, it will just spread out the > > pain. Have it be 100 printks, it needs to be fixed if it is happening. > > And having all printks just

[RFC V3 PATCH 1/8] vhost: move get_rx_bufs to vhost.c

2018-04-22 Thread Jason Wang
Move get_rx_bufs() to vhost.c and rename it to vhost_get_rx_bufs(). This helps to hide vring internal layout from specific device implementation. Packed ring implementation will benefit from this. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 83 ++

[RFC V3 PATCH 0/8] Packed ring for vhost

2018-04-22 Thread Jason Wang
Hi all: This RFC implement packed ring layout. The code were tested with Tiwei's RFC V2 a thttps://lkml.org/lkml/2018/4/1/48. Some fixups and tweaks were needed on top of Tiwei's code to make it run. TCP stream and pktgen does not show obvious difference compared with split ring. Changes from V2:

[RFC V3 PATCH 3/8] vhost: do not use vring_used_elem

2018-04-22 Thread Jason Wang
Instead of depending on the exported vring_used_elem, this patch switches to use a new internal structure vhost_used_elem which embed vring_used_elem in itself. This could be used to let vhost to record extra metadata for the incoming packed ring layout. Signed-off-by: Jason Wang --- drivers/vho

Re: [PATCH v2] fs: dax: Adding new return type vm_fault_t

2018-04-22 Thread kbuild test robot
Hi Souptick, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc2 next-20180420] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

linux-next: Signed-off-by missing for commit in the hwmon-staging tree

2018-04-22 Thread Stephen Rothwell
Hi Guenter, Commit bcafe0ea7e4f ("hwmon: MC13783: Add uid and die temperature sensor inputs") is missing a Signed-off-by from its committer. It was rebased since yesterday. -- Cheers, Stephen Rothwell pgplr3KQaJ9HR.pgp Description: OpenPGP digital signature

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-22 Thread Sergey Senozhatsky
On (04/20/18 11:12), Petr Mladek wrote: [..] > Will 1000 lines within 1 hour be enough for you, please? I'm afraid it won't. > I am lost. In the mail [..] > My understanding of the older mail is that you called > console_drivers() in printk_safe() context only because it was > easier to disable p

linux-next: Tree for Apr 23

2018-04-22 Thread Stephen Rothwell
Hi all, Changes since 20180420: The usb tree gained a conflict against the usb.current tree. Non-merge commits (relative to Linus' tree): 1418 1459 files changed, 55564 insertions(+), 22829 deletions(-) I have create

Re: [RFC 4/6] dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit

2018-04-22 Thread Vinod Koul
On Tue, Apr 17, 2018 at 12:28:52PM +, Radhey Shyam Pandey wrote: > > > + if ((seg->hw.status & XILINX_DMA_COMP_MASK) || > > > + (!chan->xdev->has_axieth_connected)) { > > > > why the second case ? That is not expalined in log? > In the current implementation, delay tim

Re: [PATCH 1/1] arm64: To remove initrd reserved area entry from memblock

2018-04-22 Thread Chandan Vn
Hi, May I know when this patch would be taken for merging? On Sat, Apr 7, 2018 at 9:58 AM, Chandan Vn wrote: > On Fri, Apr 6, 2018 at 9:47 PM, Laura Abbott wrote: >> Does this have an impact on anything besides accounting >> in memblock? > > Yes, the impact is only on accounting or debugging.

Re: BUG: KASAN: global-out-of-bounds in unmap_kernel_at_el0+0x70/0x1a0

2018-04-22 Thread Jan Kiszka
On 2018-04-22 21:06, Mark Rutland wrote: > On Sun, Apr 22, 2018 at 12:47:57PM +0200, Jan Kiszka wrote: >> Hi, >> >> this can be triggered simply by running >> >> # echo 0 > /sys/devices/system/cpu/cpu3/online >> # echo 1 > /sys/devices/system/cpu/cpu3/online >> >> [ 455.904854] >> ===

[RFC v3 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-04-22 Thread Yang Shi
Since tmpfs THP was supported in 4.8, hugetlbfs is not the only filesystem with huge page support anymore. tmpfs can use huge page via THP when mounting by "huge=" mount option. When applications use huge page on hugetlbfs, it just need check the filesystem magic number, but it is not enough for t

Re: [PATCH 2/2] cpufreq: brcmstb-avs-cpufreq: prefer SCMI cpufreq if supported

2018-04-22 Thread Viresh Kumar
On 20-04-18, 09:50, Florian Fainelli wrote: > On 04/20/2018 02:35 AM, Viresh Kumar wrote: > > On 20-04-18, 10:15, Sudeep Holla wrote: > >> It still doesn't give the flexibility to switch between the two > >> implementations boot time based on some firmware config(e.g. DT status > >> property). > >

Re: [PATCH 2/3] mm: add find_alloc_contig_pages() interface

2018-04-22 Thread Mike Kravetz
On 04/22/2018 05:09 PM, Michal Hocko wrote: > On Mon 16-04-18 19:09:14, Mike Kravetz wrote: > [...] >> @@ -2010,9 +2011,13 @@ static __always_inline struct page >> *__rmqueue_cma_fallback(struct zone *zone, >> { >> return __rmqueue_smallest(zone, order, MIGRATE_CMA); >> } >> +#define contig

Re: [RFC] mm: kmemleak: replace __GFP_NOFAIL to GFP_NOWAIT in gfp_kmemleak_mask

2018-04-22 Thread Chunyu Hu
On 22 April 2018 at 23:00, Dmitry Vyukov wrote: > On Sun, Apr 22, 2018 at 2:51 PM, Michal Hocko wrote: >> On Fri 20-04-18 18:50:24, Catalin Marinas wrote: >>> On Sat, Apr 21, 2018 at 12:58:33AM +0800, Chunyu Hu wrote: >>> > __GFP_NORETRY and __GFP_NOFAIL are combined in gfp_kmemleak_mask now. >>

[PATCH 2/5] ARM: dts: imx6sx-sabreauto: add max7322 IO expander support

2018-04-22 Thread Anson Huang
Add MAX7322 IO expander support. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 2caca934..d59084f 100644 --- a/arch/arm/boot/dt

[PATCH 5/5] ARM: dts: imx6sx-sabreauto: add wdog external reset support

2018-04-22 Thread Anson Huang
i.MX6SX Sabre Auto board has GPIO1_IO13 pin can be MUXed as WDOG output to reset PMIC, add this function support. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch

[PATCH 4/5] ARM: dts: imx6sx-sabreauto: add fec support

2018-04-22 Thread Anson Huang
Add FEC support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 70 ++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 812f40

[PATCH 3/5] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support

2018-04-22 Thread Anson Huang
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/

[PATCH 1/5] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-04-22 Thread Anson Huang
Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 + 1 file changed, 117 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index

Re: [PATCH 03/24] VFS: Introduce the structs and doc for a filesystem context [ver #7]

2018-04-22 Thread Randy Dunlap
Hi David, On 04/19/18 06:31, David Howells wrote: > Introduce a filesystem context concept to be used during superblock > creation for mount and superblock reconfiguration for remount. This is > allocated at the beginning of the mount procedure and into it is placed: > > (1) Filesystem type. >

Re: [RFC] mm: kmemleak: replace __GFP_NOFAIL to GFP_NOWAIT in gfp_kmemleak_mask

2018-04-22 Thread Chunyu Hu
On 21 April 2018 at 01:50, Catalin Marinas wrote: > On Sat, Apr 21, 2018 at 12:58:33AM +0800, Chunyu Hu wrote: >> __GFP_NORETRY and __GFP_NOFAIL are combined in gfp_kmemleak_mask now. >> But it's a wrong combination. As __GFP_NOFAIL is blockable, but >> __GFP_NORETY is not blockable, make it self

Re: [RFC v2 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-04-22 Thread Yang Shi
On 4/22/18 6:47 PM, Michal Hocko wrote: On Sat 21-04-18 00:33:59, Yang Shi wrote: Since tmpfs THP was supported in 4.8, hugetlbfs is not the only filesystem with huge page support anymore. tmpfs can use huge page via THP when mounting by "huge=" mount option. When applications use huge page o

Re: [RFC v4 3/4] irqflags: Avoid unnecessary calls to trace_ if you can

2018-04-22 Thread Paul E. McKenney
On Sun, Apr 22, 2018 at 06:14:18PM -0700, Joel Fernandes wrote: > On Fri, Apr 20, 2018 at 12:07 AM, Joel Fernandes wrote: > > Hi, > > > > Thanks Matsami and Namhyung for the suggestions! > > > > On Wed, Apr 18, 2018 at 10:43 PM, Namhyung Kim wrote: > >> On Wed, Apr 18, 2018 at 06:02:50PM +0900, M

[PATCH tip/core/rcu 5/6] rcutorture: Abbreviate kvm.sh summary lines

2018-04-22 Thread Paul E. McKenney
With the addition of the end-of-test state, it is not uncommon for the kvm.sh summary lines to overflow 80 characters. This commit therefore applies abbreviations in order to make the line fit into 80 characters with high probability. And yes, I did make heavy use of punched cards back in the day

[PATCH tip/core/rcu 6/6] torture: Make kvm-find-errors.sh find build warnings

2018-04-22 Thread Paul E. McKenney
Currently, kvm-find-errors.sh looks only for build errors ("error:"), so this commit makes it also locate build warnings ("warning:"). Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --

[PATCH tip/core/rcu 1/6] torture: Add a script to edit output from failed runs

2018-04-22 Thread Paul E. McKenney
This commit adds a script that allows viewing the build and/or console output from failed rcutorture, locktorture, or rcuperf runs. This replaces a time-honored but inefficient manual procedure that uses cut and paste. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/kvm-find-err

[PATCH tip/core/rcu 4/6] rcutorture: Print end-of-test state in kvm.sh summary

2018-04-22 Thread Paul E. McKenney
This commit adds the end-of-test test, if present in the console output, to the kvm.sh test summary that is printed by kvm-recheck.sh. Note that this only applies to rcutorture console output. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh | 8

[PATCH tip/core/rcu 2/6] torture: Fold parse-torture.sh into parse-console.sh

2018-04-22 Thread Paul E. McKenney
The rcutorture scripting scans the console output twice, once to look for various sorts of hangs and again to find warnings and panics. Unfortunately, only the output of the second scan gets written to the console.log.diags file, which can cause hangs to be overlooked. This commit therefore folds t

[PATCH tip/core/rcu 3/6] rcutorture: Print end-of-test state

2018-04-22 Thread Paul E. McKenney
This commit adds end-of-test state printout to help check whether RCU shut down nicely. Note that this printout only helps for flavors of RCU that are not used much by the kernel. In particular, for normal RCU having a grace period in progress is expected behavior. Signed-off-by: Paul E. McKenne

[PATCH tip/core/rcu 0/6] Torture-test updates for v4.18

2018-04-22 Thread Paul E. McKenney
Hello! This series contains torture-test updates: 1. Add a script to edit output from failed runs. Running this script takes your editor through the build errors and the various problems in the console output, for each such file, first showing a summary of the errors

[PATCH tip/core/rcu 11/21] rcu: Switch __rcu_process_callbacks() to rcu_accelerate_cbs()

2018-04-22 Thread Paul E. McKenney
The __rcu_process_callbacks() function currently checks to see if the current CPU needs a grace period and also if there is any other reason to kick off a new grace period. This is one of the fail-safe checks that has been rendered unnecessary by the changes that increase the accuracy of rcu_gp_cl

[PATCH tip/core/rcu 02/21] rcu: Make rcu_start_future_gp()'s grace-period check more precise

2018-04-22 Thread Paul E. McKenney
The rcu_start_future_gp() function uses a sloppy check for a grace period being in progress, which works today because there are a number of code sequences that resolve the resulting races. However, some of these race-resolution code sequences must acquire the root rcu_node structure's ->lock, and

linux-next: manual merge of the usb tree with the usb.current tree

2018-04-22 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in: drivers/usb/core/hcd.c between commit: 63cb03f5c11e ("usb: core: split usb_phy_roothub_{init,alloc}") from the usb.current tree and commit: bc40f5341741 ("USB: core: hcd: drop support for legacy phys") from the usb tr

[PATCH tip/core/rcu 09/21] rcu: Make rcu_migrate_callbacks wake GP kthread when needed

2018-04-22 Thread Paul E. McKenney
The rcu_migrate_callbacks() function invokes rcu_advance_cbs() twice, ignoring the return value. This is OK at pressent because of failsafe code that does the wakeup when needed. However, this failsafe code acquires the root rcu_node structure's lock frequently, while rcu_migrate_callbacks() does

[PATCH tip/core/rcu 08/21] rcu: Convert ->need_future_gp[] array to boolean

2018-04-22 Thread Paul E. McKenney
There is no longer any need for ->need_future_gp[] to count the number of requests for future grace periods, so this commit converts the additions to assignments to "true" and reduces the size of each element to one byte. While we are in the area, fix an obsolete comment. Signed-off-by: Paul E. Mc

[PATCH tip/core/rcu 03/21] rcu: Add accessor macros for the ->need_future_gp[] array

2018-04-22 Thread Paul E. McKenney
Accessors for the ->need_future_gp[] array are currently open-coded, which makes them difficult to change. To improve maintainability, this commit adds need_future_gp_mask() to compute the indexing mask from the array size, need_future_gp_element() to access the element corresponding to the specif

[PATCH tip/core/rcu 07/21] rcu: Make rcu_future_needs_gp() check all ->need_future_gps[] elements

2018-04-22 Thread Paul E. McKenney
Currently, the rcu_future_needs_gp() function checks only the current element of the ->need_future_gps[] array, which might miss elements that were offset from the expected element, for example, due to races with the start or the end of a grace period. This commit therefore makes rcu_future_needs_

[PATCH tip/core/rcu 14/21] rcu: Inline rcu_start_gp_advanced() into rcu_start_future_gp()

2018-04-22 Thread Paul E. McKenney
The rcu_start_gp_advanced() is invoked only from rcu_start_future_gp() and much of its code is redundant when invoked from that context. This commit therefore inlines rcu_start_gp_advanced() into rcu_start_future_gp(), then removes rcu_start_gp_advanced(). Signed-off-by: Paul E. McKenney --- ke

[PATCH tip/core/rcu 05/21] rcu: Make rcu_gp_cleanup() more accurately predict need for new GP

2018-04-22 Thread Paul E. McKenney
Currently, rcu_gp_cleanup() scans the rcu_node tree in order to reset state to reflect the end of the grace period. It also checks to see whether a new grace period is needed, but in a number of cases, rather than directly cause the new grace period to be immediately started, it instead leaves the

[PATCH tip/core/rcu 01/21] rcu: Improve non-root rcu_cbs_completed() accuracy

2018-04-22 Thread Paul E. McKenney
When rcu_cbs_completed() is invoked on a non-root rcu_node structure, it unconditionally assumes that two grace periods must complete before the callbacks at hand can be invoked. This is overly conservative because if that non-root rcu_node structure believes that no grace period is in progress, a

[PATCH tip/core/rcu 12/21] rcu: Cleanup, don't put ->completed into an int

2018-04-22 Thread Paul E. McKenney
It is true that currently only the low-order two bits are used, so there should be no problem given modern machines and compilers, but good hygiene and maintainability dictates use of an unsigned long instead of an int. This commit therefore makes this change. Signed-off-by: Paul E. McKenney ---

[PATCH tip/core/rcu 13/21] rcu: Clear request other than RCU_GP_FLAG_INIT at GP end

2018-04-22 Thread Paul E. McKenney
Once the grace period has ended, any RCU_GP_FLAG_FQS requests are irrelevant: The grace period has ended, so there is no longer any point in forcing quiescent states in order to try to make it end sooner. This commit therefore causes rcu_gp_cleanup() to clear any bits other than RCU_GP_FLAG_INIT f

Re: [PATCH] mm: shmem: enable thp migration (Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page)

2018-04-22 Thread Matthew Wilcox
On Fri, Apr 06, 2018 at 03:07:11AM +, Naoya Horiguchi wrote: > Subject: [PATCH] mm: enable thp migration for shmem thp This patch is buggy, but not in a significant way: > @@ -524,13 +524,26 @@ int migrate_page_move_mapping(struct address_space > *mapping, > } > > radix_tree_re

[PATCH tip/core/rcu 18/21] rcu: The rcu_gp_cleanup() function does not need cpu_needs_another_gp()

2018-04-22 Thread Paul E. McKenney
All of the cpu_needs_another_gp() function's checks (except for newly arrived callbacks) have been subsumed into the rcu_gp_cleanup() function's scan of the rcu_node tree. This commit therefore drops the call to cpu_needs_another_gp(). The check for newly arrived callbacks is supplied by rcu_acce

[PATCH tip/core/rcu 20/21] rcu: Drop early GP request check from rcu_gp_kthread()

2018-04-22 Thread Paul E. McKenney
Now that grace-period requests use funnel locking and now that they set ->gp_flags to RCU_GP_FLAG_INIT even when the RCU grace-period kthread has not yet started, rcu_gp_kthread() no longer needs to check need_any_future_gp() at startup time. This commit therefore removes this check. Signed-off-b

[PATCH tip/core/rcu 17/21] rcu: Make rcu_start_this_gp() check for out-of-range requests

2018-04-22 Thread Paul E. McKenney
If rcu_start_this_gp() is invoked with a requested grace period more than three in the future, then either the ->need_future_gp[] array needs to be bigger or the caller needs to be repaired. This commit therefore adds a WARN_ON_ONCE() checking for this condition. Signed-off-by: Paul E. McKenney

[PATCH tip/core/rcu 06/21] rcu: Avoid losing ->need_future_gp[] values due to GP start/end races

2018-04-22 Thread Paul E. McKenney
The rcu_cbs_completed() function provides the value of ->completed at which new callbacks can safely be invoked. This is recorded in two-element ->need_future_gp[] arrays in the rcu_node structure, and the elements of these arrays corresponding to the just-completed grace period are zeroed at the

  1   2   3   4   5   6   7   8   9   10   >