[PATCH tip/core/rcu 05/12] rcu/nocb: Avoid confusing double write of rdp->nocb_cb_sleep

2021-03-03 Thread paulmck
From: Frederic Weisbecker The nocb_cb_wait() function first sets the rdp->nocb_cb_sleep flag to true by after invoking the callbacks, and then sets it back to false if it finds more callbacks that are ready to invoke. This is confusing and will become unsafe if this flag is ever read locklessly.

[PATCH tip/core/rcu 01/12] rcu/nocb: Detect unsafe checks for offloaded rdp

2021-03-03 Thread paulmck
From: Frederic Weisbecker Provide CONFIG_PROVE_RCU sanity checks to ensure we are always reading the offloaded state of an rdp in a safe and stable way and prevent from its value to be changed under us. We must either hold the barrier mutex, the cpu-hotplug lock (read or write) or the nocb lock.

Re: [RFC PATCH 15/18] cgroup: Introduce ioasids controller

2021-03-03 Thread Jason Gunthorpe
On Wed, Mar 03, 2021 at 04:02:05PM -0800, Jacob Pan wrote: > > The interface definitely can be reused. But IOASID has a different > > behavior in terms of migration and ownership checking. I guess SEV key > > IDs are not tied to a process whereas IOASIDs are. Perhaps this can be > > solved by addin

[PATCH tip/core/rcu 03/12] rcu/nocb: Comment the reason behind BH disablement on batch processing

2021-03-03 Thread paulmck
From: Frederic Weisbecker This commit explains why softirqs need to be disabled while invoking callbacks, even when callback processing has been offloaded. After all, invoking callbacks concurrently is one thing, but concurrently invoking the same callback is quite another. Reported-by: Boqun F

[PATCH tip/core/rcu 04/12] rcu/nocb: Forbid NOCB toggling on offline CPUs

2021-03-03 Thread paulmck
From: Frederic Weisbecker It makes no sense to de-offload an offline CPU because that CPU will never invoke any remaining callbacks. It also makes little sense to offload an offline CPU because any pending RCU callbacks were migrated when that CPU went offline. Yes, it is in theory possible to

[PATCH tip/core/rcu 02/12] timer: Report ignored local enqueue in nohz mode

2021-03-03 Thread paulmck
From: Frederic Weisbecker Enqueuing a local timer after the tick has been stopped will result in the timer being ignored until the next random interrupt. Perform sanity checks to report these situations. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Rafael J. Wysocki Signed-off-

fscache: Redesigning the on-disk cache

2021-03-03 Thread David Howells
I'm looking at redesigning the on-disk cache format used by fscache's cachefiles driver to try and eliminate the number of synchronous metadata operations done by the driver, to improve culling performance and to reduce the amount of opens/files open. I also need to stop relying on the backing fil

[PATCH tip/core/rcu 0/12] NOCB updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains updates for no-callbacks (NOCBs) CPUs: 1. Detect unsafe checks for offloaded rdp, courtesy of Frederic Weisbecker. 2. Report ignored local enqueue in nohz mode, courtesy of Frederic Weisbecker. 3. Comment the reason behind BH disablemen

Re: [PATCH 1/1] clk: sunxi: Demote non-conformant kernel-doc headers

2021-03-03 Thread Stephen Boyd
Quoting Lee Jones (2021-03-03 06:24:30) > Headers must describe their parameters. > > Fixes the following W=1 kernel build warning(s): > > drivers/clk/sunxi/clk-sun9i-core.c:27: warning: Function parameter or member > 'req' not described in 'sun9i_a80_get_pll4_factors' > drivers/clk/sunxi/clk-

Re: [PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-03 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 03:33:30AM +0900, Masahiro Yamada wrote: > This guarding is wrong. As Documentation/kbuild/llvm.rst notes, LLVM=1 > switches the default of tools, but you can still override CC, LD, etc. > individually. > > BTW, LLVM is not 1/0 flag. If LLVM is not passed in, it is empty. >

[PATCH lib/bitmap 5/9] lib: bitmap: move ERANGE check from set_region to check_region

2021-03-03 Thread paulmck
From: Paul Gortmaker It makes sense to do all the checks in check_region() and not 1/2 in check_region and 1/2 in set_region. Since set_region is called immediately after check_region, the net effect on runtime is zero, but it gets rid of an if (...) return... Cc: Yury Norov Cc: Rasmus Villemo

Re: [PATCH v2 12/14] arm64: dts: qcom: sc7280: Add SPMI PMIC arbiter device for SC7280

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:56) > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi > b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index fe4fdb9..aa6f847 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -239,6 +239,25 @@ >

[PATCH lib/bitmap 4/9] lib: bitmap: fold nbits into region struct

2021-03-03 Thread paulmck
From: Paul Gortmaker This will reduce parameter passing and enable using nbits as part of future dynamic region parameter parsing. Cc: Yury Norov Cc: Rasmus Villemoes Cc: Andy Shevchenko Suggested-by: Yury Norov Acked-by: Yury Norov Reviewed-by: Andy Shevchenko Signed-off-by: Paul Gortmake

arch/powerpc/lib/sstep.c:1172:21: error: variable 'suffix' set but not used

2021-03-03 Thread kernel test robot
Hi Jordan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f69d02e37a85645aa90d18cacfff36dba370f797 commit: 650b55b707fdfa764e9f2b81314d3eb4216fb962 powerpc: Add prefixed instructions to instruction data type date:

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-03-03 Thread Ashish Kalra
On Wed, Mar 03, 2021 at 06:54:41PM +, Will Deacon wrote: > [+Marc] > > On Tue, Mar 02, 2021 at 02:55:43PM +, Ashish Kalra wrote: > > On Fri, Feb 26, 2021 at 09:44:41AM -0800, Sean Christopherson wrote: > > > On Fri, Feb 26, 2021, Ashish Kalra wrote: > > > > On Thu, Feb 25, 2021 at 02:59:27

[PATCH] MIPS: boot/compressed: Copy DTB to aligned address

2021-03-03 Thread Paul Cercueil
Since 5.12-rc1, the Device Tree blob must now be properly aligned. Therefore, the decompress routine must be careful to copy the blob at the next aligned address after the kernel image. This commit fixes the kernel sometimes not booting with a Device Tree blob appended to it. Fixes: c4d5e638d6e9

[PATCH lib/bitmap 2/9] lib: test_bitmap: add tests to trigger ERANGE case.

2021-03-03 Thread paulmck
From: Paul Gortmaker Add tests that specify a valid range, but one that is outside the width of the bitmap for which it is to be applied to. These should trigger an -ERANGE response from the code. Cc: Yury Norov Cc: Rasmus Villemoes Cc: Andy Shevchenko Acked-by: Yury Norov Reviewed-by: Andy

Re: [External] Re: [PATCH v2 0/4] psi: Add PSI_CPU_FULL state and some code optimization

2021-03-03 Thread Chengming Zhou
在 2021/3/4 上午12:05, Peter Zijlstra 写道: > On Wed, Mar 03, 2021 at 04:32:18PM +0100, Peter Zijlstra wrote: > >> Yes, I can do that. Thanks! > Please double check the patches as found here: > > > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=sched/core > > I've manually e

Re: [PATCH v2 14/14] arm64: dts: qcom: sc7280: Add rpmh power-domain node

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:58) > Add the DT node for the rpmhpd power controller on SC7280 SoCs. > > Signed-off-by: Rajendra Nayak > --- Reviewed-by: Stephen Boyd

[PATCH lib/bitmap 1/9] lib: test_bitmap: clearly separate ERANGE from EINVAL tests.

2021-03-03 Thread paulmck
From: Paul Gortmaker This block of tests was meant to find/flag incorrect use of the ":" and "/" separators (syntax errors) and invalid (zero) group len. However they were specified with an 8 bit width and 32 bit operations, so they really contained two errors (EINVAL and ERANGE). Promote them

[PATCH lib/bitmap 7/9] lib: test_bitmap: add tests for "N" alias

2021-03-03 Thread paulmck
From: Paul Gortmaker These are copies of existing tests, with just 31 --> N. This ensures the recently added "N" alias transparently works in any normally numeric fields of a region specification. Cc: Yury Norov Cc: Rasmus Villemoes Cc: Andy Shevchenko Acked-by: Yury Norov Signed-off-by: Pa

[PATCH lib/bitmap 9/9] rcutorture: Use "all" and "N" in "nohz_full" and "rcu_nocbs"

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit uses the shiny new "all" and "N" cpumask options to decouple the "nohz_full" and "rcu_nocbs" kernel boot parameters in the TREE04.boot and TREE08.boot files from the CONFIG_NR_CPUS options in the TREE04 and TREE08 files. Reported-by: Paul Gortmaker Signed-of

[PATCH lib/bitmap 8/9] rcu: deprecate "all" option to rcu_nocbs=

2021-03-03 Thread paulmck
From: Paul Gortmaker With the core bitmap support now accepting "N" as a placeholder for the end of the bitmap, "all" can be represented as "0-N" and has the advantage of not being specific to RCU (or any other subsystem). So deprecate the use of "all" by removing documentation references to it.

Re: [PATCH v2 05/14] arm64: dts: qcom: sc7280: Add RSC and PDC devices

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:49) > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi > b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 4a56d9c..21c2399 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -30,6 +31,18 @@ >

Re: [PATCH v9 2/9] x509: Detect sm2 keys by their parameters OID

2021-03-03 Thread Stefan Berger
Tianjia,    can you say whether SM2 support works for you before and after applying this patch? I cannot verify it with an sm2 key I have created using a sequence of commands like this: > modprobe sm2_generic > id=$(keyctl newring test @u) > keyctl padd asymmetric "" $id < sm2.der add_key: Ke

Re: [PATCH v3 00/14] pinctrl: add BCM63XX pincontrol support

2021-03-03 Thread Linus Walleij
On Wed, Mar 3, 2021 at 5:23 PM Álvaro Fernández Rojas wrote: > Or maybe we could guard these lines of gpio-regmap.c with #ifdef > GPIOLIB_IRQCHIP: > https://github.com/torvalds/linux/blob/f69d02e37a85645aa90d18cacfff36dba370f797/drivers/gpio/gpio-regmap.c#L282-L286 That's the best approach. I w

Re: [PATCH v2 13/14] arm64: dts: qcom: sc7280: Add cpuidle states

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:57) > From: Maulik Shah > > Add cpuidle states for little and big cpus. Please also say "The latency values are preliminary placeholders and will be updated once testing provides the real numbers". > > Signed-off-by: Maulik Shah > Signed-off-by: Rajen

[PATCH lib/bitmap 6/9] lib: bitmap: support "N" as an alias for size of bitmap

2021-03-03 Thread paulmck
From: Paul Gortmaker While this is done for all bitmaps, the original use case in mind was for CPU masks and cpulist_parse() as described below. It seems that a common configuration is to use the 1st couple cores for housekeeping tasks. This tends to leave the remaining ones to form a pool of s

Re: [RFC PATCH 5/6] PCI: designware: Add SiFive FU740 PCIe host controller driver

2021-03-03 Thread Rob Herring
On Tue, Mar 2, 2021 at 4:59 AM Greentime Hu wrote: > > From: Paul Walmsley > > Add driver for the SiFive FU740 PCIe host controller. > This controller is based on the DesignWare PCIe core. > > Co-developed-by: Henry Styles > Signed-off-by: Henry Styles > Co-developed-by: Erik Danie > Signed-of

[PATCH lib/bitmap 3/9] lib: test_bitmap: add more start-end:offset/len tests

2021-03-03 Thread paulmck
From: Paul Gortmaker There are inputs to bitmap_parselist() that would probably never be entered manually by a person, but might result from some kind of automated input generator. Things like ranges of length 1, or group lengths longer than nbits, overlaps, or offsets of zero. Adding these tes

[PATCH tip/core/rcu 1/6] kvfree_rcu: Directly allocate page for single-argument case

2021-03-03 Thread paulmck
From: "Uladzislau Rezki (Sony)" Single-argument kvfree_rcu() must be invoked from sleepable contexts, so we can directly allocate pages. Furthermmore, the fallback in case of page-allocation failure is the high-latency synchronize_rcu(), so it makes sense to do these page allocations from the fa

Re: [PATCH 5.10 491/663] USB: serial: option: update interface mapping for ZTE P685M

2021-03-03 Thread Lech Perczak
Hi, On 2021-03-01 at 17:12, Greg Kroah-Hartman wrote: From: Lech Perczak commit 6420a569504e212d618d4a4736e2c59ed80a8478 upstream. This patch prepares for qmi_wwan driver support for the device. Previously "option" driver mapped itself to interfaces 0 and 3 (matching ff/ff/ff), while interfac

Re: f2fs_convert_inline_inode causing rebalance based on random uninitialized value in dn.node_changed

2021-03-03 Thread Jaegeuk Kim
On 03/03, Colin Ian King wrote: > On 03/03/2021 19:44, Jaegeuk Kim wrote: > > On 03/02, Colin Ian King wrote: > >> Hi, > >> > >> Static analysis on linux-next detected a potential uninitialized > >> variable dn.node_changed that does not get set when a call to > >> f2fs_get_node_page() fails. This

[PATCH tip/core/rcu 3/6] kvfree_rcu: Make krc_this_cpu_unlock() use raw_spin_unlock_irqrestore()

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The krc_this_cpu_unlock() function does a raw_spin_unlock() immediately followed by a local_irq_restore(). This commit saves a line of code by merging them into a raw_spin_unlock_irqrestore(). This transformation also reduces scheduling latency because raw_spin_unlock_i

[PATCH tip/core/rcu 5/6] kvfree_rcu: Use same set of GFP flags as does single-argument

2021-03-03 Thread paulmck
From: "Uladzislau Rezki (Sony)" Running an rcuscale stress-suite can lead to "Out of memory" of a system. This can happen under high memory pressure with a small amount of physical memory. For example, a KVM test configuration with 64 CPUs and 512 megabytes can result in OOM when running rcuscal

Re: [PATCH v2 06/14] arm64: dts: qcom: SC7280: Add rpmhcc clock controller node

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:50) > Add rpmhcc clock controller node for SC7280. Also add references to > rpmhcc clocks in gcc. > > Signed-off-by: Taniya Das > Signed-off-by: Rajendra Nayak > --- Reviewed-by: Stephen Boyd

[PATCH tip/core/rcu 4/6] kvfree_rcu: Replace __GFP_RETRY_MAYFAIL by __GFP_NORETRY

2021-03-03 Thread paulmck
From: "Uladzislau Rezki (Sony)" __GFP_RETRY_MAYFAIL can spend quite a bit of time reclaiming, and this can be wasted effort given that there is a fallback code path in case memory allocation fails. __GFP_NORETRY does perform some light-weight reclaim, but it will fail under OOM conditions, allow

Re: [PATCH v2 03/14] arm64: dts: sc7280: Add basic dts/dtsi files for sc7280 soc

2021-03-03 Thread Stephen Boyd
Quoting Rajendra Nayak (2021-03-03 04:17:47) > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi > b/arch/arm64/boot/dts/qcom/sc7280.dtsi > new file mode 100644 > index 000..4a56d9c > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -0,0 +1,299 @@ > +// SPDX-License-Identifier:

[PATCH tip/core/rcu 6/6] rcuscale: Add kfree_rcu() single-argument scale test

2021-03-03 Thread paulmck
From: "Uladzislau Rezki (Sony)" The single-argument variant of kfree_rcu() is currently not tested by any member of the rcutoture test suite. This commit therefore adds rcuscale code to test it. This testing is controlled by two new boolean module parameters, kfree_rcu_test_single and kfree_rcu

Re: [PATCH 2/4] kbuild: collect minimum tool versions into scripts/tool-version.sh

2021-03-03 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 03:33:31AM +0900, Masahiro Yamada wrote: > The kernel build uses various tools, many of which are provided by the > same software suite, for example, LLVM and Binutils. > > When we raise the minimal version of Clang/LLVM, we need to update > clang_min_version in scripts/cc-

[PATCH tip/core/rcu 2/6] kvfree_rcu: Use __GFP_NOMEMALLOC for single-argument kvfree_rcu()

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit applies the __GFP_NOMEMALLOC gfp flag to memory allocations carried out by the single-argument variant of kvfree_rcu(), thus avoiding this can-sleep code path from dipping into the emergency reserves. Acked-by: Michal Hocko Suggested-by: Michal Hocko Signed

Re: [PATCH v3 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Shakeel Butt
On Wed, Mar 3, 2021 at 3:34 PM Suren Baghdasaryan wrote: > > On Wed, Mar 3, 2021 at 3:17 PM Shakeel Butt wrote: > > > > On Wed, Mar 3, 2021 at 10:58 AM Suren Baghdasaryan > > wrote: > > > > > > process_madvise currently requires ptrace attach capability. > > > PTRACE_MODE_ATTACH gives one proce

[PATCH tip/core/rcu 0/6] kvfree_rcu() updates for v5.12-rc1

2021-03-03 Thread Paul E. McKenney
Hello! This series contains kvfree_rcu() updates, most notably surrounding GPF flags for memory allocation. 1. kvfree_rcu: Directly allocate page for single-argument case, courtesy of "Uladzislau Rezki (Sony)". 2. kvfree_rcu: Use __GFP_NOMEMALLOC for single-argument kvfree_rcu(

Re: [PATCH v2] f2fs: expose # of overprivision segments

2021-03-03 Thread Jaegeuk Kim
This is useful when checking conditions during checkpoint=disable in Android. Signed-off-by: Jaegeuk Kim --- Documentation/ABI/testing/sysfs-fs-f2fs | 5 + fs/f2fs/sysfs.c | 9 + 2 files changed, 14 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-f

Re: [PATCH] mfd: stm32-timers: avoid clearing auto reload register

2021-03-03 Thread William Breathitt Gray
On Wed, Mar 03, 2021 at 06:51:35PM +0100, Fabrice Gasnier wrote: > The ARR register is cleared unconditionally upon probing, after the maximum > value has been read. This initial condition is rather not intuitive, when > considering the counter child driver. It rather expects the maximum value > by

[PATCH tip/core/rcu 06/10] softirq: Don't try waking ksoftirqd before it has been spawned

2021-03-03 Thread paulmck
From: "Paul E. McKenney" If there is heavy softirq activity, the softirq system will attempt to awaken ksoftirqd and will stop the traditional back-of-interrupt softirq processing. This is all well and good, but only if the ksoftirqd kthreads already exist, which is not the case during early boo

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

2021-03-03 Thread Jaegeuk Kim
On 03/03, Stephen Rothwell wrote: > Hi all, > > After merging the f2fs tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > fs/f2fs/sysfs.c:576:25: warning: 'f2fs_attr_ovp_segments' defined but not > used [-Wunused-variable] > 576 | static struct f2fs_attr f2fs_att

Re: [GIT PULL] idmapped mounts for v5.12

2021-03-03 Thread Eric W. Biederman
Christian Brauner writes: > Hi Linus, > This series comes with an extensive xfstests suite covering both ext4 and xfs > https://git.kernel.org/brauner/xfstests-dev/h/idmapped_mounts > It covers truncation, creation, opening, xattrs, vfscaps, setid execution, > setgid inheritance and more both wi

Re: [RFC PATCH 1/5] rpmb: add Replay Protected Memory Block (RPMB) subsystem

2021-03-03 Thread Alex Bennée
Foolishly I'd missed you out of the series Cc so you only got those two patches. You should find the rest @ Subject: [RFC PATCH 0/5] RPMB internal and user-space API + WIP virtio-rpmb frontend Date: Wed, 3 Mar 2021 13:54:55 + Message-Id: <20210303135500.24673-1-alex.ben...@linaro.org> assum

Re: [PATCH v2 0/4] psi: Add PSI_CPU_FULL state and some code optimization

2021-03-03 Thread Johannes Weiner
On Wed, Mar 03, 2021 at 05:05:15PM +0100, Peter Zijlstra wrote: > On Wed, Mar 03, 2021 at 04:32:18PM +0100, Peter Zijlstra wrote: > > > Yes, I can do that. Thanks! > > Please double check the patches as found here: > > > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=

Re: [PATCH] dt-bindings: display: mediatek,dpi: Convert to use graph schema

2021-03-03 Thread Chun-Kuang Hu
Hi, Rob: Rob Herring 於 2021年2月24日 週三 上午5:51寫道: > > Update the mediatek,dpi binding to use the graph schema. Missed > this one from the mass conversion since it's not part of drm-misc. Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/lin

[PATCH tip/core/rcu 08/10] docs: Correctly spell Stephen Hemminger's name

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit replaces "Steve" with the his real name, which is "Stephen". Reported-by: Stephen Hemminger Signed-off-by: Paul E. McKenney --- Documentation/RCU/RTFP.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/RTFP.txt b/Docu

[PATCH tip/core/rcu 10/10] rcu/tree: Add a trace event for RCU CPU stall warnings

2021-03-03 Thread paulmck
From: Sangmoon Kim This commit adds a trace event which allows tracing the beginnings of RCU CPU stall warnings on systems where sysctl_panic_on_rcu_stall is disabled. The first parameter is the name of RCU flavor like other trace events. The second parameter indicates whether this is a stall of

[PATCH tip/core/rcu 07/10] rcu: Prevent dyntick-idle until ksoftirqd has been spawned

2021-03-03 Thread paulmck
From: "Paul E. McKenney" After interrupts have enabled at boot but before some random point in early_initcall() processing, softirq processing is unreliable. If softirq sees a need to push softirq-handler invocation to ksoftirqd during this time, then those handlers can be delayed until the ksoft

[PATCH tip/core/rcu 09/10] rcu: Add explicit barrier() to __rcu_read_unlock()

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Because preemptible RCU's __rcu_read_unlock() is an external function, the rough equivalent of an implicit barrier() is inserted by the compiler. Except that there is a direct call to __rcu_read_unlock() in that same file, and compilers are getting to the point where they

Re: [PATCH V3 XRT Alveo 00/18] XRT Alveo driver overview

2021-03-03 Thread Moritz Fischer
On Tue, Mar 02, 2021 at 10:49:43PM -0800, Joe Perches wrote: > On Sun, 2021-02-21 at 12:43 -0800, Moritz Fischer wrote: > > On Wed, Feb 17, 2021 at 10:40:01PM -0800, Lizhi Hou wrote: > > > This is V3 of patch series which adds management physical function driver > > > for Xilinx > > > Alveo PCIe a

Re: [PATCH] counter: stm32-timer-cnt: fix ceiling miss-alignment with reload register

2021-03-03 Thread William Breathitt Gray
On Wed, Mar 03, 2021 at 06:49:49PM +0100, Fabrice Gasnier wrote: > Ceiling value may be miss-aligned with what's actually configured into the > ARR register. This is seen after probe as currently the ARR value is zero, > whereas ceiling value is set to the maximum. So: > - reading ceiling reports z

Re: [PATCH v3 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Suren Baghdasaryan
On Wed, Mar 3, 2021 at 3:17 PM Shakeel Butt wrote: > > On Wed, Mar 3, 2021 at 10:58 AM Suren Baghdasaryan wrote: > > > > process_madvise currently requires ptrace attach capability. > > PTRACE_MODE_ATTACH gives one process complete control over another > > process. It effectively removes the secu

Re: [RFC PATCH 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller

2021-03-03 Thread Rob Herring
On Tue, 02 Mar 2021 18:59:15 +0800, Greentime Hu wrote: > Add PCIe host controller DT bindings of SiFive FU740. > > Signed-off-by: Greentime Hu > --- > .../bindings/pci/sifive,fu740-pcie.yaml | 119 ++ > 1 file changed, 119 insertions(+) > create mode 100644 > Documentati

Re: [PATCH v3 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Shakeel Butt
On Wed, Mar 3, 2021 at 10:58 AM Suren Baghdasaryan wrote: > > process_madvise currently requires ptrace attach capability. > PTRACE_MODE_ATTACH gives one process complete control over another > process. It effectively removes the security boundary between the > two processes (in one direction). Gr

Re: [PATCH] kasan, mm: fix crash with HW_TAGS and DEBUG_PAGEALLOC

2021-03-03 Thread Andrew Morton
On Fri, 26 Feb 2021 02:25:37 +0100 Andrey Konovalov wrote: > Currently, kasan_free_nondeferred_pages()->kasan_free_pages() is called > after debug_pagealloc_unmap_pages(). This causes a crash when > debug_pagealloc is enabled, as HW_TAGS KASAN can't set tags on an > unmapped page. > > This patc

[PATCH tip/core/rcu 0/9] Add bitmap (thus CPU) ranges

2021-03-03 Thread Paul E. McKenney
Hello! This series adds ranges to bitmaps, and thus to CPU numbers, so that a kernel boot parameter such as "rcu_nocbs=2-N" is now permitted. 1. test_bitmap: clearly separate ERANGE from EINVAL tests, courtesy of Paul Gortmaker. 2. test_bitmap: add tests to trigger ERANGE case,

[PATCH tip/core/rcu 05/10] rcu: Fix kfree_rcu() docbook errors

2021-03-03 Thread paulmck
From: Mauro Carvalho Chehab After commit 5130b8fd0690 ("rcu: Introduce kfree_rcu() single-argument macro"), kernel-doc now emits two warnings: ./include/linux/rcupdate.h:884: warning: Excess function parameter 'ptr' description in 'kfree_rcu' ./include/linux/rcupdate.h:884: warn

[PATCH tip/core/rcu 02/10] rcu: Fix CPU-offline trace in rcutree_dying_cpu

2021-03-03 Thread paulmck
From: Neeraj Upadhyay The condition in the trace_rcu_grace_period() in rcutree_dying_cpu() is backwards, so that it uses the string "cpuofl" when the offline CPU is blocking the current grace period and "cpuofl-bgp" otherwise. Given that the "-bgp" stands for "blocking grace period", this is at

[PATCH tip/core/rcu 03/10] rcu: Remove spurious instrumentation_end() in rcu_nmi_enter()

2021-03-03 Thread paulmck
From: Zhouyi Zhou In rcu_nmi_enter(), there is an erroneous instrumentation_end() in the second branch of the "if" statement. Oddly enough, "objtool check -f vmlinux.o" fails to complain because it is unable to correctly cover all cases. Instead, objtool visits the third branch first, which mar

[PATCH tip/core/rcu 01/10] rcu: Remove superfluous rdp fetch

2021-03-03 Thread paulmck
From: Frederic Weisbecker Cc: Rafael J. Wysocki Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Frederic Weisbecker Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index da6f

[PATCH tip/core/rcu 04/10] rculist: Replace reference to atomic_ops.rst

2021-03-03 Thread paulmck
From: Akira Yokosawa The hlist_nulls_for_each_entry_rcu() docbook header references the atomic_ops.rst file, which was removed in commit f0400a77ebdc ("atomic: Delete obsolete documentation"). This commit therefore substitutes a section in memory-barriers.txt discussing the use of barrier() in l

Re: [PATCH RESEND v3] mm/userfaultfd: fix memory corruption due to writeprotect

2021-03-03 Thread Nadav Amit
> On Mar 3, 2021, at 11:03 AM, Peter Xu wrote: > > On Wed, Mar 03, 2021 at 01:57:02AM -0800, Nadav Amit wrote: >> From: Nadav Amit >> >> Userfaultfd self-test fails occasionally, indicating a memory >> corruption. > > It's failing very constantly now for me after I got it run on a 40 cores >

RE: [PATCH v8 3/6] arm64: hyperv: Add kexec and panic handlers

2021-03-03 Thread Sunil Muthuswamy
> +EXPORT_SYMBOL_GPL(hv_setup_crash_handler); > + > +void hv_remove_crash_handler(void) > +{ > +} > +EXPORT_SYMBOL_GPL(hv_remove_crash_handler); > -- > 1.8.3.1 Reviewed-by: Sunil Muthuswamy

Re: [PATCH 1/2] fpga: mgr: Adds secure BitStream loading support

2021-03-03 Thread Moritz Fischer
Hi Nava, On Thu, Jan 21, 2021 at 09:17:10PM -0800, Moritz Fischer wrote: > On Mon, Jan 18, 2021 at 08:20:57AM +0530, Nava kishore Manne wrote: > > This commit adds secure flags to the framework to support > > secure BitStream Loading. > > > > Signed-off-by: Nava kishore Manne > > --- > > driver

[PATCH tip/core/rcu 0/10] Miscellaneous fixes for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains miscellaneous fixes: 1. Remove superfluous rdp fetch, courtesy of Frederic Weisbecker. 2. Fix CPU-offline trace in rcutree_dying_cpu, courtesy of Neeraj Upadhyay. 3. Remove spurious instrumentation_end() in rcu_nmi_enter(), courtesy of

Re: [PATCH v4 2/2] arm64: dts: fsl: add support for Kontron pitx-imx8m board

2021-03-03 Thread Fabio Estevam
Hi Heiko, On Wed, Mar 3, 2021 at 6:11 PM Heiko Thiery wrote: > > The Kontron pitx-imx8m board is based on an i.MX8MQ soc. > > Signed-off-by: Heiko Thiery > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: Michael Walle Reviewed-by: Fabio Estevam

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Paul E. McKenney
On Wed, Mar 03, 2021 at 03:22:46PM -0500, Alan Stern wrote: > On Wed, Mar 03, 2021 at 09:40:22AM -0800, Paul E. McKenney wrote: > > On Wed, Mar 03, 2021 at 12:12:21PM -0500, Alan Stern wrote: > > > > Local variables absolutely should be treated just like CPU registers, if > > > possible. In fact

Re: [PATCH V2 1/2] arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

2021-03-03 Thread Will Deacon
On Wed, Mar 03, 2021 at 07:04:33PM +, Catalin Marinas wrote: > On Thu, Feb 11, 2021 at 01:35:56PM +0100, David Hildenbrand wrote: > > On 11.02.21 13:10, Anshuman Khandual wrote: > > > On 2/11/21 5:23 PM, Will Deacon wrote: > > > > ... and dropped. These patches appear to be responsible for a bo

Re: [PATCH v3 05/15] media: mtk-vcodec: vdec: support stateless API

2021-03-03 Thread Ezequiel Garcia
Hello Alex, Thanks for the patch. On Fri, 26 Feb 2021 at 07:06, Alexandre Courbot wrote: > > From: Yunfei Dong > > Support the stateless codec API that will be used by MT8183. > > Signed-off-by: Yunfei Dong > [acourbot: refactor, cleanup and split] > Co-developed-by: Alexandre Courbot > Signe

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-03 Thread Kees Cook
On Wed, Mar 03, 2021 at 11:57:33AM -0800, Linus Torvalds wrote: > End result: gcc plugins are pure garbage, and you should shun them. If I think that's pretty harsh, but okay, opinions are opinions. As Josh says, people are interested in them for not-uncommon real-world uses: - stackleak has data

Re: [PATCH v3 06/15] media: mtk-vcodec: vdec: support stateless H.264 decoding

2021-03-03 Thread Ezequiel Garcia
Hi Alex, Thanks for the patch. On Fri, 26 Feb 2021 at 07:06, Alexandre Courbot wrote: > > From: Yunfei Dong > > Add support for H.264 decoding using the stateless API, as supported by > MT8183. This support takes advantage of the V4L2 H.264 reference list > builders. > > Signed-off-by: Yunfei

Re: [PATCH] sched: Optimize __calc_delta.

2021-03-03 Thread Josh Don
On Wed, Mar 3, 2021 at 2:02 AM Peter Zijlstra wrote: > > On Tue, Mar 02, 2021 at 12:57:37PM -0800, Josh Don wrote: > > On gcc, the asm versions of `fls` are about the same speed as the > > builtin. On clang, the versions that use fls (fls,fls64) are more than > > twice as slow as the builtin. This

Re: Build regressions/improvements in v5.12-rc1

2021-03-03 Thread Bhaskar Chowdhury
On 11:43 Mon 01 Mar 2021, Geert Uytterhoeven wrote: If I saw correctly , the tag clearly attached a word with it "dontuse" ... ~Bhaskar Below is the list of build error/warning regressions/improvements in v5.12-rc1[1] compared to v5.11[2]. Summarized: - build errors: +2/-0 - build warnings

Re: [PATCH 5.10 491/663] USB: serial: option: update interface mapping for ZTE P685M

2021-03-03 Thread Lech Perczak
Hi, On 2021-03-01 at 17:12, Greg Kroah-Hartman wrote: From: Lech Perczak commit 6420a569504e212d618d4a4736e2c59ed80a8478 upstream. This patch prepares for qmi_wwan driver support for the device. Previously "option" driver mapped itself to interfaces 0 and 3 (matching ff/ff/ff), while interfac

Re: [RESEND PATCH 1/2] ARM64: enable GENERIC_FIND_FIRST_BIT

2021-03-03 Thread Yury Norov
On Thu, Feb 25, 2021 at 02:02:06PM +, Will Deacon wrote: > On Thu, Feb 25, 2021 at 05:56:59AM -0800, Yury Norov wrote: > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index 31bd885b79eb..5596eab04092 100644 > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -108,6 +10

Re: [PATCH] usb: dwc3: Fix dereferencing of null dwc->usb_psy

2021-03-03 Thread Colin Ian King
On 03/03/2021 21:29, Heiko Thiery wrote: > Hi all, > >> On Wed, Mar 3, 2021 at 6:00 PM Colin King wrote: >>> >>> From: Colin Ian King >>> >>> Currently the null check logic on dwc->usb_psy is inverted as it allows >>> calls to power_supply_put with a null dwc->usb_psy causing a null >>> pointer

s390-linux-ld: timer-of.c:undefined reference to `iounmap'

2021-03-03 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f69d02e37a85645aa90d18cacfff36dba370f797 commit: 61e0349f703d1576a12f88c15f25e0a56fd277af ubsan: disable object-size sanitizer under GCC date: 3 months ago config: s390-allmodconfig (attached as .config) c

Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag

2021-03-03 Thread Fangrui Song
On 2021-03-03, Masahiro Yamada wrote: Hi. On Wed, Mar 3, 2021 at 6:44 AM Fangrui Song wrote: Reviewed-by: Fangrui Song Thanks for the clean-up! --gcc-toolchain= is an obsscure way searching for GCC installation prefixes (--prefix). The logic is complex and different for different distrib

Re: [PATCH v4 0/3] Cleanup and fixups for vmemmap handling

2021-03-03 Thread Andrew Morton
On Wed, 3 Mar 2021 19:38:30 +0100 Borislav Petkov wrote: > On Tue, Mar 02, 2021 at 04:09:35PM -0800, Andrew Morton wrote: > > > arch/x86/mm/init_64.c | 189 > > > +++--- > > > > Perhaps a better route would be via an x86 tree. > > I assumed you took

[PATCH v2] sched: Optimize __calc_delta.

2021-03-03 Thread Josh Don
From: Clement Courbet A significant portion of __calc_delta time is spent in the loop shifting a u64 by 32 bits. Use `fls` instead of iterating. This is ~7x faster on benchmarks. The generic `fls` implementation (`generic_fls`) is still ~4x faster than the loop. Architectures that have a better

Re: [PATCH v3 1/2] dt-bindings: display: bridge: Add bindings for Chipone ICN6211

2021-03-03 Thread Laurent Pinchart
Hi Jagan, On Wed, Mar 03, 2021 at 08:08:35PM +0530, Jagan Teki wrote: > On Wed, Feb 24, 2021 at 6:44 PM Laurent Pinchart wrote: > > On Wed, Feb 24, 2021 at 06:07:43PM +0530, Jagan Teki wrote: > > > On Mon, Feb 15, 2021 at 5:48 PM Laurent Pinchart wrote: > > > > On Sun, Feb 14, 2021 at 11:22:10PM +

Re: [PATCH] ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls

2021-03-03 Thread Dmitry V. Levin
On Sun, Feb 21, 2021 at 12:25:53AM +, Sergei Trofimovich wrote: > In https://bugs.gentoo.org/769614 Dmitry noticed that > `ptrace(PTRACE_GET_SYSCALL_INFO)` does not work for syscalls called > via glibc's syscall() wrapper. > > ia64 has two ways to call syscalls from userspace: via `break` and

Re: f2fs_convert_inline_inode causing rebalance based on random uninitialized value in dn.node_changed

2021-03-03 Thread Colin Ian King
On 03/03/2021 19:44, Jaegeuk Kim wrote: > On 03/02, Colin Ian King wrote: >> Hi, >> >> Static analysis on linux-next detected a potential uninitialized >> variable dn.node_changed that does not get set when a call to >> f2fs_get_node_page() fails. This uninitialized value gets used in the >> call

Re: KASAN: use-after-free Write in cipso_v4_doi_putdef

2021-03-03 Thread Paul Moore
On Wed, Mar 3, 2021 at 11:20 AM Paul Moore wrote: > On Wed, Mar 3, 2021 at 10:53 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:7a7fd0de Merge branch 'kmap-conversion-for-5.12' of git://.. > > git tree: upstream > > console output: htt

Re: [PATCH net v2] net: l2tp: reduce log level of messages in receive path, add counter instead

2021-03-03 Thread Tom Parkin
On Wed, Mar 03, 2021 at 16:50:49 +0100, Matthias Schiffer wrote: > Commit 5ee759cda51b ("l2tp: use standard API for warning log messages") > changed a number of warnings about invalid packets in the receive path > so that they are always shown, instead of only when a special L2TP debug > flag is s

Re: [PATCH v3] mm: cma: support sysfs

2021-03-03 Thread Andrew Morton
On Wed, 3 Mar 2021 12:50:53 -0800 Minchan Kim wrote: > Since CMA is getting used more widely, it's more important to > keep monitoring CMA statistics for system health since it's > directly related to user experience. > > This patch introduces sysfs statistics for CMA, in order to provide > som

Re: memory leak in io_submit_sqes (2)

2021-03-03 Thread Jens Axboe
#syz test: git://git.kernel.dk/linux-block leak -- Jens Axboe

[PATCH] crypto: ccp - Don't initialize SEV support without the SEV feature

2021-03-03 Thread Tom Lendacky
From: Tom Lendacky If SEV has been disabled (e.g. through BIOS), the driver probe will still issue SEV firmware commands. The SEV INIT firmware command will return an error in this situation, but the error code is a general error code that doesn't highlight the exact reason. Add a check for X86_

[tip:sched/core] BUILD SUCCESS 8b89220650146d59e9a8af2e5f12fc582539609e

2021-03-03 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210303 i386 randconfig-a003-20210303 i386

Re: [PATCH v2 1/2] arm64: cpufeatures: Fix handling of CONFIG_CMDLINE for idreg overrides

2021-03-03 Thread Rob Herring
On Wed, Mar 3, 2021 at 7:50 AM Will Deacon wrote: > > The built-in kernel commandline (CONFIG_CMDLINE) can be configured in > three different ways: > > 1. CMDLINE_FORCE: Use CONFIG_CMDLINE instead of any bootloader args > 2. CMDLINE_EXTEND: Append the bootloader args to CONFIG_CMDLINE > 3. C

[PATCH] mm/filemap: Drop check for truncated page after I/O

2021-03-03 Thread Matthew Wilcox (Oracle)
If the I/O completed successfully, the page will remain Uptodate, even if it is subsequently truncated. If the I/O completed with an error, this check would cause us to retry the I/O if the page were truncated before we woke up. There is no need to retry the I/O; the I/O to fill the page failed,

Re: memory leak in io_submit_sqes (2)

2021-03-03 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in io_submit_sqes BUG: memory leak unreferenced object 0x88811043cc00 (size 232): comm "syz-executor.0", pid 10595, jiffies 4294944973 (age 10.850s) hex dump (first 32 bytes): 00

Re: [PATCH v4 03/11] media: hantro: change hantro_codec_ops run prototype to return errors

2021-03-03 Thread Ezequiel Garcia
On Wed, 2021-03-03 at 12:39 +0100, Benjamin Gaignard wrote: > Change hantro_codec_ops run prototype from 'void' to 'int'. > This allow to cancel the job if an error occur while configuring > the hardware. > > Signed-off-by: Benjamin Gaignard > --- >  drivers/staging/media/hantro/hantro_drv.c

linux-next: manual merge of the ipsec tree with the net tree

2021-03-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the ipsec tree got conflicts in: net/ipv4/ip_vti.c net/ipv6/ip6_vti.c between commit: 4372339efc06 ("net: always use icmp{,v6}_ndo_send from ndo_start_xmit") from the net tree and commits: c7c1abfd6d42 ("vti: fix ipv4 pmtu check to honor ip header d

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