Re: [PATCH] timekeeping: Prevent coarse clocks going backwards

2025-04-18 Thread John Stultz
On Fri, Apr 18, 2025 at 12:00 AM Thomas Gleixner wrote: > On Fri, Apr 18 2025 at 08:37, Thomas Gleixner wrote: > > On Thu, Apr 17 2025 at 17:46, John Stultz wrote: > >> Instead it seems like we should just do: > >> tk->coarse_nsec = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; > > > > You end

[PATCH v3] timekeeping: Prevent coarse clocks going backwards

2025-04-18 Thread John Stultz
From: Thomas Gleixner Lei Chen raised an issue with CLOCK_MONOTONIC_COARSE seeing time inconsistencies. Lei tracked down that this was being caused by the adjustment tk->tkr_mono.xtime_nsec -= offset; which is made to compensate for the unaccumulated cycles in offset when the multiplicator

Re: [PATCH] openrisc: Fix build warning in cache.c

2025-04-18 Thread Stafford Horne
10:39:22AM +0530, Sahil Siddiq wrote: > > > > [...] > > > > I was working on getting this patches ready for upstreaming and noticed > > > > one > > > > thing: > > > > > > > > > > > > ---

Re: [PATCH v2 5/5] arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support

2025-04-18 Thread Dmitry Baryshkov
On Fri, Apr 18, 2025 at 03:13:46PM +0200, Luca Weiss wrote: > Add the required nodes for sound playback via a connected external > display (DisplayPort over USB-C). > > In user space just the following route needs to be set (e.g. using > ALSA UCM): > > amixer -c0 cset name='DISPLAY_PORT_RX Audi

Re: [PATCH v2 4/5] ASoC: qcom: sm8250: Add Fairphone 5 soundcard compatible

2025-04-18 Thread Dmitry Baryshkov
On Fri, Apr 18, 2025 at 03:13:45PM +0200, Luca Weiss wrote: > Add a compatible for the QCM6490-based Fairphone 5 which can use this > machine driver. > > As a note, QCM6490 RB3 board is using audioreach architecture while > Fairphone 5 uses pre-audioreach. > > Signed-off-by: Luca Weiss > --- >

Re: [PATCH v2 3/5] ASoC: qcom: sm8250: add DisplayPort Jack support

2025-04-18 Thread Dmitry Baryshkov
On Fri, Apr 18, 2025 at 03:13:44PM +0200, Luca Weiss wrote: > Add support for DisplayPort Jack events, so that user space can > configure the audio routing correctly. > > Signed-off-by: Luca Weiss > --- > sound/soc/qcom/sm8250.c | 18 -- > 1 file changed, 12 insertions(+), 6 dele

Re: [PATCH v2 2/5] ASoC: qcom: sm8250: set card driver name from match data

2025-04-18 Thread Dmitry Baryshkov
On Fri, Apr 18, 2025 at 03:13:43PM +0200, Luca Weiss wrote: > Sound machine drivers for Qualcomm SoCs can be reused across multiple > SoCs. But user space ALSA UCM files depend on the card driver name which > should be set per board/SoC. > > Allow such customization by using driver match data as s

Re: [PATCH v2 0/3] Fairphone 5 DisplayPort over USB-C support

2025-04-18 Thread Dmitry Baryshkov
On Fri, Apr 18, 2025 at 03:27:22PM +0200, Luca Weiss wrote: > Hi Krzysztof, hi Dmitry, > > Any feedback on the below proposed patch? > > I can also send out a v3 with this patch included soon if that makes it > easier to review. > > Regards > Luca > > On Tue Apr 1, 2025 at 11:32 AM CEST, Luca W

Re: [12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Paul E. McKenney
On Fri, Apr 18, 2025 at 10:29:19PM -, Joel Fernandes wrote: > Hello, Paul, > > On Fri, 18 Apr 2025 22:26:17 GMT, "Paul E. McKenney" wrote: > > On Fri, Apr 18, 2025 at 08:32:46PM +0200, Miguel Ojeda wrote: > > > On Fri, Apr 18, 2025 at 8:04 PM Paul E. McKenney wrot > > e: > > > > > > > > Suppo

Re: [12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Joel Fernandes
Hello, Paul, On Fri, 18 Apr 2025 22:26:17 GMT, "Paul E. McKenney" wrote: > On Fri, Apr 18, 2025 at 08:32:46PM +0200, Miguel Ojeda wrote: > > On Fri, Apr 18, 2025 at 8:04 PM Paul E. McKenney wrot > e: > > > > > > Suppose we fired up a guest OS and captured the console output. Is ther > e > > > a

Re: [12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Joel Fernandes
Hello, Paul, On Fri, 18 Apr 2025 22:26:17 GMT, "Paul E. McKenney" wrote: > On Fri, Apr 18, 2025 at 08:32:46PM +0200, Miguel Ojeda wrote: > > On Fri, Apr 18, 2025 at 8:04 PM Paul E. McKenney wrot > e: > > > > > > Suppose we fired up a guest OS and captured the console output. Is ther > e > > > a

Re: [PATCH 0/6] tools/nolibc: fix some undefined behaviour and enable UBSAN

2025-04-18 Thread Paul E. McKenney
On Fri, Apr 18, 2025 at 11:20:29PM +0200, Thomas Weißschuh wrote: > Hi Paul, > > On 2025-04-18 10:32:27-0700, Paul E. McKenney wrote: > > On Wed, Apr 16, 2025 at 08:40:15PM +0200, Thomas Weißschuh wrote: > > > Fix some issues uncovered by UBSAN and enable UBSAN for nolibc-test to > > > avoid regre

Re: [PATCH 0/6] tools/nolibc: fix some undefined behaviour and enable UBSAN

2025-04-18 Thread Thomas Weißschuh
Hi Paul, On 2025-04-18 10:32:27-0700, Paul E. McKenney wrote: > On Wed, Apr 16, 2025 at 08:40:15PM +0200, Thomas Weißschuh wrote: > > Fix some issues uncovered by UBSAN and enable UBSAN for nolibc-test to > > avoid regressions. > > > > Signed-off-by: Thomas Weißschuh > > Thank you, Thomas! Are

Re: [PATCH 12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Paul E. McKenney
On Fri, Apr 18, 2025 at 08:32:46PM +0200, Miguel Ojeda wrote: > On Fri, Apr 18, 2025 at 8:04 PM Paul E. McKenney wrote: > > > > Suppose we fired up a guest OS and captured the console output. Is there > > a way to make that guest OS shut down automatically at the end of the > > test and to extrac

[PATCH] ASoC: wm8998: Add Kconfig prompt

2025-04-18 Thread André Apitzsch via B4 Relay
WM8998 codec driver" depends on MFD_WM8998 && MFD_ARIZONA config SND_SOC_WM9081 --- base-commit: 7e74f756f5f643148ca5537bf2fee6767e4b0ed9 change-id: 20250418-wm8998-defae73b3320 Best regards, -- André Apitzsch

Re: [GIT PULL] kunit fixes update for Linux 6.15-rc3

2025-04-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Apr 2025 11:36:35 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-fixes-6.15-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7f424c6690df7a5e807548371b9546d51546fc54 Tha

Re: [GIT PULL] Kselftest fixes update for Linux 6.15-rc3

2025-04-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Apr 2025 11:23:27 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.15-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/338d40ceef38d9a36b48164e22768b40d6f89701 Thank you

Re: [PATCH 09/14] rcutorture: Check for ->up_read() without matching ->down_read()

2025-04-18 Thread Joel Fernandes
On 4/18/2025 12:09 PM, Joel Fernandes wrote: > From: "Paul E. McKenney" > > This commit creates counters in the rcu_torture_one_read_state_updown > structure that check for a call to ->up_read() that lacks a matching > call to ->down_read(). > > While in the area, add end-of-run cleanup code

Re: [PATCH v3 3/8] selftests/proc: extend /proc/pid/maps tearing test to include vma remapping

2025-04-18 Thread Suren Baghdasaryan
On Fri, Apr 18, 2025 at 12:56 PM Lorenzo Stoakes wrote: > > On Fri, Apr 18, 2025 at 12:31:29PM -0700, Suren Baghdasaryan wrote: > > On Fri, Apr 18, 2025 at 11:30 AM Lorenzo Stoakes > > wrote: > > > > > > On Fri, Apr 18, 2025 at 10:49:54AM -0700, Suren Baghdasaryan wrote: > > > > Test that /proc/p

Re: [PATCH v3 3/8] selftests/proc: extend /proc/pid/maps tearing test to include vma remapping

2025-04-18 Thread Lorenzo Stoakes
On Fri, Apr 18, 2025 at 12:31:29PM -0700, Suren Baghdasaryan wrote: > On Fri, Apr 18, 2025 at 11:30 AM Lorenzo Stoakes > wrote: > > > > On Fri, Apr 18, 2025 at 10:49:54AM -0700, Suren Baghdasaryan wrote: > > > Test that /proc/pid/maps does not report unexpected holes in the address > > > space whe

Re: [PATCH v3 3/8] selftests/proc: extend /proc/pid/maps tearing test to include vma remapping

2025-04-18 Thread Suren Baghdasaryan
On Fri, Apr 18, 2025 at 11:30 AM Lorenzo Stoakes wrote: > > On Fri, Apr 18, 2025 at 10:49:54AM -0700, Suren Baghdasaryan wrote: > > Test that /proc/pid/maps does not report unexpected holes in the address > > space when we concurrently remap a part of a vma into the middle of > > another vma. This

Re: [PATCH] timekeeping: Prevent coarse clocks going backwards

2025-04-18 Thread John Stultz
On Thu, Apr 17, 2025 at 11:37 PM Thomas Gleixner wrote: > On Thu, Apr 17 2025 at 17:46, John Stultz wrote: > > On Sat, Apr 5, 2025 at 2:40 PM Thomas Gleixner wrote: > >> +static inline void tk_update_coarse_nsecs(struct timekeeper *tk, u64 > >> offset) > >> +{ > >> + offset *= tk->tkr_mono

Re: [PATCH 12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Miguel Ojeda
On Fri, Apr 18, 2025 at 8:04 PM Paul E. McKenney wrote: > > Suppose we fired up a guest OS and captured the console output. Is there > a way to make that guest OS shut down automatically at the end of the > test and to extract the test results? Ah, sorry, I thought you were already doing somethi

Re: [PATCH v3 3/8] selftests/proc: extend /proc/pid/maps tearing test to include vma remapping

2025-04-18 Thread Lorenzo Stoakes
On Fri, Apr 18, 2025 at 10:49:54AM -0700, Suren Baghdasaryan wrote: > Test that /proc/pid/maps does not report unexpected holes in the address > space when we concurrently remap a part of a vma into the middle of > another vma. This remapping results in the destination vma being split > into three

Re: [PATCH 12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Paul E. McKenney
On Fri, Apr 18, 2025 at 07:31:53PM +0200, Miguel Ojeda wrote: > On Fri, Apr 18, 2025 at 6:10 PM Joel Fernandes wrote: > > > > a rust_doctests_kernel kunit run. Note that kunit wants a clean source > > tree, so this runs "make mrproper", which might come as a surprise to > > some users. Should th

Re: [PATCH v2] lib/test_kmod: do not hardcode/depend on any filesystem

2025-04-18 Thread Luis Chamberlain
On Fri, Apr 18, 2025 at 01:50:47PM -0300, Herton R. Krzesinski wrote: > Right now test_kmod has hardcoded dependencies on btrfs/xfs. That > is not optimal since you end up needing to select/build them, but it > is not really required since other fs could be selected for the testing. > Also, we can'

[PATCH v3 6/8] mm: make vm_area_struct anon_name field RCU-safe

2025-04-18 Thread Suren Baghdasaryan
For lockless /proc/pid/maps reading we have to ensure all the fields used when generating the output are RCU-safe. The only pointer fields in vm_area_struct which are used to generate that file's output are vm_file and anon_name. vm_file is RCU-safe but anon_name is not. Make anon_name RCU-safe as

[PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-18 Thread Suren Baghdasaryan
With maple_tree supporting vma tree traversal under RCU and vma and its important members being RCU-safe, /proc/pid/maps can be read under RCU and without the need to read-lock mmap_lock. However vma content can change from under us, therefore we make a copy of the vma and we pin pointer fields use

[PATCH v3 8/8] mm/maps: execute PROCMAP_QUERY ioctl under RCU

2025-04-18 Thread Suren Baghdasaryan
Utilize speculative vma lookup to find and snapshot a vma without taking mmap_lock during PROCMAP_QUERY ioctl execution. Concurrent address space modifications are detected and the lookup is retried. While we take the mmap_lock for reading during such contention, we do that momentarily only to reco

[PATCH v3 5/8] selftests/proc: add verbose more for tests to facilitate debugging

2025-04-18 Thread Suren Baghdasaryan
Add verbose more to the proc tests to print debugging information. Usage: proc-pid-vm --verbose Signed-off-by: Suren Baghdasaryan --- tools/testing/selftests/proc/proc-pid-vm.c | 154 +++-- 1 file changed, 141 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/p

[PATCH v3 4/8] selftests/proc: test PROCMAP_QUERY ioctl while vma is concurrently modified

2025-04-18 Thread Suren Baghdasaryan
Extend /proc/pid/maps tearing test to verify PROCMAP_QUERY ioctl operation correctness while the vma is being concurrently modified. Signed-off-by: Suren Baghdasaryan --- tools/testing/selftests/proc/proc-pid-vm.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/tools/

[PATCH v3 3/8] selftests/proc: extend /proc/pid/maps tearing test to include vma remapping

2025-04-18 Thread Suren Baghdasaryan
Test that /proc/pid/maps does not report unexpected holes in the address space when we concurrently remap a part of a vma into the middle of another vma. This remapping results in the destination vma being split into three parts and the part in the middle being patched back from, all done concurren

[PATCH v3 2/8] selftests/proc: extend /proc/pid/maps tearing test to include vma resizing

2025-04-18 Thread Suren Baghdasaryan
Test that /proc/pid/maps does not report unexpected holes in the address space when a vma at the edge of the page is being concurrently remapped. This remapping results in the vma shrinking and expanding from under the reader. We should always see either shrunk or expanded (original) version of th

[PATCH v3 1/8] selftests/proc: add /proc/pid/maps tearing from vma split test

2025-04-18 Thread Suren Baghdasaryan
The content of /proc/pid/maps is generated page-by-page with mmap_lock read lock (or other synchronization mechanism) being dropped in between these pages. This means that the reader can occasionally retrieve inconsistent information if the data used for file generation is being concurrently change

[PATCH v3 0/8] perform /proc/pid/maps read and PROCMAP_QUERY under RCU

2025-04-18 Thread Suren Baghdasaryan
After a long delay I'm posting next iteration of lockless /proc/pid/maps reading patchset. Differences from v2 [1]: - Add a set of tests concurrently modifying address space and checking for correct reading results; - Use new mmap_lock_speculate_xxx APIs for concurrent change detection and retries;

[GIT PULL] kunit fixes update for Linux 6.15-rc3

2025-04-18 Thread Shuah Khan
Hi Linus, Please pull the following kunit fixes update for Linux 6.15-rc3. Fixes arch sh kunit qemu_configs script sh.py to honor kunit cmdline. diff is attached. thanks, -- Shuah The following changes since commit 8ffd015db85fe

Re: [PATCH 0/6] tools/nolibc: fix some undefined behaviour and enable UBSAN

2025-04-18 Thread Paul E. McKenney
On Wed, Apr 16, 2025 at 08:40:15PM +0200, Thomas Weißschuh wrote: > Fix some issues uncovered by UBSAN and enable UBSAN for nolibc-test to > avoid regressions. > > Signed-off-by: Thomas Weißschuh Thank you, Thomas! Are these intended to go into the current v6.15 release, or are you instead thin

Re: [PATCH 12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Miguel Ojeda
On Fri, Apr 18, 2025 at 6:10 PM Joel Fernandes wrote: > > a rust_doctests_kernel kunit run. Note that kunit wants a clean source > tree, so this runs "make mrproper", which might come as a surprise to > some users. Should there be a --mrproper parameter to torture.sh to make > the user explicitl

[GIT PULL] Kselftest fixes update for Linux 6.15-rc3

2025-04-18 Thread Shuah Khan
Hi Linus, Please pull the following kselftest fixes update for Linux 6.15-rc3. Fixes dynevent_limitations.tc test failure on dash by detecting and handling bash and dash differences in evaluating \\. diff is attached. thanks, -- Shuah --

Re: [PATCH v3 06/32] selftests: harness: Remove dependency on libatomic

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > __sync_bool_compare_and_swap() is deprecated and requires libatomic on > GCC. Compiler toolchains don't necessarily have libatomic available, so > avoid this requirement by using atomics that don't need libatomic. > > Signed-off-by: Thomas Weißschuh R

[PATCH v10 20/33] remoteproc: k3-dsp: Don't override rproc ops in IPC-only mode

2025-04-18 Thread Beleswar Padhi
Currently, the driver overrides the rproc ops when booting in IPC-only mode. Remove these overrides and register the ops unconditionally. This requires to have IPC-only mode checks in the .prepare and .unprepare ops and returning early. The other rproc ops are invoked when booting either in IPC-onl

[PATCH net-next v2 4/4] selftests: drv-net: Test that NAPI ID is non-zero

2025-04-18 Thread Joe Damato
Test that the SO_INCOMING_NAPI_ID of a network file descriptor is non-zero. This ensures that either the core networking stack or, in some cases like netdevsim, the driver correctly sets the NAPI ID. Signed-off-by: Joe Damato --- .../testing/selftests/drivers/net/.gitignore | 1 + tools/testin

Re: [PATCH v1] fs/dax: fix folio splitting issue by resetting old folio order + _nr_pages

2025-04-18 Thread Andrew Morton
On Thu, 17 Apr 2025 11:01:54 -0700 Dan Williams wrote: > Darrick J. Wong wrote: > > On Thu, Apr 10, 2025 at 12:12:33PM -0700, Alison Schofield wrote: > > > On Thu, Apr 10, 2025 at 11:10:20AM +0200, David Hildenbrand wrote: > > > > Alison reports an issue with fsdax when large extends end up usin

Re: [PATCH] timekeeping: Prevent coarse clocks going backwards

2025-04-18 Thread John Stultz
On Sat, Apr 5, 2025 at 2:40 PM Thomas Gleixner wrote: > > Lei Chen raised an issue with CLOCK_MONOTONIC_COARSE seeing time > inconsistencies. Lei tracked down that this was being caused by the > adjustment > > tk->tkr_mono.xtime_nsec -= offset; > > which is made to compensate for the unaccumul

[PATCH v10 16/33] remoteproc: k3-dsp: Correct Reset deassert logic for devices w/o lresets

2025-04-18 Thread Beleswar Padhi
The k3_dsp_rproc_release() function erroneously deasserts the local reset even for devices which do not support it. Even though it results in a no-operation, Update the logic to explicitly deassert the local reset for devices that support it and only the global reset for those that do not. Signed-

Re: [PATCH v3 05/32] selftests: harness: Remove inline qualifier for wrappers

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > The pointers to the wrappers are stored in function pointers, > preventing them from actually being inlined. > Remove the inline qualifier, aligning these wrappers with the other > functions defined through macros. > > Signed-off-by: Thomas Weißschuh

Re: [PATCH v3 04/32] selftests: harness: Mark functions without prototypes static

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > With -Wmissing-prototypes the compiler will warn about non-static > functions which don't have a prototype defined. > As they are not used from a different compilation unit they don't need to > be defined globally. > > Avoid the issue by marking the fu

Re: [PATCH v3 03/32] selftests: harness: Ignore unused variant argument warning

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > For tests without fixtures the variant argument is unused. > This is intentional, prevent to compiler from complaining. > > Example warning: > > harness-selftest.c: In function 'wrapper_standalone_pass': > ../kselftest_harness.h:181:52: error:

Re: [PATCH v3 01/32] selftests: harness: Add kselftest harness selftest

2025-04-18 Thread Muhammad Usama Anjum
On 4/11/25 2:00 PM, Thomas Weißschuh wrote: > Add a selftest for the kselftest harness itself so any changes can be > validated. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Muhammad Usama Anjum > --- > MAINTAINERS| 1 + > tools/testing/selftests/M

[PATCH v2 2/5] ASoC: qcom: sm8250: set card driver name from match data

2025-04-18 Thread Luca Weiss
Sound machine drivers for Qualcomm SoCs can be reused across multiple SoCs. But user space ALSA UCM files depend on the card driver name which should be set per board/SoC. Allow such customization by using driver match data as sound card driver name. Also while we're already touching these lines,

[PATCH v2] lib/test_kmod: do not hardcode/depend on any filesystem

2025-04-18 Thread Herton R. Krzesinski
Right now test_kmod has hardcoded dependencies on btrfs/xfs. That is not optimal since you end up needing to select/build them, but it is not really required since other fs could be selected for the testing. Also, we can't change the default/driver module used for testing on initialization. Thus m

Re: [PATCH] lib/test_kmod: do not hardcode/depend on any filesystem

2025-04-18 Thread Herton Krzesinski
On Thu, Apr 17, 2025 at 9:14 PM Luis Chamberlain wrote: > > On Thu, Apr 17, 2025 at 09:08:34PM -0300, Herton R. Krzesinski wrote: > > Right now test_kmod has hardcoded dependencies on btrfs/xfs. That > > is not optimal since you end up needing to select/build them, but it > > is not really require

[PATCH net-next v2 2/4] selftests: drv-net: Factor out ksft C helpers

2025-04-18 Thread Joe Damato
Factor ksft C helpers to a header so they can be used by other C-based tests. Signed-off-by: Joe Damato --- tools/testing/selftests/drivers/net/ksft.h| 56 +++ .../selftests/drivers/net/xdp_helper.c| 49 +--- 2 files changed, 58 insertions(+), 47 deletions

Re: [PATCH net-next v26 00/23] Introducing OpenVPN Data Channel Offload

2025-04-18 Thread Antonio Quartulli
On 17/04/2025 12:48, Paolo Abeni wrote: On 4/15/25 1:17 PM, Antonio Quartulli wrote: Notable changes since v25: * removed netdev notifier (was only used for our own devices) * added .dellink implementation to address what was previously done in notifier * removed .ndo_open and moved netif_car

Re: [PATCH net-next v2 4/4] selftests: drv-net: Test that NAPI ID is non-zero

2025-04-18 Thread Jakub Kicinski
On Thu, 17 Apr 2025 01:32:42 + Joe Damato wrote: > Test that the SO_INCOMING_NAPI_ID of a network file descriptor is > non-zero. This ensures that either the core networking stack or, in some > cases like netdevsim, the driver correctly sets the NAPI ID. > > Signed-off-by: Joe Damato > --- >

[PATCH net-next v2 0/4] Fix netdevim to correctly mark NAPI IDs

2025-04-18 Thread Joe Damato
Greetings: Welcome to v2. This series fixes netdevsim to correctly set the NAPI ID on the skb. This is helpful for writing tests around features that use SO_INCOMING_NAPI_ID. In addition to the netdevsim fix in patch 1, patches 2-4 do some self test refactoring and add a test for NAPI IDs. The t

[PATCH bpf-next v1 2/2] selftests/bpf: Add link update test for cgroup_storage

2025-04-18 Thread Jiayuan Chen
Add link update test for cgroup_storage. './test_progs -a cgroup_storage_update' test_cgroup_storage_update:PASS:create cgroup 0 nsec setup_network:PASS:ip netns add cgroup_storage_ns 0 nsec setup_network:PASS:open netns 0 nsec setup_network:PASS:ip link set lo up 0 nsec test_cgroup_storage_update

Re: [PATCH 00/14] RCU torture changes for v6.16

2025-04-18 Thread Joel Fernandes
On 4/18/2025 12:09 PM, Joel Fernandes wrote: > Hi, > > Please find the upcoming miscellaneous RCU changes. The changes can also FYI: Sorry, s/miscellaneous/torture-related/ here. Also please ignore patches with "XX/12" in their subject, that was an error on my part. The rest of the series stand

[PATCH 2/4] rcu: Add warning to ensure rcu_seq_done_exact() is working

2025-04-18 Thread Joel Fernandes
The previous patch improved the rcu_seq_done_exact() function by adding a meaningful constant for the guardband. Ensure that this is working for the future by a quick check during rcu_gp_init(). Reviewed-by: Paul E. McKenney Signed-off-by: Joel Fernandes --- kernel/rcu/tree.c | 6 ++ 1 fil

[PATCH 0/4] Sequence counter related RCU changes for v6.16

2025-04-18 Thread Joel Fernandes
Hi, Please find the upcoming sequence Counter related RCU changes. The changes can also be found at: git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git seq.2025.04.18a Thanks. Frederic Weisbecker (1): rcu: Comment on the extraneous delta test on rcu_seq_done_exact() Joel

[PATCH 4/4] srcu: Use rcu_seq_done_exact() for polling API

2025-04-18 Thread Joel Fernandes
poll_state_synchronize_srcu() uses rcu_seq_done() unlike poll_state_synchronize_rcu() which uses rcu_seq_done_exact(). The rcu_seq_done_exact() makes more sense for polling API, as with this API, there is a higher chance that there is a significant delay between the get_state..() and poll_state..

[PATCH 3/4] rcu: Comment on the extraneous delta test on rcu_seq_done_exact()

2025-04-18 Thread Joel Fernandes
From: Frederic Weisbecker The numbers used in rcu_seq_done_exact() lack some explanation behind their magic. Especially after the commit: 85aad7cc4178 ("rcu: Fix get_state_synchronize_rcu_full() GP-start detection") which reported a subtle issue where a new GP sequence snapshot was taken o

[PATCH 1/4] rcu: Replace magic number with meaningful constant in rcu_seq_done_exact()

2025-04-18 Thread Joel Fernandes
The rcu_seq_done_exact() function checks if a grace period has completed by comparing sequence numbers. It includes a guard band to handle sequence number wraparound, which was previously expressed using the magic number calculation '3 * RCU_SEQ_STATE_MASK + 1'. This magic number is not immediatel

[PATCH 5/7] Revert "rcu/nocb: Fix rcuog wake-up from offline softirq"

2025-04-18 Thread Joel Fernandes
From: Frederic Weisbecker This reverts commit f7345ccc62a4b880cf76458db5f320725f28e400. swake_up_one_online() has been removed because hrtimers can now assign a proper online target to hrtimers queued from offline CPUs. Therefore remove the related hackery. Link: https://lore.kernel.org/all/202

[PATCH 4/7] rust: sync: rcu: Mark Guard methods as inline

2025-04-18 Thread Joel Fernandes
From: I Hsin Cheng Currently the implementation of "Guard" methods are basically wrappers around rcu's function within kernel. Building the kernel with llvm 18.1.8 on x86_64 machine will generate the following symbols: $ nm vmlinux | grep ' _R'.*Guard | rustfilt 817b6c90 T ::new

[PATCH 2/7] rcu: Remove swake_up_one_online() bandaid

2025-04-18 Thread Joel Fernandes
From: Frederic Weisbecker It's now ok to perform a wake-up from an offline CPU because the resulting armed scheduler bandwidth hrtimers are now correctly targeted by hrtimer infrastructure. Remove the obsolete hackerry. Link: https://lore.kernel.org/all/20241231170712.149394-3-frede...@kernel.o

[PATCH 3/7] rcu/cpu_stall_cputime: fix the hardirq count for x86 architecture

2025-04-18 Thread Joel Fernandes
From: Yongliang Gao When counting the number of hardirqs in the x86 architecture, it is essential to add arch_irq_stat_cpu to ensure accuracy. For example, a CPU loop within the rcu_read_lock function. Before: [ 70.910184] rcu: INFO: rcu_preempt self-detected stall on CPU [ 70.910436] rcu:

[PATCH 0/7] Miscellaneous RCU changes for v6.16

2025-04-18 Thread Joel Fernandes
Hi, Please find the upcoming miscellaneous RCU changes. The changes can also be found at: git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git misc.2025.04.18a Thanks. Frederic Weisbecker (2): rcu: Remove swake_up_one_online() bandaid Revert "rcu/nocb: Fix rcuog wake-up fr

[PATCH 1/7] MAINTAINERS: Update Joel's email address

2025-04-18 Thread Joel Fernandes
Update MAINTAINERS file to reflect changes to Joel's email address for upstream work. Reviewed-by: Paul E. McKenney Signed-off-by: Joel Fernandes --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 96b827049501..8eb7e057b8f9

[PATCH 12/12] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit adds a --do-rcu-rust parameter to torture.sh, which invokes a rust_doctests_kernel kunit run. Note that kunit wants a clean source tree, so this runs "make mrproper", which might come as a surprise to some users. Should there be a --mrproper parameter to tor

[PATCH 09/12] rcutorture: Check for ->up_read() without matching ->down_read()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit creates counters in the rcu_torture_one_read_state_updown structure that check for a call to ->up_read() that lacks a matching call to ->down_read(). While in the area, add end-of-run cleanup code that prevents calls to rcu_torture_updown_hrt() from happening

[PATCH 11/12] torture: Add --do-{,no-}normal to torture.sh

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Right now, torture.sh runs normal runs unconditionally, which can be slow and thus annoying when you only want to test --kcsan or --kasan runs. This commit therefore adds a --do-normal argument so that "--kcsan --do-no-kasan --do-no-normal" runs only KCSAN runs. Note tha

[PATCH 07/12] rcutorture: Comment invocations of tick_dep_set_task()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The rcu_torture_reader() and rcu_torture_fwd_prog_cr() functions run CPU-bound for extended periods of time (tens or even hundreds of milliseconds), so they invoke tick_dep_set_task() and tick_dep_clear_task() to ensure that the scheduling-clock tick helps move grace peri

[PATCH 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. T

[PATCH 04/12] rcutorture: Make torture.sh --do-rt use CONFIG_PREEMPT_RT

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The torture.sh --do-rt command-line parameter is intended to mimic -rt kernels. Now that CONFIG_PREEMPT_RT is upstream, this commit makes this mimicking more precise. Note that testing of RCU priority boosting is disabled in favor of forward-progress testing of RCU call

[PATCH 08/12] rcutorture: Complain if an ->up_read() is delayed more than 10 seconds

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The down/up SRCU reader testing uses an hrtimer handler to exit the SRCU read-side critical section. This might be delayed, and if delayed for too long, it can prevent the rcutorture run from completing. This commit therefore complains if the hrtimer handler is delayed

[PATCH 03/12] rcutorture: Split out beginning and end from rcu_torture_one_read()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The rcu_torture_one_read() function is designed for RCU readers that are confined to a task, such that a single thread of control extends from the beginning of a given RCU read-side critical section to its end. This does not suffice for things like srcu_down_read() and s

[PATCH 05/12] rcutorture: Add tests for SRCU up/down reader primitives

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit adds a new rcutorture.n_up_down kernel boot parameter that specifies the number of outstanding SRCU up/down readers, which begin in kthread context and end in an hrtimer handler. There is a new kthread ("rcu_torture_updown") that scans an per-reader array loo

[PATCH 06/12] rcutorture: Pull rcu_torture_updown() loop body into new function

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This is strictly a code-movement commit, pulling that part of the rcu_torture_updown() function's loop body that processes one rcu_torture_one_read_state_updown structure into a new rcu_torture_updown_one() function. The checks for the end of the torture test and the cur

[PATCH 01/12] rcutorture: Make srcu_lockdep.sh check kernel Kconfig

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The srcu_lockdep.sh currently blindly trusts the rcutorture SRCU-P scenario to build its kernel with lockdep enabled. Of course, this dependency might not be obvious to someone rebalancing SRCU scenarios. This commit therefore adds code to srcu_lockdep.sh that verifies t

[PATCH 02/12] rcutorture: Make srcu_lockdep.sh check reader-conflict handling

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Mixing different flavors of RCU readers is forbidden, for example, you should not use srcu_read_lock() and srcu_read_lock_nmisafe() on the same srcu_struct structure. There are checks for this, but these checks are not tested on a regular basis. This commit therefore ad

[PATCH 13/14] rcutorture: Perform more frequent testing of ->gpwrap

2025-04-18 Thread Joel Fernandes
Currently, the ->gpwrap is not tested (at all per my testing) due to the requirement of a large delta between a CPU's rdp->gp_seq and its node's rnp->gpseq. This results in no testing of ->gpwrap being set. This patch by default adds 5 minutes of testing with ->gpwrap forced by lowering the delta

[PATCH 14/14] rcutorture: Fix issue with re-using old images on ARM64

2025-04-18 Thread Joel Fernandes
On ARM64, when running with --configs '36*SRCU-P', I noticed that only 1 instance instead of 36 for starting. Fix it by checking for Image files, instead of bzImage which ARM does not seem to have. With this I see all 36 instances running at the same time in the batch. Tested-by: Paul E. McKenne

[PATCH 12/14] torture: Add testing of RCU's Rust bindings to torture.sh

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit adds a --do-rcu-rust parameter to torture.sh, which invokes a rust_doctests_kernel kunit run. Note that kunit wants a clean source tree, so this runs "make mrproper", which might come as a surprise to some users. Should there be a --mrproper parameter to tor

[PATCH 10/14] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. T

[PATCH 11/14] torture: Add --do-{,no-}normal to torture.sh

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Right now, torture.sh runs normal runs unconditionally, which can be slow and thus annoying when you only want to test --kcsan or --kasan runs. This commit therefore adds a --do-normal argument so that "--kcsan --do-no-kasan --do-no-normal" runs only KCSAN runs. Note tha

[PATCH 09/14] rcutorture: Check for ->up_read() without matching ->down_read()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit creates counters in the rcu_torture_one_read_state_updown structure that check for a call to ->up_read() that lacks a matching call to ->down_read(). While in the area, add end-of-run cleanup code that prevents calls to rcu_torture_updown_hrt() from happening

[PATCH 07/14] rcutorture: Comment invocations of tick_dep_set_task()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The rcu_torture_reader() and rcu_torture_fwd_prog_cr() functions run CPU-bound for extended periods of time (tens or even hundreds of milliseconds), so they invoke tick_dep_set_task() and tick_dep_clear_task() to ensure that the scheduling-clock tick helps move grace peri

[PATCH 08/14] rcutorture: Complain if an ->up_read() is delayed more than 10 seconds

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The down/up SRCU reader testing uses an hrtimer handler to exit the SRCU read-side critical section. This might be delayed, and if delayed for too long, it can prevent the rcutorture run from completing. This commit therefore complains if the hrtimer handler is delayed

[PATCH 05/14] rcutorture: Add tests for SRCU up/down reader primitives

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This commit adds a new rcutorture.n_up_down kernel boot parameter that specifies the number of outstanding SRCU up/down readers, which begin in kthread context and end in an hrtimer handler. There is a new kthread ("rcu_torture_updown") that scans an per-reader array loo

[PATCH 06/14] rcutorture: Pull rcu_torture_updown() loop body into new function

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" This is strictly a code-movement commit, pulling that part of the rcu_torture_updown() function's loop body that processes one rcu_torture_one_read_state_updown structure into a new rcu_torture_updown_one() function. The checks for the end of the torture test and the cur

[PATCH 03/14] rcutorture: Split out beginning and end from rcu_torture_one_read()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The rcu_torture_one_read() function is designed for RCU readers that are confined to a task, such that a single thread of control extends from the beginning of a given RCU read-side critical section to its end. This does not suffice for things like srcu_down_read() and s

[PATCH 04/14] rcutorture: Make torture.sh --do-rt use CONFIG_PREEMPT_RT

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The torture.sh --do-rt command-line parameter is intended to mimic -rt kernels. Now that CONFIG_PREEMPT_RT is upstream, this commit makes this mimicking more precise. Note that testing of RCU priority boosting is disabled in favor of forward-progress testing of RCU call

[PATCH 02/14] rcutorture: Make srcu_lockdep.sh check reader-conflict handling

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Mixing different flavors of RCU readers is forbidden, for example, you should not use srcu_read_lock() and srcu_read_lock_nmisafe() on the same srcu_struct structure. There are checks for this, but these checks are not tested on a regular basis. This commit therefore ad

[PATCH 01/14] rcutorture: Make srcu_lockdep.sh check kernel Kconfig

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" The srcu_lockdep.sh currently blindly trusts the rcutorture SRCU-P scenario to build its kernel with lockdep enabled. Of course, this dependency might not be obvious to someone rebalancing SRCU scenarios. This commit therefore adds code to srcu_lockdep.sh that verifies t

[PATCH 00/14] RCU torture changes for v6.16

2025-04-18 Thread Joel Fernandes
Hi, Please find the upcoming miscellaneous RCU changes. The changes can also be found at: git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git torture.2025.04.18a Thanks. Joel Fernandes (2): rcutorture: Perform more frequent testing of ->gpwrap rcutorture: Fix issue with r

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-18 Thread Sean Christopherson
On Tue, Apr 15, 2025, Elena Reshetova wrote: > +/* This lock is held to prevent new EPC pages from being created > + * during the execution of ENCLS[EUPDATESVN]. > + */ > +static DEFINE_SPINLOCK(sgx_epc_eupdatesvn_lock); > + > static atomic_long_t sgx_nr_used_pages = ATOMIC_LONG_INIT(0); > static

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-18 Thread Sean Christopherson
On Thu, Apr 17, 2025, Kai Huang wrote: > I think the sgx_updatesvn() should just return true when EUPDATESVN returns 0 > or > SGX_NO_UPDATE, and return false for all other error codes. And it should > ENCLS_WARN() for all other error codes, except SGX_INSUFFICIENT_ENTROPY > because > it can stil

[PATCH v2 4/5] ASoC: qcom: sm8250: Add Fairphone 5 soundcard compatible

2025-04-18 Thread Luca Weiss
Add a compatible for the QCM6490-based Fairphone 5 which can use this machine driver. As a note, QCM6490 RB3 board is using audioreach architecture while Fairphone 5 uses pre-audioreach. Signed-off-by: Luca Weiss --- sound/soc/qcom/sm8250.c | 1 + 1 file changed, 1 insertion(+) diff --git a/so

Re: [PATCH v2 0/3] Fairphone 5 DisplayPort over USB-C support

2025-04-18 Thread Luca Weiss
Hi Krzysztof, hi Dmitry, Any feedback on the below proposed patch? I can also send out a v3 with this patch included soon if that makes it easier to review. Regards Luca On Tue Apr 1, 2025 at 11:32 AM CEST, Luca Weiss wrote: > Hi Dmitry, > > On Wed Mar 12, 2025 at 8:06 PM CET, Dmitry Baryshkov

  1   2   >