[PATCH 7/7] x86/percpu: Clean up percpu_cmpxchg_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 6/7] x86/percpu: Clean up percpu_xchg_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 4/7] x86/percpu: Clean up percpu_add_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 3/7] x86/percpu: Clean up percpu_from_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 2/7] x86/percpu: Clean up percpu_to_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 5/7] x86/percpu: Clean up percpu_add_return_op()

2020-05-17 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH 0/7] x86: Clean up percpu operations

2020-05-17 Thread Brian Gerst
The core percpu operations already have a switch on the width of the data type, which resulted in an extra amount of dead code being generated with the x86 operations having another switch. This patch set rewrites the x86 ops to remove the switch. Additional cleanups are to use named assembly

[PATCH 1/7] x86/percpu: Introduce size abstraction macros

2020-05-17 Thread Brian Gerst
In preparation for cleaning up the percpu operations, define macros for abstraction based on the width of the operation. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/x86/include/asm/percpu.h

Re: [PATCH v2 2/2] ARM: dts: kirkwood: Add Check Point L-50 board

2020-05-17 Thread Gregory CLEMENT
Hi Pawel Dembicki, > This patch adds dts for the Check Point L-50 from 600/1100 series > routers. > > Specification: > -CPU: Marvell Kirkwood 88F6821 1200MHz > -RAM: 512MB > -Flash: NAND 512MB > -WiFi: mPCIe card based on Atheros AR9287 b/g/n > -WAN: 1 Gigabit Port (Marvell 88E1116R PHY) > -LAN:

Re: [PATCH for-5.7 0/2] fortify async punt preparation

2020-05-17 Thread Jens Axboe
On 5/17/20 5:02 AM, Pavel Begunkov wrote: > [2] fixes FORCE_ASYNC. I don't want to go through every bit, so > not sure whether this is an actual issue with [1], but it's just > safer this way. Please, consider it for-5.7 LGTM, applied. -- Jens Axboe

Re: INFO: trying to register non-static key in io_cqring_ev_posted (3)

2020-05-17 Thread Jens Axboe
On 5/16/20 10:30 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:ac935d22 Add linux-next specific files for 20200415 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=12deaa5e10 > kernel config:

Re: [PATCH v2] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-05-17 Thread Christian Brauner
On Sun, May 17, 2020 at 05:16:35PM +0200, Christian Brauner wrote: > This is part of a larger series that aims at getting rid of the > copy_thread()/copy_thread_tls() split that makes the process creation > codepaths in the kernel more convoluted and error-prone than they need > to be. > I'm

[PATCH v2] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-05-17 Thread Christian Brauner
This is part of a larger series that aims at getting rid of the copy_thread()/copy_thread_tls() split that makes the process creation codepaths in the kernel more convoluted and error-prone than they need to be. I'm converting all the remaining arches that haven't yet switched and am collecting

Re: [PATCH v2 4/7] serial: 8250: Handle implementations not having TEMT interrupt using em485

2020-05-17 Thread Heiko Stübner
Hi Giulio, Am Donnerstag, 26. März 2020, 03:02:39 CEST schrieb Giulio Benetti: > Il 26/03/2020 01:05, Heiko Stübner ha scritto: > > Am Donnerstag, 26. März 2020, 00:47:38 CET schrieb Giulio Benetti: > >> very cleaner way to handle TEMT as a capability! > >> And I've found one thing... > >> > >>

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Tycho Andersen
On Sun, May 17, 2020 at 08:46:03AM -0600, Tycho Andersen wrote: > On Sun, May 17, 2020 at 04:33:11PM +0200, Christian Brauner wrote: > > struct seccomp_notif2 { > > __u32 notif_size; > > __u64 id; > > __u32 pid; > > __u32 flags; > > struct seccomp_data data; > > __u32

Re: [PATCH 0/3] sparc: port to copy_thread_tls() and struct kernel_clone_args

2020-05-17 Thread Christian Brauner
On Tue, May 12, 2020 at 01:06:33PM -0700, David Miller wrote: > From: Christian Brauner > Date: Tue, 12 May 2020 19:15:24 +0200 > > > I've tested this series with qemu-system-sparc64 and a Debian Sid image > > and it comes up no problem (Here's a little recording > >

Re: [RFC v1 2/3] drivers: nvmem: Add driver for QTI qfprom-efuse support

2020-05-17 Thread Ravi Kumar Bokka (Temp)
Hi Doug, Thanks for your feedback. I have taken care most of the comments given by you initially and send to you as first patch-set. I thought to address other pending comments in next patch-set along with upstream maintainer suggestions as well. I will address rest of the comments and send

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Tycho Andersen
On Sun, May 17, 2020 at 04:33:11PM +0200, Christian Brauner wrote: > On Sun, May 17, 2020 at 08:23:16AM -0600, Tycho Andersen wrote: > > On Sun, May 17, 2020 at 09:21:56PM +1000, Aleksa Sarai wrote: > > > On 2020-05-17, Christian Brauner wrote: > > > > Or... And that's more invasive but

Re: [PATCH 2/2] regulator: max8998: Add charger regulator

2020-05-17 Thread Jonathan Bakker
Hmm, while searching around looking for documentation on other parts of the charging system for max8998, I've come across the originally patch for charger regulator(1). It turns out the lp3974 has different current values. It was never merged, as, to quote Mark Brown(2), "As I've said before

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Christian Brauner
On Sun, May 17, 2020 at 04:33:11PM +0200, Christian Brauner wrote: > On Sun, May 17, 2020 at 08:23:16AM -0600, Tycho Andersen wrote: > > On Sun, May 17, 2020 at 09:21:56PM +1000, Aleksa Sarai wrote: > > > On 2020-05-17, Christian Brauner wrote: > > > > Or... And that's more invasive but

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Christian Brauner
On Sun, May 17, 2020 at 08:23:16AM -0600, Tycho Andersen wrote: > On Sun, May 17, 2020 at 09:21:56PM +1000, Aleksa Sarai wrote: > > On 2020-05-17, Christian Brauner wrote: > > > Or... And that's more invasive but ultimately cleaner we v2 the whole > > > thing so e.g. SECCOMP_IOCTL_NOTIF_RECV2,

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Tycho Andersen
On Sun, May 17, 2020 at 09:21:56PM +1000, Aleksa Sarai wrote: > On 2020-05-17, Christian Brauner wrote: > > Or... And that's more invasive but ultimately cleaner we v2 the whole > > thing so e.g. SECCOMP_IOCTL_NOTIF_RECV2, SECCOMP_IOCTL_NOTIF_SEND2, and > > embedd the size argument in the

Re: [PATCH ghak25 v4 3/3] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-17 Thread Richard Guy Briggs
On 2020-04-28 18:25, Paul Moore wrote: > On Wed, Apr 22, 2020 at 5:40 PM Richard Guy Briggs wrote: > > Some table unregister actions seem to be initiated by the kernel to > > garbage collect unused tables that are not initiated by any userspace > > actions. It was found to be necessary to add

Re: [PATCH 1/1] arm64: dts: imx8mp: add "fsl,imx6sx-fec" compatible string

2020-05-17 Thread Shawn Guo
On Wed, Apr 29, 2020 at 06:04:14PM +0800, fugang.d...@nxp.com wrote: > From: Fugang Duan > > Add "fsl,imx6sx-fec" compatible string for fec node, then > i.MX8MP EVK ethernet function can work now. > > Signed-off-by: Fugang Duan Applied, thanks.

Re: [patch v2 1/2] ls1043ardb: add qe node to ls1043ardb

2020-05-17 Thread Shawn Guo
On Wed, Apr 29, 2020 at 04:20:51PM +0800, Qiang Zhao wrote: > From: Zhao Qiang > > Add qe node to fsl-ls1043a.dtsi and fsl-ls1043a-rdb.dts > > Signed-off-by: Zhao Qiang Subject prefix should be like 'arm64: dts: ...' > --- > v2: > - add commit msg and drop a new blank line > >

Re: [RFC PATCH 00/14] iio: buffer: add support for multiple buffers

2020-05-17 Thread Jonathan Cameron
On Sun, 17 May 2020 06:26:17 + "Ardelean, Alexandru" wrote: > On Sat, 2020-05-16 at 17:24 +0100, Jonathan Cameron wrote: > > [External] > > > > On Sat, 16 May 2020 13:08:46 + > > "Ardelean, Alexandru" wrote: > > > > > On Tue, 2020-05-12 at 06:26 +, Ardelean, Alexandru wrote: >

Re: [PATCH] tick/nohz: Narrow down noise while setting current task's tick dependency

2020-05-17 Thread Frederic Weisbecker
On Fri, May 15, 2020 at 08:07:18PM -0700, Paul E. McKenney wrote: > On Fri, May 15, 2020 at 02:34:29AM +0200, Frederic Weisbecker wrote: > > So far setting a tick dependency on any task, including current, used to > > trigger an IPI to all CPUs. That's of course suboptimal but it wasn't > > an

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-17 Thread Dmitry Osipenko
17.05.2020 16:08, Dmitry Osipenko пишет: > 17.05.2020 06:32, Wang, Jiada пишет: >> Hello Dmitry >> >> On 2020/05/14 13:53, Dmitry Osipenko wrote: >>> 13.05.2020 08:07, Wang, Jiada пишет: Hello Dmitry On 2020/05/12 8:13, Dmitry Osipenko wrote: > 11.05.2020 05:05, Wang, Jiada

Re: [PATCH V7 00/15] perf/x86: Add perf text poke events

2020-05-17 Thread Adrian Hunter
On 12/05/20 3:19 pm, Adrian Hunter wrote: > Hi > > Here are patches to add a text poke event to record changes to kernel text > (i.e. self-modifying code) in order to support tracers like Intel PT > decoding through jump labels, kprobes and ftrace trampolines. > > The first 8 patches make the

[PATCH v5 0/2] Add Qualcomm MSM8939 GCC binding and driver

2020-05-17 Thread Bryan O'Donoghue
V5: - Drops unnecessary .name = "xo" - Stephen - Re-orders probe to put PLL configuration and regmap before qcom_cc_really_probe() - Stephen - Removes MODULE_ALIAS("platform:gcc-msm8939"); - Stephen - Marks Shawn's contribution as Co-developed-by - Stephen -

[PATCH v5 2/2] clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller

2020-05-17 Thread Bryan O'Donoghue
This patch adds support for the MSM8939 GCC. The MSM8939 is based on the MSM8916. MSM8939 is compatible in several ways with MSM8916 but, has additional functional blocks added which require additional PLL sources. In some cases functional blocks from the MSM8916 have different clock sources or

[PATCH v5 1/2] clk: qcom: Add DT bindings for MSM8939 GCC

2020-05-17 Thread Bryan O'Donoghue
Add compatible strings and the include files for the MSM8939 GCC. Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: linux-arm-...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[tip: x86/build] x86/build: Use $(CONFIG_SHELL)

2020-05-17 Thread tip-bot2 for Andrew Morton
The following commit has been merged into the x86/build branch of tip: Commit-ID: 0be11088b848774ae1f693169fdb9575e0ff06ba Gitweb: https://git.kernel.org/tip/0be11088b848774ae1f693169fdb9575e0ff06ba Author:Andrew Morton AuthorDate:Tue, 05 May 2020 14:26:51 -07:00

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-17 Thread Dmitry Osipenko
17.05.2020 06:32, Wang, Jiada пишет: > Hello Dmitry > > On 2020/05/14 13:53, Dmitry Osipenko wrote: >> 13.05.2020 08:07, Wang, Jiada пишет: >>> Hello Dmitry >>> >>> On 2020/05/12 8:13, Dmitry Osipenko wrote: 11.05.2020 05:05, Wang, Jiada пишет: > Hello Dmitry > > Thanks for your

[PATCH 5/7] x86/boot: Mark global variables as static

2020-05-17 Thread Ard Biesheuvel
From: Arvind Sankar Mike Lothian reports that after commit 964124a97b97 ("efi/x86: Remove extra headroom for setup block") gcc 10.1.0 fails with HOSTCC arch/x86/boot/tools/build /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: linker defined:

[PATCH 4/7] efi: cper: Add support for printing Firmware Error Record Reference

2020-05-17 Thread Ard Biesheuvel
From: Punit Agrawal While debugging a boot failure, the following unknown error record was seen in the boot logs. <...> BERT: Error records from previous boot: [Hardware Error]: event severity: fatal [Hardware Error]: Error 0, type: fatal [Hardware Error]: section type:

[PATCH 1/7] efi/libstub: Avoid returning uninitialized data from setup_graphics()

2020-05-17 Thread Ard Biesheuvel
From: Heinrich Schuchardt Currently, setup_graphics() ignores the return value of efi_setup_gop(). As AllocatePool() does not zero out memory, the screen information table will contain uninitialized data in this case. We should free the screen information table if efi_setup_gop() returns an

[PATCH 3/7] efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()

2020-05-17 Thread Ard Biesheuvel
From: Lenny Szubowicz In allocate_e820(), call the EFI get_memory_map() service directly instead of indirectly via efi_get_memory_map(). This avoids allocation of a buffer and return of the full EFI memory map, which is not needed here and would otherwise need to be freed. Routine

[GIT PULL 0/7] EFI fixes for v5.7

2020-05-17 Thread Ard Biesheuvel
The following changes since commit a088b858f16af85e3db359b6c6aaa92dd3bc0921: efi/x86: Revert struct layout change to fix kexec boot regression (2020-04-14 08:32:17 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-urgent for

[PATCH 6/7] efi: Pull up arch-specific prototype efi_systab_show_arch()

2020-05-17 Thread Ard Biesheuvel
From: Benjamin Thiel Pull up arch-specific prototype efi_systab_show_arch() in order to fix a -Wmissing-prototypes warning: arch/x86/platform/efi/efi.c:957:7: warning: no previous prototype for ‘efi_systab_show_arch’ [-Wmissing-prototypes] char *efi_systab_show_arch(char *str) Signed-off-by:

[PATCH 7/7] tpm: check event log version before reading final events

2020-05-17 Thread Ard Biesheuvel
From: Loic Yhuel This fixes the boot issues since 5.3 on several Dell models when the TPM is enabled. Depending on the exact grub binary, booting the kernel would freeze early, or just report an error parsing the final events log. We get an event log in the SHA-1 format, which doesn't have a

[PATCH 2/7] efi/earlycon: Fix early printk for wider fonts

2020-05-17 Thread Ard Biesheuvel
From: Dave Young When I play with terminus fonts I noticed the efi early printk does not work because the earlycon code assumes font width is 8. Here add the code to adapt with larger fonts. Tested with all kinds of kernel built-in fonts on my laptop. Also tested with a local draft patch for

Re: [PATCH 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-05-17 Thread Adrian Hunter
On 13/05/20 4:31 pm, Lars Povlsen wrote: > This adds the eMMC driver for the Sparx5 SoC. It is based upon the > designware IP, but requires some extra initialization and quirks. > > Reviewed-by: Alexandre Belloni > Signed-off-by: Lars Povlsen > --- > drivers/mmc/host/Kconfig | 13 ++

RE: [PATCH 09/29] kbuild: disallow multi-word in M= or KBUILD_EXTMOD

2020-05-17 Thread David Laight
From: Masahiro Yamada > Sent: 17 May 2020 10:49 > $(firstword ...) in scripts/Makefile.modpost was added by commit > 3f3fd3c05585 ("[PATCH] kbuild: allow multi-word $M in Makefile.modpost") > to build multiple external module directories. > > This feature has been broken for a while. Remove the

Re: [PATCH 05/12] gpu/drm: Ingenic: Fix opaque pointer casted to wrong type

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:21, Sam Ravnborg a écrit : On Sat, May 16, 2020 at 11:50:50PM +0200, Paul Cercueil wrote: The opaque pointer passed to the IRQ handler is a pointer to the drm_device, not a pointer to our ingenic_drm structure. It still worked, because our ingenic_drm

Re: [PATCH 04/12] gpu/drm: ingenic: Fix bogus crtc_atomic_check callback

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:17, Sam Ravnborg a écrit : On Sat, May 16, 2020 at 11:50:49PM +0200, Paul Cercueil wrote: The code was comparing the SoC's maximum height with the mode's width, and vice-versa. D'oh. Cc: sta...@vger.kernel.org # v5.6 Fixes: a7c909b7c037 ("gpu/drm:

[PATCH 2/3] arm64: dts: qcom: Add initial sm6125 SoC support

2020-05-17 Thread Eli Riggs
Initial support for SM6125 SoC. CPUs, fixed clocks, interrupt controller, and UART. This DTSI is ported from the forked vendor version from XiaoMi which can be found at [0]. It seems internally this board is referred to as "Trinket". Since GCC isn't upstreamed yet, we use dummy clocks for GENI.

[PATCH 1/3] dt-bindings: arm: qcom: Add sm6125 SoC and xiaomi,willow

2020-05-17 Thread Eli Riggs
Add compatibles for SM6125 aka SDM665 aka Snapdragon 665, as well as xiaomi,willow aka Xiaomi Redmi Note 8T, the international edition of the Note 8. Signed-off-by: Eli Riggs --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 3/3] arm64: dts: qcom: Add initial support for Xiaomi Redmi Note 8T

2020-05-17 Thread Eli Riggs
Adds initial device tree for Xiaomi Redmi Note 8T, codename xiaomi-willow. It uses the sm6125 SoC. Currently only boots into initrd shell over UART. Requires appended DTB with qcom,board-id = <0x22 0x0> and qcom,msm-id = <0x18a 0x1> to actually boot. Signed-off-by: Eli Riggs ---

Re: [PATCH] drm/etnaviv: fix perfmon domain interation

2020-05-17 Thread Lucas Stach
Hi Christian, Am Montag, den 11.05.2020, 14:37 +0200 schrieb Christian Gmeiner: > The GC860 has one GPU device which has a 2d and 3d core. In this case > we want to expose perfmon information for both cores. > > The driver has one array which contains all possible perfmon domains > with some

[PATCH] block: Remove unused flush_queue_delayed in struct blk_flush_queue

2020-05-17 Thread Baolin Wang
The flush_queue_delayed was introdued to hold queue if flush is running for non-queueable flush drive by commit 3ac0cc450870 ("hold queue if flush is running for non-queueable flush drive"), but the non mq parts of the flush code had been removed by commit 7e992f847a08 ("block: remove non mq parts

[rcu:tglx.2020.05.05a 105/140] arch/x86/kernel/traps.c:819:24: error: 'tsk' undeclared

2020-05-17 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tglx.2020.05.05a head: e6d36eed49b863bbe393e3c07cae737cd9c475e3 commit: ca303aa341bab5cdb3a3b41391ff262e252cd3f3 [105/140] x86/traps: Restructure #DB handling config: i386-tinyconfig (attached as .config) compiler:

[PATCH liburing 4/4] splice/tee/tests: test len=0 splice/tee

2020-05-17 Thread Pavel Begunkov
Check zero-length splice() and tee(). Signed-off-by: Pavel Begunkov --- test/splice.c | 38 -- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/test/splice.c b/test/splice.c index 119c493..b81aa4b 100644 --- a/test/splice.c +++ b/test/splice.c

[PATCH liburing 3/4] tee/test: add test for tee(2)

2020-05-17 Thread Pavel Begunkov
Add tee() tests with pipe data validation Signed-off-by: Pavel Begunkov --- test/splice.c | 157 ++ 1 file changed, 133 insertions(+), 24 deletions(-) diff --git a/test/splice.c b/test/splice.c index 1c27c8e..119c493 100644 --- a/test/splice.c

[PATCH liburing 2/4] update io_uring.h with tee()

2020-05-17 Thread Pavel Begunkov
Signed-off-by: Pavel Begunkov --- src/include/liburing/io_uring.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index e48d746..a279151 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@

[PATCH liburing 0/4] splice/tee testing

2020-05-17 Thread Pavel Begunkov
Add tee and improve splice tests Pavel Begunkov (4): splice/test: improve splice tests update io_uring.h with tee() tee/test: add test for tee(2) splice/tee/tests: test len=0 splice/tee src/include/liburing/io_uring.h | 1 + test/splice.c | 538

[PATCH liburing 1/4] splice/test: improve splice tests

2020-05-17 Thread Pavel Begunkov
Split and test functionality separately, better cover registered files cases, and validate file\pipe actual data. Signed-off-by: Pavel Begunkov --- test/splice.c | 393 ++ 1 file changed, 300 insertions(+), 93 deletions(-) diff --git

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Aleksa Sarai
On 2020-05-17, Christian Brauner wrote: > Or... And that's more invasive but ultimately cleaner we v2 the whole > thing so e.g. SECCOMP_IOCTL_NOTIF_RECV2, SECCOMP_IOCTL_NOTIF_SEND2, and > embedd the size argument in the structs. Userspace sets the size > argument, we use get_user() to get the

[PATCH v2 0/2] io_uring tee support

2020-05-17 Thread Pavel Begunkov
Add tee support. v2: handle zero-len tee Pavel Begunkov (2): splice: export do_tee() io_uring: add tee(2) support fs/io_uring.c | 62 +-- fs/splice.c | 3 +- include/linux/splice.h| 3 ++

[PATCH v2 2/2] io_uring: add tee(2) support

2020-05-17 Thread Pavel Begunkov
Add IORING_OP_TEE implementing tee(2) support. Almost identical to splice bits, but without offsets. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 62 +-- include/uapi/linux/io_uring.h | 1 + 2 files changed, 60 insertions(+), 3 deletions(-)

[PATCH v2 1/2] splice: export do_tee()

2020-05-17 Thread Pavel Begunkov
export do_tee() for use in io_uring Signed-off-by: Pavel Begunkov --- fs/splice.c| 3 +-- include/linux/splice.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/splice.c b/fs/splice.c index fd0a1e7e5959..a1dd54de24d8 100644 --- a/fs/splice.c +++

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Sargun Dhillon
On Sun, May 17, 2020 at 12:17 AM Kees Cook wrote: > > On Fri, May 15, 2020 at 04:40:05PM -0700, Sargun Dhillon wrote: > > This includes the thread group leader ID in the seccomp_notif. This is > > immediately useful for opening up a pidfd for the group leader, as > > pidfds only work on group

[PATCH 1/3] io_uring: remove req->needs_fixed_files

2020-05-17 Thread Pavel Begunkov
A submission is "async" IIF it's done by SQPOLL thread. Instead of passing @async flag into io_submit_sqes(), deduce it from ctx->flags. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/fs/io_uring.c

[PATCH 2/3] io_uring: rename io_file_put()

2020-05-17 Thread Pavel Begunkov
io_file_put() deals with flushing state's file refs, adding "state" to its name makes it a bit clearer. Also, avoid double check of state->file in __io_file_get() in some cases. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 22 +- 1 file changed, 13 insertions(+), 9

[PATCH 3/3] io_uring: don't repeat valid flag list

2020-05-17 Thread Pavel Begunkov
req->flags stores all sqe->flags. After checking that sqe->flags are valid set if IOSQE* flags, no need to double check it, just forward them all. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c

[PATCH for-next 0/3] unrelated cleanups for next

2020-05-17 Thread Pavel Begunkov
Independent cleanups, that's it. Pavel Begunkov (3): io_uring: remove req->needs_fixed_files io_uring: rename io_file_put() io_uring: don't repeat valid flag list fs/io_uring.c | 47 ++- 1 file changed, 26 insertions(+), 21 deletions(-) --

Re: "BUG: MAX_LOCKDEP_ENTRIES too low" with 6979 ">s_umount_key"

2020-05-17 Thread Qian Cai
> On May 16, 2020, at 9:16 PM, Waiman Long wrote: > > The lock_list table entries are for tracking a lock's forward and backward > dependencies. The lockdep_chains isn't the right lockdep file to look at. > Instead, check the lockdep files for entries with the maximum BD (backward >

Re: [PATCH 02/12] dt-bindings: display: Add ingenic,ipu.yaml

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:17, Sam Ravnborg a écrit : Hi Paul. On Sat, May 16, 2020 at 11:50:47PM +0200, Paul Cercueil wrote: Add documentation of the Device Tree bindings for the Image Processing Unit (IPU) found in most Ingenic SoCs. Signed-off-by: Paul Cercueil For me it fails

[PATCH 1/2] io_uring: don't prepare DRAIN reqs twice

2020-05-17 Thread Pavel Begunkov
If req->io is not NULL, it's already prepared. Don't do it again, it's dangerous. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 5a19120345e4..9e81781d7632 100644 ---

[PATCH for-5.7 0/2] fortify async punt preparation

2020-05-17 Thread Pavel Begunkov
[2] fixes FORCE_ASYNC. I don't want to go through every bit, so not sure whether this is an actual issue with [1], but it's just safer this way. Please, consider it for-5.7 IMHO, all preparation thing became a bit messy, definitely could use some rethinking in the future. Pavel Begunkov (2):

[PATCH 2/2] io_uring: fix FORCE_ASYNC req preparation

2020-05-17 Thread Pavel Begunkov
As for other not inlined requests, alloc req->io for FORCE_ASYNC reqs, so they can be prepared properly. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index

[PATCH v2 2/2] dt-bindings: thermal: tsens: Add zeroc interrupt support in yaml

2020-05-17 Thread Manaf Meethalavalappu Pallikunhi
Add zeroc interrupt support for tsens in yaml. Signed-off-by: Manaf Meethalavalappu Pallikunhi --- .../bindings/thermal/qcom-tsens.yaml | 21 +++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml

Re: [PATCH] seccomp: Add group_leader pid to seccomp_notif

2020-05-17 Thread Christian Brauner
On Sun, May 17, 2020 at 12:17:14AM -0700, Kees Cook wrote: > On Fri, May 15, 2020 at 04:40:05PM -0700, Sargun Dhillon wrote: > > This includes the thread group leader ID in the seccomp_notif. This is > > immediately useful for opening up a pidfd for the group leader, as > > pidfds only work on

[PATCH v9] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node

2020-05-17 Thread Rakesh Pillai
Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc. Signed-off-by: Rakesh Pillai --- Changes from v8: - Removed the qcom,msa-fixed-perm --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 7 +++ arch/arm64/boot/dts/qcom/sc7180.dtsi|

[PATCH v2 0/2] Add zeroc interrupt support to tsens driver

2020-05-17 Thread Manaf Meethalavalappu Pallikunhi
The changes have dependency on merging tsens-common.c into tsens.c [1] to merge first. Dependencies: [1] https://lkml.org/lkml/2020/4/29/1028 Changes in v2: * Add zeroc interrupt support to tsens driver * Update zeroc interrupt support in yaml Manaf Meethalavalappu Pallikunhi (2): drivers:

[PATCH v2 1/2] drivers: thermal: tsens: Add zeroc interrupt support

2020-05-17 Thread Manaf Meethalavalappu Pallikunhi
TSENS IP v2.6+ adds zeroc interrupt support. It triggers set interrupt when aggregated minimum temperature of all TSENS falls below zeroc preset threshold and triggers reset interrupt when aggregated minimum temperature of all TSENS crosses above reset threshold. Add support for this interrupt in

Re: [PATCH 2/2] dt-bindings: thermal: tsens: Add zeroc interrupt support in yaml

2020-05-17 Thread manafm
On 2020-05-05 21:08, Rob Herring wrote: On Tue, 5 May 2020 16:42:04 +0530, Manaf Meethalavalappu Pallikunhi wrote: Add 0C (zeroc) interrupt support for tsens in yaml. Signed-off-by: Manaf Meethalavalappu Pallikunhi --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 7 +--

Re: [PATCH 0/2] Add 0C (zeorC) interrupt support to tsens driver

2020-05-17 Thread manafm
On 2020-05-05 17:42, Amit Kucheria wrote: Hi Manaf, Thanks for sending this. Typo: zeorc in subject line. Done On Tue, May 5, 2020 at 4:42 PM Manaf Meethalavalappu Pallikunhi wrote: Changes: * Add zeroc interrupt support to tsens driver * Update zeroc interrupt support in yaml Manaf

Re: [PATCH 2/2] dt-bindings: thermal: tsens: Add zeroc interrupt support in yaml

2020-05-17 Thread manafm
On 2020-05-05 17:41, Amit Kucheria wrote: On Tue, May 5, 2020 at 4:43 PM Manaf Meethalavalappu Pallikunhi wrote: Add 0C (zeroc) interrupt support for tsens in yaml. Signed-off-by: Manaf Meethalavalappu Pallikunhi --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 7 +--

[PATCH] habanalabs: update patched_cb_size for Wreg32

2020-05-17 Thread Oded Gabbay
From: Rachel Stahl The patch_cb_size is not updated for Wreg32 in its validate function, so updated in goya_validate_cb. Signed-off-by: Rachel Stahl Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 1/2] drivers: thermal: tsens: Add 0C (zeorC) interrupt support

2020-05-17 Thread manafm
On 2020-05-05 17:39, Amit Kucheria wrote: Hi Manaf, Typo: fix zeorC in subject line. Done Please rebase this patch[1] on top of my patch merging tsens-common.c and tsens.c. [1]

Re: [PATCH v3 0/5] RCU dyntick nesting counter cleanups for rcu -dev

2020-05-17 Thread Thomas Gleixner
Paul, "Paul E. McKenney" writes: > And I have allegedly resolved the conflicts with Thomas's and Peter's > series, or at least the noinstr-rcu-nmi-2020-05-15 branch of that series. > At least one conflict was completely invisible to "git rebase" (but > fortunately blindingly obvious to the

[PATCH v2 1/3] clk: qcom: gcc: Add support for a new frequency for SC7180

2020-05-17 Thread Taniya Das
There is a requirement to support 51.2MHz from GPLL6 for qup clocks, thus update the frequency table and parent data/map to use the GPLL6 source PLL. Fixes: 17269568f7267 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Signed-off-by: Taniya Das ---

[PATCH v2 2/3] dt-bindings: clock: Add gcc_sec_ctrl_clk_src clock ID

2020-05-17 Thread Taniya Das
The gcc_sec_ctrl_clk_src clock is required to be controlled by the secure controller driver. Signed-off-by: Taniya Das --- include/dt-bindings/clock/qcom,gcc-sc7180.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sc7180.h

[GIT pull] objtool/urgent for v5.7-rc6

2020-05-17 Thread Thomas Gleixner
Linus, please pull the latest objtool/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2020-05-17 up to: 71c95825289f: x86/unwind/orc: Fix error handling in __unwind_start() A single bugfix for the ORC unwinder to ensure that the error flag

[PATCH v2 3/3] clk: qcom: gcc: Add support for Secure control source clock

2020-05-17 Thread Taniya Das
The secure controller driver requires to request for various frequencies on the source clock, thus add support for the same. Signed-off-by: Taniya Das --- drivers/clk/qcom/gcc-sc7180.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc7180.c

[PATCH v2 0/3] Add Misc GCC clock driver support for SC7180

2020-05-17 Thread Taniya Das
[v2] * Update to use ARRAY_SIZE instead of hard-coded values for num_parents. Also add the fixes tag. [v1] * Add a new frequency of 51.2MHz for QUP clock. * Add support for gcc_sec_ctrl_clk_src RCG for client to be able to request various frequencies. Taniya Das (3): clk: qcom:

Re: [PATCH v1 3/3] clk: qcom: gcc: Add support for Secure control source clock

2020-05-17 Thread Taniya Das
Hello Stephen, Thanks for your review. On 3/16/2020 11:19 PM, Stephen Boyd wrote: Quoting Taniya Das (2020-03-16 03:54:42) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index ad75847..3302f19 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++

Re: [PATCH v1 1/3] clk: qcom: gcc: Add support for a new frequency for SC7180

2020-05-17 Thread Taniya Das
Hello Stephen, Thanks for your review. On 3/16/2020 11:19 PM, Stephen Boyd wrote: Quoting Taniya Das (2020-03-16 03:54:40) There is a requirement to support 51.2MHz from GPLL6 for qup clocks, thus update the frequency table and parent data/map to use the GPLL6 source PLL. Signed-off-by:

[PATCH] iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()'

2020-05-17 Thread Christophe JAILLET
If 'ad7780_init_gpios()' fails, we must not release some resources that have not been allocated yet. Return directly instead. Fixes: 5bb30e7daf00 ("staging: iio: ad7780: move regulator to after GPIO init") Fixes: 9085daa4abcc ("staging: iio: ad7780: add gain & filter gpio support") Signed-off-by:

[PATCH 01/29] modpost: drop RCS/CVS $Revision handling in MODULE_VERSION()

2020-05-17 Thread Masahiro Yamada
As far as I understood, this code gets rid of '$Revision$' or '$Revision:' of CVS, RCS or whatever in MODULE_VERSION() tags. Remove the primeval code. Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c| 3 -- scripts/mod/modpost.h| 4 --- scripts/mod/sumversion.c | 66

[PATCH 10/29] modpost: move -T option close to the modpost command

2020-05-17 Thread Masahiro Yamada
The '-T -' option reads the file list from stdin. It is clearer to put it close to the piped command. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index

[PATCH 20/29] modpost: generate vmlinux.symvers and reuse it for the second modpost

2020-05-17 Thread Masahiro Yamada
The full build runs modpost twice, first for vmlinux.o and second for modules. The first pass dumps all the vmlinux symbols into Module.symvers, but the second pass parses vmlinux again instead of reusing the dump file, presumably because it needs to avoid accumulating stale symbols. Loading

[PATCH 05/29] modpost: re-add warning about missing *.mod file

2020-05-17 Thread Masahiro Yamada
This reverts 4be40e22233c ("kbuild: do not emit src version warning for non-modules"). I do not fully understand what that commit addressed, but commit 91341d4b2c19 ("kbuild: introduce new option to enhance section mismatch analysis") introduced partial section checks by using modpost. built-in.o

[PATCH 12/29] modpost: move external module options

2020-05-17 Thread Masahiro Yamada
Separate out the external-only code for readability. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index bc5561aedb24..8321068abb31 100644 ---

[PATCH 06/29] modpost: avoid false-positive file open error

2020-05-17 Thread Masahiro Yamada
One problem of grab_file() is that it cannot distinguish the following two cases: - I cannot read the file (the file does not exist, or read permission is not set) - It can read the file, but the file size is zero This is because grab_file() calls mmap(), which requires the mapped length

[PATCH 15/29] modpost: allow to pass -i option multiple times remove -e option

2020-05-17 Thread Masahiro Yamada
Now that there is no difference in the functionality of -i and -e, they can be unified. Make modpost accept the -i option multiple times, then remove -e. I will reuse -e for a different purpose. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 2 +- scripts/mod/modpost.c| 9

[PATCH 14/29] modpost: track if the symbol origin is a dump file or ELF object

2020-05-17 Thread Masahiro Yamada
The meaning of sym->kernel is obscure; it is set for in-kernel symbols loaded from Modules.symver. This happens only when we are building external modules, and it is used to determine whether to dump symbols to $(KBUILD_EXTMOD)/Modules.symver It is clearer to remember whether the symbol or module

[PATCH 07/29] modpost: use read_text_file() and get_line() for reading text files

2020-05-17 Thread Masahiro Yamada
grab_file() mmaps a file, but it is not so efficient here because get_next_line() copies every line to the temporary buffer anyway. read_text_file() and get_line() are simpler. get_line() exploits the library function strchr(). Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c| 15

[PATCH 19/29] modpost: show warning if it fails to read symbol dump file

2020-05-17 Thread Masahiro Yamada
If modpost fails to load a symbol dump file, it cannot check unresolved symbols, hence module dependency will not be added. Nor CRCs can be added. Currently, external module builds check only $(objtree)/Module.symvers, but it should check files specified by KBUILD_EXTRA_SYMBOLS as well. Print

<    1   2   3   4   5   >