[PATCH net v6 4/6] net: marvell: prestera: Add ethtool interface support

2020-09-02 Thread Vadym Kochan
The ethtool API provides support for the configuration of the following features: speed and duplex, auto-negotiation, MDI-x, forward error correction, port media type. The API also provides information about the port status, hardware and software statistic. The following limitation exists: -

Re: [RFC PATCH 0/2] mm/gup: fix gup_fast with dynamic page table folding

2020-09-02 Thread Gerald Schaefer
On Wed, 2 Sep 2020 14:24:37 +0200 Gerald Schaefer wrote: > On Tue, 1 Sep 2020 16:22:22 -0700 > John Hubbard wrote: > > > On 9/1/20 10:40 AM, Gerald Schaefer wrote: > > > On Mon, 31 Aug 2020 12:15:53 -0700 > > > Andrew Morton wrote: > > ... > > > diff --git a/include/linux/pgtable.h

Re: [PATCH] trivial: docs: Section number should be "8.2"

2020-09-02 Thread Randy Dunlap
On 9/2/20 7:45 AM, Michael Witten wrote: > Signed-off-by: Michael Witten > --- > Documentation/kbuild/makefiles.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/kbuild/makefiles.rst > b/Documentation/kbuild/makefiles.rst > index

Re: [PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-09-02 Thread Maxime Ripard
On Tue, Sep 01, 2020 at 06:31:07PM +0200, Stefan Wahren wrote: > Hi Maxime, > > Am 01.09.20 um 11:58 schrieb Maxime Ripard: > > Hi Stefan > > > > On Tue, Aug 25, 2020 at 11:30:58PM +0200, Stefan Wahren wrote: > >> Am 25.08.20 um 17:06 schrieb Maxime Ripard: > >>> Hi Stefan, > >>> > >>> On Wed,

[PATCH 9/9] i2c: mux: reg: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/muxes/i2c-mux-reg.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git

[PATCH 5/9] i2c: davinci: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-davinci.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 8/9] i2c: mux: gpmux: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/muxes/i2c-mux-gpmux.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git

[PATCH 7/9] i2c: rk3x: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-rk3x.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v2 1/2] MAINTAINERS: Consolidate Analog Devices IIO entries and remove Beniamin Bia

2020-09-02 Thread Jonathan Cameron
On Wed, 2 Sep 2020 16:59:56 +0200 Krzysztof Kozlowski wrote: > Emails to Beniamin Bia bounce with no such address so remove him from > maintainers. After this removal, many entries for Analog Devices Inc > IIO drivers look exactly the same so consolidate them. > > Suggested-by: Andy Shevchenko

[PATCH 4/9] i2c: cadence: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-cadence.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH 2/4] crypto: caam - Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/caam/caamalg_qi2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH net v6 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-09-02 Thread Vadym Kochan
The following features are supported: - VLAN-aware bridge offloading - VLAN-unaware bridge offloading - FDB offloading (learning, ageing) - Switchport configuration Currently there are some limitations like: - Only 1 VLAN-aware bridge instance supported - FDB ageing

[PATCH 4/4] crypto: allwinner/sun8i - Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 9 +++-- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 9 +++--

[PATCH net v6 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX3255 (AC3x)

2020-09-02 Thread Vadym Kochan
Marvell Prestera 98DX3255 integrates up to 24 ports of 1GbE with 8 ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely wireless SMB deployment. Prestera Switchdev is a firmware based driver that operates via PCI bus. The current implementation supports only boards designed for the

[PATCH 09/10] clk: davinci: Add missing kerneldoc

2020-09-02 Thread Krzysztof Kozlowski
Add missing kerneldoc to fix compile warning: drivers/clk/davinci/da8xx-cfgchip.c:578: warning: Function parameter or member 'dev' not described in 'da8xx_cfgchip_register_usb1_clk48' Signed-off-by: Krzysztof Kozlowski --- drivers/clk/davinci/da8xx-cfgchip.c | 1 + 1 file changed, 1

[PATCH 06/10] clk: keystone: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/keystone/syscon-clk.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

[PATCH 07/10] clk: meson: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/meson/axg-audio.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH 05/10] clk: sunxi-ng: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/sunxi-ng/ccu-sun8i-de2.c | 28 drivers/clk/sunxi-ng/ccu-sun9i-a80-de.c | 19

[PATCH 07/13] x86/debug: Move historical SYSENTER junk into exc_debug_kernel()

2020-09-02 Thread Peter Zijlstra
The historical SYSENTER junk is explicitly for from-kernel, so move it to the #DB-from-kernel handler. It is ordered after the notifier, this is important for KGDB which uses TF single-step and needs to consume the event before we get here. Signed-off-by: Peter Zijlstra (Intel) ---

[PATCH v2 2/2] MAINTAINERS: Move Hartmut Knaack to Credits

2020-09-02 Thread Krzysztof Kozlowski
Hartmut Knaack was an active reviewer and contributor to the IIO subsystem and drivers. However his last message on LKML is from October 2015. In thanks for Hartmut's effort, move him name to the Credits. Suggested-by: Andy Shevchenko Cc: Jonathan Cameron Cc: linux-iio Signed-off-by:

[PATCH 08/13] x86/debug: Move cond_local_irq_enable() block into exc_debug_user()

2020-09-02 Thread Peter Zijlstra
The cond_local_irq_enable() block, dealing with vm86 and sending signals is only relevant for #DB-from-user, move it there. This then reduces handle_debug() to only the notifier call, so rename it to notify_debug(). Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/traps.c | 58

Re: watchdog start on restart

2020-09-02 Thread Guenter Roeck
On 9/2/20 6:02 AM, Ivan Mikhaylov wrote: > Hello everyone. Currently, the watchdog interface only has "stop watchdog on > restart" but lacks a "start watchdog on restart" one. Is there a way to > achieve > such functionality? > > I'd like to know why "stop watchdog on restart" wasn't implemented

[PATCH v2 1/2] MAINTAINERS: Consolidate Analog Devices IIO entries and remove Beniamin Bia

2020-09-02 Thread Krzysztof Kozlowski
Emails to Beniamin Bia bounce with no such address so remove him from maintainers. After this removal, many entries for Analog Devices Inc IIO drivers look exactly the same so consolidate them. Suggested-by: Andy Shevchenko Suggested-by: Jonathan Cameron Cc: Michael Hennerich Cc: Jonathan

Re: [PATCH v2 00/28] The new cgroup slab memory controller

2020-09-02 Thread Michal Hocko
On Wed 02-09-20 08:53:49, Pavel Tatashin wrote: > On Wed, Sep 2, 2020 at 7:32 AM Michal Hocko wrote: > > > > On Wed 02-09-20 11:53:00, Vlastimil Babka wrote: > > > >> > > Thread #2: ccs killer kthread > > > >> > >css_killed_work_fn > > > >> > > cgroup_mutex <- Grab this Mutex > > > >> >

Re: [PATCH v4 00/78] drm/vc4: Support BCM2711 Display Pipeline

2020-09-02 Thread Maxime Ripard
On Wed, Sep 02, 2020 at 03:32:20PM +0200, Maxime Ripard wrote: > Hi Hoegeun > > On Fri, Aug 21, 2020 at 04:18:34PM +0900, Hoegeun Kwon wrote: > > Hi Maxime, > > > > Thank you for your version 4 patch. > > I tested all 78 patches based on the next-20200708. > > > > > > Dual HDMI opearation does

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-02 Thread Paul E. McKenney
On Wed, Sep 02, 2020 at 08:49:11AM +0200, Ulf Hansson wrote: > On Tue, 1 Sep 2020 at 17:00, Paul E. McKenney wrote: [ . . . ] > > Here is the list, though it is early in the morning here: > > > > 1. RCU_NONIDLE(). > > > > 2. Peter's patch, if it turns out to hoist your code out of

[PATCH v2 2/3] dt-bindings: usb: cdns,usb3: Add cdns,phyrst-a-enable property

2020-09-02 Thread Roger Quadros
Controller version 0x0002450D has USB2 PHY RX sensitivity issues that needs to be worked around by enabling phyrst-a-enable bit in PHYRST_CFG register. There is no way to know controller version before device controller is started and the workaround needs to be applied for both host and device

Re: [PATCH] MAINTAINERS: Remove bouncing email of Beniamin Bia

2020-09-02 Thread Krzysztof Kozlowski
On Wed, 2 Sep 2020 at 15:28, Jonathan Cameron wrote: > > On Wed, 2 Sep 2020 10:49:04 +0300 > Andy Shevchenko wrote: > > > On Wed, Sep 2, 2020 at 8:56 AM Ardelean, Alexandru > > wrote: > > > > > > [yes, I know, bad-email format, but I wanted this to come from my work > > > email] > > > > > >

Re: [PATCH v5 0/4] Move Mediatek HDMI PHY driver from DRM folder to PHY folder

2020-09-02 Thread Chun-Kuang Hu
Chun-Kuang Hu 於 2020年8月23日 週日 上午9:48寫道: > > mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's > more suitable to place a phy driver into phy driver folder, so move > mtk_hdmi_phy driver into phy driver folder. For this series, applied to mediatek-drm-next [1]. [1]

Re: [PATCH] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

2020-09-02 Thread Maxime Ripard
On Wed, Sep 02, 2020 at 11:17:16AM +0200, Corentin Labbe wrote: > When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset. > Furthermore, there are no need to use items to list only one compatible > in compatible list. > > Fixes: f81547ba7a98 ("dt-bindings: crypto: add new

Re: [PATCH v2] staging: qlge: fix build breakage with dumping enabled

2020-09-02 Thread Coiby Xu
On Thu, Aug 27, 2020 at 09:50:10AM +0900, Benjamin Poirier wrote: On 2020-08-27 07:27 +0800, Coiby Xu wrote: This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage of missing `struct ql_adapter *qdev` for some functions and a warning

Re: [PATCH V2 0/2] percpu_ref & block: reduce memory footprint of percpu_ref in fast path

2020-09-02 Thread Jens Axboe
On 9/2/20 6:26 AM, Ming Lei wrote: > Hi, > > The 1st patch removes memory footprint of percpu_ref in fast path > from 7 words to 2 words, since it is often used in fast path and > embedded in user struct. > > The 2nd patch moves .q_usage_counter to 1st cacheline of > 'request_queue'. > > Simple

Re: [PATCH 04/10] USB: core: hub.c: use usb_control_msg_send() in a few places

2020-09-02 Thread Alan Stern
On Wed, Sep 02, 2020 at 01:01:06PM +0200, Greg Kroah-Hartman wrote: > There are a few calls to usb_control_msg() that can be converted to use > usb_control_msg_send() instead, so do that in order to make the error > checking a bit simpler and the code smaller. > > Cc: Alan Stern > Signed-off-by:

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Vlastimil Babka
On 9/2/20 4:26 PM, Pavel Tatashin wrote: > On Wed, Sep 2, 2020 at 10:08 AM Michal Hocko wrote: >> >> > >> > Thread#1 - continue >> > free_unref_page_commit >> >migratetype = get_pcppage_migratetype(page); >> > // get old migration type >> >

[PATCH] seccomp: don't leave dangling ->notif if file allocation fails

2020-09-02 Thread Tycho Andersen
Christian and Kees both pointed out that this is a bit sloppy to open-code both places, and Christian points out that we leave a dangling pointer to ->notif if file allocation fails. Since we check ->notif for null in order to determine if it's ok to install a filter, this means people won't be

Re: [PATCH v1] regmap: Add can_sleep configuration option

2020-09-02 Thread Marek Szyprowski
Hi Dmitry, On 02.09.2020 16:18, Dmitry Osipenko wrote: > Regmap can't sleep if spinlock is used for the locking protection. > This patch fixes regression caused by a previous commit that switched > regmap to use fsleep() and this broke Amlogic S922X platform. > > This patch adds new configuration

Re: [PATCH v3 2/6] workqueue: kasan: record workqueue stack

2020-09-02 Thread Tejun Heo
On Tue, Aug 25, 2020 at 09:58:33AM +0800, Walter Wu wrote: > Records the last two enqueuing work call stacks in order to print them > in KASAN report. It is useful for programmers to solve use-after-free > or double-free memory workqueue issue. > > For workqueue it has turned out to be useful to

Re: [PATCH] media: mtk-vcodec: set dma max segment size

2020-09-02 Thread Hsin-Yi Wang
On Wed, Sep 2, 2020 at 10:25 PM Robin Murphy wrote: > > On 2020-08-21 05:14, Hsin-Yi Wang wrote: > > Set dma max segment size for encoder and decoder driver. > > > > Fix following warning with CONFIG_DMA_API_DEBUG_SG=y > > > > [ 75.147825] [ cut here ] > > [ 75.147844]

Re: refactoring livepatch documentation was Re: [PATCH 1/2] docs/livepatch: Add new compiler considerations doc

2020-09-02 Thread Miroslav Benes
[side note: So not only that my INBOX is a mess after the summer. I also lost some emails apparently. I'm really sorry about that. ] CCing Nicolai too. > Hi Petr, Josh, > > The compiler optimization pitfall document can wait for refactored livepatch > documentation if that puts it into better

[PATCH v3] staging: qlge: fix build breakage with dumping enabled

2020-09-02 Thread Coiby Xu
This fixes commit 0107635e15ac ("staging: qlge: replace pr_err with netdev_err") which introduced an build breakage of missing `struct ql_adapter *qdev` for some functions and a warning of type mismatch with dumping enabled, i.e., $ make CFLAGS_MODULE="QL_ALL_DUMP=1 QL_OB_DUMP=1 QL_CB_DUMP=1 \

Re: [PATCH] writeback: clear auto_free in initializaiton

2020-09-02 Thread Tejun Heo
Hello, On Wed, Aug 26, 2020 at 06:11:26PM +0200, Jan Kara wrote: > > Which seems like a strange place to set auto_free as > > it is not where the rest of base_work is initialized. > > Otherwise I agree it's a strange place. I've added Tejun to CC just in case > he remembers why he's added that.

Re: remove revalidate_disk()

2020-09-02 Thread Jens Axboe
On 9/1/20 9:57 AM, Christoph Hellwig wrote: > Hi Jens, > > this series removes the revalidate_disk() function, which has been a > really odd duck in the last years. The prime reason why most people > use it is because it propagates a size change from the gendisk to > the block_device structure.

Re: [PATCH] perf c2c report: count remote loads correctly

2020-09-02 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 02, 2020 at 01:09:42PM +0100, Al Grant escreveu: > On 01/09/2020 22:26, Joe Mario wrote: > > On 9/1/20 4:46 PM, Jiri Olsa wrote: > > > On Tue, Sep 01, 2020 at 10:17:19PM +0200, Jiri Olsa wrote: > > > > On Thu, Aug 20, 2020 at 02:48:58PM +0100, Al Grant wrote: > > > > I'm getting

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Vlastimil Babka
On 9/2/20 4:31 PM, Pavel Tatashin wrote: >> > > The fix is to try to drain per-cpu lists again after >> > > check_pages_isolated_cb() fails. >> >> Still trying to wrap my head around this but I think this is not a >> proper fix. It should be the page isolation to make sure no races are >> possible

Re: [PATCH] media: tc358743: initialize variable

2020-09-02 Thread Tom Rix
On 8/31/20 10:31 AM, Nick Desaulniers wrote: > On Sun, Aug 30, 2020 at 9:30 AM wrote: >> From: Tom Rix >> >> clang static analysis flags this error >> >> tc358743.c:1468:9: warning: Branch condition evaluates >> to a garbage value >> return handled ? IRQ_HANDLED : IRQ_NONE; >>

Re: [PATCH v4 03/78] drm/vc4: hvs: Boost the core clock during modeset

2020-09-02 Thread Maxime Ripard
Hi, On Tue, Sep 01, 2020 at 08:21:36PM +0900, Chanwoo Choi wrote: > Hi Maxime, > > On 7/9/20 2:41 AM, Maxime Ripard wrote: > > In order to prevent timeouts and stalls in the pipeline, the core clock > > needs to be maxed at 500MHz during a modeset on the BCM2711. > > > > Reviewed-by: Eric

[PATCH 08/19] xsysace: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call ace_revalidate_disk manually. Given that ace_revalidate_disk only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH 06/19] swim: simplify media change handling

2020-09-02 Thread Christoph Hellwig
floppy_revalidate mostly duplicates work already done in floppy_open despite only beeing called from floppy_open. Remove the function and just clear the ->ejected flag directly under the right condition. Signed-off-by: Christoph Hellwig --- drivers/block/swim.c | 24 ++-- 1

[PATCH v1 1/2] media: ov8856: Add support for 1632x1224 mode

2020-09-02 Thread Robert Foss
OV8856 supports 1632x1224 @ 60 FPS, which is added in this commit. Signed-off-by: Robert Foss --- drivers/media/i2c/ov8856.c | 215 + 1 file changed, 215 insertions(+) diff --git a/drivers/media/i2c/ov8856.c b/drivers/media/i2c/ov8856.c index

[re-send][PATCH] drm/via: reduce no need mutex_lock area

2020-09-02 Thread Bernard
In function via_mem_alloc`s error branch, DRM_ERROR is protected in the mutex_lock(>struct_mutex) area. From the code, we see that DRM_ERROR is just an error log print without any struct element, there is no need to protect this. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/via/via_mm.c | 2

[PATCH 01/19] block: add a bdev_check_media_change helper

2020-09-02 Thread Christoph Hellwig
Like check_disk_changed, except that it does not call ->revalidate_disk but leaves that to the caller. Signed-off-by: Christoph Hellwig --- block/genhd.c | 29 - fs/block_dev.c| 17 +++-- include/linux/genhd.h | 2 +- 3 files changed, 32

[PATCH 12/19] ide-cd: use bdev_check_media_changed

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_changed instead of check_disk_change and call idecd_revalidate_disk manually. Given that idecd_revalidate_disk only re-reads the TOC, and we already do the same at probe time, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so

[PATCH] mwifiex: sdio: Fix -Wunused-const-variable warnings

2020-09-02 Thread YueHaibing
These variables only used in sdio.c, move them to .c file can silence these warnings: In file included from drivers/net/wireless/marvell/mwifiex//main.h:59:0, from drivers/net/wireless/marvell/mwifiex//cfp.c:24: drivers/net/wireless/marvell/mwifiex//sdio.h:705:41: warning:

Re: [PATCH 10/10] powerpc: remove address space overrides using set_fs()

2020-09-02 Thread Christophe Leroy
Le 02/09/2020 à 15:51, David Laight a écrit : From: Christophe Leroy Sent: 02 September 2020 14:25 Le 02/09/2020 à 15:13, David Laight a écrit : From: Christoph Hellwig Sent: 02 September 2020 13:37 On Wed, Sep 02, 2020 at 08:15:12AM +0200, Christophe Leroy wrote: - return

[PATCH 09/19] xsysace: simplify media change handling

2020-09-02 Thread Christoph Hellwig
Pass a struct ace_device to ace_revalidate_disk, move the media changed check into the one caller that needs it, and give the routine a better name. Signed-off-by: Christoph Hellwig --- drivers/block/xsysace.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-)

[PATCH 03/19] ataflop: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH] trivial: docs: Section number should be "8.2"

2020-09-02 Thread Michael Witten
Signed-off-by: Michael Witten --- Documentation/kbuild/makefiles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kbuild/makefiles.rst b/Documentation/kbuild/makefiles.rst index b81b8913a5a3..da6a708164c4 100644 --- a/Documentation/kbuild/makefiles.rst +++

Re: [PATCH V2] kvm x86/mmu: use KVM_REQ_MMU_SYNC to sync when needed

2020-09-02 Thread Vitaly Kuznetsov
Lai Jiangshan writes: > From: Lai Jiangshan > > When kvm_mmu_get_page() gets a page with unsynced children, the spt > pagetable is unsynchronized with the guest pagetable. But the > guest might not issue a "flush" operation on it when the pagetable > entry is changed from zero or other cases.

Re: [PATCH 0/3] drm/msm: More GPU tracepoints

2020-09-02 Thread Rob Clark
The cat is somewhat out of the bag already.. so I took the approach of making the more useful of the traces for visualization (freq_change trace) identical to the i915 one in units and format, so userspace just has to add another event name to a list, and not have to add more parsing code. But

[PATCH 1/2] phy: marvell: comphy: Convert internal SMCC firmware return codes to errno

2020-09-02 Thread Pali Rohár
Driver ->power_on and ->power_off callbacks leaks internal SMCC firmware return codes to phy caller. This patch converts SMCC error codes to standard linux errno codes. Include file linux/arm-smccc.h already provides defines for SMCC error codes, so use them instead of custom driver defines. Note

[PATCH 2/2] PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware

2020-09-02 Thread Pali Rohár
Old ATF automatically power on pcie phy and does not provide SMC call for phy power on functionality which leads to aardvark initialization failure: [0.330134] mvebu-a3700-comphy d0018300.phy: unsupported SMC call, try updating your firmware [0.338846] phy phy-d0018300.phy.1: phy poweron

[PATCH 0/2] PCI: aardvark: Fix comphy with old ATF

2020-09-02 Thread Pali Rohár
This patch series fixes regression introduced in commit 366697018c9a ("PCI: aardvark: Add PHY support") which caused aardvark driver initialization failure on EspressoBin board with factory version of Arm Trusted Firmware provided by Marvell. Second patch depends on the first patch, so please add

[PATCH 14/19] ide-gd: stop using the disk events mechanism

2020-09-02 Thread Christoph Hellwig
ide-gd is only using the disk events mechanism to be able to force an invalidation and partition scan on opening removable media. Just open code the logic without invoving the block layer. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-disk.c | 5 + drivers/ide/ide-floppy.c | 2

Re: [PATCH v21 4/4] arm64: dts: mt8183: add scp node

2020-09-02 Thread Naresh Kamboju
igned-off-by: Eddie Huang > > Sorry I somehow oversaw this. Next time please don't doubt to ping me. > > Bjorn, do I understand correctly that you don't send emails to the list > informing of the inclusion of a patch/series in your tree? > > Anyway applied now to v5.9-next/dt

Re: [PATCH 7/9] sound: line6: convert to use new usb control function...

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:10 +0200, Greg Kroah-Hartman wrote: > > Signed-off-by: Greg Kroah-Hartman I guess this and a few others with (x/9) are stale patches, right? thanks, Takashi > --- > sound/usb/line6/driver.c | 69 +++--- > sound/usb/line6/podhd.c

rework check_disk_change()

2020-09-02 Thread Christoph Hellwig
Hi Jens, this series replaced the not very nice check_disk_change() function with a new bdev_media_changed that avoids having the ->revalidate_disk call at its end. As a result ->revalidate_disk can be removed from a lot of drivers. Diffstat: block/genhd.c | 29

[PATCH 05/19] swim: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

Re: [PATCH 09/10] sound: hiface: move to use usb_control_msg_send()

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:14 +0200, Greg Kroah-Hartman wrote: > > The usb_control_msg_send() call can return an error if a "short" write > happens, so move the driver over to using that call instead. > > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: alsa-de...@alsa-project.org > Signed-off-by:

Re: [PATCH 08/10] sound: line6: move to use usb_control_msg_send() and usb_control_msg_recv()

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:12 +0200, Greg Kroah-Hartman wrote: > > The usb_control_msg_send() and usb_control_msg_recv() calls can return > an error if a "short" write/read happens, and they can handle data off > of the stack, so move the driver over to using those calls instead, > saving some

Re: [PATCH] rt2x00: Use fallthrough pseudo-keyword macro

2020-09-02 Thread Leesoo Ahn
20. 9. 2. 오후 11:20에 Gustavo A. R. Silva 이(가) 쓴 글: On 9/2/20 08:05, Leesoo Ahn wrote: Replace all '/* fall through */' comments with the macro[1]. [1]: https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through This looks

Re: [PATCH v3 6/9] drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can

2020-09-02 Thread Doug Anderson
Hi, On Tue, Jul 14, 2020 at 8:31 AM Doug Anderson wrote: > > > Hopefully BOE gets back to you soon, and there's no rush, I'm just an > > end user who is extremely appreciative of all the work everyone on the > > list and the kernel in general put in to make my machines usable. > > Just FYI that

Re: [PATCH 06/10] sound: usx2y: move to use usb_control_msg_send()

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:08 +0200, Greg Kroah-Hartman wrote: > > The usb_control_msg_send() call can handle data on the stack, as well as > returning an error if a "short" write happens, so move the driver over > to using that call instead. This ends up removing a helper function > that is no

Re: [PATCH 07/10] sound: 6fire: move to use usb_control_msg_send() and usb_control_msg_recv()

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:09 +0200, Greg Kroah-Hartman wrote: > > The usb_control_msg_send() and usb_control_msg_recv() calls can return > an error if a "short" write/read happens, so move the driver over to > using those calls instead, saving some logic in the wrapper functions > that were being

Re: [PATCH 01/10] USB: move snd_usb_pipe_sanity_check into the USB core

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 13:01:03 +0200, Greg Kroah-Hartman wrote: > > snd_usb_pipe_sanity_check() is a great function, so let's move it into > the USB core so that other parts of the kernel, including the USB core, > can call it. > > Name it usb_pipe_type_check() to match the existing >

Re: [PATCH] rt2x00: Use fallthrough pseudo-keyword macro

2020-09-02 Thread Gustavo A. R. Silva
On 9/2/20 08:05, Leesoo Ahn wrote: > Replace all '/* fall through */' comments with the macro[1]. > > [1]: > https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > This looks familiar...

Re: [PATCH] seccomp: don't leave dangling ->notif if file allocation fails

2020-09-02 Thread Christian Brauner
On Wed, Sep 02, 2020 at 08:09:53AM -0600, Tycho Andersen wrote: > Christian and Kees both pointed out that this is a bit sloppy to open-code > both places, and Christian points out that we leave a dangling pointer to > ->notif if file allocation fails. Since we check ->notif for null in order > to

Re: [PATCH 4.19 108/125] USB: yurex: Fix bad gfp argument

2020-09-02 Thread Greg Kroah-Hartman
On Wed, Sep 02, 2020 at 02:58:27PM +0200, Pavel Machek wrote: > Hi! > > > The syzbot fuzzer identified a bug in the yurex driver: It passes > > GFP_KERNEL as a memory-allocation flag to usb_submit_urb() at a time > > when its state is TASK_INTERRUPTIBLE, not TASK_RUNNING: > > Yeah, and instead

Re: [RFC net-next] udp: add a GSO type for UDPv6

2020-09-02 Thread Willem de Bruijn
On Wed, Sep 2, 2020 at 2:18 PM Huazhong Tan wrote: > > In some cases, for UDP GSO, UDPv4 and UDPv6 need to be handled > separately, for example, checksum offload, so add new GSO type > SKB_GSO_UDPV6_L4 for UDPv6, and the old SKB_GSO_UDP_L4 stands > for UDPv4. This is in preparation for hardware

[PATCH 18/19] sr: simplify sr_block_revalidate_disk

2020-09-02 Thread Christoph Hellwig
Both callers have a valid CD struture available, so rely on that instead of getting another reference. Also move the function to avoid a forward declaration. Signed-off-by: Christoph Hellwig --- drivers/scsi/sr.c | 36 +--- 1 file changed, 13 insertions(+), 23

[PATCH 19/19] block: remove check_disk_change

2020-09-02 Thread Christoph Hellwig
Remove the now unused check_disk_change helper. Signed-off-by: Christoph Hellwig --- fs/block_dev.c| 20 include/linux/genhd.h | 1 - 2 files changed, 21 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 37cb809b217926..c6baae5b85060c 100644 ---

Re: [PATCH -next] remoteproc: k3-dsp: Fix return value check in k3_dsp_rproc_of_get_memories()

2020-09-02 Thread Suman Anna
On 9/2/20 9:06 AM, YueHaibing wrote: > In case of error, the function devm_ioremap_wc() returns NULL pointer > not ERR_PTR(). The IS_ERR() test in the return value check should be > replaced with NULL test. Thanks for the fix. > > Fixes: 87218f96c21a ("remoteproc: k3-dsp: Add support for C71x

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Pavel Tatashin
> > > The fix is to try to drain per-cpu lists again after > > > check_pages_isolated_cb() fails. > > Still trying to wrap my head around this but I think this is not a > proper fix. It should be the page isolation to make sure no races are > possible with the page freeing path. > As Bharata B

[PATCH v2 1/3] dt-bindings: usb: Convert cdns-usb3.txt to YAML schema

2020-09-02 Thread Roger Quadros
Converts cdns-usb3.txt to YAML schema cdns,usb3.yaml Signed-off-by: Roger Quadros --- .../devicetree/bindings/usb/cdns,usb3.yaml| 89 +++ .../devicetree/bindings/usb/cdns-usb3.txt | 45 -- 2 files changed, 89 insertions(+), 45 deletions(-) create mode 100644

Re: [PATCH] media: mtk-vcodec: set dma max segment size

2020-09-02 Thread Robin Murphy
On 2020-08-21 05:14, Hsin-Yi Wang wrote: Set dma max segment size for encoder and decoder driver. Fix following warning with CONFIG_DMA_API_DEBUG_SG=y [ 75.147825] [ cut here ] [ 75.147844] mtk-vcodec-enc 19002000.vcodec: DMA-API: mapping sg segment longer than

[PATCH v5 2/3] dt-bindings: mfd: add LP87524-Q1

2020-09-02 Thread Luca Ceresoli
Add the LP87524-Q1 to the bindings along with an example. This is a variant of the LP87565-Q1 and LP87561-Q1 chips which already have bindings. Signed-off-by: Luca Ceresoli --- Changes in v5: - describe the "regulators" node too (Rob) - add 'additionalProperties: false' (Rob) - user

[PATCH v2 0/3] usb: cdns,usb3: Convert DT binding to YAML

2020-09-02 Thread Roger Quadros
Hi, This series converts DT binding to YAML schema. Then adds a new property to enable workaround for USB2.0 PHY Rx compliance issues. cheers, -roger Changelog: v2: - updated commit log to better describe why DT property is required for the quirk. Pawel Laszczak (1): usb: cdns3: Enable

Re: [PATCH v2] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-02 Thread kernel test robot
Hi Srinivasa, Thank you for the patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on v5.9-rc3 next-20200902] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

[PATCH v5 1/3] dt-bindings: mfd: lp87565: convert to yaml

2020-09-02 Thread Luca Ceresoli
Also apply a few smaller improvements: - document that the only possible I2C slave address is 0x60 as per the datasheet and fix the second example accordingly - The definition of "xxx-in-supply" was generic, thus define in detail the possible cases for each chip variant - remove "MFD

[PATCH v5 3/3] mfd: lp87565: add LP87524-Q1 variant

2020-09-02 Thread Luca Ceresoli
Add support for the LP87524B/J/P-Q1 Four 4-MHz Buck Converter. This is a variant of the LP87565 having 4 single-phase outputs and up to 10 A of total output current. Signed-off-by: Luca Ceresoli Acked-for-MFD-by: Lee Jones --- Changes in v5: none Changes in v4: none Changes in v3: none

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Pavel Tatashin
On Wed, Sep 2, 2020 at 10:08 AM Michal Hocko wrote: > > On Tue 01-09-20 08:46:15, Pavel Tatashin wrote: > > There is a race during page offline that can lead to infinite loop: > > a page never ends up on a buddy list and __offline_pages() keeps > > retrying infinitely or until a termination

[PATCH v5 0/3] mfd: lp87565: convert DT to yaml and add LP87524-Q1

2020-09-02 Thread Luca Ceresoli
Hi, the following patches are a fairly straightforward addition of a new chip variant along with DT bindings conversion to yaml. v5 adds the description of the "regulators" DT node and has smaller improvements to the bindings. No changes to the driver since v2. RFC,v1:

[PATCH 17/19] sr: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call sr_block_revalidate_disk manually. Also add an explicit call to sr_block_revalidate_disk just before disk_add() to ensure we always read check for a ready unit and read the TOC and then stop wiring up ->revalidate_disk.

[PATCH 07/19] swim3: use bdev_check_media_changed

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_changed instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH 10/19] paride/pcd: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
The pcd driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig --- drivers/block/paride/pcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/paride/pcd.c

include/asm-generic/atomic-instrumented.h:193:29: sparse: sparse: context imbalance in 'dn_socket_seq_next' - unexpected unlock

2020-09-02 Thread kernel test robot
-20200902 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-191

Re: [PATCH v2 00/28] The new cgroup slab memory controller

2020-09-02 Thread Pavel Tatashin
> > This is how we are using it at Microsoft: there is a very large > > number of small memory machines (8G each) with low downtime > > requirements (reboot must be under a second). There is also a large > > state ~2G of memory that we need to transfer during reboot, otherwise > > it is very

[PATCH v1] regmap: Add can_sleep configuration option

2020-09-02 Thread Dmitry Osipenko
Regmap can't sleep if spinlock is used for the locking protection. This patch fixes regression caused by a previous commit that switched regmap to use fsleep() and this broke Amlogic S922X platform. This patch adds new configuration option for regmap users, allowing to specify whether regmap

[PATCH 16/19] sd: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call cd_revalidate_disk manually. As sd also calls sd_revalidate_disk manually during probe and open, , the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH 02/19] amiflop: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
The Amiga floppy driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig --- drivers/block/amiflop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/amiflop.c

[PATCH 04/19] floppy: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

<    4   5   6   7   8   9   10   11   12   13   >