linux-next: build warning after merge of the nvdimm tree

2018-03-22 Thread Stephen Rothwell
Hi Dan, After merging the nvdimm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/xfs/xfs_file.c: In function 'xfs_break_layouts': fs/xfs/xfs_file.c:759:20: warning: unused variable 'ip' [-Wunused-variable] struct xfs_inode *ip = XFS_I(inode);

Re: [PATCH v7 12/14] xfs: prepare xfs_break_layouts() to be called with XFS_MMAPLOCK_EXCL

2018-03-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v7 13/14] xfs: prepare xfs_break_layouts() for another layout type

2018-03-22 Thread Christoph Hellwig
> + ASSERT(xfs_isilocked(ip, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL > + | (reason == BREAK_UNMAPI > + ? XFS_MMAPLOCK_EXCL : 0))); please split the assert, e.g.: ASSERT(xfs_isilocked(ip, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL));

Re: [PATCH v7 14/14] xfs, dax: introduce xfs_break_dax_layouts()

2018-03-22 Thread Christoph Hellwig
On Wed, Mar 21, 2018 at 03:58:31PM -0700, Dan Williams wrote: > xfs_break_dax_layouts(), similar to xfs_break_leased_layouts(), scans > for busy / pinned dax pages and waits for those pages to go idle before > any potential extent unmap operation. > > dax_layout_busy_page() handles synchronizing a

Re: [PATCH] builddeb: Fix header package regarding dtc source links

2018-03-22 Thread Riku Voipio
On 21 March 2018 at 07:15, Jan Kiszka wrote: > Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes > are additionally required in order to build device trees with the header > package. A bit odd usecase IMHO, but: Reviewed-by: Riku Voipio > Signed-off-by: Jan Kiszka > --- >

Re: [PATCH v7 09/14] mm, dev_pagemap: introduce CONFIG_DEV_PAGEMAP_OPS

2018-03-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH] builddeb: Fix header package regarding dtc source links

2018-03-22 Thread Jan Kiszka
On 2018-03-22 15:45, Riku Voipio wrote: > On 21 March 2018 at 07:15, Jan Kiszka wrote: >> Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes >> are additionally required in order to build device trees with the header >> package. > > A bit odd usecase IMHO, but: The use case is

Re: [PATCH v7 10/14] memremap: mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-03-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v3] drm/xen-front: Add support for Xen PV display frontend

2018-03-22 Thread Daniel Vetter
On Wed, Mar 21, 2018 at 04:58:13PM +0200, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Add support for Xen para-virtualized frontend display driver. > Accompanying backend [1] is implemented as a user-space application > and its helper library [2], capable of running as a We

Re: [PATCH V2 1/2] mmc: sdhci-msm: Add support to store supported vdd-io voltages

2018-03-22 Thread Jeremy McNicoll
On 2018-03-19 5:32 AM, Vijay Viswanath wrote: On 3/7/2018 9:42 PM, Doug Anderson wrote: Hi, On Tue, Mar 6, 2018 at 11:13 PM, Vijay Viswanath wrote: Hi Dough, Jeremy, On 3/3/2018 4:38 AM, Jeremy McNicoll wrote: On 2018-03-02 10:23 AM, Doug Anderson wrote: Hi, On Sun, Feb 11, 2018 at 1

Re: [PATCH 08/10] drm/fourcc: Add definitions for Allwinner vendor and MB32 tiled format

2018-03-22 Thread Paul Kocialkowski
Hi, On Wed, 2018-03-21 at 16:47 +, Daniel Stone wrote: > Hi Paul, > > On 21 March 2018 at 15:29, Paul Kocialkowski > wrote: > > +/* > > + * Allwinner "MB32" tiled format > > + * > > + * This is the primary layout coming out of the VPU, where pixels > > are tiled > > + * 32x32. > > + */ > >

Re: [usb-next PATCH] usb: xhci: skip phys initialization of shared hcd

2018-03-22 Thread Chunfeng Yun
hi, On Wed, 2018-03-21 at 14:27 +0200, Roger Quadros wrote: > On 21/03/18 13:50, Chunfeng Yun wrote: > > Hi Roger, > > > > On Wed, 2018-03-21 at 11:05 +0200, Roger Quadros wrote: > >> Hi Chunfeng, > >> > >> On 21/03/18 08:12, Chunfeng Yun wrote: > >>> The phys has already been initialized when ad

Re: [patch] mm, thp: do not cause memcg oom for thp

2018-03-22 Thread Michal Hocko
On Wed 21-03-18 14:27:10, David Rientjes wrote: > On Wed, 21 Mar 2018, Michal Hocko wrote: > > > > That doesn't make sense, the allocation path needs to allocate contiguous > > > memory for the high order, the charging path just needs to charge a > > > number > > > of pages. Why would the allo

Re: [PATCH v2 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-03-22 Thread Christoph Hellwig
> +static int amba_dma_configure(struct device *dev) > +{ > + return dma_common_configure(dev); > +} So it turns out we only end with two callers of dma_common_configure after this series. Based ont hat I'm tempted with the suggestion from Robin to just have amba call platform_dma_configure,

Re: [PATCH v2 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-03-22 Thread h...@lst.de
> > +int dma_configure(struct device *dev) > > +{ > > + if (dev->bus->dma_configure) > > + return dev->bus->dma_configure(dev); > > What if dma_common_configure() is called in case "bus->dma_configure" is not > defined? Then we'd still have a dependency of common code on OF and ACPI.

Re: [PATCH 4.9 000/241] 4.9.89-stable review

2018-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 21, 2018 at 10:36:05AM -0700, Guenter Roeck wrote: > On Wed, Mar 21, 2018 at 02:20:05PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Mar 20, 2018 at 08:49:45AM +0100, Greg Kroah-Hartman wrote: > > > On Mon, Mar 19, 2018 at 07:04:25PM +0100, Greg Kroah-Hartman wrote: > > > > This is the

[PATCH v1] dma: imx-sdma: add virt-dma support

2018-03-22 Thread Robin Gong
The legacy sdma driver has below limitations or drawbacks: 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc one page size for one channel regardless of only few BDs needed most time. But in few cases, the max PAGE_SIZE maybe not enough. 2. One SDMA channel can't st

Re: [PATCH v3] Fix modifier keys for Redragon Asura Keyboard

2018-03-22 Thread Robert Munteanu
On Wed, 2018-03-21 at 17:51 +0100, Ondrej Zary wrote: > On Wednesday 21 March 2018 11:43:31 Robert Munteanu wrote: > > +#define USB_VENDOR_ID_MICRODIA 0x0c45 > > +#define USB_DEVICE_ID_REDRAGON_ASURA0x760b > > Microdia is most probably an incorrect name. The 0c45 id probably > belongs

Re: [PATCH 4.9 000/241] 4.9.89-stable review

2018-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 21, 2018 at 11:36:23PM +0530, Naresh Kamboju wrote: > On 21 March 2018 at 18:50, Greg Kroah-Hartman > wrote: > > On Tue, Mar 20, 2018 at 08:49:45AM +0100, Greg Kroah-Hartman wrote: > >> On Mon, Mar 19, 2018 at 07:04:25PM +0100, Greg Kroah-Hartman wrote: > >> > This is the start of the

Re: [PATCH 4.9 00/86] 4.9.88-stable review

2018-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 21, 2018 at 11:20:04PM +0530, Naresh Kamboju wrote: > On 21 March 2018 at 19:02, Greg Kroah-Hartman > wrote: > > On Tue, Mar 20, 2018 at 11:49:19PM +, Ben Hutchings wrote: > >> On Sun, 2018-03-18 at 11:27 +0100, Greg Kroah-Hartman wrote: > >> > On Sat, Mar 17, 2018 at 03:48:24PM +0

Re: [PATCH v2 2/2] drivers: remove force dma flag from buses

2018-03-22 Thread Christoph Hellwig
> --- a/drivers/dma/qcom/hidma_mgmt.c > +++ b/drivers/dma/qcom/hidma_mgmt.c > @@ -398,7 +398,7 @@ static int __init hidma_mgmt_of_populate_channels(struct > device_node *np) > } > of_node_get(child); > new_pdev->dev.of_node = child; > - of_dma_

Re: [PATCH 4.4 000/134] 4.4.123-stable review

2018-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 21, 2018 at 10:40:43AM -0700, Guenter Roeck wrote: > On Wed, Mar 21, 2018 at 02:18:43PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Mar 20, 2018 at 08:50:12AM +0100, Greg Kroah-Hartman wrote: > > > On Mon, Mar 19, 2018 at 07:04:43PM +0100, Greg Kroah-Hartman wrote: > > > > This is the

Re: linux-next: Tree for Mar 21 (usb/dwc3)

2018-03-22 Thread Felipe Balbi
Hi, Randy Dunlap writes: > On 03/21/2018 01:25 AM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20180320: >> > > > on i386: > > ERROR: "__tracepoint_dwc3_gadget_generic_cmd" [drivers/usb/dwc3/dwc3.ko] > undefined! > ERROR: "__tracepoint_dwc3_ep_queue" [drivers/usb/dwc3/dwc3.ko] unde

Re: [PATCH 3.18 00/68] 3.18.101-stable review

2018-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 21, 2018 at 10:47:11AM -0700, Guenter Roeck wrote: > On Wed, Mar 21, 2018 at 12:04:05PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Mar 19, 2018 at 07:05:38PM +0100, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 3.18.101 release. > > > There are 6

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Paul Kocialkowski
Hi Chen-Yu, On Thu, 2018-03-22 at 14:47 +0800, Chen-Yu Tsai wrote: > On Wed, Mar 21, 2018 at 11:28 PM, Paul Kocialkowski > wrote: > > It turns out that the frontend is not capable of preserving the > > alpha > > component (that is always set to 0xff), so only support XRGB > > instead. > > >

Re: [PATCH] memcg, thp: do not invoke oom killer on thp charges

2018-03-22 Thread David Rientjes
On Wed, 21 Mar 2018, Michal Hocko wrote: > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > > index d1a917b5b7b7..08accbcd1a18 100644 > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -1493,7 +1493,7 @@ static void memcg_oom_recover(struct mem_cgroup > > > *memcg) > > > > >

Re: [PATCH v3] Fix modifier keys for Redragon Asura Keyboard

2018-03-22 Thread Benjamin Tissoires
On Wed, Mar 21, 2018 at 5:33 PM, Robert Munteanu wrote: > Hi Benjamin, > > On Wed, 2018-03-21 at 17:12 +0100, Benjamin Tissoires wrote: >> Hi Robert, >> >> First, apologies for not answering to the RFC. I missed it and it >> fell >> down in my INBOX. >> >> On Wed, Mar 21, 2018 at 11:43 AM, Robert

Re: [PATCH v2] i2c: i2c-stm32f7: fix no check on returned setup

2018-03-22 Thread Alexandre Torgue
On 03/21/2018 05:48 PM, Pierre-Yves MORDRET wrote: Before assigning returned setup structure check if not null Fixes: 463a9215f3ca7600b5ff ("i2c: stm32f7: fix setup structure") Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fill

[PATCH] KVM: X86: Fix the decoding of segment overrides in 64bit mode

2018-03-22 Thread Wanpeng Li
From: Wanpeng Li Explicit segment overides other than %fs and %gs are documented as ignored by both Intel and AMD. In practice, this means that: * Explicit uses of %ss don't actually yield #SS[0] for non-canonical memory references. * Explicit uses of %{e,c,d}s don't override %rbp/%rsp-bas

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Chen-Yu Tsai
On Thu, Mar 22, 2018 at 4:23 PM, Paul Kocialkowski wrote: > Hi Chen-Yu, > > On Thu, 2018-03-22 at 14:47 +0800, Chen-Yu Tsai wrote: >> On Wed, Mar 21, 2018 at 11:28 PM, Paul Kocialkowski >> wrote: >> > It turns out that the frontend is not capable of preserving the >> > alpha >> > component (that

[usb-next, v2 PATCH] usb: xhci: skip phys initialization of shared hcd

2018-03-22 Thread Chunfeng Yun
The phys has already been initialized when add primary hcd, including usb2 phys and usb3 phys also if exist, so needn't re-parse "phys" property again. Signed-off-by: Chunfeng Yun --- drivers/usb/core/hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd.

linux-next: Tree for Mar 22

2018-03-22 Thread Stephen Rothwell
Hi all, Changes since 20180321: The vfs tree still had its build failure for which I reverted a commit. The rdma tree gained a conflict against the rdma-fixes tree. The net-next tree gained a conflict against the mac80211 tree. The drm-intel tree gained a conflict against Linus' tree. The sou

Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-22 Thread Juri Lelli
Hi Waiman, On 21/03/18 12:21, Waiman Long wrote: > The sched_load_balance flag is needed to enable CPU isolation similar > to what can be done with the "isolcpus" kernel boot parameter. > > The sched_load_balance flag implies an implicit !cpu_exclusive as > it doesn't make sense to have an isolat

Re: [PATCH 03/10] drm/sun4i: Don't pretend to handle ARGB8888 with the frontend

2018-03-22 Thread Paul Kocialkowski
Hi, On Thu, 2018-03-22 at 16:37 +0800, Chen-Yu Tsai wrote: > On Thu, Mar 22, 2018 at 4:23 PM, Paul Kocialkowski > wrote: > > Hi Chen-Yu, > > > > On Thu, 2018-03-22 at 14:47 +0800, Chen-Yu Tsai wrote: > > > On Wed, Mar 21, 2018 at 11:28 PM, Paul Kocialkowski > > > wrote: > > > > It turns out tha

Re: [PATCH] serial: samsung: macros with complex values should be enclosed in parentheses

2018-03-22 Thread Greg KH
On Thu, Mar 22, 2018 at 01:37:45PM +0900, y.k.oh wrote: > > > On 03/14/2018 10:58 PM, Greg KH wrote: > > On Wed, Mar 14, 2018 at 11:17:05AM +0900, YOUNGKEUN OH wrote: > >> Cleanup checkpatch error: > >> ERROR: Macros with complex values should be enclosed in parentheses > >> > >> Signed-off-by: Y

[PATCH v2 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-22 Thread Manu Gautam
QMP PHY for USB mode requires pipe_clk for calibration and PLL lock to take place. This lock is output from PHY to GCC clock_ctl and then fed back to QMP PHY and is output from PHY only after PHY is reset and initialized, hence it can't be enabled too early in initialization sequence. Signed-off-b

[PATCH v2 0/6] phy: qcom: Updates for USB PHYs on SDM845

2018-03-22 Thread Manu Gautam
SDM845 has two USB instances each with QUSB2 and QMP PHYs. One of the QMP PHY is USB-DP (DisplayPort) combo PHY where as other one is single lane UNI-PHY (without DP support). Changes are related to PHY configuration for electrical parameters tuning to improve eye-diagram and some fixes. Changes s

[PATCH v2 3/6] dt-bindings: phy-qcom-qmp: Update bindings for sdm845

2018-03-22 Thread Manu Gautam
Update compatible strings for USB3 PHYs on SDM845. One is QMPv3 DisplayPort-USB combo PHY and other one is USB UNI PHY which is single lane USB3 PHY without DP capability. Reviewed-by: Rob Herring Signed-off-by: Manu Gautam --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 4 +++- 1

[PATCH v2 6/6] phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845

2018-03-22 Thread Manu Gautam
There are two QUSB2 PHYs present on sdm845. Update PHY registers programming for both the PHYs related to electrical parameters to improve eye diagram. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 39 +++ 1 file changed, 39 insertions(+)

[PATCH v2 2/6] phy: qcom-qusb2: Fix crash if nvmem cell not specified

2018-03-22 Thread Manu Gautam
Driver currently crashes due to NULL pointer deference while updating PHY tune register if nvmem cell is NULL. Since, fused value for Tune1/2 register is optional, we'd rather bail out. Fixes: ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") Reviewed-by: Vivek Gautam Cc: s

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-22 Thread Jiri Olsa
On Thu, Mar 22, 2018 at 09:04:10AM +0800, Jin, Yao wrote: > > > On 3/21/2018 11:38 PM, Jiri Olsa wrote: > > On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: > > > Hi Jiri, > > > > > > I'm still thinking it's worth displaying the warning when perf missing > > > some > > > libraries. > >

[PATCH v2 4/6] phy: qcom-qmp: Add QMP V3 USB3 UNI PHY support for sdm845

2018-03-22 Thread Manu Gautam
QMP V3 UNI PHY is a single lane USB3 PHY without support for DisplayPort (DP). Main difference from DP combo QMPv3 PHY is that UNI PHY doesn't have dual RX/TX lanes and no separate DP_COM block for configuration related to type-c or DP. While at it, fix has_pwrdn_delay attribute for USB-DP PHY conf

Re: [PATCH] memcg, thp: do not invoke oom killer on thp charges

2018-03-22 Thread Michal Hocko
On Thu 22-03-18 01:26:13, David Rientjes wrote: > On Wed, 21 Mar 2018, Michal Hocko wrote: > > > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > > > index d1a917b5b7b7..08accbcd1a18 100644 > > > > --- a/mm/memcontrol.c > > > > +++ b/mm/memcontrol.c > > > > @@ -1493,7 +1493,7 @@ static void

[PATCH v2 5/6] dt-bindings: phy-qcom-usb2: Update bindings for sdm845

2018-03-22 Thread Manu Gautam
Update compatible strings for USB2 PHYs on sdm845. There are two QUSB2 PHYs present on sdm845. Few PHY registers programming is different for these PHYs related to electrical parameters, otherwise both are same. Signed-off-by: Manu Gautam --- Documentation/devicetree/bindings/phy/qcom-qusb2-phy.

Re: [usb-next, v2 PATCH] usb: xhci: skip phys initialization of shared hcd

2018-03-22 Thread Greg Kroah-Hartman
On Thu, Mar 22, 2018 at 04:39:20PM +0800, Chunfeng Yun wrote: > The phys has already been initialized when add primary hcd, > including usb2 phys and usb3 phys also if exist, so needn't > re-parse "phys" property again. > > Signed-off-by: Chunfeng Yun > --- > drivers/usb/core/hcd.c | 2 +- > 1 f

[PATCH 24/45] kexec: call do_kexec_load() in compat syscall directly

2018-03-22 Thread Dominik Brodowski
do_kexec_load() can be called directly by compat_sys_kexec() as long as the same parameters checks are completed which are currently handled (also) by sys_kexec(). Therefore, move those to kexec_load_check(), call that newly introduced helper function from both sys_kexec() and compat_sys_kexec(), a

[PATCH 17/45] fanotify: add do_fanotify_mark() helper; remove in-kernel call to syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_fanotify_mark() helper allows us to get rid of the fs-internal call to the sys_fanotify_mark() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Jan Kara Cc: Amir Golds

[PATCH 12/45] fs: add do_compat_fcntl64() helper; remove in-kernel call to comapt syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_compat_fcntl64() helper allows us to get rid of the fs-internal call to the compat_sys_fcntl64() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andrew Mo

[PATCH 23/45] sched: add do_sched_yield() helper; remove in-kernel call to sched_yield()

2018-03-22 Thread Dominik Brodowski
Using the sched-internal do_sched_yield() helper allows us to get rid of the sched-internal call to the sys_sched_yield() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Ingo Molnar Cc: Peter

[PATCH 04/45] fs: add ksys_read() helper; remove in-kernel calls to sys_read()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_read() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_read(). This patch is part of a series which tries to remove

[PATCH 16/45] inotify: add do_inotify_init() helper; remove in-kernel call to syscall

2018-03-22 Thread Dominik Brodowski
Using the inotify-internal do_inotify_init() helper allows us to get rid of the in-kernel call to sys_inotify_init1() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Jan Kara Cc: Amir Goldste

[PATCH 31/45] ipc: add semget syscall wrapper

2018-03-22 Thread Dominik Brodowski
Provide ksys_semget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_semget(). This patch is part of a series which tries to remove in-kernel

[PATCH 03/45] fs: add ksys_lseek() helper; remove in-kernel calls to sys_lseek()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_lseek() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_lseek(). This patch is part of a series which tries to remov

[PATCH 11/45] fs: add ksys_fallocate() wrapper; remove in-kernel calls to sys_fallocate()

2018-03-22 Thread Dominik Brodowski
Using the ksys_fallocate() wrapper allows us to get rid of in-kernel calls to the sys_fallocate() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_fallocate(). This patch is part of a s

Linux 4.9.89

2018-03-22 Thread Greg KH
I'm announcing the release of the 4.9.89 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

[PATCH 19/45] fs/quota: use COMPAT_SYSCALL_DEFINE for sys32_quotactl()

2018-03-22 Thread Dominik Brodowski
While sys32_quotactl() is only needed on x86, it can use the recommended COMPAT_SYSCALL_DEFINEx() machinery for its setup. Cc: Jan Kara Cc: Christoph Hellwig Signed-off-by: Dominik Brodowski --- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- fs/quota/compat.c | 5 +++-- in

[PATCH 21/45] kernel: add ksys_setsid() helper; remove in-kernel call to sys_setsid()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the sys_setsid() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_setsid(). This patch is part of a series which tries to remo

[PATCH 29/45] mm: add ksys_readahead() helper; remove in-kernel calls to sys_readahead()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_readahead() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_readahead(). This patch is part of a series which tries

[PATCH 02/45] fs: add ksys_ioctl() helper; remove in-kernel calls to sys_ioctl()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_ioctl() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_ioctl(). After careful review, at least some of these calls

Re: [PATCH v1 2/4] platform/x86: mlx-platform: Add differed bus functionality

2018-03-22 Thread Greg KH
On Wed, Mar 21, 2018 at 03:58:18PM -0700, Darren Hart wrote: > On Tue, Feb 13, 2018 at 10:09:34PM +, Vadim Pasternak wrote: > > Add deferred bus functionality in order to enforce probing flow execution > > order. Driver mlx-platform activates platform driver i2c-mux-reg, which > > creates busse

Re: [PATCH] serial: samsung: macros with complex values should be enclosed in parentheses

2018-03-22 Thread YOUNGKEUN OH
On 03/22/2018 05:45 PM, Greg KH wrote: > On Thu, Mar 22, 2018 at 01:37:45PM +0900, y.k.oh wrote: >> >> >> On 03/14/2018 10:58 PM, Greg KH wrote: >>> On Wed, Mar 14, 2018 at 11:17:05AM +0900, YOUNGKEUN OH wrote: Cleanup checkpatch error: ERROR: Macros with complex values should be enclos

[PATCH 25/45] mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.c

2018-03-22 Thread Dominik Brodowski
Move compat_sys_migrate_pages() to mm/mempolicy.c and make it call a newly introduced helper -- kernel_migrate_pages() -- instead of the syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro

[PATCH 15/45] fs: add do_compat_futimesat() helper; remove in-kernel call to comapt syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_compat_futimesat() helper allows us to get rid of the fs-internal call to the compat_sys_futimesat() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andre

[PATCH 39/45] ipc: add msgsnd syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_msgsnd() and compat_ksys_msgsnd() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgsnd() and compat_sys_msgsnd(). This p

[PATCH 28/45] mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscalls

2018-03-22 Thread Dominik Brodowski
Using the mm-internal kernel_[sg]et_mempolicy() helper allows us to get rid of the mm-internal calls to the sys_[sg]et_mempolicy() syscalls. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc:

[PATCH 43/45] x86/sigreturn: use SYSCALL_DEFINE0

2018-03-22 Thread Dominik Brodowski
From: "Tautschnig, Michael" All definitions of syscalls in x86 except for those patched here have already been using the appropriate SYSCALL_DEFINE*. Signed-off-by: Michael Tautschnig Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Jaswinder Singh Cc: Andi Kleen Cc: x...@kernel.

[PATCH 32/45] ipc: add semctl syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_semctl() and compat_ksys_semctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_semctl() and compat_sys_semctl(). This p

[PATCH 40/45] x86: use _do_fork() in compat_sys_x86_clone()

2018-03-22 Thread Dominik Brodowski
It is trivial to directly call _do_fork() instead of the sys_clone() syscall in compat_sys_x86_clone(). This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Ingo Molnar Cc: Jiri Slaby Cc: x...@kernel.org

[PATCH 35/45] ipc: add shmdt syscall wrapper

2018-03-22 Thread Dominik Brodowski
Provide ksys_shmdt() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_shmdt(). This patch is part of a series which tries to remove in-kernel ca

[PATCH 14/45] fs: add do_compat_signalfd4() helper; remove in-kernel call to comapt syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_compat_signalfd4() helper allows us to get rid of the fs-internal call to the compat_sys_signalfd4() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andre

Linux 4.4.123

2018-03-22 Thread Greg KH
I'm announcing the release of the 4.4.123 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

[PATCH 30/45] ipc: add semtimedop syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_semtimedop() and compat_ksys_semtimedop() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_semtimedop() and compat_sys_semti

[PATCH 10/45] fs: add ksys_p{read,write}64() helpers; remove in-kernel calls to syscalls

2018-03-22 Thread Dominik Brodowski
Using the ksys_p{read,write}64() wrappers allows us to get rid of in-kernel calls to the sys_pread64() and sys_pwrite64() syscalls. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_p{read,write}6

[PATCH 08/45] fs: add kern_select() helper; remove in-kernel call to sys_select()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the sys_umount() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andrew Morton Signed-off-by: Dominik Brodowski --- f

Re: Linux 4.4.123

2018-03-22 Thread Greg KH
diff --git a/Makefile b/Makefile index 3eb21d269b42..cbcc04da790a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 122 +SUBLEVEL = 123 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm/boot/dts/am335x-pepper.dts b/arch/arm/boot/dts/am335x

Linux 3.18.101

2018-03-22 Thread Greg KH
I'm announcing the release of the 3.18.101 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser

Re: Linux 3.18.101

2018-03-22 Thread Greg KH
diff --git a/Makefile b/Makefile index 6544b6ed9d46..2f0766df5e07 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 100 +SUBLEVEL = 101 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm/boot/dts/am335x-pepper.dts b/arch/arm/boot/dts/am335x-p

[PATCH 38/45] ipc: add msgrcv syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_msgrcv() and compat_ksys_msgrcv() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgrcv() and compat_sys_msgrcv(). This p

[PATCH 37/45] ipc: add msgctl syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_msgctl() and compat_ksys_msgctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgctl() and compat_sys_msgctl(). This p

[PATCH 44/45] kernel/sys_ni: sort cond_syscall() entries

2018-03-22 Thread Dominik Brodowski
Shuffle the cond_syscall() entries in kernel/sys_ni.c around so that they are kept in the same order as in include/uapi/asm-generic/unistd.h. For better structuring, add the same comments as in that file, but keep a few additional comments and extend the commentary where it seems useful. Signed-of

[PATCH 34/45] ipc: add shmget syscall wrapper

2018-03-22 Thread Dominik Brodowski
Provide ksys_shmget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_shmget(). This patch is part of a series which tries to remove in-kernel

RE: [PATCH v5 0/7] vfio/type1: Add support for valid iova list management

2018-03-22 Thread Tian, Kevin
> From: Alex Williamson > Sent: Thursday, March 22, 2018 1:11 AM > > On Wed, 21 Mar 2018 03:28:16 + > "Tian, Kevin" wrote: > > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Wednesday, March 21, 2018 6:55 AM > > > > > > On Mon, 19 Mar 2018 08:28:32 + > > > "Tia

Re: [RFC PATCH 1/8] mm: mmap: unmap large mapping by section

2018-03-22 Thread Michal Hocko
On Wed 21-03-18 15:36:12, Yang Shi wrote: > > > On 3/21/18 2:23 PM, Michal Hocko wrote: > > On Wed 21-03-18 10:16:41, Yang Shi wrote: > > > > > > On 3/21/18 9:50 AM, Yang Shi wrote: > > > > > > > > On 3/21/18 6:14 AM, Michal Hocko wrote: > > > > > On Wed 21-03-18 05:31:19, Yang Shi wrote: > > >

Re: [PATCH v2] Documentation/CodingStyle: Add an example for braces

2018-03-22 Thread Jani Nikula
On Wed, 21 Mar 2018, Jonathan Corbet wrote: > To head that off, I think I'll apply your first version instead, sorry > Jani. No worries. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center

[PATCH 01/45] fs: add ksys_getdents64() helper; remove in-kernel calls to sys_getdents64()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_getdents64() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_getdents64(). This patch is part of a series which trie

[PATCH 00/45] remove in-kernel syscall invocations (part 3 == remainder outside arch/)

2018-03-22 Thread Dominik Brodowski
Here is a third series of patches which reduce the number of syscall invocations from within the kernel. Once this long-term goal is achieved, the syscall entry path can be streamlined. This series builds on top of - part1 (random bits and pieces) http://lkml.kernel.org/r/20180315190529.20943-

[PATCH 20/45] kernel: add do_compat_sigaltstack() helper; remove in-kernel call to compat syscall

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the compat_sys_sigaltstack() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: "Eric W. Biederman" Cc: Al Viro Cc: Andrew Morton Sig

[PATCH 27/45] mm: add kernel_mbind() helper; remove in-kernel call to syscall

2018-03-22 Thread Dominik Brodowski
Using the mm-internal kernel_mbind() helper allows us to get rid of the mm-internal call to the sys_mbind() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: linux...@kvack.org Cc:

[PATCH 22/45] kernel: provide ksys_*() wrappers for syscalls called by kernel/uid16.c

2018-03-22 Thread Dominik Brodowski
Using these helpers allows us to avoid the in-kernel calls to these syscalls: sys_setregid(), sys_setgid(), sys_setreuid(), sys_setuid(), sys_setresuid(), sys_setresgid(), sys_setfsuid(), and sys_setfsgid(). The ksys_ prefix denotes that these function are meant as a drop-in replacement for the sy

[PATCH 07/45] fs: add do_vmsplice() helper; remove in-kernel call to syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_vmsplice() helper allows us to get rid of the fs-internal call to the sys_vmsplice() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andrew Morton Signed

[PATCH 41/45] x86: remove compat_sys_x86_waitpid()

2018-03-22 Thread Dominik Brodowski
compat_sys_x86_waitpid() is not needed, as it takes the same parameters (int, *int, int) as the native syscall. Suggested-by: Al Viro Cc: Ingo Molnar Cc: Jiri Slaby Cc: x...@kernel.org Signed-off-by: Dominik Brodowski --- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- arch/x86/ia32/sys_ia32.c

[PATCH 36/45] ipc: add shmctl syscall/compat_syscall wrappers

2018-03-22 Thread Dominik Brodowski
Provide ksys_shmctl() and compat_ksys_shmctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_shmctl() and compat_sys_shmctl(). This p

[PATCH 26/45] mm: add kernel_move_pages() helper, move compat syscall to mm/migrate.c

2018-03-22 Thread Dominik Brodowski
Move compat_sys_move_pages() to mm/migrate.c and make it call a newly introduced helper -- kernel_move_pages() -- instead of the syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: li

[PATCH 05/45] fs: add ksys_sync() helper; remove in-kernel calls to sys_sync()

2018-03-22 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_sync() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_sync(). This patch is part of a series which tries to remove

[PATCH 13/45] fs: add do_compat_select() helper; remove in-kernel call to comapt syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_compat_select() helper allows us to get rid of the fs-internal call to the compat_sys_select() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andrew Mort

[PATCH 06/45] fs: add do_lookup_dcookie() helper; remove in-kernel call to syscall

2018-03-22 Thread Dominik Brodowski
Using the fs-internal do_lookup_dcookie() helper allows us to get rid of fs-internal calls to the sys_lookup_dcookie() syscall. This patch is part of a series which tries to remove in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. Cc: Al Viro Cc: Andrew Morto

[PATCH 42/45] x86: fix sys_sigreturn() return type to be long, not unsigned long

2018-03-22 Thread Dominik Brodowski
Same as with other system calls, sys_sigreturn() should return a value of type long, not unsigned long. This also matches the behaviour for IA32_EMULATION, see sys32_sigreturn() in arch/x86/ia32/ia32_signal.c . Cc: Andi Kleen Cc: Ingo Molnar Cc: Jiri Slaby Cc: x...@kernel.org Cc: Michael Tautsc

[PATCH 33/45] ipc: add msgget syscall wrapper

2018-03-22 Thread Dominik Brodowski
Provide ksys_msgget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_msgget(). This patch is part of a series which tries to remove in-kernel

[PATCH 45/45] bpf: whitelist all syscalls for error injection

2018-03-22 Thread Dominik Brodowski
From: Howard McLauchlan Error injection is a useful mechanism to fail arbitrary kernel functions. However, it is often hard to guarantee an error propagates appropriately to user space programs. By injecting into syscalls, we can return arbitrary values to user space directly; this increases flex

[PATCH 09/45] fs: add ksys_truncate() wrapper; remove in-kernel calls to sys_truncate()

2018-03-22 Thread Dominik Brodowski
Using the ksys_truncate() wrapper allows us to get rid of in-kernel calls to the sys_truncate() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_truncate(). This patch is part of a seri

  1   2   3   4   5   6   7   8   9   >