Re: [PATCH 1/4] io_uring: fix open/close/statx with {SQ,IO}POLL

2020-06-02 Thread Pavel Begunkov
On 02/06/2020 15:34, Pavel Begunkov wrote: > Trying to use them with IORING_SETUP_IOPOLL: > > RIP: 0010:io_iopoll_getevents+0x111/0x5a0 > Call Trace: > ? _raw_spin_unlock_irqrestore+0x24/0x40 > ? do_send_sig_info+0x64/0x90 > io_iopoll_reap_events.part.0+0x5e/0xa0 >

Re: [PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-06-02 Thread Maxime Ripard
Hi Eric On Wed, May 27, 2020 at 09:54:44AM -0700, Eric Anholt wrote: > On Wed, May 27, 2020 at 8:50 AM Maxime Ripard wrote: > > > > The VIDEN bit in the pixelvalve currently being used to enable or disable > > the pixelvalve seems to not be enough in some situations, which whill end > > up with

Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure

2020-06-02 Thread Mark Brown
On Tue, Jun 02, 2020 at 12:02:11PM +0200, Markus Elfring wrote: > > The original changelog is perfectly fine, please stop sending these. > I find this commit message improvable also according to Linux software > development documentation. Causing people to send out new versions of things for

[PATCH v2] gpiolib: split character device into gpiolib-cdev

2020-06-02 Thread Kent Gibson
Split the cdev specific functionality out of gpiolib.c and into gpiolib-cdev.c. This improves the readability and maintainability of both the cdev and core gpiolib code. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- While this patch is complete and ready for review, I don't

Re: [PATCH 1/2] perf tools: check libasan and libubsan in Makefile.config

2020-06-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 02, 2020 at 12:15:03PM +0800, Tiezhu Yang escreveu: > When build perf with ASan or UBSan, if libasan or libubsan can not find, > the feature-glibc is 0 and there exists the following error log which is > wrong, because we can find gnu/libc-version.h in /usr/include, glibc-devel > is

Re: [PATCH 2/2] perf tools: Remove some duplicated includes

2020-06-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 02, 2020 at 12:15:04PM +0800, Tiezhu Yang escreveu: > There exists some duplicated includes in tools/perf, remove them. Applied, thanks. - Arnaldo > Signed-off-by: Tiezhu Yang > --- > tools/perf/builtin-report.c | 1 - > tools/perf/util/annotate.c | 1 - >

Re: [PATCH] hwmon: bt1-pvt: Declare Temp- and Volt-to-N poly when alarms are enabled

2020-06-02 Thread Guenter Roeck
On Tue, Jun 02, 2020 at 12:12:19PM +0300, Serge Semin wrote: > Clang-based kernel building with W=1 warns that some static const > variables are unused: > > drivers/hwmon/bt1-pvt.c:67:30: warning: unused variable 'poly_temp_to_N' > [-Wunused-const-variable] > static const struct pvt_poly

Re: [PATCH] perf tools: Fix kernel maps for kcore and eBPF

2020-06-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 02, 2020 at 02:25:05PM +0300, Adrian Hunter escreveu: > Adjust pgoff also when moving a map's start address. > > Example with v5.4.34 based kernel: > > Before: > > $ sudo tools/perf/perf record -a --kcore -e intel_pt//k sleep 1 > [ perf record: Woken up 1 times to write

Re: [PATCHv3] perf stat: Ensure group is defined on top of the same cpu mask

2020-06-02 Thread Jiri Olsa
On Tue, Jun 02, 2020 at 10:42:56AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jun 02, 2020 at 12:17:36PM +0200, Jiri Olsa escreveu: > > Jin Yao reported the issue (and posted first versions of this change) > > with groups being defined over events with different cpu mask. > > > This causes

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Greg Kroah-Hartman
On Tue, Jun 02, 2020 at 05:10:35AM -0700, Matthew Wilcox wrote: > On Tue, Jun 02, 2020 at 07:50:33PM +0800, Wang Hai wrote: > > syzkaller reports for memory leak when kobject_init_and_add() > > returns an error in the function sysfs_slab_add() [1] > > > > When this happened, the function

Re: [PATCH v4 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-02 Thread Sumit Garg
On Tue, 2 Jun 2020 at 19:16, Daniel Thompson wrote: > > On Fri, May 29, 2020 at 04:56:47PM +0530, Sumit Garg wrote: > > In kgdb context, calling console handlers aren't safe due to locks used > > in those handlers which could in turn lead to a deadlock. Although, using > > oops_in_progress

[PATCH 4/4] serial: core: drop redundant sysrq checks

2020-06-02 Thread Johan Hovold
The sysrq timestamp will never be set unless port->has_sysrq so drop the redundant checks that where added by commit 1997e9dfdc84 ("serial_core: Un-ifdef sysrq SUPPORT_SYSRQ"). Signed-off-by: Johan Hovold --- include/linux/serial_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 2/4] serial: core: fix broken sysrq port unlock

2020-06-02 Thread Johan Hovold
Commit d6e1935819db ("serial: core: Allow processing sysrq at port unlock time") worked around a circular locking dependency by adding helpers used to defer sysrq processing to when the port lock was released. A later commit unfortunately converted these inline helpers to exported functions

[PATCH 0/4] serial: core: fix up sysrq regressions

2020-06-02 Thread Johan Hovold
This series fixes a few regressions introduced by the recent sysrq rework that went into 5.6. The port unlock fix is tagged for stable, and the fix for the unnecessary per-character overhead probably could be as well although it is a bit more intrusive. Johan Johan Hovold (4): Revert

[PATCH 1/4] Revert "serial: core: Refactor uart_unlock_and_check_sysrq()"

2020-06-02 Thread Johan Hovold
This reverts commit da9a5aa3402db0ff3b57216d8dbf2478e1046cae. In order to ease backporting a fix for broken port unlock, revert this rewrite which was since added on top. The other sysrq helpers bail out early when sysrq is not enabled; it's better to keep that pattern here as well. Note that

[PATCH 3/4] serial: core: fix sysrq overhead regression

2020-06-02 Thread Johan Hovold
Commit 8e20fc391711 ("serial_core: Move sysrq functions from header file") converted the inline sysrq helpers to exported functions which are now called for every received character and break signal also on systems without CONFIG_MAGIC_SYSRQ_SERIAL instead of being optimised away by the compiler.

Re: [PATCH 07/15] drm/amdgpu: use PCI_IRQ_MSI_TYPES where appropriate

2020-06-02 Thread Andy Shevchenko
On Tue, Jun 2, 2020 at 4:38 PM Ruhl, Michael J wrote: > >-Original Message- > >From: dri-devel On Behalf Of > >Piotr Stankiewicz > >Sent: Tuesday, June 2, 2020 5:21 AM > >To: Alex Deucher ; Christian König > >; David Zhou ; David > >Airlie ; Daniel Vetter > >Cc: Stankiewicz, Piotr ;

Re: [PATCH] spi: sprd: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-02 Thread Baolin Wang
Hi, On Tue, Jun 2, 2020 at 1:20 PM Navid Emamdoost wrote: > > Call to pm_runtime_get_sync increments counter even in case of > failure leading to incorrect ref count. > Call pm_runtime_put_noidle if pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost Looks good to me. Thanks

[PATCH v4 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-06-02 Thread Zhenyu Ye
From: Marc Zyngier In order to reduce the cost of TLB invalidation, the ARMv8.4 TTL feature allows TLBs to be issued with a level allowing for quicker invalidation. Let's detect the feature for now. Further patches will implement its actual usage. Signed-off-by: Marc Zyngier Signed-off-by:

[PATCH v4 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-06-02 Thread Zhenyu Ye
Add a level-hinted parameter to __tlbi_user, which only gets used if ARMv8.4-TTL gets detected. ARMv8.4-TTL provides the TTL field in tlbi instruction to indicate the level of translation table walk holding the leaf entry for the address that is being invalidated. This patch set the default

[PATCH v4 5/6] arm64: tlb: Set the TTL field in flush_tlb_range

2020-06-02 Thread Zhenyu Ye
This patch uses the cleared_* in struct mmu_gather to set the TTL field in flush_tlb_range(). Signed-off-by: Zhenyu Ye Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/tlb.h | 29 - arch/arm64/include/asm/tlbflush.h | 14 -- 2 files changed,

[PATCH v4 4/6] tlb: mmu_gather: add tlb_flush_*_range APIs

2020-06-02 Thread Zhenyu Ye
From: "Peter Zijlstra (Intel)" tlb_flush_{pte|pmd|pud|p4d}_range() adjust the tlb->start and tlb->end, then set corresponding cleared_*. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Zhenyu Ye Acked-by: Catalin Marinas --- include/asm-generic/tlb.h | 55

[PATCH v4 6/6] arm64: tlb: Set the TTL field in flush_*_tlb_range

2020-06-02 Thread Zhenyu Ye
This patch implement flush_{pmd|pud}_tlb_range() in arm64 by calling __flush_tlb_range() with the corresponding stride and tlb_level values. Signed-off-by: Zhenyu Ye --- arch/arm64/include/asm/pgtable.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v4 2/6] arm64: Add level-hinted TLB invalidation helper

2020-06-02 Thread Zhenyu Ye
From: Marc Zyngier Add a level-hinted TLB invalidation helper that only gets used if ARMv8.4-TTL gets detected. Signed-off-by: Marc Zyngier Signed-off-by: Zhenyu Ye Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/tlbflush.h | 29 + 1 file changed, 29

Re: [PATCH 1/7] drm/rockchip: prepare common code for cdns and rk dpi/dp driver

2020-06-02 Thread Emil Velikov
HI Sandor Yu On Mon, 1 Jun 2020 at 07:29, wrote: > > From: Sandor Yu > > - Extracted common fields from cdn_dp_device to a new cdns_mhdp_device > structure which will be used by two separate drivers later on. > - Moved some datatypes (audio_format, audio_info, vic_pxl_encoding_format, >

[PATCH v4 0/6] arm64: tlb: add support for TTL feature

2020-06-02 Thread Zhenyu Ye
In order to reduce the cost of TLB invalidation, ARMv8.4 provides the TTL field in TLBI instruction. The TTL field indicates the level of page table walk holding the leaf entry for the address being invalidated. This series provide support for this feature. When ARMv8.4-TTL is implemented, the

Re: linux-next: manual merge of the hyperv tree with the kvm tree

2020-06-02 Thread Wei Liu
On Tue, Jun 02, 2020 at 05:18:02PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the hyperv tree got a conflict in: > > arch/x86/include/asm/hyperv-tlfs.h > > between commit: > > 22ad0026d097 ("x86/hyper-v: Add synthetic debugger definitions") > Paolo As far

[PATCH v2] crypto: hisilicon - allow smaller reads in debugfs

2020-06-02 Thread Dan Carpenter
Originally this code rejected any read less than 256 bytes. There is no need for this artificial limit. We should just use the normal helper functions to read a string from the kernel. Signed-off-by: Dan Carpenter --- v2: Use simple_read_from_buffer(). The v1 was slightly half arsed because I

Re: [PATCH] ARM: dts: AM33xx-l4: add gpio-ranges

2020-06-02 Thread Tony Lindgren
* Grygorii Strashko [200602 13:44]: > > > On 02/06/2020 16:14, Drew Fustini wrote: > > Add gpio-ranges properties to the gpio controller nodes. > > > > These gpio-ranges were created based on "Table 9-10. CONTROL_MODULE > > REGISTERS" in the "AM335x Technical Reference Manual" [0] and "Table

[PATCH] workqueue: ensure all flush_work() completed when being destoryed

2020-06-02 Thread Lai Jiangshan
In old days, worker threads are not shared among different workqueues and destroy_workqueue() used kthread_stop() to destroy all workers before going to destroy workqueue structures. And kthread_stop() can ensure the scheduled (worker->scheduled) work items and the linked work items queued by

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Konstantin Khlebnikov
On 02/06/2020 15.10, Matthew Wilcox wrote: On Tue, Jun 02, 2020 at 07:50:33PM +0800, Wang Hai wrote: syzkaller reports for memory leak when kobject_init_and_add() returns an error in the function sysfs_slab_add() [1] When this happened, the function kobject_put() is not called for the

[PATCHv5 1/1] ext4: mballoc: Use raw_cpu_ptr instead of this_cpu_ptr

2020-06-02 Thread Ritesh Harjani
Not tainted 5.7.0-next-20200602-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 check_preemption_disabled+0x20d/0x220 lib/smp_processor_id.c

Re: [PATCH v4 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-02 Thread Daniel Thompson
On Fri, May 29, 2020 at 04:56:47PM +0530, Sumit Garg wrote: > In kgdb context, calling console handlers aren't safe due to locks used > in those handlers which could in turn lead to a deadlock. Although, using > oops_in_progress increases the chance to bypass locks in most console > handlers but

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-02 Thread Adrian Hunter
On 2/06/20 12:12 pm, Alexey Budankov wrote: > > On 02.06.2020 11:32, Alexey Budankov wrote: >> >> On 02.06.2020 2:37, Andi Kleen wrote: > or a pathname, or including also the event default of "disabled". For my cases conversion of pathnames into open fds belongs to external

Re: [PATCH] ARM: dts: AM33xx-l4: add gpio-ranges

2020-06-02 Thread Grygorii Strashko
On 02/06/2020 16:14, Drew Fustini wrote: Add gpio-ranges properties to the gpio controller nodes. These gpio-ranges were created based on "Table 9-10. CONTROL_MODULE REGISTERS" in the "AM335x Technical Reference Manual" [0] and "Table 4-2. Pin Attributes" in the "AM335x Sitara Processor

Re: [PATCHv3] perf stat: Ensure group is defined on top of the same cpu mask

2020-06-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 02, 2020 at 12:17:36PM +0200, Jiri Olsa escreveu: > Jin Yao reported the issue (and posted first versions of this change) > with groups being defined over events with different cpu mask. > This causes assert aborts in get_group_fd, like: > # perf stat -M "C2_Pkg_Residency" -a --

Re: [PATCH 1/2] i2c: mux: pca9541: Change to correct bus control commands

2020-06-02 Thread Guenter Roeck
On 6/2/20 5:12 AM, Quentin Strydom wrote: > Change current bus commands to match the pca9541a datasheet > (see table 12 on page 14 of > https://www.nxp.com/docs/en/data-sheet/PCA9541A.pdf). Also > where entries are marked as no change the current control > command is repeated as the current master

RE: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-06-02 Thread Avri Altman
But this is just a suggestion. Your way is fine too. Thanks, Avri > > How about something like the untested attached? > > Thanks, > Avri > > > -Original Message- > > From: Bean Huo > > Sent: Tuesday, June 2, 2020 2:36 PM > > To: Avri Altman ; alim.akh...@samsung.com; > >

Re: [PATCH] serial: 8250_port: Fix imprecise external abort for mctrl if inactive

2020-06-02 Thread Tony Lindgren
* Andy Shevchenko [200602 08:33]: > On Tue, Jun 2, 2020 at 11:09 AM Johan Hovold wrote: > > On Mon, Jun 01, 2020 at 05:18:13PM -0700, Tony Lindgren wrote: > > ... > > > There's shouldn't be anything fundamental preventing you from adding the > > missing resume calls to the mctrl paths even if

RE: [PATCH 07/15] drm/amdgpu: use PCI_IRQ_MSI_TYPES where appropriate

2020-06-02 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Piotr Stankiewicz >Sent: Tuesday, June 2, 2020 5:21 AM >To: Alex Deucher ; Christian König >; David Zhou ; David >Airlie ; Daniel Vetter >Cc: Stankiewicz, Piotr ; dri- >de...@lists.freedesktop.org; amd-...@lists.freedesktop.org; linux-

Re: [PATCH] media: stm32-dcmi: Set minimum cpufreq requirement

2020-06-02 Thread Valentin Schneider
On 02/06/20 12:37, Benjamin GAIGNARD wrote: > On 6/2/20 11:31 AM, Valentin Schneider wrote: >>> @@ -99,6 +100,8 @@ enum state { >>> >>> #define OVERRUN_ERROR_THRESHOLD 3 >>> >>> +#define DCMI_MIN_FREQ 65 /* in KHz */ >>> + >> This assumes the handling part is guaranteed to always

Re: [RFC 06/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-06-02 Thread Kirill A. Shutemov
On Mon, Jun 01, 2020 at 06:35:22PM +0200, Paolo Bonzini wrote: > On 25/05/20 17:17, Kirill A. Shutemov wrote: > >> Personally, I would've just added 'struct kvm' pointer to 'struct > >> kvm_memory_slot' to be able to extract 'mem_protected' info when > >> needed. This will make the patch much

Re: [PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap

2020-06-02 Thread Michael S. Tsirkin
On Tue, Jun 02, 2020 at 02:49:38PM +0800, Jason Wang wrote: > > On 2020/6/2 下午12:56, Michael S. Tsirkin wrote: > > On Tue, Jun 02, 2020 at 03:22:49AM +0800, kbuild test robot wrote: > > > Hi Jason, > > > > > > I love your patch! Yet something to improve: > > > > > > [auto build test ERROR on

Re: [v4,1/1] hwmon: (nct7904) Add watchdog function

2020-06-02 Thread Guenter Roeck
On 6/2/20 1:01 AM, Geert Uytterhoeven wrote: > Hi Yuechao, > > On Tue, Mar 31, 2020 at 7:30 AM wrote: >> From: Yuechao Zhao >> >> implement watchdong functionality into the "hwmon/nct7904.c" >> >> Signed-off-by: Yuechao Zhao > > Thanks for your patch, which is now commit 77849a552d142ef5

Re: [PATCH] x86_64: fix jiffies ODR violation

2020-06-02 Thread Josh Poimboeuf
On Fri, May 15, 2020 at 11:05:40AM -0700, Bob Haarman wrote: > `jiffies` [...] > `jiffies_64` [...] > ``` > In LLD, symbol assignments in linker scripts override definitions in > object files. GNU ld appears to have the same behavior. It would > probably make sense for LLD to error "duplicate

[PATCH] dt-bindings: clock: Convert imx7ulp clock to json-schema

2020-06-02 Thread Anson Huang
Convert the i.MX7ULP clock binding to DT schema format using json-schema, the original binding doc is actually for two clock modules(SCG and PCC), so split it to two binding docs, and the MPLL(mipi PLL) is NOT supposed to be in clock module, so remove it from binding doc as well. Signed-off-by:

Re: [PATCHv2] perf stat: Ensure group is defined on top of the same cpu mask

2020-06-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 02, 2020 at 02:10:17PM +0200, Jiri Olsa escreveu: > On Tue, Jun 02, 2020 at 08:50:17PM +0900, Namhyung Kim wrote: > > Hi Jiri, > > > > On Tue, Jun 2, 2020 at 5:16 PM Jiri Olsa wrote: > > > > > > On Tue, Jun 02, 2020 at 11:47:19AM +0900, Namhyung Kim wrote: > > > > On Tue, Jun 2, 2020

Re: [Cocci] [PATCH 1/2] Coccinelle: extend memdup_user transformation with GFP_USER

2020-06-02 Thread Julia Lawall
On Sat, 30 May 2020, Denis Efremov wrote: > Match GFP_USER allocations with memdup_user.cocci rule. > Commit 6c2c97a24f09 ("memdup_user(): switch to GFP_USER") switched > memdup_user() from GFP_KERNEL to GFP_USER. In most cases it is still > a good idea to use memdup_user() for GFP_KERNEL

Re: [PATCH v2 3/7] selftests/ftrace: Add "requires:" list support

2020-06-02 Thread Steven Rostedt
On Tue, 2 Jun 2020 18:08:31 +0900 Masami Hiramatsu wrote: > +++ b/tools/testing/selftests/ftrace/test.d/template > @@ -1,6 +1,7 @@ > #!/bin/sh > # SPDX-License-Identifier: GPL-2.0 > # description: %HERE DESCRIBE WHAT THIS DOES% > +# requires: %HERE LIST UP REQUIRED FILES% Not sure what you

KASAN: use-after-free Read in usb_udc_uevent

2020-06-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ffeb595d Merge tag 'powerpc-5.7-6' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17f7f2b110 kernel config: https://syzkaller.appspot.com/x/.config?x=9ac87c7c2ba15abf

Re: [GIT PULL][PATCH v5 0/8] Add support for ZSTD-compressed kernel and initramfs

2020-06-02 Thread Metztli Information Technology
On Mon, Jun 1, 2020 at 2:59 PM Norbert Lange wrote: > > The series seems to be stuck in limbo, and I got the hint to bring > this to Andrew's attention [1]. > Hope this will finally end in upstream, been using these patches for ~2 years. > > Regards, Norbert > > [1] -

[PATCH v14 15/15] MAINTAINERS: Update for DAMON

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit updates MAINTAINERS file for DAMON related files. Signed-off-by: SeongJae Park --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 50659d76976b..2396a9098715 100644 --- a/MAINTAINERS +++

[PATCH v14 14/15] mm/damon: Add user space selftests

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds a simple user space tests for DAMON. The tests are using kselftest framework. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile| 7 + .../selftests/damon/_chk_dependency.sh| 28

[PATCH v14 12/15] mm/damon: Add kunit tests

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds kunit based unit tests for DAMON. Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins --- mm/Kconfig | 11 + mm/damon-test.h | 622 mm/damon.c | 6 + 3 files changed, 639 insertions(+)

Re: [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe()

2020-06-02 Thread Daniel Vetter
Hi Bart, On Mon, Jun 01, 2020 at 03:25:25PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 5/25/20 9:11 AM, Tiezhu Yang wrote: > > When call function devm_platform_ioremap_resource(), we should use IS_ERR() > > to check the return value and return PTR_ERR() if failed. > > > > Signed-off-by:

Re: [PATCH 11/15] mmc: sdhci: use PCI_IRQ_MSI_TYPES where appropriate

2020-06-02 Thread Adrian Hunter
On 2/06/20 12:20 pm, Piotr Stankiewicz wrote: > Seeing as there is shorthand available to use when asking for any type > of interrupt, or any type of message signalled interrupt, leverage it. > > Signed-off-by: Piotr Stankiewicz > Reviewed-by: Andy Shevchenko Acked-by: Adrian Hunter > --- >

[PATCH v14 13/15] mm/damon-test: Add a kunit test for recording setup

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds another unit test case for the recording setup. Signed-off-by: SeongJae Park --- mm/damon-test.h | 13 + 1 file changed, 13 insertions(+) diff --git a/mm/damon-test.h b/mm/damon-test.h index cf715529ff64..5b18619efe72 100644 ---

Re: [PATCH] vimc: debayer: Add support for ARGB format

2020-06-02 Thread Dafna Hirschfeld
On 02.06.20 14:45, Laurent Pinchart wrote: Hello, On Tue, Jun 02, 2020 at 08:31:26AM -0300, Helen Koike wrote: On 6/2/20 8:24 AM, Kieran Bingham wrote: On 02/06/2020 11:55, Helen Koike wrote: On 6/2/20 7:52 AM, Dafna Hirschfeld wrote: On 01.06.20 14:16, Kaaira Gupta wrote: On Fri, May

[PATCH v14 10/15] tools: Add a minimal user-space tool for DAMON

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds a shallow wrapper python script, ``/tools/damon/damo`` that provides more convenient interface. Note that it is only aimed to be used for minimal reference of the DAMON's debugfs interfaces and for debugging of the DAMON itself. Signed-off-by: SeongJae Park

Re: Question: livepatch failed for new fork() task stack unreliable

2020-06-02 Thread Josh Poimboeuf
On Tue, Jun 02, 2020 at 09:22:30AM +0800, Wangshaobo (bobo) wrote: > so i think this question is related to ORC unwinder, could i ask if you have > strategy or plan to avoid this problem ? I suspect something like this would fix it (untested): diff --git a/arch/x86/kernel/stacktrace.c

[PATCH] ARM: dts: AM33xx-l4: add gpio-ranges

2020-06-02 Thread Drew Fustini
Add gpio-ranges properties to the gpio controller nodes. These gpio-ranges were created based on "Table 9-10. CONTROL_MODULE REGISTERS" in the "AM335x Technical Reference Manual" [0] and "Table 4-2. Pin Attributes" in the "AM335x Sitara Processor datasheet" [1]. A csv file with this data is

Re: [PATCH] vimc: debayer: Add support for ARGB format

2020-06-02 Thread Helen Koike
On 6/2/20 9:45 AM, Laurent Pinchart wrote: > Hello, > > On Tue, Jun 02, 2020 at 08:31:26AM -0300, Helen Koike wrote: >> On 6/2/20 8:24 AM, Kieran Bingham wrote: >>> On 02/06/2020 11:55, Helen Koike wrote: On 6/2/20 7:52 AM, Dafna Hirschfeld wrote: > On 01.06.20 14:16, Kaaira Gupta

[PATCH v14 09/15] mm/damon: Add tracepoints

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds a tracepoint for DAMON. It traces the monitoring results of each region for each aggregation interval. Using this, DAMON will be easily integrated with any tracepoints supporting tools such as perf. Signed-off-by: SeongJae Park Reviewed-by: Leonard

From Honourable Barrister Aziz Dake.

2020-06-02 Thread Aziz Dake
Attn: Sir/Madam I am Honourable Barrister Aziz the personal resident Attorney here in Burkina Faso to Late Mr. Muammar Muhammad Abu Minyar al-Gaddafi of Libya c. 1942 – 20 October 2011. My client Late Mr. Muammar Muhammad Abu Minyar al-Gaddafi c. 1942 – 20 October 2011, was having a deposit sum

[PATCH v14 08/15] mm/damon: Add debugfs interface

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit adds a debugfs interface for DAMON. DAMON exports four files, ``attrs``, ``pids``, ``record``, and ``monitor_on`` under its debugfs directory, ``/damon/``. Attributes -- Users can read and write the ``sampling interval``, ``aggregation interval``,

[PATCH -next] PCI: uniphier: Fix Kconfig warning

2020-06-02 Thread YueHaibing
WARNING: unmet direct dependencies detected for PCIE_DW_EP Depends on [n]: PCI [=y] && PCI_ENDPOINT [=n] Selected by [y]: - PCIE_UNIPHIER_EP [=y] && PCI [=y] && (ARCH_UNIPHIER || COMPILE_TEST [=y]) && OF [=y] && HAS_IOMEM [=y] Add missing dependency to fix this. Fixes: 006564dee825 ("PCI:

[PATCH 2/2] lib/Kconfig.debug: Fix typo in the help text of CONFIG_PANIC_TIMEOUT

2020-06-02 Thread Tiezhu Yang
There exists duplicated "the" in the help text of CONFIG_PANIC_TIMEOUT, remove it. Signed-off-by: Tiezhu Yang --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index b3b05ad..d33627a 100644 --- a/lib/Kconfig.debug +++

[PATCH 1/2] kernel/panic.c: Make oops_may_print() return bool

2020-06-02 Thread Tiezhu Yang
The return value of oops_may_print() is true or false, so change its type to reflect that. Signed-off-by: Tiezhu Yang --- include/linux/kernel.h | 2 +- kernel/panic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h

[PATCH v2] soc: samsung: Add simple voltage coupler for Exynos5800

2020-06-02 Thread Marek Szyprowski
Add a simple custom voltage regulator coupler for Exynos5800 SoCs, which require coupling between "vdd_arm" and "vdd_int" regulators. This coupler ensures that the voltage balancing for the coupled regulators is done only when clients for the each regulator apply their constraints, so the voltage

[PATCH v14 07/15] mm/damon: Implement access pattern recording

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit implements the recording feature of DAMON. If this feature is enabled, DAMON writes the monitored access patterns in its binary format into a file which specified by the user. This is already able to be implemented by each user using the callbacks. However, as

[PATCH] iommu/iova: Don't BUG on invalid PFNs

2020-06-02 Thread Robin Murphy
Unlike the other instances which represent a complete loss of consistency within the rcache mechanism itself, or a fundamental and obvious misconfiguration by an IOMMU driver, the BUG_ON() in iova_magazine_free_pfns() can be provoked at more or less any time in a "spooky action-at-a-distance"

[PATCH v14 05/15] mm/damon: Apply dynamic memory mapping changes

2020-06-02 Thread SeongJae Park
From: SeongJae Park Only a number of parts in the virtual address space of the processes is mapped to physical memory and accessed. Thus, tracking the unmapped address regions is just wasteful. However, tracking every memory mapping change might incur an overhead. For the reason, DAMON

[PATCH v14 06/15] mm/damon: Implement callbacks

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit implements callbacks for DAMON. Using this, DAMON users can install their callbacks for each step of the access monitoring so that they can do something interesting with the monitored access patterns online. For example, callbacks can report the monitored

[PATCH RFC 05/13] vhost/net: pass net specific struct pointer

2020-06-02 Thread Michael S. Tsirkin
In preparation for further cleanup, pass net specific pointer to ubuf callbacks so we can move net specific fields out to net structures. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/net.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH RFC 09/13] vhost/net: avoid iov length math

2020-06-02 Thread Michael S. Tsirkin
Now that API exposes buffer length, we no longer need to scan IOVs to figure it out. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/net.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 47af3d1ce3dd..36843058182b

[PATCH RFC 10/13] vhost/test: convert to the buf API

2020-06-02 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- drivers/vhost/test.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index 02806d6f84ef..251fd2bf74a3 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -44,9

[PATCH RFC 04/13] vhost: cleanup fetch_buf return code handling

2020-06-02 Thread Michael S. Tsirkin
Return code of fetch_buf is confusing, so callers resort to tricks to get to sane values. Let's switch to something standard: 0 empty, >0 non-empty, <0 error. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 24 1 file changed, 16 insertions(+), 8

Re: [PATCH] iommu/dma: limit iova free size to unmmaped iova

2020-06-02 Thread Robin Murphy
On 2020-05-26 08:19, gup...@codeaurora.org wrote: On 2020-05-22 14:54, Robin Murphy wrote: On 2020-05-22 07:25, gup...@codeaurora.org wrote: On 2020-05-22 01:46, Robin Murphy wrote: On 2020-05-21 12:30, Prakash Gupta wrote: I agree, we shouldn't be freeing the partial iova. Instead just

[PATCH RFC 06/13] vhost: reorder functions

2020-06-02 Thread Michael S. Tsirkin
Reorder functions in the file to not rely on forward declarations, in preparation to making them static down the road. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git

[PATCH RFC 02/13] vhost: use batched version by default

2020-06-02 Thread Michael S. Tsirkin
As testing shows no performance change, switch to that now. Signed-off-by: Michael S. Tsirkin Signed-off-by: Eugenio Pérez Link: https://lore.kernel.org/r/20200401183118.8334-3-epere...@redhat.com Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 251

[PATCH RFC 13/13] vhost: drop head based APIs

2020-06-02 Thread Michael S. Tsirkin
Everyone's using buf APIs, no need for head based ones anymore. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 36 drivers/vhost/vhost.h | 12 2 files changed, 8 insertions(+), 40 deletions(-) diff --git a/drivers/vhost/vhost.c

[PATCH RFC 08/13] vhost/net: convert to new API: heads->bufs

2020-06-02 Thread Michael S. Tsirkin
Convert vhost net to use the new format-agnostic API. In particular, don't poke at vq internals such as the heads array. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/net.c | 153 +++- 1 file changed, 81 insertions(+), 72 deletions(-) diff --git

[PATCH RFC 03/13] vhost: batching fetches

2020-06-02 Thread Michael S. Tsirkin
With this patch applied, new and old code perform identically. Lots of extra optimizations are now possible, e.g. we can fetch multiple heads with copy_from/to_user now. We can get rid of maintaining the log array. Etc etc. Signed-off-by: Michael S. Tsirkin Signed-off-by: Eugenio Pérez Link:

[PATCH RFC 07/13] vhost: format-independent API for used buffers

2020-06-02 Thread Michael S. Tsirkin
Add a new API that doesn't assume used ring, heads, etc. For now, we keep the old APIs around to make it easier to convert drivers. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 52 ++- drivers/vhost/vhost.h | 17 +- 2 files

[PATCH RFC 11/13] vhost/scsi: switch to buf APIs

2020-06-02 Thread Michael S. Tsirkin
Switch to buf APIs. Doing this exposes a spec violation in vhost scsi: all used bufs are marked with length 0. Fix that is left for another day. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/scsi.c | 73 ++-- 1 file changed, 44 insertions(+), 29

[PATCH RFC 12/13] vhost/vsock: switch to the buf API

2020-06-02 Thread Michael S. Tsirkin
A straight-forward conversion. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vsock.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index fb4e944c4d0d..07d1fb340fb4 100644 ---

[PATCH RFC 01/13] vhost: option to fetch descriptors through an independent struct

2020-06-02 Thread Michael S. Tsirkin
The idea is to support multiple ring formats by converting to a format-independent array of descriptors. This costs extra cycles, but we gain in ability to fetch a batch of descriptors in one go, which is good for code cache locality. When used, this causes a minor performance degradation, it's

Re: [PATCH] tcp: fix TCP socks unreleased in BBR mode

2020-06-02 Thread Eric Dumazet
On Tue, Jun 2, 2020 at 1:05 AM wrote: > > From: Jason Xing > > TCP socks cannot be released because of the sock_hold() increasing the > sk_refcnt in the manner of tcp_internal_pacing() when RTO happens. > Therefore, this situation could increase the slab memory and then trigger > the OOM if the

[PATCH RFC 00/13] vhost: format independence

2020-06-02 Thread Michael S. Tsirkin
We let the specifics of the ring format seep through to vhost API callers - mostly because there was only one format so it was hard to imagine what an independent API would look like. Now that there's an alternative in form of the packed ring, it's easier to see the issues, and fixing them is

[PATCH v14 04/15] mm/damon: Adaptively adjust regions

2020-06-02 Thread SeongJae Park
From: SeongJae Park At the beginning of the monitoring, DAMON constructs the initial regions by evenly splitting the memory mapped address space of the process into the user-specified minimal number of regions. In this initial state, the assumption of the regions (pages in same region have

[PATCH v14 03/15] mm/damon: Implement region based sampling

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit implements DAMON's basic access check and region based sampling mechanisms. This change would seems make no sense, mainly because it is only a part of the DAMON's logics. Following two commits will make more sense. Basic Access Check -- DAMON

[PATCH v14 02/15] mm: Introduce Data Access MONitor (DAMON)

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit introduces a kernel module named DAMON. Note that this commit is implementing only the stub for the module load/unload, basic data structures, and simple manipulation functions of the structures to keep the size of commit small. The core mechanisms of DAMON will

Re: Security Random Number Generator support

2020-06-02 Thread Marc Zyngier
On 2020-06-02 13:14, Ard Biesheuvel wrote: On Tue, 2 Jun 2020 at 10:15, Neal Liu wrote: These patch series introduce a security random number generator which provides a generic interface to get hardware rnd from Secure state. The Secure state can be Arm Trusted Firmware(ATF), Trusted

[PATCH v14 01/15] mm/page_ext: Export lookup_page_ext() to GPL modules

2020-06-02 Thread SeongJae Park
From: SeongJae Park This commit exports 'lookup_page_ext()' to GPL modules. This will be used by DAMON. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster --- mm/page_ext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page_ext.c b/mm/page_ext.c index

[PATCH v14 00/15] Introduce Data Access MONitor (DAMON)

2020-06-02 Thread SeongJae Park
From: SeongJae Park Introduction DAMON is a data access monitoring framework subsystem for the Linux kernel. The core mechanisms of DAMON called 'region based sampling' and adaptive regions adjustment' (refer to :doc:`mechanisms` for the detail) make it - accurate (The monitored

Re: [RESEND PATCH v1 6/6] staging: greybus: audio: Enable GB codec, audio module compilation.

2020-06-02 Thread Dan Carpenter
On Tue, Jun 02, 2020 at 10:51:15AM +0530, Vaibhav Agarwal wrote: > Currently, GB codec and audio module is conditionally compiled based on > GREYBUS_AUDIO_MSM8994. However, audio module is not dependent on MSM8994 > platform and can be used generically with any platform that follows > GB Audio

Re: [PATCH v2 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-06-02 Thread Jean-Baptiste Maneyrol
Hi Jonathan, I agree that this multiplexed watermark computation value is anything except simple and clear to understand. I will add more documentation about it. And it also triggered a kbuild robot issue, because it is using 64 bits modulo without using math64 macros. For buffer

Re: [Linux-stm32] [PATCH v8 08/10] drm: stm: dw-mipi-dsi: let the bridge handle the HW version check

2020-06-02 Thread Emil Velikov
Hi Adrian, On Mon, 1 Jun 2020 at 10:14, Adrian Ratiu wrote: > > On Fri, 29 May 2020, Philippe CORNU wrote: > > Hi Adrian, and thank you very much for the patchset. Thank you > > also for having tested it on STM32F769 and STM32MP1. Sorry for > > the late response, Yannick and I will review it

[GIT PULL] MIPS changes for v5.8-rc1

2020-06-02 Thread Thomas Bogendoerfer
Hi Linus, this is the pull-requests for MIPS. A test merged between your current master (f359287765c0) and mips-next showed a conflict in arch/mips/include/asm/module.h between commit: 62d0fd591db1 ("arch: split MODULE_ARCH_VERMAGIC definitions out to ") from Linus' tree and commits:

Re: [PATCH v3 015/105] drm/vc4: hvs: Boost the core clock during modeset

2020-06-02 Thread Maxime Ripard
Hi Eric, On Wed, May 27, 2020 at 09:33:44AM -0700, Eric Anholt wrote: > On Wed, May 27, 2020 at 8:49 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. > > Like, the whole

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