[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

[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:

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] 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:

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

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:

[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

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 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

[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

Re: [PATCH v13 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-03 Thread Michał Mirosław
On Tue, Mar 02, 2021 at 03:44:44PM +0300, Dmitry Osipenko wrote: > Display controller (DC) performs isochronous memory transfers, and thus, > has a requirement for a minimum memory bandwidth that shall be fulfilled, > otherwise framebuffer data can't be fetched fast enough and this results > in a

[PATCH tip/core/rcu 07/12] rcu/nocb: Rename nocb_gp_update_state to nocb_gp_update_state_deoffloading

2021-03-03 Thread paulmck
From: Frederic Weisbecker The name nocb_gp_update_state() is unenlightening, so this commit changes it to nocb_gp_update_state_deoffloading(). This function now does what its name says, updates state and returns true if the CPU corresponding to the specified rcu_data structure is in the process

[PATCH tip/core/rcu 10/12] rcu/nocb: Disable bypass when CPU isn't completely offloaded

2021-03-03 Thread paulmck
From: Frederic Weisbecker Currently, the bypass is flushed at the very last moment in the deoffloading procedure. However, this approach leads to a larger state space than would be preferred. This commit therefore disables the bypass at soon as the deoffloading procedure begins, then flushes

[PATCH tip/core/rcu 12/12] rcu/nocb: Move trace_rcu_nocb_wake() calls outside nocb_lock when possible

2021-03-03 Thread paulmck
From: Frederic Weisbecker Those tracing calls don't need to be under ->nocb_lock. This commit therefore moves them outside of that lock. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng Signed-off-by: Paul E.

[PATCH tip/core/rcu 08/12] rcu: Make nocb_nobypass_lim_per_jiffy static

2021-03-03 Thread paulmck
From: Jiapeng Chong RCU triggerse the following sparse warning: kernel/rcu/tree_plugin.h:1497:5: warning: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static? This commit therefore makes this variable static. Reported-by: Abaci Robot Frederic Weisbecker Signed-off-by:

[PATCH tip/core/rcu 09/12] rcu/nocb: Fix missed nocb_timer requeue

2021-03-03 Thread paulmck
From: Frederic Weisbecker This sequence of events can lead to a failure to requeue a CPU's ->nocb_timer: 1. There are no callbacks queued for any CPU covered by CPU 0-2's ->nocb_gp_kthread. Note that ->nocb_gp_kthread is associated with CPU 0. 2. CPU 1 enqueues its

[PATCH tip/core/rcu 11/12] rcu/nocb: Remove stale comment above rcu_segcblist_offload()

2021-03-03 Thread paulmck
From: Frederic Weisbecker This commit removes a stale comment claiming that the cblist must be empty before changing the offloading state. This claim was correct back when the offloaded state was defined exclusively at boot. Reported-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker

[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

[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

[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

[PATCH tip/core/rcu 06/12] rcu/nocb: Only (re-)initialize segcblist when needed on CPU up

2021-03-03 Thread paulmck
From: Frederic Weisbecker At the start of a CPU-hotplug operation, the incoming CPU's callback list can be in a number of states: 1. Disabled and empty. This is the case when the boot CPU has not invoked call_rcu(), when a non-boot CPU first comes online, and when a

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.

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' >

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

[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

[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

[PATCH kcsan 2/4] kcsan: Make test follow KUnit style recommendations

2021-03-03 Thread paulmck
From: Marco Elver Per recently added KUnit style recommendations at Documentation/dev-tools/kunit/style.rst, make the following changes to the KCSAN test: 1. Rename 'kcsan-test.c' to 'kcsan_test.c'. 2. Rename suite name 'kcsan-test' to 'kcsan'. 3. Rename

[PATCH tip/core/rcu 17/28] torture: Remove no-mpstat error message

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The cpus2use.sh script complains if the mpstat command is not available, and instead uses all available CPUs. Unfortunately, this complaint goes to stdout, where it confuses invokers who expect a single number. This commit removes this error message in order to avoid

Re: [PATCH v2 00/20] [Set 1] Rid W=1 warnings from ATA

2021-03-03 Thread Jens Axboe
On 2/1/21 7:39 AM, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > This is set 1 out of 2 sets required. Queued up for 5.13, thanks. -- Jens Axboe

Re: [PATCH 1/7] buildid: Add method to get running kernel's build ID

2021-03-03 Thread Stephen Boyd
Quoting Stephen Boyd (2021-03-02 15:28:25) > (HTML mail?) > > Quoting Andy Shevchenko (2021-03-01 15:33:06) > > > > > > On Monday, March 1, 2021, Stephen Boyd wrote: > > @@ -147,3 +158,31 @@ int build_id_parse(struct vm_area_struct *vma, > > unsigned char *build_id, > >        

[PATCH kcsan 3/4] kcsan: Switch to KUNIT_CASE_PARAM for parameterized tests

2021-03-03 Thread paulmck
From: Marco Elver Since KUnit now support parameterized tests via KUNIT_CASE_PARAM, update KCSAN's test to switch to it for parameterized tests. This simplifies parameterized tests and gets rid of the "parameters in case name" workaround (hack). At the same time, we can increase the maximum

[PATCH kcsan 1/4] kcsan, debugfs: Move debugfs file creation out of early init

2021-03-03 Thread paulmck
From: Marco Elver Commit 56348560d495 ("debugfs: do not attempt to create a new file before the filesystem is initalized") forbids creating new debugfs files until debugfs is fully initialized. This means that KCSAN's debugfs file creation, which happened at the end of __init(), no longer

[PATCH tip/core/rcu 25/28] torture: Make TORTURE_TRUST_MAKE available in kvm-again.sh environment

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Because the TORTURE_TRUST_MAKE environment variable is not recorded, kvm-again.sh runs can result in the parse-build.sh script emitting false-positive "BUG: TREE03 no build" messages. These messages are intended to complain about any lack of compiler invocations when

[PATCH kcsan 4/4] kcsan: Add missing license and copyright headers

2021-03-03 Thread paulmck
From: Marco Elver Adds missing license and/or copyright headers for KCSAN source files. Signed-off-by: Marco Elver Signed-off-by: Paul E. McKenney --- Documentation/dev-tools/kcsan.rst | 3 +++ include/linux/kcsan-checks.h | 6 ++ include/linux/kcsan.h | 7 +++

[RFC PATCH v2 00/13] Add futex2 syscall

2021-03-03 Thread André Almeida
Hi, This patch series introduces the futex2 syscalls. * What happened to the current futex()? For some years now, developers have been trying to add new features to futex, but maintainers have been reluctant to accept then, given the multiplexed interface full of legacy features and tricky to

[RFC PATCH v2 01/13] futex2: Implement wait and wake functions

2021-03-03 Thread André Almeida
Create a new set of futex syscalls known as futex2. This new interface is aimed to implement a more maintainable code, while removing obsolete features and expanding it with new functionalities. Implements wait and wake semantics for futexes, along with the base infrastructure for future

[PATCH kcsan 0/4] KCSAN updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains KCSAN updates: 1. kcsan, debugfs: Move debugfs file creation out of early init, courtesy of Marco Elver. 2. Make test follow KUnit style recommendations, courtesy of Marco Elver. 3. Switch to KUNIT_CASE_PARAM for parameterized tests,

[RFC PATCH v2 03/13] futex2: Implement vectorized wait

2021-03-03 Thread André Almeida
Add support to wait on multiple futexes. This is the interface implemented by this syscall: futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, unsigned int flags, struct timespec *timo) struct futex_waitv { void *uaddr; unsigned int val;

[RFC PATCH v2 04/13] futex2: Implement requeue operation

2021-03-03 Thread André Almeida
Implement requeue interface similarly to FUTEX_CMP_REQUEUE operation. This is the syscall implemented by this patch: futex_requeue(struct futex_requeue *uaddr1, struct futex_requeue *uaddr2, unsigned int nr_wake, unsigned int nr_requeue, unsigned int cmpval, unsigned

[RFC PATCH v2 06/13] docs: locking: futex2: Add documentation

2021-03-03 Thread André Almeida
Add a new documentation file specifying both userspace API and internal implementation details of futex2 syscalls. Signed-off-by: André Almeida --- Documentation/locking/futex2.rst | 198 +++ Documentation/locking/index.rst | 1 + 2 files changed, 199

[RFC PATCH v2 08/13] selftests: futex2: Add timeout test

2021-03-03 Thread André Almeida
Adapt existing futex wait timeout file to test the same mechanism for futex2. futex2 accepts only absolute 64bit timers, but supports both monotonic and realtime clocks. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_timeout.c | 58 --- 1 file changed, 49

[RFC PATCH v2 07/13] selftests: futex2: Add wake/wait test

2021-03-03 Thread André Almeida
Add a simple file to test wake/wait mechanism using futex2 interface. Test three scenarios: using a common local int variable as private futex, a shm futex as shared futex and a file-backed shared memory as a shared futex. This should test all branches of futex_get_key(). Create helper files so

[RFC PATCH v2 02/13] futex2: Add support for shared futexes

2021-03-03 Thread André Almeida
Add support for shared futexes for cross-process resources. This design relies on the same approach done in old futex to create an unique id for file-backed shared memory, by using a counter at struct inode. There are two types of futexes: private and shared ones. The private are futexes meant to

[RFC PATCH v2 10/13] selftests: futex2: Add waitv test

2021-03-03 Thread André Almeida
Create a new file to test the waitv mechanism. Test both private and shared futexes. Wake the last futex in the array, and check if the return value from futex_waitv() is the right index. Signed-off-by: André Almeida --- .../selftests/futex/functional/.gitignore | 1 +

[RFC PATCH v2 09/13] selftests: futex2: Add wouldblock test

2021-03-03 Thread André Almeida
Adapt existing futex wait wouldblock file to test the same mechanism for futex2. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_wouldblock.c | 33 --- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git

[RFC PATCH v2 05/13] futex2: Add compatibility entry point for x86_x32 ABI

2021-03-03 Thread André Almeida
New syscalls should use the same entry point for x86_64 and x86_x32 paths. Add a wrapper for x32 calls to use parse functions that assumes 32bit pointers. Signed-off-by: André Almeida --- kernel/futex2.c | 42 +++--- 1 file changed, 35 insertions(+), 7

[RFC PATCH v2 11/13] selftests: futex2: Add requeue test

2021-03-03 Thread André Almeida
Add testing for futex_requeue(). The first test just requeue from one waiter to another one, and wake it. The second performs both wake and requeue, and we check return values to see if the operation woke/requeued the expected number of waiters. Signed-off-by: André Almeida ---

[RFC PATCH v2 12/13] perf bench: Add futex2 benchmark tests

2021-03-03 Thread André Almeida
Add support at the existing futex benchmarking code base to enable futex2 calls. `perf bench` tests can be used not only as a way to measure the performance of implementation, but also as stress testing for the kernel infrastructure. Signed-off-by: André Almeida ---

Re: [kbuild-all] Re: net/ceph/messenger_v1.c:1204:5: warning: stack frame size of 2944 bytes in function 'ceph_con_v1_try_read'

2021-03-03 Thread Rong Chen
On 3/1/21 7:42 PM, Ilya Dryomov wrote: On Mon, Mar 1, 2021 at 9:36 AM kernel test robot wrote: Hi Ilya, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit:

[RFC PATCH v2 13/13] kernel: Enable waitpid() for futex2

2021-03-03 Thread André Almeida
To make pthreads works as expected if they are using futex2, wake clear_child_tid with futex2 as well. This is make applications that uses waitpid() (and clone(CLONE_CHILD_SETTID)) wake while waiting for the child to terminate. Given that apps should not mix futex() and futex2(), any correct app

[PATCH memory-model 0/3] LKMM updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains LKMM updates: 1. Update rcu_dereference.rst reference, courtesy of Mauro Carvalho Chehab. 2. tools/memory-model: Remove reference to atomic_ops.rst, courtesy of Akira Yokosawa. 3. tools/memory-model: Add access-marking documentation.

ERROR: modpost: "__delay" undefined!

2021-03-03 Thread kernel test robot
Hi Andrew, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f69d02e37a85645aa90d18cacfff36dba370f797 commit: a9770eac511ad82390b9f4a3c1728e078c387ac7 net: mdio: Move MDIO drivers into a new subdirectory date: 6

[PATCH tip/core/rcu 2/2] rcu-tasks: Add block comment laying out RCU Tasks Trace design

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit adds a block comment that gives a high-level overview of how RCU tasks trace grace periods progress. It also adds a note about how exiting tasks are handled, plus it gives an overview of the memory ordering. Reported-by: Peter Zijlstra Reported-by: Mathieu

[PATCH tip/core/rcu 2/2] rcutorture: Replace rcu_torture_stall string with %s

2021-03-03 Thread paulmck
From: Stephen Zhang This commit replaces a hard-coded "rcu_torture_stall" string in a pr_alert() format with "%s" and __func__. Signed-off-by: Stephen Zhang Signed-off-by: Paul E. McKenney --- kernel/rcu/rcutorture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH tip/core/rcu 1/2] torture: Replace torture_init_begin string with %s

2021-03-03 Thread paulmck
From: Stephen Zhang This commit replaces a hard-coded "torture_init_begin" string in a pr_alert() format with "%s" and __func__. Signed-off-by: Stephen Zhang Signed-off-by: Paul E. McKenney --- kernel/torture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2] KVM: LAPIC: Advancing the timer expiration on guest initiated write

2021-03-03 Thread Wanpeng Li
From: Wanpeng Li Advancing the timer expiration should only be necessary on guest initiated writes. When we cancel the timer and clear .pending during state restore, clear expired_tscdeadline as well. Reviewed-by: Sean Christopherson Signed-off-by: Wanpeng Li --- v1 -> v2: * update patch

[PATCH tip/core/rcu 0/28] Torture-test scripting updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains updates to the torture-test scripting, perhaps most notably the addition of kvm-again.sh, which allows rerunning an earlier test without having to rebuild all the kernels. 1. Don't rerun failed rcutorture builds. 2. Allow 1G of memory for torture.sh kvfree

[PATCH tip/core/rcu 01/28] torturescript: Don't rerun failed rcutorture builds

2021-03-03 Thread paulmck
From: "Paul E. McKenney" If the build fails when running multiple instances of a given rcutorture scenario, for example, using the kvm.sh --configs "8*RUDE01" argument, the build will be rerun an additional seven times. This is in some sense correct, but it can waste significant time. This

Re: [PATCH] [v2] sata_dwc_460ex: Fix missing check in sata_dwc_isr

2021-03-03 Thread Jens Axboe
On 3/3/21 12:34 AM, Dinghao Liu wrote: > The return value of ata_qc_from_tag() is checked in the whole > kernel except for two calls in sata_dwc_isr(), which may lead > to null-pointer-dereference. Add return value checks to avoid > such case. Applied, thanks. -- Jens Axboe

[PATCH tip/core/rcu 5/5] torture: Make jitter.sh handle large systems

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The current jitter.sh script expects cpumask bits to fit into whatever the awk interpreter uses for an integer, which clearly does not hold for even medium-sized systems these days. This means that on a large system, only the first 32 or 64 CPUs (depending) are

Re: [PATCH v1] Input: elants_i2c - fix division by zero if firmware reports zero phys size

2021-03-03 Thread Michał Mirosław
On Tue, Mar 02, 2021 at 01:08:24PM +0300, Dmitry Osipenko wrote: > Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys > size. Hence check whether the size is zero and don't set the resolution in > this case. > > Reported-by: Jasper Korten > Signed-off-by: Dmitry Osipenko

[PATCH tip/core/rcu 02/28] torture: Allow 1G of memory for torture.sh kvfree testing

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Yes, I do recall a time when 512MB of memory was a lot of mass storage, much less main memory, but the rcuscale kvfree_rcu() testing invoked by torture.sh can sometimes exceed it on large systems, resulting in OOM. This commit therefore causes torture.sh to pase the

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

2021-03-03 Thread Jacob Pan
Hi Jacob, On Wed, 3 Mar 2021 13:17:26 -0800, Jacob Pan wrote: > Hi Tejun, > > On Wed, 3 Mar 2021 10:44:28 -0500, Tejun Heo wrote: > > > On Sat, Feb 27, 2021 at 02:01:23PM -0800, Jacob Pan wrote: > > > IOASIDs are used to associate DMA requests with virtual address > > > spaces. They are a

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-03 Thread Stephen Boyd
Quoting Andy Shevchenko (2021-03-03 08:17:01) > On Wed, Mar 03, 2021 at 10:00:12AM -0500, Steven Rostedt wrote: > > On Wed, 3 Mar 2021 11:25:58 +0100 > > Petr Mladek wrote: > > > > > Alternative solution would be to minimize the information, for > > > example, by printing only the modules that

[PATCH tip/core/rcu 18/28] torture: Rename SRCU-t and SRCU-u to avoid lowercase characters

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The convention that scenario names are all uppercase has two exceptions, SRCU-t and SRCU-u. This commit therefore renames them to SRCU-T and SRCU-U, respectively, to bring them in line with this convention. This in turn permits tighter argument checking in the

[PATCH tip/core/rcu 20/28] torture: De-capitalize TORTURE_SUITE

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Although it might be unlikely that someone would name a scenario "TORTURE_SUITE", they are within their rights to do so. This script therefore renames the "TORTURE_SUITE" file in the top-level date-stamped directory within "res" to "torture_suite" to avoid this name

[PATCH tip/core/rcu 24/28] torture: Make kvm-transform.sh update jitter commands

2021-03-03 Thread paulmck
From: "Paul E. McKenney" When rerunning an old run using kvm-again.sh, the jitter commands will re-use the original "res" directory. This works, but is clearly an accident waiting to happen. And this accident will happen with remote runs, where the original directory lives on some other

[PATCH tip/core/rcu 27/28] torture: Consolidate qemu-cmd duration editing into kvm-transform.sh

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Currently, kvm-again.sh updates the duration in the "seconds=" comment in the qemu-cmd file, but kvm-transform.sh updates the duration in the actual qemu command arguments. This is an accident waiting to happen. This commit therefore consolidates these updates into

[PATCH tip/core/rcu 15/28] torture: Record jitter start/stop commands

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Distributed runs of rcutorture will need to start and stop jittering on the remote hosts, which means that the commands must be communicated to those hosts. The commit therefore causes kvm.sh to place these commands in new TORTURE_JITTER_START and TORTURE_JITTER_STOP

[PATCH tip/core/rcu 26/28] torture: Print proper vmlinux path for kvm-again.sh runs

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The kvm-again.sh script does not copy over the vmlinux files due to their large size. This means that a gdb run must use the vmlinux file from the original "res" directory. This commit therefore finds that directory and prints it out so that the user can copy and

[PATCH tip/core/rcu 21/28] torture: Create a "batches" file for build reuse

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit creates a "batches" file in the res/$ds directory, where $ds is the datestamp. This file contains the batches and the number of CPUs, for example: 1 TREE03 16 1 SRCU-P 8 2 TREE07 16 2 TREE01 8 3 TREE02 8 3 TREE04 8 3 TREE05 8 4 SRCU-N 4 4 TRACE01 4 4

[PATCH tip/core/rcu 19/28] torture: Make upper-case-only no-dot no-slash scenario names official

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit enforces the defacto restriction on scenario names, which is that they contain neither "/", ".", nor lowercase alphabetic characters. This restriction avoids collisions between scenario names and the torture scripting's files and directories. Signed-off-by:

RE: [PATCH] KVM: arm64: Fix unaligned addr case in mmu walking

2021-03-03 Thread Justin He
Hi Quentin and Marc I noticed Marc had sent out new version on behalf of me, thanks for the help. I hated the time difference, sorry for the late. Just answer the comments below to make it clear. > -Original Message- > From: Quentin Perret > Sent: Wednesday, March 3, 2021 7:09 PM > To:

[PATCH tip/core/rcu 22/28] torture: Add kvm-again.sh to rerun a previous torture-test

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit adds a kvm-again.sh script that, given the results directory of a torture-test run, re-runs that test. This means that the kernels need not be rebuilt, but it also is a step towards running torture tests on remote systems. This commit also adds a

[PATCH tip/core/rcu 23/28] torture: Add --duration argument to kvm-again.sh

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit adds a --duration argument to kvm-again.sh to allow the user to override the --duration specified for the original kvm.sh run. Signed-off-by: Paul E. McKenney --- .../testing/selftests/rcutorture/bin/kvm-again.sh | 25 ++-

[PATCH tip/core/rcu 28/28] torture: Fix kvm.sh --datestamp regex check

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Some versions of grep are happy to interpret a nonsensically placed "-" within a "[]" pattern as a dash, while others give an error message. This commit therefore places the "-" at the end of the expression where it was supposed to be in the first place. Signed-off-by:

[PATCH memory-model 2/3] tools/memory-model: Remove reference to atomic_ops.rst

2021-03-03 Thread paulmck
From: Akira Yokosawa atomic_ops.rst was removed by commit f0400a77ebdc ("atomic: Delete obsolete documentation"). Remove the broken link in tools/memory-model/Documentation/simple.txt. Cc: Peter Zijlstra Signed-off-by: Akira Yokosawa Signed-off-by: Paul E. McKenney ---

[PATCH memory-model 1/3] doc: Update rcu_dereference.rst reference

2021-03-03 Thread paulmck
From: Mauro Carvalho Chehab Changeset b00aedf978aa ("doc: Convert to rcu_dereference.txt to rcu_dereference.rst") renamed: Documentation/RCU/rcu_dereference.txt to: Documentation/RCU/rcu_dereference.rst. Update its cross-reference accordingly. Signed-off-by: Mauro Carvalho Chehab

[PATCH memory-model 3/3] tools/memory-model: Add access-marking documentation

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit adapts the "Concurrency bugs should fear the big bad data-race detector (part 2)" LWN article (https://lwn.net/Articles/816854/) to kernel-documentation form. This allows more easily updating the material as needed. Suggested-by: Thomas Gleixner [ paulmck:

[PATCH v5 clocksource] Do not mark clocks unstable due to delays for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! If there is a sufficient delay between reading the watchdog clock and the clock under test, the clock under test will be marked unstable through no fault of its own. This series checks for this, doing limited retries to get a good set of clock reads. If the clock is marked unstable and

[PATCH kernel/time 1/5] clocksource: Provide module parameters to inject delays in watchdog

2021-03-03 Thread paulmck
From: "Paul E. McKenney" When the clocksource watchdog marks a clock as unstable, this might be due to that clock being unstable or it might be due to delays that happen to occur between the reads of the two clocks. Yes, interrupts are disabled across those two reads, but there are no shortage

[PATCH kernel/time 4/5] clocksource: Provide a module parameter to fuzz per-CPU clock checking

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Code that checks for clock desynchronization must itself be tested, so this commit creates a new clocksource.inject_delay_shift_percpu= kernel boot parameter that adds or subtracts a large value from the check read, using the specified bit of the CPU ID to determine

Re: [PATCH 3/4] kbuild: check the minimum assembler version in Kconfig

2021-03-03 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 03:33:32AM +0900, Masahiro Yamada wrote: > Documentation/process/changes.rst defines the minimum assembler version > (binutils version), but we have never checked it in the build time. > > Kbuild never invokes 'as' directly because all assembly files in the > kernel tree

[PATCH tip/core/rcu 0/5] Realtime-related RCU updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! These commits are related to RCU's realtime support, including better testing preemption, improving testing of RCU priority boosting, and ensuring that at least one rcutorture scenario tests use_softirq=0. 1. Expedite deboost in case of deferred quiescent state. 2. Make TREE03

Re: [PATCH 06/11] pragma once: convert include/linux/cb710.h

2021-03-03 Thread Michał Mirosław
On Sun, Feb 28, 2021 at 08:02:10PM +0300, Alexey Dobriyan wrote: > From 1c4107e55b322dada46879837d4d64841bc5f150 Mon Sep 17 00:00:00 2001 > From: Alexey Dobriyan > Date: Tue, 9 Feb 2021 16:56:54 +0300 > Subject: [PATCH 06/11] pragma once: convert include/linux/cb710.h > > This file is

[PATCH tip/core/rcu 4/5] rcu: Make rcu_read_unlock_special() expedite strict grace periods

2021-03-03 Thread paulmck
From: "Paul E. McKenney" In kernels built with CONFIG_RCU_STRICT_GRACE_PERIOD=y, every grace period is an expedited grace period. However, rcu_read_unlock_special() does not treat them that way, instead allowing the deferred quiescent state to be reported whenever. This commit therefore adds a

[PATCH tip/core/rcu 1/5] rcu: Expedite deboost in case of deferred quiescent state

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Historically, a task that has been subjected to RCU priority boosting is deboosted at rcu_read_unlock() time. However, with the advent of deferred quiescent states, if the outermost rcu_read_unlock() was invoked with either bottom halves, interrupts, or preemption

[PATCH tip/core/rcu 3/5] rcutorture: Fix testing of RCU priority boosting

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Currently, rcutorture refuses to test RCU priority boosting in CONFIG_HOTPLUG_CPU=y kernels, which are the only kind normally built on x86 these days. This commit therefore updates rcutorture's tests of RCU priority boosting to make them safe for CPU hotplug. However,

[PATCH tip/core/rcu 0/2] RCU Tasks updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains a couple of updates for the RCU-tasks family: 1. rcu-tasks: Rectify kernel-doc for struct rcu_tasks, courtesy of Lukas Bulwahn. 2. rcu-tasks: Add block comment laying out RCU Tasks Trace design.

Re: [PATCH 1/2] units: Add the HZ_PER_KHZ macro

2021-03-03 Thread Andrew Morton
On Wed, 24 Feb 2021 10:39:36 +0200 Andy Shevchenko wrote: > On Wednesday, February 24, 2021, Andy Shevchenko > wrote: > > > > > > > On Tuesday, February 23, 2021, Daniel Lezcano > > wrote: > > > >> The macro for the unit conversion for frequency is duplicated in > >> different places. > >> >

[PATCH tip/core/rcu 2/5] rcutorture: Make TREE03 use real-time tree.use_softirq setting

2021-03-03 Thread paulmck
From: "Paul E. McKenney" TREE03 tests RCU priority boosting, which is a real-time feature. It would also be good if it tested something closer to what is actually used by the real-time folks. This commit therefore adds tree.use_softirq=0 to the TREE03 kernel boot parameters in TREE03.boot.

[PATCH tip/core/rcu 1/2] rcu-tasks: Rectify kernel-doc for struct rcu_tasks

2021-03-03 Thread paulmck
From: Lukas Bulwahn The command 'find ./kernel/rcu/ | xargs ./scripts/kernel-doc -none' reported an issue with the kernel-doc of struct rcu_tasks. This commit rectifies the kernel-doc, such that no issues remain for ./kernel/rcu/. Signed-off-by: Lukas Bulwahn Signed-off-by: Paul E. McKenney

[PATCH tip/core/rcu 0/2] Torture-test updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains a couple of torture-test updates: 1. Replace torture_init_begin string with %s, courtesy of Stephen Zhang. 2. Replace rcu_torture_stall string with %s, courtesy of Stephen Zhang. Thanx, Paul

[PATCH tip/core/rcu 03/28] torture: Provide bare-metal modprobe-based advice

2021-03-03 Thread paulmck
From: "Paul E. McKenney" In some environments, the torture-testing use of virtualization is inconvenient. In such cases, the modprobe and rmmod commands may be used to do torture testing, but significant setup is required to build, boot, and modprobe a kernel so as to match a given torture-test

Re: [PATCH 4/4] kbuild: dwarf: use AS_VERSION instead of test_dwarf5_support.sh

2021-03-03 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 03:33:33AM +0900, Masahiro Yamada wrote: > The test code in scripts/test_dwarf5_support.sh is somewhat difficult > to understand, but after all, we want to check binutils >= 2.35.2 > > >From the former discussion, the requrement for generating DRAWF v5 from > C code is as

[PATCH tip/core/rcu 05/28] rcuscale: Disable verbose torture-test output

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Given large numbers of threads, the quantity of torture-test output is sufficient to sometimes result in RCU CPU stall warnings. The probability of these stall warnings was greatly reduced by batching the output, but the warnings were not eliminated. However, the

[PATCH tip/core/rcu 04/28] torture: Improve readability of the testid.txt file

2021-03-03 Thread paulmck
From: "Paul E. McKenney" The testid.txt file was intended for occasional in extremis use, but now that the new "bare-metal" file references it, it might see more use. This commit therefore labels sections of output and adds spacing to make it easier to see what needs to be done to make a

[PATCH tip/core/rcu 16/28] torture: Record kvm-test-1-run.sh and kvm-test-1-run-qemu.sh PIDs

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit records the process IDs of the kvm-test-1-run.sh and kvm-test-1-run-qemu.sh scripts to ease monitoring of remotely running instances of these scripts. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-test-1-run-qemu.sh | 2 ++

[PATCH tip/core/rcu 06/28] refscale: Disable verbose torture-test output

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Given large numbers of threads, the quantity of torture-test output is sufficient to sometimes result in RCU CPU stall warnings. The probability of these stall warnings was greatly reduced by batching the output, but the warnings were not eliminated. However, the

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