Re: [PATCH v2] arm64: dts: qcom: apq8016-sbc-d3: Add Qualcomm APQ8016 SBC + D3Camera mezzanine

2020-05-15 Thread Robert Foss
On Fri, 15 May 2020 at 11:08, Robert Foss wrote: > > Add device treee support for the Qualcomm APQ8016 SBC, otherwise known as > the Dragonboard 410c with the D3Camera mezzanine expansion board. > > The D3Camera mezzanine ships in a kit with a OmniVision 5640 sensor module, > which is what this DT

Re: [PATCH v3 2/4] serial: 8250: Add 8250 port clock update method

2020-05-15 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 02:31:33AM +0300, Serge Semin wrote: > Some platforms can be designed in a way so the UART port reference clock > might be asynchronously changed at some point. In Baikal-T1 SoC this may > happen due to the reference clock being shared between two UART ports, on > the Allwin

Horrors, Anguish and Frustrations of Forming Business Partnership with Mr. X

2020-05-15 Thread Turritopsis Dohrnii Teo En Ming
Link to reading resource: http://lists.linuxfromscratch.org/pipermail/lfs-chat/2020-May/029121.html -BEGIN EMAIL SIGNATURE- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link: https://www.ny

Re: [PATCH v3 2/7] firmware: smccc: Update link to latest SMCCC specification

2020-05-15 Thread Sudeep Holla
On Fri, May 15, 2020 at 12:37:44PM +0100, Mark Rutland wrote: > On Wed, May 06, 2020 at 05:44:06PM +0100, Sudeep Holla wrote: > > The current link gets redirected to the revision B published in November > > 2016 though it actually points to the original revision A published in > > June 2013. > > >

Re: [PATCH 1/3] serdev: ttyport: add devt for tty port

2020-05-15 Thread Greg KH
On Wed, May 06, 2020 at 03:23:12PM +0800, Claire Chang wrote: > serial_match_port() uses devt to match devices. However, when serdev > registers a tty port, devt has never been set. This makes > device_find_child() always return NULL. > > Assign devt in serdev_tty_port_register() to fix this. > >

[PATCH 1/2] rbtree_latch: quit searching when reaching to maximum depth

2020-05-15 Thread Lai Jiangshan
lib/rbtree.c has ensured that there is not possible to inadvertently cause (temporary) loops in the tree structure as seen in program order of the modifier. But loop is still possible to be seen in searcher due to CPU's reordering. for example: modifiersearcher lef

[PATCH 2/2] rbtree_latch: don't need to check seq when it found a node

2020-05-15 Thread Lai Jiangshan
latch_tree_find() should be protected by caller via RCU or so. When it find a node in an attempt, the node must be a valid one. Cc: Peter Zijlstra Cc: Paul E. McKenney Cc: Oleg Nesterov Cc: Michel Lespinasse Cc: Andrea Arcangeli Cc: David Woodhouse Cc: Rik van Riel Cc: Mathieu Desnoyers Si

Re: [PATCH v3 7/7] firmware: smccc: Add ARCH_SOC_ID support

2020-05-15 Thread Mark Rutland
On Wed, May 06, 2020 at 05:44:11PM +0100, Sudeep Holla wrote: > SMCCC v1.2 adds a new optional function SMCCC_ARCH_SOC_ID to obtain a > SiP defined SoC identification value. Add support for the same. > > Also using the SoC bus infrastructure, let us expose the platform > specific SoC atrributes un

Re: [PATCH] Backport security fixe to 4.9 and 4.4 stable trees

2020-05-15 Thread Siddharth Chandrasekaran
Please ignore this patch set, I accidentally added another patch I was working on. Will send v2 with the right patches. Thanks! -- Sid.

[PATCH] Staging: rtl8723bs: os_de: if-else coding style issues

2020-05-15 Thread John Oldman
Coding style issues: This patch clears the checkpatch.pl "braces {} are not necessary for single statement blocks" and "else_should_follow_close_brace" warnings." Signed-off-by: John Oldman --- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 49 +++-- 1 file changed, 17 insertions(

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-15 Thread Peter Zijlstra
On Fri, May 15, 2020 at 01:22:31PM +0100, Mel Gorman wrote: > On Fri, May 15, 2020 at 01:28:15PM +0200, Peter Zijlstra wrote: > > > + if (val & _TIF_POLLING_NRFLAG) > > > + goto activate; > > > > I'm completely confused... the result here is that if you're

Re: [PATCH v3 5/7] firmware: smccc: Refactor SMCCC specific bits into separate file

2020-05-15 Thread Sudeep Holla
On Fri, May 15, 2020 at 12:49:53PM +0100, Mark Rutland wrote: > On Wed, May 06, 2020 at 05:44:09PM +0100, Sudeep Holla wrote: > > In order to add newer SMCCC v1.1+ functionality and to avoid cluttering > > PSCI firmware driver with SMCCC bits, let us move the SMCCC specific > > details under driver

[PATCH v2] Backport xfs security fix to 4.9 and 4.4 stable trees

2020-05-15 Thread Siddharth Chandrasekaran
Hello, Lack of proper validation that cached inodes are free during allocation can, cause a crash in fs/xfs/xfs_icache.c (refer: CVE-2018-13093). To address this issue, I'm backporting upstream commit [1] to 4.4 and 4.9 stable trees (a backport of [1] to 4.14 already exists). Also, commit [1] ref

[PATCH 4.9 v2] xfs: validate cached inodes are free when allocated

2020-05-15 Thread Siddharth Chandrasekaran
From: Dave Chinner commit afca6c5b2595fc44383919fba740c194b0b76aff upstream. A recent fuzzed filesystem image cached random dcache corruption when the reproducer was run. This often showed up as panics in lookup_slow() on a null inode->i_ops pointer when doing pathwalks. BUG: unable to handle k

[PATCH 4.4 v2] xfs: validate cached inodes are free when allocated

2020-05-15 Thread Siddharth Chandrasekaran
From: Dave Chinner commit afca6c5b2595fc44383919fba740c194b0b76aff upstream. A recent fuzzed filesystem image cached random dcache corruption when the reproducer was run. This often showed up as panics in lookup_slow() on a null inode->i_ops pointer when doing pathwalks. BUG: unable to handle k

Re: [PATCH 01/11] tty/sysrq: alpha: export and use __sysrq_get_key_op()

2020-05-15 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 10:43:41PM +0100, Emil Velikov wrote: > Export a pointer to the sysrq_get_key_op(). This way we can cleanly > unregister it, instead of the current solutions of modifuing it inplace. > > Since __sysrq_get_key_op() is no longer used externally, let's make it > a static funct

Re: [PATCH] Backport security fixe to 4.9 and 4.4 stable trees

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 06:19:45PM +0530, Siddharth Chandrasekaran wrote: > Please ignore this patch set, I accidentally added another patch I was > working on. Will send v2 with the right patches. What patch set? I see nothing in this email, so I have no idea what you are referring to :( greg k

Re: [PATCH v3 10/15] net: ethernet: mtk-eth-mac: new driver

2020-05-15 Thread Bartosz Golaszewski
pt., 15 maj 2020 o 14:04 Arnd Bergmann napisał(a): > > On Fri, May 15, 2020 at 9:11 AM Bartosz Golaszewski wrote: > > > > czw., 14 maj 2020 o 18:19 Arnd Bergmann napisał(a): > > > > > > On Thu, May 14, 2020 at 10:00 AM Bartosz Golaszewski > > > wrote: > > > > +static unsigned int mtk_mac_intr_

Re: [PATCH v3 6/7] firmware: smccc: Add function to fetch SMCCC version

2020-05-15 Thread Sudeep Holla
On Fri, May 15, 2020 at 01:08:11PM +0100, Mark Rutland wrote: > On Wed, May 06, 2020 at 05:44:10PM +0100, Sudeep Holla wrote: > > For backward compatibility reasons, PSCI maintains SMCCC version as > > SMCCC didn't provide ARM_SMCCC_VERSION_FUNC_ID until v1.1 > > > > Let us provide accessors to fe

Re: [PATCH 2/3] mm/util.c: make vm_memory_committed() more accurate

2020-05-15 Thread Feng Tang
On Fri, May 15, 2020 at 05:04:40PM +0800, Michal Hocko wrote: > On Fri 15-05-20 16:11:09, Feng Tang wrote: > > On Fri, May 15, 2020 at 03:23:07PM +0800, Michal Hocko wrote: > > > On Fri 08-05-20 15:25:16, Feng Tang wrote: > > > > percpu_counter_sum_positive() will provide more accurate info. > > >

Re: [PATCH 1/2] rbtree_latch: quit searching when reaching to maximum depth

2020-05-15 Thread Peter Zijlstra
On Fri, May 15, 2020 at 12:47:06PM +, Lai Jiangshan wrote: > lib/rbtree.c has ensured that there is not possible to > inadvertently cause (temporary) loops in the tree structure > as seen in program order of the modifier. But loop is still > possible to be seen in searcher due to CPU's reorderi

Re: [PATCH v6 1/8] usb: Add MA-USB Host kernel module

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 02:34:55PM +0200, Vladimir Stankovic wrote: > --- /dev/null > +++ b/drivers/usb/host/mausb/Kconfig > @@ -0,0 +1,15 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# > +# Kernel configuration file for MA-USB Host driver. > +# > +# Copyright (c) 2019 - 2020 DisplayLink (UK) Ltd. >

Re: [PATCH v6 1/8] usb: Add MA-USB Host kernel module

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 02:34:55PM +0200, Vladimir Stankovic wrote: > Added utility macros, kernel device creation and cleanup, functions for > handling log formatting and a placeholder module for MA-USB Host device > driver. > > Signed-off-by: Vladimir Stankovic > --- > MAINTAINERS

Re: [PATCH v2 08/19] spi: dw: Discard dma_width member of the dw_spi structure

2020-05-15 Thread Andy Shevchenko
On Fri, May 15, 2020 at 01:47:47PM +0300, Serge Semin wrote: > This member has exactly the same value as n_bytes of the DW SPI private > data object, it's calculated at the same point of the transfer method, > n_bytes isn't changed during the whole transfer, and they even serve for > the same purpo

Re: [PATCH v2 0/7] mm: Get rid of vmalloc_sync_(un)mappings()

2020-05-15 Thread Joerg Roedel
On Wed, May 13, 2020 at 09:01:04AM -0700, Andy Lutomirski wrote: > I would love to see a followup patch that preallocates the vmalloc > region on 64-bit and compiles out pgd_list and all of the associated > gunk. Looked a bit into this, with pre-allocation and a few more changes all but one users

Re: [PATCH v6 3/8] usb: mausb_host: HCD initialization

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 02:34:57PM +0200, Vladimir Stankovic wrote: > Implemented HCD initialization/deinitialization functionality. Shortest changelog ever :( Please describe things better. thanks, greg k-h

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-15 Thread Mel Gorman
On Fri, May 15, 2020 at 01:17:32PM +0200, Peter Zijlstra wrote: > On Fri, May 15, 2020 at 09:47:40AM +0100, Mel Gorman wrote: > > > However, the wakeups are so rapid that the wakeup > > happens while the server is descheduling. That forces the waker to spin > > on smp_cond_load_acquire for longer.

Re: Setting mount propagation type in new mount API

2020-05-15 Thread Miklos Szeredi
On Fri, May 15, 2020 at 1:40 PM Michael Kerrisk (man-pages) wrote: > > Hello David, Miklos, > > I've been looking at the new mount API (fsopen(), fsconfig(), > fsmount(), move_mount(), etc.) and among the details that remain > mysterious to me is this: how does one set the propagation type > (priv

Re: [External] Re: [PATCH v5 0/8] Add MA USB Host driver

2020-05-15 Thread Vladimir Stankovic
On 30.4.20. 22:02, Greg KH wrote: > On Thu, Apr 30, 2020 at 06:51:10PM +0200, Vladimir Stankovic wrote: >> On 28.4.20. 13:04, Greg KH wrote: >>> On Sat, Apr 25, 2020 at 11:19:46AM +0200, >>> vladimir.stanko...@displaylink.com wrote: Media Agnostic (MA) USB Host driver provides USB connectivit

Re: [PATCH 2/2] rbtree_latch: don't need to check seq when it found a node

2020-05-15 Thread Peter Zijlstra
On Fri, May 15, 2020 at 12:47:07PM +, Lai Jiangshan wrote: > latch_tree_find() should be protected by caller via RCU or so. > When it find a node in an attempt, the node must be a valid one. > > Cc: Peter Zijlstra > Cc: Paul E. McKenney > Cc: Oleg Nesterov > Cc: Michel Lespinasse > Cc: And

Re: [PATCH v6 3/8] usb: mausb_host: HCD initialization

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 02:34:57PM +0200, Vladimir Stankovic wrote: > --- /dev/null > +++ b/drivers/usb/host/mausb/hcd.c > @@ -0,0 +1,120 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2019 - 2020 DisplayLink (UK) Ltd. > + */ > +#include "hcd.h" > + > +#include "utils.h" > + >

[PATCH] tty: serial: fsl_lpuart: Use __maybe_unused instead of #if CONFIG_PM_SLEEP

2020-05-15 Thread Anson Huang
Use __maybe_unused for power management related functions to simplify the code. Signed-off-by: Anson Huang --- drivers/tty/serial/fsl_lpuart.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 6a9909e

Re: [PATCH v6 0/8] Add MA USB Host driver

2020-05-15 Thread Greg KH
On Fri, May 15, 2020 at 02:34:54PM +0200, Vladimir Stankovic wrote: > Media Agnostic (MA) USB Host driver provides USB connectivity over an > available network, allowing host device to access remote USB devices > attached to one or more MA USB devices (accessible via network). > > This driver has

Re: Documentation/trace/events.rst: wrong numbering of sections

2020-05-15 Thread Steven Rostedt
It's best to Cc the maintainers of the file. Nobody reads linux-kernel (it produces 800 emails a day!). Luckily, I happen to monitor the linux-trace-devel list (which is mostly for userland tools), otherwise this email would have been lost to the LKML abyss. On Fri, 15 May 2020 15:43:43 +0800 "L

Re: [PATCH v3 10/15] net: ethernet: mtk-eth-mac: new driver

2020-05-15 Thread Arnd Bergmann
On Fri, May 15, 2020 at 2:56 PM Bartosz Golaszewski wrote: > pt., 15 maj 2020 o 14:04 Arnd Bergmann napisał(a): > > On Fri, May 15, 2020 at 9:11 AM Bartosz Golaszewski wrote: > > > > > > > > It looks like most of the stuff inside of the loop can be pulled out > > > > and only done once here. >

Re: [patch V4 part 1 14/36] x86/entry: Get rid of ist_begin/end_non_atomic()

2020-05-15 Thread Mathieu Desnoyers
- On May 15, 2020, at 5:34 AM, Thomas Gleixner t...@linutronix.de wrote: [...] > > Can you please trim your replies? Sorry, will do, Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com

[RFC PATCH 4/6] drm/bridge/nwl-dsi: Drop mux handling

2020-05-15 Thread Guido Günther
This will be handled via the mux-input-bridge. Signed-off-by: Guido Günther --- drivers/gpu/drm/bridge/Kconfig | 1 - drivers/gpu/drm/bridge/nwl-dsi.c | 61 2 files changed, 62 deletions(-) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/

[RFC PATCH 5/6] arm64: dts: imx8mq: Add NWL dsi controller

2020-05-15 Thread Guido Günther
Add a node for the Northwestlogic MIPI DSI IP core, "disabled" by default. Signed-off-by: Guido Günther --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/free

[RFC PATCH 3/6] dt-bindings: display/bridge/nwl-dsi: Drop mux handling

2020-05-15 Thread Guido Günther
No need to encode the SoC specifics in the bridge driver. For the imx8mq we can use the mux-input-bridge. Signed-off-by: Guido Günther --- .../devicetree/bindings/display/bridge/nwl-dsi.yaml | 6 -- 1 file changed, 6 deletions(-) diff --git a/Documentation/devicetree/bindings/displa

[RFC PATCH 1/6] dt-bindings: display/bridge: Add binding for input mux bridge

2020-05-15 Thread Guido Günther
The bridge allows to select the input source via a mux controller. Signed-off-by: Guido Günther --- .../display/bridge/mux-input-bridge.yaml | 123 ++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/mux-input-bridge.yam

[RFC PATCH 6/6] arm64: dts: imx8mq-librem5-devkit: Enable MIPI DSI panel

2020-05-15 Thread Guido Günther
Enable MIPI LCD panel output by adding nodes for the NWL DSI host controller, the mux-input-bridge, the Rocktech panel and the eLCDIF display controller. Signed-off-by: Guido Günther --- .../dts/freescale/imx8mq-librem5-devkit.dts | 81 +++ 1 file changed, 81 insertions(+) dif

[RFC PATCH 0/6] drm/bridge: Add mux input selection bridge

2020-05-15 Thread Guido Günther
This bridge driver allows to select the input to a downstream bridge (or panel) via device tree. It can be useful to separate the pixel source selection from the actual bridge processing the pixel data. E.g. NXP's imx8mq has two display controllers. Both can feed the pixel data to the NWL DSI IP c

[RFC PATCH 2/6] drm/bridge: Add mux-input bridge

2020-05-15 Thread Guido Günther
This bridge allows to select the input source via a mux controller. The input source is determined via DT but it could become rutime selectable in the future. Signed-off-by: Guido Günther --- drivers/gpu/drm/bridge/Kconfig | 9 ++ drivers/gpu/drm/bridge/Makefile| 1 + drivers/gpu/drm

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-15 Thread Peter Zijlstra
On Fri, May 15, 2020 at 02:03:46PM +0100, Mel Gorman wrote: > On Fri, May 15, 2020 at 01:17:32PM +0200, Peter Zijlstra wrote: > > On Fri, May 15, 2020 at 09:47:40AM +0100, Mel Gorman wrote: > > +static bool ttwu_queue_remote(struct task_struct *p, int cpu, int > > wake_flags) > > +{ > > + if (sc

Re: [PATCH v3 10/15] net: ethernet: mtk-eth-mac: new driver

2020-05-15 Thread Andrew Lunn
On Fri, May 15, 2020 at 09:11:14AM +0200, Bartosz Golaszewski wrote: > czw., 14 maj 2020 o 18:19 Arnd Bergmann napisał(a): > > > > On Thu, May 14, 2020 at 10:00 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > This adds the driver for the MediaTek Ethernet MAC used

Re: [PATCH] ftrace: show debugging information when panic_on_warn set

2020-05-15 Thread Steven Rostedt
On Fri, 15 May 2020 10:08:28 + Cheng Jian wrote: > When an anomaly is detected in the function call modification > code, ftrace_bug() is called to disable function tracing as well > as give some warn and information that may help debug the problem. > > But currently, we call FTRACE_WARN_ON_O

Re: [PATCH 1/2] rbtree_latch: quit searching when reaching to maximum depth

2020-05-15 Thread Mathieu Desnoyers
- On May 15, 2020, at 8:47 AM, Lai Jiangshan la...@linux.alibaba.com wrote: [...] > So the serarch should stop when diving down up to > 2*BITS_PER_LONG depth. serarch -> search Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com

RE: [PATCH v2 4/5] PCI: uniphier: Add iATU register support

2020-05-15 Thread Gustavo Pimentel
Hi Kunihiko, On Fri, May 15, 2020 at 10:59:2, Kunihiko Hayashi wrote: > This gets iATU register area from reg property. In Synopsis DWC version s/Synopsis/Synopsys in all patches > 4.80 or later, since iATU register area is separated from core register > area, this area is necessary to get fr

[PATCH v4 00/36] Large pages in the page cache

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This patch set does not pass xfstests. Test at your own risk. It is based on the readahead rewrite which is in Andrew's tree. I've fixed a lot of issues in the last two weeks, but generic/013 will still crash it. The primary idea here is that a large part of th

[PATCH v4 04/36] mm: Introduce thp_size

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This is like page_size(), but compiles down to just PAGE_SIZE if THP are disabled. Convert the users of hpage_nr_pages() which would prefer this interface. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/nvdimm/btt.c| 4 +--- drivers/nvdimm/pmem.c | 6

[PATCH v4 08/36] fs: Do not update nr_thps for large page mappings

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" The nr_thps counter is to support large pages in the page cache when the filesystem does not support writing large pages. Eventually it will be removed, but we should still support filesystems which do not understand large pages yet. Move the nr_thp manipulation

[PATCH v4 03/36] mm: Allow hpages to be arbitrary order

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Remove the assumption in hpage_nr_pages() that compound pages are necessarily PMD sized. Move the relevant parts of mm.h to before the include of huge_mm.h so we can use an inline function rather than a macro. Signed-off-by: Matthew Wilcox (Oracle) --- include/

[PATCH v4 36/36] mm: Align THP mappings for non-DAX

2020-05-15 Thread Matthew Wilcox
From: William Kucharski When we have the opportunity to use transparent huge pages to map a file, we want to follow the same rules as DAX. Signed-off-by: William Kucharski [Inline __thp_get_unmapped_area() into thp_get_unmapped_area()] Signed-off-by: Matthew Wilcox (Oracle) --- mm/huge_memory

[PATCH v4 28/36] mm: Support storing shadow entries for large pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" If the page is being replaced with a NULL, we can do a single large store, but for now we have to use a loop to store one shadow entry in each entry. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 17 +++-- 1 file changed, 11 insertions(+)

[PATCH v4 29/36] mm: Support retrieving tail pages from the page cache

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" page->index is not meaningful for tail pages; we have to use page_to_index() in this assertion. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 0ec7f25a

[PATCH v4 25/36] mm: Fix total_mapcount assumption of page size

2020-05-15 Thread Matthew Wilcox
From: "Kirill A. Shutemov" File THPs may now be of arbitrary order. Signed-off-by: Kirill A. Shutemov Signed-off-by: Matthew Wilcox (Oracle) --- mm/huge_memory.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 7a5e2b470bc7

[PATCH v4 31/36] mm: Add DEFINE_READAHEAD

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Allow for a more concise definition of a struct readahead_control. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 7 +++ mm/readahead.c | 6 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/linux/pa

[PATCH v4 33/36] mm: Make __do_page_cache_readahead take a readahead_control

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Also call __do_page_cache_readahead() directly from ondemand_readahead() instead of indirecting via ra_submit(). Signed-off-by: Matthew Wilcox (Oracle) --- mm/internal.h | 11 +-- mm/readahead.c | 26 ++ 2 files changed, 19 inser

[PATCH v4 24/36] mm: Remove page fault assumption of compound page size

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" A compound page in the page cache will not necessarily be of PMD size, so check explicitly. Signed-off-by: Matthew Wilcox (Oracle) --- mm/memory.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index f703fe8c

[PATCH v4 34/36] mm: Allow PageReadahead to be set on head pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Adjust the callers to only call PageReadahead on the head page. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 4 ++-- mm/filemap.c | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/li

[PATCH v4 02/36] mm: Simplify PageDoubleMap with PF_SECOND policy

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Introduce the new page policy of PF_SECOND which lets us use the normal pageflags generation machinery to create the various DoubleMap manipulation functions. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 40 ++--

[PATCH v4 32/36] mm: Make page_cache_readahead_unbounded take a readahead_control

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Define it in the callers instead of in page_cache_readahead_unbounded(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/ext4/verity.c| 4 ++-- fs/f2fs/verity.c| 4 ++-- include/linux/pagemap.h | 5 ++--- mm/readahead.c | 26 +++

[PATCH v4 27/36] mm: Fix truncation for pages of arbitrary size

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Remove the assumption that a compound page is HPAGE_PMD_SIZE, and the assumption that any page is PAGE_SIZE. Signed-off-by: Matthew Wilcox (Oracle) --- mm/truncate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/truncate.c b/mm/tru

[PATCH v4 30/36] mm: Support tail pages in wait_for_stable_page

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" page->mapping is undefined for tail pages, so operate exclusively on the head page. Signed-off-by: Matthew Wilcox (Oracle) --- mm/page-writeback.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 7326b54ab728..e

[PATCH v4 35/36] mm: Add large page readahead

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" If the filesystem supports large pages, allocate larger pages in the readahead code when it seems worth doing. The heuristic for choosing larger page sizes will surely need some tuning, but this aggressive ramp-up seems good for testing. Signed-off-by: Matthew Wi

[PATCH v4 26/36] mm: Avoid splitting large pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" If the filesystem supports large pages, then do not split them before removing them from the page cache; remove them as a unit. --- mm/vmscan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index b06868fc4926..5

[PATCH v4 18/36] iomap: Handle tail pages in iomap_page_mkwrite

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" iomap_page_mkwrite() can be called with a tail page. If we are, operate on the head page, since we're treating the entire thing as a single unit and the whole page is dirtied at the same time. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c |

[PATCH v4 22/36] mm: Allow large pages to be added to the page cache

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" We return -EEXIST if there are any non-shadow entries in the page cache in the range covered by the large page. If there are multiple shadow entries in the range, we set *shadowp to one of them (currently the one at the highest index). If that turns out to be the

[PATCH v4 20/36] mm: Make prep_transhuge_page return its argument

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" By permitting NULL or order-0 pages as an argument, and returning the argument, callers can write: return prep_transhuge_page(alloc_pages(...)); instead of assigning the result to a temporary variable and conditionally passing that to prep_transhuge_page(

[PATCH v4 19/36] xfs: Support large pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" There is one place which assumes the size of a page; fix it. Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_aops.c | 2 +- fs/xfs/xfs_super.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c ind

[PATCH v4 01/36] mm: Move PageDoubleMap bit

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" PG_private_2 is defined as being PF_ANY (applicable to tail pages as well as regular & head pages). That means that the first tail page of a double-map page will appear to have Private2 set. Use the Workingset bit instead which is defined as PF_HEAD so any attemp

[PATCH v4 23/36] mm: Allow large pages to be removed from the page cache

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" page_cache_free_page() assumes compound pages are PMD_SIZE; fix that assumption. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 437484d42b78..9c760dd72

[PATCH v4 21/36] mm: Add __page_cache_alloc_order

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This new function allows page cache pages to be allocated that are larger than an order-0 page. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Kirill A. Shutemov --- include/linux/pagemap.h | 24 +--- mm/filemap.c| 12 -

[PATCH v4 15/36] iomap: Support large pages in read paths

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Use thp_size() instead of PAGE_SIZE, offset_in_thp() instead of offset_in_page() and bio_for_each_thp_segment_all(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) d

[PATCH v4 12/36] bio: Add bio_for_each_thp_segment_all

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Iterate once for each THP page instead of once for each base page. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/bio.h | 13 + include/linux/bvec.h | 23 +++ 2 files changed, 36 insertions(+) diff --git a/include/linu

[PATCH v4 14/36] iomap: Support large pages in iomap_adjust_read_range

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Pass the struct page instead of the iomap_page so we can determine the size of the page. Use offset_in_thp() instead of offset_in_page() and use thp_size() instead of PAGE_SIZE. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 15

[PATCH v4 16/36] iomap: Support large pages in write paths

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Use thp_size() instead of PAGE_SIZE and offset_in_thp() instead of offset_in_page(). Also simplify the logic in iomap_do_writepage() for determining end of file. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 52 +++-

[PATCH v4 17/36] iomap: Inline data shouldn't see large pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Assert that we're not seeing large pages in functions that read/write inline data, rather than zeroing out the tail. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- fs/iomap/buffered-io.c | 2 ++ 1 file changed, 2 insertions(+) diff -

[PATCH v4 11/36] fs: Support THPs in zero_user_segments

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" We can only kmap() one subpage of a THP at a time, so loop over all relevant subpages, skipping ones which don't need to be zeroed. This is too large to inline when THPs are enabled and we actually need highmem, so put it in highmem.c. Signed-off-by: Matthew Wilc

[PATCH v4 10/36] fs: Make page_mkwrite_check_truncate thp-aware

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" If the page is compound, check the last index in the page and return the appropriate size. Change the return type to ssize_t in case we ever support pages larger than 2GB. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 10 +- 1 fil

[PATCH v4 13/36] iomap: Support arbitrarily many blocks per page

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Size the uptodate array dynamically. Now that this array is protected by a spinlock, we can use bitmap functions to set the bits in this array instead of a loop around set_bit(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 27 +--

[PATCH v4 09/36] fs: Introduce i_blocks_per_page

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This helper is useful for both large pages in the page cache and for supporting block size larger than page size. Convert some example users (we have a few different ways of writing this idiom). Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellw

Re: Setting mount propagation type in new mount API

2020-05-15 Thread Miklos Szeredi
On Fri, May 15, 2020 at 3:04 PM Miklos Szeredi wrote: > > On Fri, May 15, 2020 at 1:40 PM Michael Kerrisk (man-pages) > wrote: > > > > Hello David, Miklos, > > > > I've been looking at the new mount API (fsopen(), fsconfig(), > > fsmount(), move_mount(), etc.) and among the details that remain >

[PATCH v4 07/36] fs: Add a filesystem flag for large pages

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" The page cache needs to know whether the filesystem supports pages > PAGE_SIZE. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/fs.h | 1 + include/linux/pagemap.h | 5 + 2 files changed, 6 insertions(+) diff --git a/include/linux/fs.h b/inclu

move the SIOCDELRT and SIOCADDRT compat_ioctl handlers v2

2020-05-15 Thread Christoph Hellwig
Hi Dave, this series moves the compat_ioctl handlers into the protocol handlers, avoiding the need to override the address space limited as in the current handler. Changes since v1: - reorder a bunch of variable declarations

[PATCH 4/4] ipv4,appletalk: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl

2020-05-15 Thread Christoph Hellwig
To prepare removing the global routing_ioctl hack start lifting the code into the ipv4 and appletalk ->compat_ioctl handlers. Unlike the existing handler we don't bother copying in the name - there are no compat issues for char arrays. Signed-off-by: Christoph Hellwig --- include/net/compat.h |

[PATCH 3/4] appletalk: factor out a atrtr_ioctl_addrt helper

2020-05-15 Thread Christoph Hellwig
Add a helper than can be shared with the upcoming compat ioctl handler. Signed-off-by: Christoph Hellwig --- net/appletalk/ddp.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index b41375d4d295d..

[PATCH v4 05/36] mm: Introduce thp_order

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Like compound_order() except 0 when THP is disabled. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/huge_mm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index e944f9757349..1f6245091917 1

[PATCH 1/4] ipv6: lift copy_from_user out of ipv6_route_ioctl

2020-05-15 Thread Christoph Hellwig
Prepare for better compat ioctl handling by moving the user copy out of ipv6_route_ioctl. Signed-off-by: Christoph Hellwig --- include/net/ip6_route.h | 3 ++- net/ipv6/af_inet6.c | 16 +-- net/ipv6/route.c| 44 +++-- 3 files changed,

[PATCH 2/4] ipv6: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl

2020-05-15 Thread Christoph Hellwig
To prepare removing the global routing_ioctl hack start lifting the code into a newly added ipv6 ->compat_ioctl handler. Signed-off-by: Christoph Hellwig --- include/net/ipv6.h | 2 ++ net/dccp/ipv6.c | 1 + net/ipv6/af_inet6.c | 53 + net/ipv6/raw.c

[PATCH v4 06/36] mm: Introduce offset_in_thp

2020-05-15 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Mirroring offset_in_page(), this gives you the offset within this particular page, no matter what size page it is. It optimises down to offset_in_page() if CONFIG_TRANSPARENT_HUGEPAGE is not set. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 1

RE: [PATCH v2 1/5] PCI: dwc: Add msi_host_isr() callback

2020-05-15 Thread Gustavo Pimentel
[+cc Marc; IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY) maintainer] On Fri, May 15, 2020 at 10:58:59, Kunihiko Hayashi wrote: > This adds msi_host_isr() callback function support to describe > SoC-dependent service triggered by MSI. > > For example, when AER interrupt is triggered by MSI, the call

RE: [PATCH v2 2/5] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-05-15 Thread Gustavo Pimentel
[+cc Marc; IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY) maintainer] On Fri, May 15, 2020 at 10:59:0, Kunihiko Hayashi wrote: > The misc interrupts consisting of PME, AER, and Link event, is handled > by INTx handler, however, these interrupts should be also handled by > MSI handler. > > This adds

mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-15 Thread Pali Rohár
Hello! There is inconsistency in firmware naming for W8997 SDIO wifi chip. Firmware for this chip is stored in linux-firmware [1] repository under filename sdsd8997_combo_v4.bin. But mainline linux kernel driver mwifiex_sdio.ko [2] expects and loads firmware for this chip from filename sd8997_ua

Re: [PATCH] memcg: expose root cgroup's memory.stat

2020-05-15 Thread Johannes Weiner
On Fri, May 15, 2020 at 10:29:55AM +0200, Michal Hocko wrote: > On Sat 09-05-20 07:06:38, Shakeel Butt wrote: > > On Fri, May 8, 2020 at 2:44 PM Johannes Weiner wrote: > > > > > > On Fri, May 08, 2020 at 10:06:30AM -0700, Shakeel Butt wrote: > > > > One way to measure the efficiency of memory recl

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-15 Thread Andrew Lunn
On Fri, May 15, 2020 at 11:18:13AM +0800, Xulin Sun wrote: > This fixes call trace like below to use atomic safe API: > > BUG: sleeping function called from invalid context at > drivers/net/ethernet/mscc/ocelot.c:59 > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > INFO: lockdep i

Re: [PATCHv1 1/2] power: supply: gpio-charger: add charge-current-limit feature

2020-05-15 Thread Emil Velikov
Hi Sebastian, I've left a few trivial suggestions, although I suspect only one of them really matters. Namely - I think as-is the code changes the legacy behaviour when OF is missing. Mind you, this is my third time skimming through power/supply, so take it with a grain of salt. On 2020/05/13, S

Re: [PATCH v1] mfd: tps65910: Correct power-off programming sequence

2020-05-15 Thread Michał Mirosław
On Thu, May 14, 2020 at 11:50:21PM +0300, Dmitry Osipenko wrote: > This patch fixes system shutdown on a devices that use TPS65910 as a > system's power controller. In accordance to the TPS65910 datasheet, the > PMIC's state-machine transitions into the OFF state only when DEV_OFF > bit of DEVCTRL_

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-15 Thread Peter Zijlstra
> > In that case, we potentially avoid spinning on on_rq for wakeups between > > tasks that do not share CPU but it's not clear why it would be specific to > > remote tasks. > > The thinking was that we can avoid spinning on ->on_cpu, and let the CPU > get on with things. Rik had a workload wher

Re: [PATCH] Backport security fixe to 4.9 and 4.4 stable trees

2020-05-15 Thread Siddharth Chandrasekaran
On Fri, May 15, 2020 at 02:57:01PM +0200, Greg KH wrote: > On Fri, May 15, 2020 at 06:19:45PM +0530, Siddharth Chandrasekaran wrote: > > Please ignore this patch set, I accidentally added another patch I was > > working on. Will send v2 with the right patches. > > What patch set? I see nothing in

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