[PATCH v3 2/7] clk: st: flexgen: embed soc clock outputs within compatible data

2021-03-30 Thread Alain Volmat
In order to avoid relying on the old style description via the DT clock-output-names, add compatible data describing the flexgen outputs clocks for all STiH407/STiH410 and STiH418 SOCs. In order to ease transition between the two methods, this commit introduce the new compatible without removing

[PATCH v3 1/7] clk: st: clkgen-pll: remove unused variable of struct clkgen_pll

2021-03-30 Thread Alain Volmat
ODF field within the struct clkgen_pll is never used by the driver and can thus be removed. Signed-off-by: Alain Volmat --- v3: s/used/unused within the subject drivers/clk/st/clkgen-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/st/clkgen-pll.c

[PATCH v3 0/7] clk: st: embed clock outputs within drivers

2021-03-30 Thread Alain Volmat
Most of ST clock drivers used by STi platform are updated in order to introduce clock outputs informations within each drivers and thus allow to avoid having to rely on clock-output-names properties within DT clock nodes. For that purpose, drivers are updated to allow handling both modes (with or

Re: [PATCH] RCU: some improvements to comments of tree.c

2021-03-30 Thread Paul E. McKenney
On Sun, Mar 21, 2021 at 11:17:25AM +0800, Zhouyi Zhou wrote: > During my study of RCU, I go through tree.c many times > and try to make some improvements to the comments. > > Thanks a lot. Thank you for looking this over and for the patch! The commit log should read something like this:

Re: [PATCH -next v2 1/2] mISDN: Use DEFINE_SPINLOCK() for spinlock

2021-03-30 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Tue, 30 Mar 2021 10:24:14 +0800 you wrote: > spinlock can be initialized automatically with DEFINE_SPINLOCK() > rather than explicitly calling spin_lock_init(). > > Changelog: > From v1: > 1. fix the mistake reported

Re: [PATCH net-next 1/1] stmmac: intel: add cross time-stamping freq difference adjustment

2021-03-30 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 30 Mar 2021 10:46:53 +0800 you wrote: > Cross time-stamping mechanism used in certain instance of Intel mGbE > may run at different clock frequency in comparison to the clock > frequency used by processor, so we

Re: [PATCH 1/3] MIPS: uaccess: Added __get/__put_kernel_nofault

2021-03-30 Thread Thomas Bogendoerfer
On Tue, Mar 30, 2021 at 07:48:35PM +0200, Christoph Hellwig wrote: > On Tue, Mar 30, 2021 at 07:26:58PM +0200, Thomas Bogendoerfer wrote: > > Added __get/__put_kernel_nofault as preparation for removing > > get/set_fs. > > For !CONFIG_EVA __get_user_common is simply defined to >

Re: [PATCH 2/3] MIPS: uaccess: Remove get_fs/set_fs call sites

2021-03-30 Thread Thomas Bogendoerfer
On Tue, Mar 30, 2021 at 07:49:43PM +0200, Christoph Hellwig wrote: > On Tue, Mar 30, 2021 at 07:26:59PM +0200, Thomas Bogendoerfer wrote: > > +#define __get_data(x, ptr, u) > > \ > > + (((u) == true) ? __get_udata((x), (ptr), sizeof(*(ptr))) : \

[PATCH] ARM: mach-sa1100: fix incorrect kernel-doc comment syntax in file

2021-03-30 Thread Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments. The header for arch/arm/mach-sa1100/jornada720_ssp.c follows this syntax, but the content inside does not comply with kernel-doc. This line was probably not meant for kernel-doc parsing, but is parsed

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-30 Thread Len Brown
On Tue, Mar 30, 2021 at 4:20 PM Andy Lutomirski wrote: > > > > On Mar 30, 2021, at 12:12 PM, Dave Hansen wrote: > > > > On 3/30/21 10:56 AM, Len Brown wrote: > >> On Tue, Mar 30, 2021 at 1:06 PM Andy Lutomirski > >> wrote: > On Mar 30, 2021, at 10:01 AM, Len Brown wrote: > Is it

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-03-30 Thread Andrii Nakryiko
On Sun, Mar 28, 2021 at 1:11 AM Kumar Kartikeya Dwivedi wrote: > > On Sun, Mar 28, 2021 at 10:12:40AM IST, Andrii Nakryiko wrote: > > Is there some succinct but complete enough documentation/tutorial/etc > > that I can reasonably read to understand kernel APIs provided by TC > > (w.r.t. BPF, of

[v2 PATCH] mm: gup: remove FOLL_SPLIT

2021-03-30 Thread Yang Shi
Since commit 5a52c9df62b4 ("uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT") and commit ba925fa35057 ("s390/gmap: improve THP splitting") FOLL_SPLIT has not been used anymore. Remove the dead code. Reviewed-by: John Hubbard Signed-off-by: Yang Shi --- v2: Remove the reference in

Re: [PATCH v2 00/24] x86/resctrl: Merge the CDP resources

2021-03-30 Thread Babu Moger
Hi James, Thanks for the patches. Few comments below. On 3/12/21 11:58 AM, James Morse wrote: > Hi folks, > > Thanks to Reinette and Jamie for the comments on v1. Major changes in v2 are > to keep the closid in resctrl_arch_update_domains(), eliminating one patch, > splitting another that was

[PATCH 15/18] crypto: rsa-psspad: Provide PSS signature verify operation

2021-03-30 Thread Varad Gautam
Trigger RSA transform on the signature being verified from psspad_verify, to produce intermediary data which will be handled in the psspad_verify_complete callback. Reference: https://tools.ietf.org/html/rfc8017#section-8.1.2 Signed-off-by: Varad Gautam --- crypto/rsa-psspad.c | 53

[PATCH 18/18] keyctl_pkey: Add pkey parameter slen to pass in PSS salt length

2021-03-30 Thread Varad Gautam
keyctl pkey_* operations accept enc and hash parameters at present. RSASSA-PSS signatures also require passing in the signature salt length. Add another parameter 'slen' to feed in salt length of a PSS signature. Signed-off-by: Varad Gautam --- crypto/asymmetric_keys/asymmetric_type.c | 1 +

Re: [PATCH] riscv: Bump COMMAND_LINE_SIZE value to 1024

2021-03-30 Thread Maciej W. Rozycki
On Mon, 29 Mar 2021, Palmer Dabbelt wrote: > > --- /dev/null > > +++ b/arch/riscv/include/uapi/asm/setup.h > > @@ -0,0 +1,8 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ > > + > > +#ifndef _UAPI_ASM_RISCV_SETUP_H > > +#define _UAPI_ASM_RISCV_SETUP_H > > + > >

[PATCH 14/18] crypto: Implement MGF1 Mask Generation Function for RSASSA-PSS

2021-03-30 Thread Varad Gautam
This generates a "mask" byte array of size mask_len bytes as a concatenation of digests, where each digest is calculated on a concatenation of an input seed and a running counter to fill up mask_len bytes - as described by RFC8017 sec B.2.1. "MGF1". The mask is useful for RSA signing/verification

[PATCH 16/18] crypto: rsa-psspad: Implement signature verify callback

2021-03-30 Thread Varad Gautam
The RSA output must be processed as per the EMSA-PSS-VERIFY operation from RFC8017, which forms the core of the PSS signature verification. Implement the verification callback, which operates on the RSA output buffer. Reference: https://tools.ietf.org/html/rfc8017#section-9.1.2 Signed-off-by:

[PATCH 17/18] crypto: Accept pss as valid encoding during signature verification

2021-03-30 Thread Varad Gautam
Accept pss encoding for public_key_verify_signature. If CONFIG_CRYPTO_RSASSA_PSS is disabled, crypto_alloc_akcipher will fail to find a pss backend anyway. Signed-off-by: Varad Gautam --- crypto/asymmetric_keys/public_key.c | 18 +- 1 file changed, 13 insertions(+), 5

[PATCH 04/18] crypto: rsa-pkcs1pad: Pull out child req processing code into helpers

2021-03-30 Thread Varad Gautam
rsa-pkcs1pad operations that require using RSA primitives rely on creating an akcipher child RSA transform and processing the results in the operation-specific callback. Add helpers rsapad_akcipher_setup_child and rsapad_akcipher_req_complete for req setup and callback handling, and switch

[PATCH 11/18] crypto: Scaffolding for RSA-PSS signature style

2021-03-30 Thread Varad Gautam
Add a crypto_template for rsa-psspad, hidden behind CONFIG_CRYPTO_RSASSA_PSS. Set the sign/verify/encrypt/decrypt operations to return -EOPNOTSUPP, to be implemented in the future Signed-off-by: Varad Gautam --- crypto/Kconfig| 6 ++ crypto/Makefile | 1 +

[PATCH 09/18] crypto: Extend akcipher API to pass signature parameters

2021-03-30 Thread Varad Gautam
For certain signature encoding schemes (eg. RSASSA-PSS), the verify/sign operation behavior depends on information contained in the signature blob. Allow passing this down to the crypto_template by introducing a crypto_akcipher_set_sig_params() call. Signed-off-by: Varad Gautam ---

[PATCH 03/18] crypto: rsa-pkcs1pad: Extract pkcs1pad_create into a generic helper

2021-03-30 Thread Varad Gautam
which can be reused by other signature padding schemes as rsapad_akcipher_create. This will be moved out of rsa-pkcs1pad.c to be used across rsa-*pad implementations. Signed-off-by: Varad Gautam --- crypto/rsa-pkcs1pad.c | 48 ++- 1 file changed, 34

[PATCH 10/18] crypto: rsa: Move struct rsa_mpi_key definition to rsa.h

2021-03-30 Thread Varad Gautam
The RSASSA-PSS signature scheme requires knowing the RSA modulus size in bits. The rsa akcipher_alg max_size call is insufficient for this, as the returned keysize is rounded up to the next byte. Since the RSA modulus is stored as an MPI accessible via struct rsa_mpi_key, move the struct

[PATCH 07/18] crypto: rsa: Move more common code to rsa-common

2021-03-30 Thread Varad Gautam
Move helpers for setting public/private keys, RSA akcipher instance setup, keysize querying etc. to rsa-common.c. Signed-off-by: Varad Gautam --- crypto/rsa-common.c | 183 +++ crypto/rsa-pkcs1pad.c| 183 ---

[PATCH 13/18] crypto: rsa-psspad: Get signature salt length from a given signature

2021-03-30 Thread Varad Gautam
Implement akcipher_alg->set_sig_params for rsassa-psspad to receive the salt length for the signature being verified. Signed-off-by: Varad Gautam --- crypto/rsa-psspad.c | 20 +++- include/crypto/internal/rsa-common.h | 1 + 2 files changed, 20 insertions(+), 1

[PATCH 12/18] crypto: rsa-psspad: Introduce shash alloc/dealloc helpers

2021-03-30 Thread Varad Gautam
RSASSA-PSS verify operation needs to compute digests for its Mask Generation Function (MGF1), and for digest comparison. Add helpers to populate a crypto_shash and desc for use in both cases. Signed-off-by: Varad Gautam --- crypto/rsa-psspad.c | 24 1 file changed, 24

[PATCH 06/18] crypto: rsa: Start moving RSA common code to rsa-common

2021-03-30 Thread Varad Gautam
Move out helpers from rsa-pkcs1pad.c which will be shared across rsa-*pad implementations. Signed-off-by: Varad Gautam --- crypto/Makefile | 1 + crypto/rsa-common.c | 76 ++ crypto/rsa-pkcs1pad.c| 97

[PATCH 08/18] crypto: rsa: Move rsapad_akcipher_setup_child and callback to rsa-common

2021-03-30 Thread Varad Gautam
Pull out more common code from rsa-pkcs1pad into rsa-common. Signed-off-by: Varad Gautam --- crypto/rsa-common.c | 31 +++ crypto/rsa-pkcs1pad.c| 32 include/crypto/internal/rsa-common.h | 9 3 files

[PATCH 05/18] crypto: rsa-pkcs1pad: Rename pkcs1pad_* structs to rsapad_*

2021-03-30 Thread Varad Gautam
Use generic naming to share with other padding scheme implementations. These will be moved out of rsa-pkcs1pad.c. Signed-off-by: Varad Gautam --- crypto/rsa-pkcs1pad.c | 62 +-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git

[PATCH 02/18] crypto: rsa-pkcs1pad: Rename pkcs1pad-specific functions to rsapad

2021-03-30 Thread Varad Gautam
The existing RSA implementation supports PKCSv1.5 style signature paddings via rsa-pkcs1pad. A lot of the functionality implemented for rsa-pkcs1pad can be reused across other RSA padding schemes. Rename such functions as rsapad_* before moving them out of rsa-pkcs1pad.c. Signed-off-by: Varad

[PATCH 01/18] X.509: Parse RSASSA-PSS style certificates

2021-03-30 Thread Varad Gautam
An X.509 wrapper for a RSASSA-PSS signature contains additional signature parameters over the PKCSv.15 encoding scheme. Extend the x509 parser to allow parsing RSASSA-PSS encoded certificates, with the defaults taken from RFC8017. A certificate is rejected if the hash function used for the MGF is

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-30 Thread Andrii Nakryiko
On Mon, Mar 29, 2021 at 8:28 PM Alexei Starovoitov wrote: > > On Sun, Mar 28, 2021 at 07:38:42PM -0700, Andrii Nakryiko wrote: > > > > See above. I don't know which hassle is libbpf for users today. You > > were implying code size used for functionality users might not use > > (e.g., linker).

Re: linux-next: build warning after merge of the hwmon-staging tree

2021-03-30 Thread Chris Packham
My bad. I'll send a patch shortly On 30/03/21 8:27 pm, Stephen Rothwell wrote: > Hi all, > > After merging the hwmon-staging tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/hwmon/bpa-rs600.rst: WARNING: document isn't included in any > toctree > > Introduced

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-30 Thread Andy Lutomirski
> On Mar 30, 2021, at 12:12 PM, Dave Hansen wrote: > > On 3/30/21 10:56 AM, Len Brown wrote: >> On Tue, Mar 30, 2021 at 1:06 PM Andy Lutomirski wrote: On Mar 30, 2021, at 10:01 AM, Len Brown wrote: Is it required (by the "ABI") that a user program has everything on the stack

Re: [PATCH] net/ncsi: Avoid channel_monitor hrtimer deadlock

2021-03-30 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 29 Mar 2021 10:20:39 -0500 you wrote: > From: Milton Miller > > Calling ncsi_stop_channel_monitor from channel_monitor is a guaranteed > deadlock on SMP because stop calls del_timer_sync on the timer that > inoked

Re: [PATCH v3 2/2] usb: dwc3: Fix DRD mode change sequence following programming guide

2021-03-30 Thread Wesley Cheng
On 3/29/2021 6:19 PM, Thinh Nguyen wrote: > Wesley Cheng wrote: >> >> >> On 3/6/2021 3:39 PM, Thinh Nguyen wrote: >>> Wesley Cheng wrote: On 1/7/2021 5:51 PM, John Stultz wrote: > In reviewing the previous patch, Thinh Nguyen pointed out that > the DRD mode change sequence

drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'

2021-03-30 Thread kernel test robot
Hi Vladimir, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 17860ccabff533748c85ea32904abd6bae990099 commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e net: dsa: seville: build as separate module date: 6 months

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-30 Thread Rob Herring
On Tue, Mar 30, 2021 at 12:33 PM Daniel Walker wrote: > > On Thu, Mar 25, 2021 at 05:29:44PM -0600, Rob Herring wrote: > > On Thu, Mar 25, 2021 at 2:00 PM Daniel Walker wrote: > > > > > > On Thu, Mar 25, 2021 at 01:03:55PM +0100, Christophe Leroy wrote: > > > > > > > > Ok, so you agree we don't

linux-next: build warning after merge of the akpm-current tree

2021-03-30 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, yesterday's linux-next build (htmldocs) produced this warning: mm/vmalloc.c:425: warning: expecting prototype for vunmap_range_noflush(). Prototype was for vunmap_range() instead Introduced by commit cde193f42509 ("mm/vmalloc: remove

Re: [PATCH v6] RISC-V: enable XIP

2021-03-30 Thread Alex Ghiti
Le 3/30/21 à 3:33 PM, Palmer Dabbelt a écrit : On Tue, 30 Mar 2021 11:39:10 PDT (-0700), a...@ghiti.fr wrote: Le 3/30/21 à 2:26 AM, Vitaly Wool a écrit : On Tue, Mar 30, 2021 at 8:23 AM Palmer Dabbelt wrote: On Sun, 21 Mar 2021 17:12:15 PDT (-0700), vitaly.w...@konsulko.com wrote:

Re: [PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-03-30 Thread Collin Fijalkovich
There will be an immediate performance hit when the file is opened for write, as its associated pages are removed from the page cache. While the writer is present there will be the usual overhead of using 4kB pages instead of THPs, but there should not be an additional penalty. It is problematic

ERROR: "X86_FEATURE_XMM" [drivers/fpga/altera-pr-ip-core.ko] undefined!

2021-03-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2bb25b3a748af6f11df42298e80b9863ed23f2b3 commit: a30cc14fe49c2d5913caf6b987d7cbd86c5e370b um: Don't use generic barrier.h date: 1 year, 6 months ago config: um-randconfig-r013-20210330 (attached as .config

Re: [PATCH 00/18] KVM: Consolidate and optimize MMU notifiers

2021-03-30 Thread Sean Christopherson
On Tue, Mar 30, 2021, Ben Gardon wrote: > On Thu, Mar 25, 2021 at 7:20 PM Sean Christopherson wrote: > > Patch 10 moves x86's memslot walkers into common KVM. I chose x86 purely > > because I could actually test it. All architectures use nearly identical > > code, so I don't think it actually

Re: Fix hibernation in FIPS mode?

2021-03-30 Thread Simo Sorce
On Tue, 2021-03-30 at 21:45 +0200, Ard Biesheuvel wrote: > On Tue, 30 Mar 2021 at 20:05, Simo Sorce wrote: > > On Tue, 2021-03-30 at 16:46 +0200, Rafael J. Wysocki wrote: > > > On Tue, Mar 30, 2021 at 12:14 AM Dexuan Cui wrote: > > > > Hi, > > > > MD5 was marked incompliant with FIPS in 2009: >

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Jason Gunthorpe
On Tue, Mar 30, 2021 at 12:43:15PM -0700, Dan Williams wrote: > Ok, so this is the disagreement. Strict adherence to the model where > it does not matter in practice. The basic problem is that it is hard to know if it does not matter in practice because you never know what the compiler might

Re: [PATCH] ACPI: processor: Fix build when !CONFIG_HOTPLUG_CPU

2021-03-30 Thread Rafael J. Wysocki
On Tue, Mar 30, 2021 at 12:27 PM Vitaly Kuznetsov wrote: > > Kernel test robot reports build breakage with commit 5f5e49e999ac > ("ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()") when > !CONFIG_HOTPLUG_CPU/!CONFIG_SMP. wakeup_cpu0() is defined under > CONFIG_SMP and start_cpu0() under

Re: [PATCH 2/8] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-30 Thread Rob Herring
On Tue, Mar 30, 2021 at 12:57 PM Daniel Walker wrote: > > It looks like there's some seepage of cmdline stuff into > the generic device tree code. This conflicts with the > generic cmdline implementation so I remove it in the case > when that's enabled. > > Cc: xe-linux-exter...@cisco.com >

Re: [PATCH 00/18] KVM: Consolidate and optimize MMU notifiers

2021-03-30 Thread Paolo Bonzini
On 30/03/21 20:32, Ben Gardon wrote: Patches 1-7 are x86 specific prep patches to play nice with moving the hva->gfn memslot lookups into common code. There ended up being waaay more of these than I expected/wanted, but I had a hell of a time getting the flushing logic right when shuffling the

Re: [PATCH v1] of: property: fw_devlink: Add support for remote-endpoint

2021-03-30 Thread Saravana Kannan
On Tue, Mar 30, 2021 at 12:36 PM Stephen Boyd wrote: > > Quoting Saravana Kannan (2021-03-30 11:50:55) > > remote-endpoint property seems to always come in pairs where two devices > > point to each other. So, we can't really tell from DT if there is a > > functional probe order dependency between

Re: Fix hibernation in FIPS mode?

2021-03-30 Thread Ard Biesheuvel
On Tue, 30 Mar 2021 at 20:05, Simo Sorce wrote: > > On Tue, 2021-03-30 at 16:46 +0200, Rafael J. Wysocki wrote: > > On Tue, Mar 30, 2021 at 12:14 AM Dexuan Cui wrote: > > > Hi, > > > MD5 was marked incompliant with FIPS in 2009: > > > a3bef3a31a19 ("crypto: testmgr - Skip algs not flagged

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Dan Williams
On Tue, Mar 30, 2021 at 12:26 PM Jason Gunthorpe wrote: > > On Tue, Mar 30, 2021 at 12:00:23PM -0700, Dan Williams wrote: > > > > > > IMHO this can't use 'dev->kobj.state_in_sysfs' as the RCU protected > > > > > data. > > > > > > > > This usage of srcu is functionally equivalent to replacing > >

Re: [PATCH] riscv: kprobes/ftrace: Add recursion protection to the ftrace callback

2021-03-30 Thread Steven Rostedt
On Tue, 30 Mar 2021 02:14:40 +0800 Jisheng Zhang wrote: > From: Jisheng Zhang > > Currently, the riscv's kprobes(powerred by ftrace) handler is > preemptible. Futher check indicates we miss something similar as the > commit c536aa1c5b17 ("kprobes/ftrace: Add recursion protection to the >

Re: [PATCH v1] of: property: fw_devlink: Add support for remote-endpoint

2021-03-30 Thread Stephen Boyd
Quoting Saravana Kannan (2021-03-30 11:50:55) > remote-endpoint property seems to always come in pairs where two devices > point to each other. So, we can't really tell from DT if there is a > functional probe order dependency between these two devices. > > However, there can be other

Re: Enabling pmbus power control

2021-03-30 Thread Guenter Roeck
On Tue, Mar 30, 2021 at 07:02:00PM +0100, Mark Brown wrote: > On Tue, Mar 30, 2021 at 12:56:56PM -0500, Zev Weiss wrote: > > > Okay, to expand a bit on the description in my initial message -- we've > > got a single chassis with multiple server boards and a single manager board > > that handles,

Memory leak in ath9k_hif_usb_dealloc_tx_urbs()

2021-03-30 Thread Pavel Skripkin
Hi! I did some debugging on this https://syzkaller.appspot.com/bug?id=3ea507fb3c47426497b52bd82b8ef0dd5b6cc7ee and, I believe, I recognized the problem. The problem appears in case of ath9k_htc_hw_init() fail. In case of this fail all tx_buf->urb krefs will be initialized to 1, but in free

[PATCH v2 1/3] mux: gpio: Use bitmap API instead of direct assignment

2021-03-30 Thread Andy Shevchenko
Assigning bitmaps like it's done in the driver might be error prone. Fix this by using bitmap API. Signed-off-by: Andy Shevchenko Acked-by: Peter Rosin --- v2: left blank line untouched (Peter) drivers/mux/gpio.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v6] RISC-V: enable XIP

2021-03-30 Thread Palmer Dabbelt
On Tue, 30 Mar 2021 11:39:10 PDT (-0700), a...@ghiti.fr wrote: Le 3/30/21 à 2:26 AM, Vitaly Wool a écrit : On Tue, Mar 30, 2021 at 8:23 AM Palmer Dabbelt wrote: On Sun, 21 Mar 2021 17:12:15 PDT (-0700), vitaly.w...@konsulko.com wrote: Introduce XIP (eXecute In Place) support for RISC-V

[PATCH v2 2/3] mux: gpio: Make it OF independent

2021-03-30 Thread Andy Shevchenko
Module doesn't use OF APIs anyhow, make it OF independent by replacing headers and dropping useless of_match_ptr() call. Signed-off-by: Andy Shevchenko Acked-by: Peter Rosin --- v2: moved mod_devicetable before module (Peter) drivers/mux/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v7 5/8] mm: Device exclusive memory access

2021-03-30 Thread Jason Gunthorpe
On Fri, Mar 26, 2021 at 11:08:02AM +1100, Alistair Popple wrote: > diff --git a/mm/memory.c b/mm/memory.c > index 3a5705cfc891..33d11527ef77 100644 > +++ b/mm/memory.c > @@ -781,6 +781,27 @@ copy_nonpresent_pte(struct mm_struct *dst_mm, struct > mm_struct *src_mm, >

[PATCH v2 3/3] mux: gpio: Simplify code by using dev_err_probe()

2021-03-30 Thread Andy Shevchenko
Use already prepared dev_err_probe() introduced by the commit a787e5400a1c ("driver core: add device probe log helper"). It simplifies EPROBE_DEFER handling. Signed-off-by: Andy Shevchenko Acked-by: Peter Rosin --- v2: wrapped to 80 characters (Peter) drivers/mux/gpio.c | 9 +++-- 1 file

[PATCH] kvm: fix minor typos in x86/kvm.h and selftests/processor.c

2021-03-30 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tools/arch/x86/include/uapi/asm/kvm.h | 2 +- tools/testing/selftests/kvm/lib/x86_64/processor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/arch/x86/include/uapi/asm/kvm.h

Re: [PATCH v5 00/27] Memory Folios

2021-03-30 Thread Johannes Weiner
Hi Willy, On Mon, Mar 29, 2021 at 05:58:32PM +0100, Matthew Wilcox wrote: > I'm going to respond to some points in detail below, but there are a > couple of overarching themes that I want to bring out up here. > > Grand Vision > > > I haven't outlined my long-term plan. Partly

Re: [PATCH v5 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-30 Thread Mickaël Salaün
On 30/03/2021 20:40, Casey Schaufler wrote: > On 3/30/2021 11:11 AM, Mickaël Salaün wrote: >> On 30/03/2021 19:19, Casey Schaufler wrote: >>> On 3/30/2021 10:01 AM, Mickaël Salaün wrote: Hi, Is there new comments on this patch? Could we move forward? >>> I don't see that new

Re: [PATCH v2] wireless/nl80211.c: fix uninitialized variable

2021-03-30 Thread Eric Dumazet
On 3/30/21 7:22 PM, Alaa Emad wrote: > This change fix KMSAN uninit-value in net/wireless/nl80211.c:225 , That > because of `fixedlen` variable uninitialized,So I initialized it by zero. > > Reported-by: syzbot+72b99dcf4607e8c77...@syzkaller.appspotmail.com > Signed-off-by: Alaa Emad > --- >

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Jason Gunthorpe
On Tue, Mar 30, 2021 at 12:00:23PM -0700, Dan Williams wrote: > > > > IMHO this can't use 'dev->kobj.state_in_sysfs' as the RCU protected > > > > data. > > > > > > This usage of srcu is functionally equivalent to replacing > > > srcu_read_lock() with down_read() and the shutdown path with: > > >

Re: [PATCH V4 07/10] x86/pks: Preserve the PKRS MSR on context switch

2021-03-30 Thread Ira Weiny
[snip] The test bot reported build errors on i386 yesterday. Not sure why they were not caught before... Anyway that caused me to look at this patch again and I've found a couple of issues noted below. Combined with Sean's review I'll be re-spinning a new v5. > diff --git

Re: [PATCH] PCI: xgene: fix a mistake about cfg address

2021-03-30 Thread Bjorn Helgaas
On Sun, Mar 28, 2021 at 10:41:18PM +0800, Dejin Zheng wrote: > It has a wrong modification to the xgene driver by the commit > e2dcd20b1645a. it use devm_platform_ioremap_resource_byname() to > simplify codes and remove the res variable, But the following code > needs to use this res variable, So

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-30 Thread Dave Hansen
On 3/30/21 10:56 AM, Len Brown wrote: > On Tue, Mar 30, 2021 at 1:06 PM Andy Lutomirski wrote: >>> On Mar 30, 2021, at 10:01 AM, Len Brown wrote: >>> Is it required (by the "ABI") that a user program has everything >>> on the stack for user-space XSAVE/XRESTOR to get back >>> to the state of the

Re: [PATCH v2 04/12] module: Add printk format to add module build ID to stacktraces

2021-03-30 Thread Stephen Boyd
Quoting Petr Mladek (2021-03-30 03:29:24) > On Tue 2021-03-23 19:04:35, Stephen Boyd wrote: > > Let's make kernel stacktraces easier to identify by including the build > > ID[1] of a module if the stacktrace is printing a symbol from a module. > > > > Example: > > > > WARNING: CPU: 3 PID: 3373

[RFC PATCH v1 4/4] arm64: Mark stack trace as unreliable if kretprobed functions are present

2021-03-30 Thread madvenka
From: "Madhavan T. Venkataraman" When a kretprobe is active for a function, the function's return address in its stack frame is modified to point to the kretprobe trampoline. When the function returns, the frame is popped and control is transferred to the trampoline. The trampoline eventually

[RFC PATCH v1 2/4] arm64: Mark a stack trace unreliable if an EL1 exception frame is detected

2021-03-30 Thread madvenka
From: "Madhavan T. Venkataraman" EL1 exceptions can happen on any instruction including instructions in the frame pointer prolog or epilog. Depending on where exactly they happen, they could render the stack trace unreliable. If an EL1 exception frame is found on the stack, mark the stack trace

[RFC PATCH v1 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-03-30 Thread madvenka
From: "Madhavan T. Venkataraman" When CONFIG_DYNAMIC_FTRACE_WITH_REGS is enabled and tracing is activated for a function, the ftrace infrastructure is called for the function at the very beginning. Ftrace creates two frames: - One for the traced function - One for the caller of

[RFC PATCH v1 1/4] arm64: Implement infrastructure for stack trace reliability checks

2021-03-30 Thread madvenka
From: "Madhavan T. Venkataraman" Implement a check_reliability() function that will contain checks for the presence of various features and conditions that can render the stack trace unreliable. Introduce the first reliability check - If a return PC encountered in a stack trace is not a valid

[RFC PATCH v1 0/4] arm64: Implement stack trace reliability checks

2021-03-30 Thread madvenka
From: "Madhavan T. Venkataraman" There are a number of places in kernel code where the stack trace is not reliable. Enhance the unwinder to check for those cases and mark the stack trace as unreliable. Once all of the checks are in place, the unwinder can be used for livepatching. Except for

Re: [PATCH v4 2/5] mfd: sy7636a: Initial commit

2021-03-30 Thread Mark Brown
On Thu, Mar 25, 2021 at 09:55:08PM -0400, Alistair Francis wrote: > +config MFD_SY7636A > + tristate "Silergy SY7636A Power Management chip" > + select MFD_CORE > + select REGMAP_I2C > + select REGMAP_IRQ This selects but does not use regmap-irq. signature.asc Description: PGP

Re: [PATCH v4 3/5] regulator: sy7636a: Initial commit

2021-03-30 Thread Mark Brown
On Thu, Mar 25, 2021 at 09:55:09PM -0400, Alistair Francis wrote: > Initial support for the Silergy SY7636A-regulator Power Management chip. In general this driver seems like it's trying to implement a bunch of policy and extra features beyond standard regulator support - please strip it back

Re: [GIT PULL] s390 updates for 5.12-rc6

2021-03-30 Thread pr-tracker-bot
The pull request you sent on Tue, 30 Mar 2021 19:28:47 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.12-5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6ac86aae89289121db784161fe318819778f7f2a Thank you! -- Deet-doot-dot, I am a

Re: [PATCH v2 1/4] iommu/vt-d: Enable write protect for supervisor SVM

2021-03-30 Thread Guenter Roeck
On 3/30/21 10:52 AM, Jacob Pan wrote: > Hi Guenter, > > On Mon, 22 Mar 2021 10:53:38 -0700, Guenter Roeck > wrote: > >> On Tue, Mar 02, 2021 at 02:13:57AM -0800, Jacob Pan wrote: >>> Write protect bit, when set, inhibits supervisor writes to the read-only >>> pages. In supervisor shared virtual

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Dan Williams
On Tue, Mar 30, 2021 at 10:54 AM Jason Gunthorpe wrote: > > On Tue, Mar 30, 2021 at 10:31:15AM -0700, Dan Williams wrote: > > On Tue, Mar 30, 2021 at 10:03 AM Jason Gunthorpe wrote: > > > > > > On Tue, Mar 30, 2021 at 09:05:29AM -0700, Dan Williams wrote: > > > > > > > > If you can't clearly

[PATCH 3/4] selftests: add kvm_get_emulated_cpuid

2021-03-30 Thread Emanuele Giuseppe Esposito
As the similar kvm_get_supported_cpuid, allocates and gets the struct kvm_cpuid2 filled with emulated features. Signed-off-by: Emanuele Giuseppe Esposito --- .../selftests/kvm/include/x86_64/processor.h | 1 + .../selftests/kvm/lib/x86_64/processor.c | 33 +++ 2 files

[PATCH 4/4] selftests: kvm: add get_emulated_cpuid test

2021-03-30 Thread Emanuele Giuseppe Esposito
Introduce a new selftest for the KVM_GET_EMULATED_CPUID ioctl. Since the behavior and functionality is similar to get_cpuid_test, the test checks: 1) checks for corner case in the nent field of the struct kvm_cpuid2. 2) sets and gets it as cpuid from the guest VM Signed-off-by: Emanuele Giuseppe

[PATCH 2/4] Documentation: kvm: update KVM_GET_EMULATED_CPUID ioctl description

2021-03-30 Thread Emanuele Giuseppe Esposito
KVM_GET_EMULATED_CPUID returns -E2BIG if the nent field of struct kvm_cpuid2 is smaller than the actual entries, while it adjusts nent if the provided amount is bigger than the actual amount. Update documentation accordingly. ENOMEM is just returned if the allocation fails, like all other calls.

[PATCH 1/4] kvm: cpuid: adjust the returned nent field of kvm_cpuid2 for KVM_GET_SUPPORTED_CPUID and KVM_GET_EMULATED_CPUID

2021-03-30 Thread Emanuele Giuseppe Esposito
Calling the kvm KVM_GET_[SUPPORTED/EMULATED]_CPUID ioctl requires a nent field inside the kvm_cpuid2 struct to be big enough to contain all entries that will be set by kvm. Therefore if the nent field is too high, kvm will adjust it to the right value. If too low, -E2BIG is returned. However,

Re: [RFC PATCH 00/15] Use obj_cgroup APIs to charge the LRU pages

2021-03-30 Thread Roman Gushchin
On Tue, Mar 30, 2021 at 11:34:11AM -0700, Shakeel Butt wrote: > On Tue, Mar 30, 2021 at 3:20 AM Muchun Song wrote: > > > > Since the following patchsets applied. All the kernel memory are charged > > with the new APIs of obj_cgroup. > > > > [v17,00/19] The new cgroup slab memory

[PATCH 0/4] kvm: cpuid: fix cpuid nent field

2021-03-30 Thread Emanuele Giuseppe Esposito
This series aims to clarify the behavior of KVM_GET_EMULATED_CPUID and KVM_GET_SUPPORTED ioctls, and fix a corner case where the nent field of the struct kvm_cpuid2 is matching the amount of entries that kvm returns. Patch 1 proposes the nent field fix to cpuid.c, patch 2 updates the ioctl

Re: [PATCH v8 0/3] ARM: Implement MODULE_PLT support in FTRACE

2021-03-30 Thread Florian Fainelli
On 3/30/21 4:40 AM, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > FTRACE's function tracer currently doesn't always work on ARM with > MODULE_PLT option enabled. If the module is loaded too far, FTRACE's > code modifier cannot cope with introduced veneers and turns the > function

[PATCH] perf annotate: add --demangle and --demangle-kernel

2021-03-30 Thread Martin Liška
Perf annotate supports --symbol but it's impossible to filter a C++ symbol. With --no-demangle one can filter easily by mangled function name. Signed-off-by: Martin Liška --- tools/perf/Documentation/perf-annotate.txt | 7 +++ tools/perf/builtin-annotate.c | 4 2 files

Re: [RFC PATCH 0/6] Use local_lock for pcp protection and reduce stat overhead

2021-03-30 Thread Jesper Dangaard Brouer
On Mon, 29 Mar 2021 13:06:42 +0100 Mel Gorman wrote: > This series requires patches in Andrew's tree so the series is also > available at > > git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git > mm-percpu-local_lock-v1r15 > > tldr: Jesper and Chuck, it would be nice to verify if this

[PATCH v1] of: property: fw_devlink: Add support for remote-endpoint

2021-03-30 Thread Saravana Kannan
remote-endpoint property seems to always come in pairs where two devices point to each other. So, we can't really tell from DT if there is a functional probe order dependency between these two devices. However, there can be other dependencies between two devices that point to each other with

Re: [PATCH v7 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

2021-03-30 Thread Jason Gunthorpe
On Fri, Mar 26, 2021 at 11:08:00AM +1100, Alistair Popple wrote: > +static bool try_to_munlock_one(struct page *page, struct vm_area_struct *vma, > + unsigned long address, void *arg) > +{ Is this function name right? > + struct page_vma_mapped_walk pvmw = { > +

Re: [PATCH] kasan: fix hwasan build for gcc

2021-03-30 Thread Andrey Konovalov
On Tue, Mar 23, 2021 at 1:41 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes > possible to enable CONFIG_KASAN_SW_TAGS. > > Unfortunately this fails to build at the moment, because the > corresponding command line arguments

[PATCH] checkpatch: Warn when missing newline in return sysfs_emit() formats

2021-03-30 Thread Joe Perches
return sysfs_emit() uses should include a newline. Suggest adding a newline when one is missing. Add one using --fix too. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 11 +++ 1 file changed, 11 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

Re: [PATCH] arm64: dts: qcom: Move rmtfs memory region

2021-03-30 Thread Stephen Boyd
Quoting Sujit Kautkar (2021-03-29 18:46:10) > Move rmtfs memory region so that it does not overlap with system > RAM (kernel data) when KAsan is enabled. This puts rmtfs right > after mba_mem which is not supposed to increase beyond 0x9460 > > Signed-off-by: Sujit Kautkar > --- Reviewed-by:

Re: [v1] drm/msm/disp/dpu1: icc path needs to be set before dpu runtime resume

2021-03-30 Thread Steev Klimaszewski
On 3/22/21 4:17 AM, Kalyan Thota wrote: > From: Kalyan Thota > > DPU runtime resume will request for a min vote on the AXI bus as > it is a necessary step before turning ON the AXI clock. > > The change does below > 1) Move the icc path set before requesting runtime get_sync. > 2) remove the

Re: [PATCH RFC/RFT 1/1] misc: add simple logic analyzer using polling

2021-03-30 Thread Wolfram Sang
> > +snipplet which analyzes an I2C bus at 400KHz on a Renesas Salvator-XS > > board, > >snippet Thanks! > > > +the following settings are used: The isolated CPU shall be CPU1 because it > > is a > > +big core in a big.LITTLE setup. Because CPU1 is the default, we don't need > > a > >

[PATCH] arm64: dts: allwinner: h6: beelink-gs1: Remove ext. 32 kHz osc reference

2021-03-30 Thread Jernej Skrabec
Although every Beelink GS1 seems to have external 32768 Hz oscillator, it works only on one from four tested. There are more reports of RTC issues elsewhere, like Armbian forum. One Beelink GS1 owner read RTC osc status register on Android which shipped with the box. Reported value indicated

Re: [RFC PATCH 00/15] Use obj_cgroup APIs to charge the LRU pages

2021-03-30 Thread Shakeel Butt
On Tue, Mar 30, 2021 at 3:20 AM Muchun Song wrote: > > Since the following patchsets applied. All the kernel memory are charged > with the new APIs of obj_cgroup. > > [v17,00/19] The new cgroup slab memory controller > [v5,0/7] Use obj_cgroup APIs to charge kmem pages > > But user

Re: [PATCH v5 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-30 Thread Casey Schaufler
On 3/30/2021 11:11 AM, Mickaël Salaün wrote: > On 30/03/2021 19:19, Casey Schaufler wrote: >> On 3/30/2021 10:01 AM, Mickaël Salaün wrote: >>> Hi, >>> >>> Is there new comments on this patch? Could we move forward? >> I don't see that new comments are necessary when I don't see >> that you've

Re: [PATCH] arch: s390: Remove duplicate struct ccw1 declaration

2021-03-30 Thread Vineeth Vijayan
Thank you for the patch. Acked-by: Vineeth Vijayan Heiko/Vasily will pick this up and will be part of the s390-tree patchset. On 3/30/21 12:56 PM, Wan Jiabing wrote: struct ccw1 is declared twice. One has been declared at 21st line. Remove the duplicate. Signed-off-by: Wan Jiabing ---

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