Re: [PATCH v3 rcu 3/3] rcu: Finer-grained grace-period-end checks in rcu_dump_cpu_stacks()

2024-10-28 Thread 王正睿
On Mon, 2024-10-28 at 17:22 -0700, Paul E. McKenney wrote: > The result is that the current leaf rcu_node structure's ->lock is > acquired only if a stack backtrace might be needed from the current CPU, > and is held across only that CPU's backtrace. As a result, if there are After upgrading our d

Re: [RESEND PATCH] x86/sgx: Use vmalloc_array() instead of vmalloc()

2024-10-28 Thread Huang, Kai
On 27/10/2024 12:32 am, Thorsten Blum wrote: Use vmalloc_array() instead of vmalloc() to calculate the number of bytes to allocate. This says nothing about _why_. Is it because we want to take advantage of the multiplication overflow check inside the vmalloc_array()? I don't know whether

Re: [RESEND PATCH] x86/sgx: Use vmalloc_array() instead of vmalloc()

2024-10-28 Thread Thorsten Blum
On 28. Oct 2024, at 23:29, Huang, Kai wrote: > On 27/10/2024 12:32 am, Thorsten Blum wrote: >> Use vmalloc_array() instead of vmalloc() to calculate the number of >> bytes to allocate. > > This says nothing about _why_. Is it because we want to take advantage of > the multiplication overflow che

Re: [PATCH net 0/3] mptcp: sched: fix some lock issues

2024-10-28 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 21 Oct 2024 12:25:25 +0200 you wrote: > Two small fixes related to the MPTCP packets scheduler: > > - Patch 1: add missing rcu_read_(un)lock(). A fix for >= 6.6. > > - Patch 2: remove unneeded lock when listing

Re: [PATCH net-next v3] selftest/tcp-ao: Add filter tests

2024-10-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 21 Oct 2024 10:46:44 -0700 you wrote: > Add tests that check if getsockopt(TCP_AO_GET_KEYS) returns the right > keys when using different filters. > > Sample output: > > > # ok 114 filter keys: by sndid, rcv

[PATCH 1/6] selftests/damon/huge_count_read_write: provide sufficiently large buffer for DEPRECATED file read

2024-10-28 Thread SeongJae Park
From: Andrew Paniakin 'huge_count_read_write' crashes with segmentation fault when reading DEPRECATED file of DAMON debugfs interface. This is not causing any problem for users or other tests because the purpose of the test is just ensuring the read is not causing kernel warning messages. Nonet

[PATCH 2/6] selftests/damon/huge_count_read_write: remove unnecessary debugging message

2024-10-28 Thread SeongJae Park
The program prints expected errors from write/read of the files with invalid huge count, for only debugging purpose. It is only making the output noisy. Remove those. Fixes: b4a002889d24 ("selftests/damon: test debugfs file reads/writes with huge count") Signed-off-by: SeongJae Park --- tools

[PATCH 0/6] damon/{self,kunit}tests: minor fixups for DAMON debugfs interface tests

2024-10-28 Thread SeongJae Park
Fixup small broken window panes in DAMON selftests and kunit tests. First four patches clean up DAMON debugfs interface selftests output, by fixing segmentation fault of a test program (patch 1), removing unnecessary debugging messages (patch 2), and hiding error messages from expected failures (p

[PATCH 1/2] kunit: tool: Only print the summary

2024-10-28 Thread Rae Moar
From: David Gow Allow only printing the summary at the end of a test run, rather than all individual test results. This summary will list a few failing tests if there are any. To use: ./tools/testing/kunit/kunit.py run --summary Signed-off-by: Rae Moar Signed-off-by: David Gow --- tools/tes

[PATCH 2/2] kunit: tool: print failed tests only

2024-10-28 Thread Rae Moar
Add flag --failed to kunit.py to print only failed tests. This printing is done after running is over. This patch also adds the method print_test() that will also print your Test object. Before, all printing of tests occurred during parsing. This method could be useful in the future when convertin

Re: [PATCH net 2/3] mptcp: remove unneeded lock when listing scheds

2024-10-28 Thread Jakub Kicinski
On Wed, 23 Oct 2024 16:13:36 +0200 Matthieu Baerts wrote: > On 23/10/2024 14:21, Simon Horman wrote: > > On Mon, Oct 21, 2024 at 12:25:27PM +0200, Matthieu Baerts (NGI0) wrote: > >> mptcp_get_available_schedulers() needs to iterate over the schedulers' > >> list only to read the names: it doesn't

Re: [RESEND PATCH] x86/sgx: Use vmalloc_array() instead of vmalloc()

2024-10-28 Thread Huang, Kai
On 29/10/2024 11:47 am, Thorsten Blum wrote: On 28. Oct 2024, at 23:29, Huang, Kai wrote: On 27/10/2024 12:32 am, Thorsten Blum wrote: Use vmalloc_array() instead of vmalloc() to calculate the number of bytes to allocate. This says nothing about _why_. Is it because we want to take advant

[PATCH 6/6] mm/damon/tests/dbgfs-kunit: fix the header double inclusion guarding ifdef comment

2024-10-28 Thread SeongJae Park
Closing part of double inclusion guarding macro for dbgfs-kunit.h was copy-pasted from somewhere (maybe before the initial mainline merge of DAMON), and not properly updated. Fix it. Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests") Signed-off-by: SeongJae Park --- mm/damon/tests/dbgfs-kunit.h

[PATCH 3/6] selftests/damon/_debugfs_common: hide expected error message from test_write_result()

2024-10-28 Thread SeongJae Park
DAMON debugfs interface selftests use test_write_result() to check if valid or invalid writes to files of the interface success or fail as expected. File write error messages from expected failures are only making the output noisy. Hide such expected error messages. Fixes: b348eb7abd09 ("mm/damo

[PATCH 4/6] selftests/damon/debugfs_duplicate_context_creation: hide errors from expected file write failures

2024-10-28 Thread SeongJae Park
debugfs_duplicate_context_creation.sh does an invalid file write to ensure it fails. Check of the failure is sufficient, so the error message from the failure only makes the output unnecessarily noisy. Hide it. Fixes: ade38b8ca5ce ("selftest/damon: add a test for duplicate context dirs creation"

[PATCH 1/2] kselftest/arm64: Increase frequency of signal delivery in fp-stress

2024-10-28 Thread Mark Brown
Currently we only deliver signals to the processes being tested about once a second, meaning that the signal code paths are subject to relatively little stress. Increase this frequency substantially to 25ms intervals, along with some minor refactoring to make this more readily tuneable and maintain

[PATCH 2/2] kselftest/arm64: Lower poll interval while waiting for fp-stress children

2024-10-28 Thread Mark Brown
While fp-stress is waiting for children to start it doesn't send any signals to them so there is no need for it to have as short an epoll() timeout as it does when the children are all running. We do still want to have some timeout so that we can log diagnostics about missing children but this can

[PATCH 0/2] kselftest/arm64: fp-stress signal delivery interval improvements

2024-10-28 Thread Mark Brown
: 8e929cb546ee42c9a61d24fae60605e9e3192354 change-id: 20241028-arm64-fp-stress-interval-8f5e62c06e12 Best regards, -- Mark Brown

kselftest:arm64/FVP: arm64_check_buffer_fill - failed on Linux next-20241025

2024-10-28 Thread Naresh Kamboju
xpass:0 skip:0 error:0 not ok 22 selftests: arm64: check_child_memory # exit=1 boot Log links, - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241028/testrun/25586532/suite/kselftest-arm64/test/arm64_check_buffer_fill/log - https://qa-reports.linaro.org/lkft/linux

Re: [PATCH v3 3/6] iio: light: stk3310: Implement vdd and leda supplies

2024-10-28 Thread Dragan Simic
Hello Aren, On 2024-10-28 15:38, Andy Shevchenko wrote: On Mon, Oct 28, 2024 at 10:19:57AM -0400, Aren Moynihan wrote: The vdd and leda supplies must be powered on for the chip to function and can be powered off during system suspend. Co-developed-by: Ondrej Jirman Missing SoB. Please, read

Re: [PATCH v3 3/6] iio: light: stk3310: Implement vdd and leda supplies

2024-10-28 Thread Jonathan Cameron
On Mon, 28 Oct 2024 12:37:14 -0400 Aren Moynihan wrote: > On Mon, Oct 28, 2024 at 04:38:37PM +0200, Andy Shevchenko wrote: > > On Mon, Oct 28, 2024 at 10:19:57AM -0400, Aren Moynihan wrote: > > > The vdd and leda supplies must be powered on for the chip to function > > > and can be powered off

[PATCH] kselftest/arm64: Fix encoding for SVE B16B16 test

2024-10-28 Thread Mark Brown
The test for SVE_B16B16 had a cut'n'paste of a SME instruction, fix it with a relevant SVE instruction. Fixes: 44d10c27bd75 ("kselftest/arm64: Add 2023 DPISA hwcap test coverage") Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/abi/hwcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v3 2/9] KVM: selftests: Add a basic SNP smoke test

2024-10-28 Thread Pratik R. Sampat
Hi Sean, On 10/28/2024 12:55 PM, Sean Christopherson wrote: > On Mon, Oct 21, 2024, Pratik R. Sampat wrote: + test_sev(guest_sev_es_code, KVM_X86_SEV_ES_VM, SEV_POLICY_ES); test_sev_es_shutdown(); if (kvm_has_cap(KVM_CAP_XCRS) &&

Re: [PATCH v3 0/6] iio: light: stk3310: support powering off during suspend

2024-10-28 Thread Jonathan Cameron
On Mon, 28 Oct 2024 10:19:54 -0400 Aren Moynihan wrote: > In the Pine64 PinePhone, the stk3310 chip is powered by a regulator that is > disabled at system boot and can be shut off during suspend. To ensure that > the chip properly initializes, both after boot and suspend, we need to > manage this

Re: [PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false()

2024-10-28 Thread Stefan Schmidt
Hello. On 28.10.24 17:42, Thorsten Blum wrote: Hi Stefan, On 28. Oct 2024, at 16:57, Stefan Schmidt wrote: Hello Thorsten Blum. On Sun, 20 Oct 2024 13:23:13 +0200, Thorsten Blum wrote: Replace the custom BOOL_TO_STR() macro with the str_true_false() helper function and remove the macro.

Re: [PATCH v2] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run

2024-10-28 Thread Shuah Khan
On 10/28/24 06:11, Christian Brauner wrote: On Mon, Oct 28, 2024 at 04:41:32PM +0800, zhouyuhang wrote: From: zhouyuhang Test case idmap_mount_tree_invalid failed to run on the newer kernel with the following output: # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... # m

Re: [PATCH v3] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-28 Thread Shuah Khan
On 10/28/24 12:57, Shivam Chaudhary wrote: Add kselftest support for openat, linkat, unshare, mount tests You are combining a few too many changes in this patch. As such this patch doesn't add support for the above tests. Instead it changes the reporting to use ksft_* framework. - Replace di

Re: [PATCH] selftests/watchdog-test: Fix system accidentally reset after watchdog-test

2024-10-28 Thread Shuah Khan
On 10/28/24 21:13, Li Zhijian wrote: When running watchdog-test with 'make run_tests', the watchdog-test will be terminated by a timeout signal(SIGTERM) due to the test timemout. And then, a system reboot would happen due to watchdog not stop. see the dmesg as below: ``` [ 1367.185172] watchdog:

[PATCH rcu v4 14/15] refscale: Add srcu_read_lock_lite() support using "srcu-lite"

2024-10-28 Thread Paul E. McKenney
This commit creates a new srcu-lite option for the refscale.scale_type module parameter that selects srcu_read_lock_lite() and srcu_read_unlock_lite(). [ paulmck: Apply Dan Carpenter feedback. ] Signed-off-by: Paul E. McKenney Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Peter Zijlstra Cc:

Re: [PATCH net-next v10 23/23] testing/selftests: add test tool and scripts for ovpn module

2024-10-28 Thread Shuah Khan
On 10/28/24 04:13, Antonio Quartulli wrote: On 27/10/2024 01:40, Shuah Khan wrote: On 10/25/24 03:14, Antonio Quartulli wrote: The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. It implements the netlink API and can thus be integrated in any script for more auto

[PATCH v3 rcu 3/3] rcu: Finer-grained grace-period-end checks in rcu_dump_cpu_stacks()

2024-10-28 Thread Paul E. McKenney
This commit pushes the grace-period-end checks further down into rcu_dump_cpu_stacks(), and also uses lockless checks coupled with finer-grained locking. The result is that the current leaf rcu_node structure's ->lock is acquired only if a stack backtrace might be needed from the current CPU, and

[PATCH] selftests/watchdog-test: Fix system accidentally reset after watchdog-test

2024-10-28 Thread Li Zhijian
When running watchdog-test with 'make run_tests', the watchdog-test will be terminated by a timeout signal(SIGTERM) due to the test timemout. And then, a system reboot would happen due to watchdog not stop. see the dmesg as below: ``` [ 1367.185172] watchdog: watchdog0: watchdog did not stop! ```

[RESEND] [PATCH v6 0/2] Add test to distinguish between thread's signal mask and ucontext_t

2024-10-28 Thread Dev Jain
Pingplease pull this

Re: [PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-28 Thread Shuah Khan
On 10/28/24 00:44, Shuah Khan wrote: On 10/28/24 00:32, Zhijian Li (Fujitsu) wrote: On 28/10/2024 14:25, Shuah Khan wrote: On 10/28/24 00:06, Zhijian Li (Fujitsu) wrote: linux/tools/testing/selftests/watchdog# make run_tests TAP version 13 1..1 # timeout set to 45 # selftests: watchdog: watc

Re: [PATCH 0/2] selftests/intel_pstate: fix arithmetic expression and cpupower

2024-10-28 Thread Shuah Khan
On 10/28/24 13:08, Alessandro Zanni wrote: Address issues related to arithmetic expression compatibility and cpupower operand expected. Command to test: make kselftest TARGETS=intel_pstate Alessandro Zanni (2): selftests/intel_pstate: fix operand expected selftests/intel_pstate: c

Re: [PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-28 Thread Zhijian Li (Fujitsu)
On 29/10/2024 10:24, Shuah Khan wrote: > On 10/28/24 00:44, Shuah Khan wrote: >> On 10/28/24 00:32, Zhijian Li (Fujitsu) wrote: >>> >>> >>> On 28/10/2024 14:25, Shuah Khan wrote: On 10/28/24 00:06, Zhijian Li (Fujitsu) wrote: > linux/tools/testing/selftests/watchdog# make run_tests >

[PATCH v2] vdpa: solidrun: Fix UB bug with devres

2024-10-28 Thread Philipp Stanner
In psnet_open_pf_bar() and snet_open_vf_bar() a string later passed to pcim_iomap_regions() is placed on the stack. Neither pcim_iomap_regions() nor the functions it calls copy that string. Should the string later ever be used, this, consequently, causes undefined behavior since the stack frame wi

Re: [PATCH 2/3] remoteproc: qcom: pas: add minidump_id to SM8350 resources

2024-10-28 Thread neil . armstrong
On 27/10/2024 00:09, Dmitry Baryshkov wrote: Specify minidump_id for the SM8350 DSPs. It was omitted for in the original commit e8b4e9a21af7 ("remoteproc: qcom: pas: Add SM8350 PAS remoteprocs"). Fixes: e8b4e9a21af7 ("remoteproc: qcom: pas: Add SM8350 PAS remoteprocs") Signed-off-by: Dmitry Bary

Re: [PATCH 3/3] remoteproc: qcom: pas: enable SAR2130P audio DSP support

2024-10-28 Thread neil . armstrong
On 27/10/2024 00:09, Dmitry Baryshkov wrote: Enable support for the Audio DSP on the Qualcomm SAR2130P platform, reusing the SM8350 resources. Signed-off-by: Dmitry Baryshkov --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6

[PATCH v2] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run

2024-10-28 Thread zhouyuhang
From: zhouyuhang Test case idmap_mount_tree_invalid failed to run on the newer kernel with the following output: # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... # mount_setattr_test.c:1428:idmap_mount_tree_invalid:Expected sys_mount_setattr(open_tree_fd, "", AT_EMPTY_PATH

Re: [PATCH net-next v10 23/23] testing/selftests: add test tool and scripts for ovpn module

2024-10-28 Thread Antonio Quartulli
On 27/10/2024 01:40, Shuah Khan wrote: On 10/25/24 03:14, Antonio Quartulli wrote: The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. It implements the netlink API and can thus be integrated in any script for more automated testing. Along with the tool, 4 script

Re: [PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-28 Thread Shuah Khan
On 10/28/24 00:06, Zhijian Li (Fujitsu) wrote: linux/tools/testing/selftests/watchdog# make run_tests TAP version 13 1..1 # timeout set to 45 # selftests: watchdog: watchdog-test # Watchdog Ticking Away! # .# not ok 1 selftests: watchdog: watchdog-test

Re: [PATCH net-next v10 01/23] netlink: add NLA_POLICY_MAX_LEN macro

2024-10-28 Thread Donald Hunter
Antonio Quartulli writes: > Similarly to NLA_POLICY_MIN_LEN, NLA_POLICY_MAX_LEN defines a policy > with a maximum length value. > > The netlink generator for YAML specs has been extended accordingly. > > Cc: donald.hun...@gmail.com > Signed-off-by: Antonio Quartulli Reviewed-by: Donald Hunter

Re: [PATCH net-next v7] ptp: Add support for the AMZNC10C 'vmclock' device

2024-10-28 Thread Jakub Kicinski
On Sat, 19 Oct 2024 18:49:24 +0100 David Woodhouse wrote: > > Yes please and thank you! We gotta straighten it out before > > the merge window. > > Hm, as I (finally) come to do that, I realise that many of the others > defined in drivers/ptp/Kconfig are also 'default y'. Which is only > really

Re: [PATCH 11/20] sched: Handle CPU isolation on last resort fallback rq selection

2024-10-28 Thread Will Deacon
Hi Frederic, Thanks for having a crack at this, but I'm pretty confused now so please prepare for a bunch of silly questions! On Tue, Oct 15, 2024 at 03:48:55PM +0200, Frederic Weisbecker wrote: > Le Tue, Oct 08, 2024 at 11:54:35AM +0100, Will Deacon a écrit : > > On Fri, Sep 27, 2024 at 12:48:59

[PATCH 2/2] sched,arm64: Handle CPU isolation on last resort fallback rq selection

2024-10-28 Thread Frederic Weisbecker
When a kthread or any other task has an affinity mask that is fully offline or unallowed, the scheduler reaffines the task to all possible CPUs as a last resort. This default decision doesn't mix up very well with nohz_full CPUs that are part of the possible cpumask but don't want to be disturbed

Re: [PATCH v3 2/9] KVM: selftests: Add a basic SNP smoke test

2024-10-28 Thread Sean Christopherson
On Mon, Oct 21, 2024, Pratik R. Sampat wrote: > >> + test_sev(guest_sev_es_code, KVM_X86_SEV_ES_VM, SEV_POLICY_ES); > >> > >>test_sev_es_shutdown(); > >> > >>if (kvm_has_cap(KVM_CAP_XCRS) && > >>(xgetbv(0) & XFEATURE_MASK_X87_AVX) == > >> XFEATU

[PATCH v3] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-28 Thread Shivam Chaudhary
Add kselftest support for openat, linkat, unshare, mount tests - Replace direct error handling with 'ksft_test_result_*' , 'ksft_print_msg' macros for better reporting. - Add `ksft_print_header()` and `ksft_set_plan()` to structure test outputs more effectively. - Improve the test flow by add

Re: [PATCH v2] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run

2024-10-28 Thread Christian Brauner
On Mon, Oct 28, 2024 at 04:41:32PM +0800, zhouyuhang wrote: > From: zhouyuhang > > Test case idmap_mount_tree_invalid failed to run on the newer kernel > with the following output: > > # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... > # mount_setattr_test.c:1428:idmap_moun

Re: [PATCH v6 1/5] export_report: Rehabilitate script

2024-10-28 Thread Masahiro Yamada
On Wed, Oct 16, 2024 at 1:19 AM Matthew Maurer wrote: > > The `export_report.pl` script was broken [1] a while back due to a code > cleanup causing the regex to no longer match. Instead of the link to lore, you can refer to commit a3d0cb04f7df ("modpost: use __section in the output to *.mod.c")

Re: [PATCH v2 1/3] hrtimer: Use __raise_softirq_irqoff() to raise the softirq.

2024-10-28 Thread Frederic Weisbecker
Le Thu, Oct 24, 2024 at 04:55:49PM +0200, Sebastian Andrzej Siewior a écrit : > As an optimisation use __raise_softirq_irqoff() to raise the softirq. > This is always called from an interrupt handler so it can be reduced to > just or set softirq flag and let softirq be invoked on return from > inte

Re: [PATCH v2 2/3] timers: Use __raise_softirq_irqoff() to raise the softirq.

2024-10-28 Thread Frederic Weisbecker
Le Thu, Oct 24, 2024 at 04:55:50PM +0200, Sebastian Andrzej Siewior a écrit : > As an optimisation use __raise_softirq_irqoff() to raise the softirq. > This is always called from an interrupt handler, interrupts are already > disabled so it can be reduced to just or set softirq flag and let > softi

Re: [PATCH v6 2/5] pidfd: add PIDFD_SELF_* sentinels to refer to own thread/process

2024-10-28 Thread Christian Brauner
On Sat, Oct 26, 2024 at 08:24:58AM +0100, Lorenzo Stoakes wrote: > It is useful to be able to utilise the pidfd mechanism to reference the > current thread or process (from a userland point of view - thread group > leader from the kernel's point of view). > > Therefore introduce PIDFD_SELF_THREAD

[PATCH net-next 1/2] net: netconsole: selftests: Change the IP subnet

2024-10-28 Thread Breno Leitao
Use a less populated IP range to run the tests, as suggested by Petr in Link: https://lore.kernel.org/netdev/87ikvukv3s@nvidia.com/. Suggested-by: Petr Machata Signed-off-by: Breno Leitao --- tools/testing/selftests/drivers/net/netcons_basic.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 d

[PATCH net-next 2/2] net: netconsole: selftests: Add userdata validation

2024-10-28 Thread Breno Leitao
Extend netcons_basic selftest to verify the userdata functionality by: 1. Creating a test key in the userdata configfs directory 2. Writing a known value to the key 3. Validating the key-value pair appears in the captured network output This ensures the userdata feature is properly tested durin

Re: [PATCH RFC v2 4/5] selftest: gpio: Add wait flag to gpio-mockup-cdev

2024-10-28 Thread Linus Walleij
On Fri, Oct 25, 2024 at 9:46 PM Nícolas F. R. A. Prado wrote: > Add a -w flag to the gpio-mockup-cdev utility that causes the program to > wait until a signal is received before exiting, even when its behavior > is to retrieve the GPIO value of the line. This allows using this > utility to keep

Re: [PATCH 0/6] kselftest/arm64: Test floating point signal context restore in fp-stress

2024-10-28 Thread Mark Brown
On Mon, Oct 28, 2024 at 02:26:44PM +, Mark Rutland wrote: > 1) We only singal the tasks once a second. Dave's original shell test >script hammered this constantly, and it makes a substantial impact >actually triggering a bug. >Without these patches, I hacked the fp-stress.c main l

Re: [PATCH v3] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter

2024-10-28 Thread Stefano Garzarella
On Fri, Oct 25, 2024 at 10:41:24AM -0500, Konstantin Shkolnyy wrote: This happens on 64-bit big-endian machines. SO_RCVLOWAT requires an int parameter. However, instead of int, the test uses unsigned long in one place and size_t in another. Both are 8 bytes long on 64-bit machines. The kernel, ha

[PATCH v3 4/6] iio: light: stk3310: use dev_err_probe where possible

2024-10-28 Thread Aren Moynihan
Using dev_err_probe instead of dev_err and return makes the errors easier to understand by including the error name, and saves a little code. Signed-off-by: Aren Moynihan --- Notes: Added in v2 drivers/iio/light/stk3310.c | 47 - 1 file changed, 20 inser

Re: [PATCH 0/6] kselftest/arm64: Test floating point signal context restore in fp-stress

2024-10-28 Thread Mark Rutland
On Wed, Oct 23, 2024 at 09:38:28PM +0100, Mark Brown wrote: > Currently we test signal delivery to the programs run by fp-stress but > our signal handlers simply count the number of signals seen and don't do > anything with the floating point state. The original fpsimd-test and > sve-test programs

Re: [PATCH v3 3/6] iio: light: stk3310: Implement vdd and leda supplies

2024-10-28 Thread Aren Moynihan
On Mon, Oct 28, 2024 at 04:38:37PM +0200, Andy Shevchenko wrote: > On Mon, Oct 28, 2024 at 10:19:57AM -0400, Aren Moynihan wrote: > > The vdd and leda supplies must be powered on for the chip to function > > and can be powered off during system suspend. > > > > Co-developed-by: Ondrej Jirman > >

Re: [PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false()

2024-10-28 Thread Thorsten Blum
Hi Stefan, > On 28. Oct 2024, at 16:57, Stefan Schmidt wrote: > > Hello Thorsten Blum. > > On Sun, 20 Oct 2024 13:23:13 +0200, Thorsten Blum wrote: >> Replace the custom BOOL_TO_STR() macro with the str_true_false() helper >> function and remove the macro. >> >> > > Applied to wpan/wpan-next.

Re: [PATCH net-next v7] ptp: Add support for the AMZNC10C 'vmclock' device

2024-10-28 Thread David Woodhouse
On 28 October 2024 17:12:56 CET, Jakub Kicinski wrote: >On Sat, 19 Oct 2024 18:49:24 +0100 David Woodhouse wrote: >> > Yes please and thank you! We gotta straighten it out before >> > the merge window. >> >> Hm, as I (finally) come to do that, I realise that many of the others >> defined in dr

Re: [PATCH 11/20] sched: Handle CPU isolation on last resort fallback rq selection

2024-10-28 Thread Frederic Weisbecker
Le Mon, Oct 28, 2024 at 04:25:15PM +, Will Deacon a écrit : > > If nohz_full= isn't used then > > it's cpu_possible_mask). If there is a housekeeping CPU supporting el0 > > 32bits > > then it will be disallowed to be ever offlined. But if the first mismatching > > CPU supporting el0 that pops

[PATCH 1/2] arm64: Keep first mismatched 32bits el0 capable CPU online through its callbacks

2024-10-28 Thread Frederic Weisbecker
The first mismatched 32bits el0 capable CPU is designated as the last resort CPU for compat 32 bits tasks. As such this CPU is forbidden to go offline. However this restriction is applied to the device object of the CPU, which is not easy to revert later if needed because other components may have

Re: [PATCH rcu] configs/debug: make sure PROVE_RCU_LIST=y takes effect

2024-10-28 Thread Jakub Kicinski
On Wed, 16 Oct 2024 17:18:47 +0200 Matthieu Baerts wrote: > https://patchwork.kernel.org/project/netdevbpf/patch/20241016011144.3058445-1-k...@kernel.org/ > > If the impact is important, it might be better to target linux-next > first, no? Thanks for testing! I didn't anticipate it to be so effec

Re: [PATCH net-next 1/2] net: netconsole: selftests: Change the IP subnet

2024-10-28 Thread Matthieu Baerts
Hi Breno, On 28/10/2024 16:48, Breno Leitao wrote: > Use a less populated IP range to run the tests, as suggested by Petr in > Link: https://lore.kernel.org/netdev/87ikvukv3s@nvidia.com/. It looks like this is the same version as the one you sent on Friday, without the modification suggested

Re: [PATCH rcu] configs/debug: make sure PROVE_RCU_LIST=y takes effect

2024-10-28 Thread Matthieu Baerts
Hi Jakub, On 28/10/2024 18:22, Jakub Kicinski wrote: > On Wed, 16 Oct 2024 17:18:47 +0200 Matthieu Baerts wrote: >> https://patchwork.kernel.org/project/netdevbpf/patch/20241016011144.3058445-1-k...@kernel.org/ >> >> If the impact is important, it might be better to target linux-next >> first, no?

Re: [PATCH] kunit: Introduce autorun option

2024-10-28 Thread Stanislav Kinsburskii
On Tue, Oct 22, 2024 at 05:16:31PM -0400, Rae Moar wrote: > > diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c > > index 34b7b6833df3..340723571b0f 100644 > > --- a/lib/kunit/executor.c > > +++ b/lib/kunit/executor.c > > @@ -29,6 +29,22 @@ const char *kunit_action(void) > > return a

[PATCH 2/2] selftests/intel_pstate: cpupower command not found

2024-10-28 Thread Alessandro Zanni
Running "make kselftest TARGETS=intel_pstate" results in the following errors: - ./run.sh: line 89: cpupower: command not found - ./run.sh: line 91: cpupower: command not found if the cpupower is not installed. Since the test depends on cpupower, this patch stops the test if the cpupower is not in

[PATCH 0/2] selftests/intel_pstate: fix arithmetic expression and cpupower

2024-10-28 Thread Alessandro Zanni
Address issues related to arithmetic expression compatibility and cpupower operand expected. Command to test: make kselftest TARGETS=intel_pstate Alessandro Zanni (2): selftests/intel_pstate: fix operand expected selftests/intel_pstate: cpupower command not found tools/testing/selft

[PATCH 1/2] selftests/intel_pstate: fix operand expected

2024-10-28 Thread Alessandro Zanni
Running "make kselftest TARGETS=intel_pstate" results in the following errors: - ./run.sh: line 90: / 1000: syntax error: operand expected (error token is "/ 1000") - ./run.sh: line 92: / 1000: syntax error: operand expected (error token is "/ 1000") This fix allows to have cross-platform compatib

Re: [PATCH v1 04/10] iommufd/viommu: Allow drivers to control vdev_id lifecycle

2024-10-28 Thread Jason Gunthorpe
On Wed, Oct 23, 2024 at 11:54:54AM -0700, Nicolin Chen wrote: > > The iopf detatch function will act as a barrirer to ensure that all > > the async work has completed, sort of like how RCU works. > > The xa_lock(&group->pasid_array) is released once the handle is > returned to the iommu_attach_han

[PATCH RFC 08/10] mm: page_frag: add testing for the newly added API

2024-10-28 Thread Yunsheng Lin
Add testing for the newly added prepare API, for both aligned and non-aligned API, also probe API is also tested along with prepare API. CC: Alexander Duyck CC: Andrew Morton CC: Linux-MM Signed-off-by: Yunsheng Lin --- .../selftests/mm/page_frag/page_frag_test.c | 76 +-- t

Re: [PATCH RFC v2 0/5] Verify bias functionality for pinctrl_paris driver through new gpio test

2024-10-28 Thread Nícolas F . R . A . Prado
On Fri, Oct 25, 2024 at 03:45:35PM -0400, Nícolas F. R. A. Prado wrote: > This series was motivated by the regression fixed by 166bf8af9122 > ("pinctrl: mediatek: common-v2: Fix broken bias-disable for > PULL_PU_PD_RSEL_TYPE"). A bug was introduced in the pinctrl_paris driver > which prevented cert

Re: [PATCH v5 00/13] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-28 Thread Jason Gunthorpe
> > to > > a Context Table. This virt_id helps IOMMU drivers to link the vID to a pID > > of the device against the physical IOMMU instance. This is essential for a > > vIOMMU-based invalidation, where the request contains a device's vID for a > > device cache flush, e.g. ATC invalidation. > > pro

Re: [PATCH v2 3/3] softirq: Use a dedicated thread for timer wakeups on PREEMPT_RT.

2024-10-28 Thread Frederic Weisbecker
Le Thu, Oct 24, 2024 at 04:55:51PM +0200, Sebastian Andrzej Siewior a écrit : > A timer/ hrtimer softirq is raised in-IRQ context. With threaded > interrupts enabled or on PREEMPT_RT this leads to waking the ksoftirqd > for the processing of the softirq. ksoftirqd runs as SCHED_OTHER which > means

[PATCH v3 1/6] dt-bindings: iio: light: stk33xx: add vdd and leda regulators

2024-10-28 Thread Aren Moynihan
stk3310 and stk3311 are typically connected to power supplies for the chip (vdd) and the infrared LED (leda). Add properties so we can power these up / down appropriately. Signed-off-by: Aren Moynihan Reviewed-by: Krzysztof Kozlowski --- Notes: Changes in v2: - add leda-supply - a

[PATCH v3 3/6] iio: light: stk3310: Implement vdd and leda supplies

2024-10-28 Thread Aren Moynihan
The vdd and leda supplies must be powered on for the chip to function and can be powered off during system suspend. Co-developed-by: Ondrej Jirman Signed-off-by: Aren Moynihan --- Notes: I'm not sure what the proper way to handle attribution for this patch is. It was origionally based o

Re: [PATCH v3 4/6] iio: light: stk3310: use dev_err_probe where possible

2024-10-28 Thread Andy Shevchenko
On Mon, Oct 28, 2024 at 10:19:58AM -0400, Aren Moynihan wrote: > Using dev_err_probe instead of dev_err and return makes the errors > easier to understand by including the error name, and saves a little > code. ... > data->reg_##name = \ >

Re: [PATCH v3 5/6] iio: light: stk3310: log error if reading the chip id fails

2024-10-28 Thread Andy Shevchenko
On Mon, Oct 28, 2024 at 10:19:59AM -0400, Aren Moynihan wrote: > If the chip isn't powered, this call is likely to return an error. > Without a log here the driver will silently fail to probe. Common errors > are ENXIO (when the chip isn't powered) and ETIMEDOUT (when the i2c bus > isn't powered).

Re: [PATCH v3 3/6] iio: light: stk3310: Implement vdd and leda supplies

2024-10-28 Thread Andy Shevchenko
On Mon, Oct 28, 2024 at 10:19:57AM -0400, Aren Moynihan wrote: > The vdd and leda supplies must be powered on for the chip to function > and can be powered off during system suspend. > > Co-developed-by: Ondrej Jirman Missing SoB. Please, read Submitting Patches documentation for understanding w

Re: [PATCH v5 06/13] iommufd: Allow pt_id to carry viommu_id for IOMMU_HWPT_ALLOC

2024-10-28 Thread Zhangfei Gao
On Mon, 28 Oct 2024 at 11:24, Zhangfei Gao wrote: > By the way, has qemu changed compared with v3? > I still got a hardware error in this version, in check Found iommufd_viommu_p2-v5 misses some patches, Simply tested ok with iommufd_viommu_p2-v5-with-rmr, (with some hacks) Thanks

Re: [PATCH v5 06/13] iommufd: Allow pt_id to carry viommu_id for IOMMU_HWPT_ALLOC

2024-10-28 Thread Jason Gunthorpe
On Mon, Oct 28, 2024 at 11:24:10AM +0800, Zhangfei Gao wrote: > > +/** > > + * iommufd_viommu_alloc_hwpt_nested() - Get a hwpt_nested for a vIOMMU > > + * @viommu: vIOMMU ojbect to associate the hwpt_nested/domain with > > + * @user_data: user_data pointer. Must be valid > > + * > > + * Allocate a

[RFC] remoteproc: Clean rproc-driver-data for each instance

2024-10-28 Thread Wasim Nazir
Currently, all Qualcomm remoteproc client drivers have data structures with many common fields. Clean these data structures to categorize the common fields and create macros to fill rproc-driver-data instances. This will help reduce duplicates and make it easier for developers to fill data using th

Re: [RFC] remoteproc: Clean rproc-driver-data for each instance

2024-10-28 Thread Dmitry Baryshkov
On Mon, Oct 28, 2024 at 07:02:16PM +0530, Wasim Nazir wrote: > Currently, all Qualcomm remoteproc client drivers have data structures > with many common fields. Clean these data structures to categorize the > common fields and create macros to fill rproc-driver-data instances. > This will help redu

Re: [PATCH v5 06/13] iommufd: Allow pt_id to carry viommu_id for IOMMU_HWPT_ALLOC

2024-10-28 Thread Nicolin Chen
On Mon, Oct 28, 2024 at 10:03:09AM -0300, Jason Gunthorpe wrote: > On Mon, Oct 28, 2024 at 11:24:10AM +0800, Zhangfei Gao wrote: > > > > +/** > > > + * iommufd_viommu_alloc_hwpt_nested() - Get a hwpt_nested for a vIOMMU > > > + * @viommu: vIOMMU ojbect to associate the hwpt_nested/domain with > >

Re: [PATCH RFC v2 5/5] selftest: gpio: Add a new set-get config test

2024-10-28 Thread Linus Walleij
On Fri, Oct 25, 2024 at 9:46 PM Nícolas F. R. A. Prado wrote: > Add a new kselftest that sets a configuration to a GPIO line and then > gets it back to verify that it was correctly carried out by the driver. > > Setting a configuration is done through the GPIO uAPI, but retrieving it > is done th

[PATCH v3 6/6] arm64: dts: allwinner: pinephone: Add power supplies to stk3311

2024-10-28 Thread Aren Moynihan
From: Ondrej Jirman This allows the driver to properly handle powering this device, and disable power during suspend. Signed-off-by: Ondrej Jirman Signed-off-by: Aren Moynihan --- Notes: Changes in v2: - add leda-supply arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 ++

Re: [PATCH v5 06/13] iommufd: Allow pt_id to carry viommu_id for IOMMU_HWPT_ALLOC

2024-10-28 Thread Nicolin Chen
On Mon, Oct 28, 2024 at 10:53:38PM +0800, Zhangfei Gao wrote: > On Mon, 28 Oct 2024 at 11:24, Zhangfei Gao wrote: > > > By the way, has qemu changed compared with v3? > > I still got a hardware error in this version, in check > > Found iommufd_viommu_p2-v5 misses some patches, > Simply tested ok

[PATCH v3 0/6] iio: light: stk3310: support powering off during suspend

2024-10-28 Thread Aren Moynihan
In the Pine64 PinePhone, the stk3310 chip is powered by a regulator that is disabled at system boot and can be shut off during suspend. To ensure that the chip properly initializes, both after boot and suspend, we need to manage this regulator. Additionally if the chip is shut off in suspend, we n

[PATCH net-next v23 1/7] mm: page_frag: add a test module for page_frag

2024-10-28 Thread Yunsheng Lin
The testing is done by ensuring that the fragment allocated from a frag_frag_cache instance is pushed into a ptr_ring instance in a kthread binded to a specified cpu, and a kthread binded to a specified cpu will pop the fragment from the ptr_ring and free the fragment. CC: Andrew Morton CC: Alexa

[PATCH net-next v23 2/7] mm: move the page fragment allocator from page_alloc into its own file

2024-10-28 Thread Yunsheng Lin
Inspired by [1], move the page fragment allocator from page_alloc into its own c file and header file, as we are about to make more change for it to replace another page_frag implementation in sock.c As this patchset is going to replace 'struct page_frag' with 'struct page_frag_cache' in sched.h,

[PATCH net-next v23 4/7] mm: page_frag: avoid caller accessing 'page_frag_cache' directly

2024-10-28 Thread Yunsheng Lin
Use appropriate frag_page API instead of caller accessing 'page_frag_cache' directly. CC: Alexander Duyck CC: Andrew Morton CC: Linux-MM Signed-off-by: Yunsheng Lin Reviewed-by: Alexander Duyck Acked-by: Chuck Lever --- drivers/vhost/net.c | 2 +- include/

[PATCH v3 5/6] iio: light: stk3310: log error if reading the chip id fails

2024-10-28 Thread Aren Moynihan
If the chip isn't powered, this call is likely to return an error. Without a log here the driver will silently fail to probe. Common errors are ENXIO (when the chip isn't powered) and ETIMEDOUT (when the i2c bus isn't powered). Signed-off-by: Aren Moynihan --- Notes: Changes in v2: - us

[PATCH v3 2/6] iio: light: stk3310: handle all remove logic with devm callbacks

2024-10-28 Thread Aren Moynihan
Using devm callbacks helps to make the ordering of probe / remove operations easier to reason about and removes some duplicate code between the probe error path and driver remove. --- Notes: Added in v3 drivers/iio/light/stk3310.c | 35 +++ 1 file changed, 19

Re: [PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false()

2024-10-28 Thread Stefan Schmidt
Hello Thorsten Blum. On Sun, 20 Oct 2024 13:23:13 +0200, Thorsten Blum wrote: > Replace the custom BOOL_TO_STR() macro with the str_true_false() helper > function and remove the macro. > > Applied to wpan/wpan-next.git, thanks! [1/1] ieee802154: Replace BOOL_TO_STR() with str_true_false()

Re: [PATCH v6 2/5] pidfd: add PIDFD_SELF_* sentinels to refer to own thread/process

2024-10-28 Thread Lorenzo Stoakes
On Mon, Oct 28, 2024 at 04:34:33PM +0100, Christian Brauner wrote: > On Sat, Oct 26, 2024 at 08:24:58AM +0100, Lorenzo Stoakes wrote: > > It is useful to be able to utilise the pidfd mechanism to reference the > > current thread or process (from a userland point of view - thread group > > leader fr

Re: [PATCH v3 5/6] iio: light: stk3310: log error if reading the chip id fails

2024-10-28 Thread Andy Shevchenko
On Mon, Oct 28, 2024 at 11:29:35AM -0400, Aren wrote: > On Mon, Oct 28, 2024 at 04:45:35PM +0200, Andy Shevchenko wrote: > > On Mon, Oct 28, 2024 at 10:19:59AM -0400, Aren Moynihan wrote: > > > If the chip isn't powered, this call is likely to return an error. > > > Without a log here the driver wi

Re: [PATCH v3 5/6] iio: light: stk3310: log error if reading the chip id fails

2024-10-28 Thread Aren
On Mon, Oct 28, 2024 at 04:45:35PM +0200, Andy Shevchenko wrote: > On Mon, Oct 28, 2024 at 10:19:59AM -0400, Aren Moynihan wrote: > > If the chip isn't powered, this call is likely to return an error. > > Without a log here the driver will silently fail to probe. Common errors > > are ENXIO (when t

  1   2   >