Re: [PATCH net-next v3 7/7] virtio_net: ensure netdev_tx_reset_queue is called on bind xsk for tx

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > virtnet_sq_bind_xsk_pool() flushes tx skbs and then resets tx queue, so > DQL counters need to be reset when flushing has actually occurred, Add > virtnet_sq_free_unused_buf_done() as a callback for virtqueue_resize() > to handle this. > > Fix

Re: [PATCH net-next v3 6/7] virtio_ring: add a func argument 'recycle_done' to virtqueue_reset()

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > When virtqueue_reset() has actually recycled all unused buffers, > additional work may be required in some cases. Relying solely on its > return status is fragile, so introduce a new function argument > 'recycle_done', which is invoked when it

Re: [PATCH net-next v3 5/7] virtio_net: ensure netdev_tx_reset_queue is called on tx ring resize

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > virtnet_tx_resize() flushes remaining tx skbs, requiring DQL counters to > be reset when flushing has actually occurred. Add > virtnet_sq_free_unused_buf_done() as a callback for virtqueue_reset() to > handle this. > > Fixes: c8bd1f7f3e61 ("vi

Re: [PATCH net-next v3 4/7] virtio_ring: add a func argument 'recycle_done' to virtqueue_resize()

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > When virtqueue_resize() has actually recycled all unused buffers, > additional work may be required in some cases. Relying solely on its > return status is fragile, so introduce a new function argument > 'recycle_done', which is invoked when t

Re: [PATCH net-next v3 3/7] virtio_net: introduce virtnet_sq_free_unused_buf_done()

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > This will be used in the following commits, to ensure DQL reset occurs > iff. all unused buffers are actually recycled. > > Cc: # v6.11+ > Signed-off-by: Koichiro Den Acked-by: Jason Wang Thanks

Re: [PATCH net-next v3 2/7] virtio_net: replace vq2rxq with vq2txq where appropriate

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > While not harmful, using vq2rxq where it's always sq appears odd. > Replace it with the more appropriate vq2txq for clarity and correctness. > > Fixes: 89f86675cb03 ("virtio_net: xsk: tx: support xmit xsk buffer") > Signed-off-by: Koichiro Den

Re: [PATCH net-next v3 1/7] virtio_net: correct netdev_tx_reset_queue() invocation point

2024-12-04 Thread Jason Wang
On Wed, Dec 4, 2024 at 1:08 PM Koichiro Den wrote: > > When virtnet_close is followed by virtnet_open, some TX completions can > possibly remain unconsumed, until they are finally processed during the > first NAPI poll after the netdev_tx_reset_queue(), resulting in a crash > [1]. Commit b96ed2c97

[PATCH bpf-next v2 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
Currently, user needs to manually enable transmit hardware timestamp feature of certain Ethernet drivers, e.g. stmmac and igc drivers, through following command after running the xdp_hw_metadata app. sudo hwstamp_ctl -i eth0 -t 1 To simplify the step test of xdp_hw_metadata, set tx_type to HWTSTA

[PATCH bpf v2 1/1] selftests/bpf: Actuate tx_metadata_len in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata. Fixes: d5e726d9143c ("xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len") Cc: sta...@vger.kernel.org # v6.11 Signed-off-by: Song Yoong Siang Acked-by: Stanislav Fomichev --- v1: https://pat

Re: [PATCH v4] memfd: `MFD_NOEXEC_SEAL` should not imply `MFD_ALLOW_SEALING`

2024-12-04 Thread Hugh Dickins
Jann, I notice you active in the SEALing arena recently, and wonder whether you would would have time to consider Barnabás's patiently pinged and repinged points here. Instinct tells me that he knows what he's talking about: but the SEALing protocol was a little too subtle for me, even at the star

Re: [PATCH v6 01/18] tools: Add gendwarfksyms

2024-12-04 Thread Masahiro Yamada
On Wed, Nov 27, 2024 at 3:26 AM Luis Chamberlain wrote: > > On Tue, Nov 26, 2024 at 12:50:48PM +0900, Masahiro Yamada wrote: > > On Tue, Nov 26, 2024 at 8:30 AM Luis Chamberlain wrote: > > > > > > On Thu, Nov 21, 2024 at 08:42:22PM +, Sami Tolvanen wrote: > > > > Add a basic DWARF parser, whi

Re: [PATCH net-next v2] selftests/net: call sendmmsg via udpgso_bench.sh

2024-12-04 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 4 Dec 2024 07:28:44 +0900 you wrote: > Currently, sendmmsg is implemented in udpgso_bench_tx.c, > but it is not called by any test script. > > This patch adds a test for sendmmsg in udpgso_bench.sh. > This a

Re: [PATCH v6 01/18] tools: Add gendwarfksyms

2024-12-04 Thread Masahiro Yamada
On Wed, Dec 4, 2024 at 11:14 PM Daniel Gomez wrote: > > On 11/21/2024 9:42 PM, Sami Tolvanen wrote: > > Add a basic DWARF parser, which uses libdw to traverse the debugging > > information in an object file and looks for functions and variables. > > In follow-up patches, this will be expanded to p

[PATCH v2] riscv: selftests: Fix warnings pointer masking test

2024-12-04 Thread Charlie Jenkins
Link to v1: https://lore.kernel.org/r/20241204-fix_warnings_pointer_masking_tests-v1-1-ea1e9665c...@rivosinc.com --- tools/testing/selftests/riscv/abi/pointer_masking.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/riscv/abi/pointer_

[PATCH] riscv: selftests: Fix warnings pointer masking test

2024-12-04 Thread Charlie Jenkins
AL, +"sysctl disabled\n"); set_tagged_addr_ctrl(0, false); --- base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 change-id: 20241204-fix_warnings_pointer_masking_tests-3860e4f35429 -- - Charlie

RE: [PATCH bpf-next 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song, Yoong Siang
On Wednesday, December 4, 2024 11:49 PM, Stanislav Fomichev wrote: >On 12/04, Song Yoong Siang wrote: >> Set tx_type to HWTSTAMP_TX_ON to enable hardware timestamping for all >> outgoing packets. >> >> Besides, set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes >> of per-chunk met

Re: [PATCH] selftests/timens: Add fclose(proc) to prevent memory leaks

2024-12-04 Thread Shuah Khan
On 11/27/24 23:05, liujing wrote: If fopen succeeds, the fscanf function is called to read the data. Regardless of whether fscanf is successful, you need to run fclose(proc) to prevent memory leaks. Signed-off-by: liujing diff --git a/tools/testing/selftests/timens/procfs.c b/tools/testing/se

Re: [PATCH net-next v12 11/22] ovpn: implement TCP transport

2024-12-04 Thread Antonio Quartulli
On 04/12/2024 23:52, Antonio Quartulli wrote: Paolo, On 04/12/2024 12:15, Antonio Quartulli wrote: [...] +    mutex_lock(&tcp6_prot_mutex); +    if (!ovpn_tcp6_prot.recvmsg) +    ovpn_tcp_build_protos(&ovpn_tcp6_prot, &ovpn_tcp6_ops, +  sock->sk->sk_prot,

Re: [PATCH] selftests: prctl: Fix resource leaks

2024-12-04 Thread Shuah Khan
On 11/27/24 23:18, liujing wrote: After using the fopen function successfully, you need to call fclose to close the file before finally returning. Signed-off-by: liujing diff --git a/tools/testing/selftests/prctl/set-process-name.c b/tools/testing/selftests/prctl/set-process-name.c index 562f

Re: [PATCH net-next v12 11/22] ovpn: implement TCP transport

2024-12-04 Thread Antonio Quartulli
Paolo, On 04/12/2024 12:15, Antonio Quartulli wrote: [...] +    mutex_lock(&tcp6_prot_mutex); +    if (!ovpn_tcp6_prot.recvmsg) +    ovpn_tcp_build_protos(&ovpn_tcp6_prot, &ovpn_tcp6_ops, +  sock->sk->sk_prot, +  sock->sk->sk_socket

Re: [PATCH v2] selftests/vDSO: support DT_GNU_HASH

2024-12-04 Thread Shuah Khan
On 12/3/24 17:04, Shuah Khan wrote: On 11/27/24 04:44, Xi Ruoyao wrote: On Thu, 2024-09-19 at 09:37 -0600, Shuah Khan wrote: On 9/15/24 00:49, Fangrui Song wrote: glibc added support for DT_GNU_HASH in 2006 and DT_HASH has been obsoleted for more than one decade in many Linux distributions. M

Re: [PATCH net-next v12 11/22] ovpn: implement TCP transport

2024-12-04 Thread Antonio Quartulli
On 04/12/2024 12:15, Antonio Quartulli wrote: [...] +static void ovpn_tcp_close(struct sock *sk, long timeout) +{ +    struct ovpn_socket *sock; + +    rcu_read_lock(); +    sock = rcu_dereference_sk_user_data(sk); + +    strp_stop(&sock->peer->tcp.strp); +    barrier(); Again, is not clear to

Re: [PATCH v15 4/8] remoteproc: Rename load() operation to load_segments() in rproc_ops struct

2024-12-04 Thread Mathieu Poirier
On Thu, Nov 28, 2024 at 09:42:11AM +0100, Arnaud Pouliquen wrote: > With the introduction of the load_fw() operation in the rproc_ops > structure, we need to clarify the difference in the use of the load() > and load_fw() ops. > > The legacy load() is dedicated to loading the ELF segments into mem

Re: [PATCH v15 5/8] remoteproc: Make load_segments and load_fw ops exclusive and optional

2024-12-04 Thread Mathieu Poirier
On Thu, Nov 28, 2024 at 09:42:12AM +0100, Arnaud Pouliquen wrote: > The two methods to load the firmware to memory should be exclusive. > > - make load_segments optional returning 0 if not set in > rproc_load_segments(), > - ensure that load_segments() and load_fw() are not both set, > - do not

Re: [PATCH net-next v2] selftests: net: cleanup busy_poller.c

2024-12-04 Thread Stanislav Fomichev
On 12/04, Joe Damato wrote: > Fix various integer type conversions by using strtoull and a temporary > variable which is bounds checked before being casted into the > appropriate cfg_* variable for use by the test program. > > While here: > - free the strdup'd cfg string for overall hygenie. >

Re: [PATCH net-next v2] selftests/net: call sendmmsg via udpgso_bench.sh

2024-12-04 Thread Willem de Bruijn
Kenjiro Nakayama wrote: > Currently, sendmmsg is implemented in udpgso_bench_tx.c, > but it is not called by any test script. > > This patch adds a test for sendmmsg in udpgso_bench.sh. > This allows for basic API testing and benchmarking > comparisons with GSO. > > Signed-off-by: Kenjiro Nakayam

Re: [PATCH v15 3/8] remoteproc: Introduce load_fw and release_fw optional operation

2024-12-04 Thread Mathieu Poirier
On Thu, Nov 28, 2024 at 09:42:10AM +0100, Arnaud Pouliquen wrote: > This patch updates the rproc_ops structures to include two new optional > operations. > > - The load_fw() op is responsible for loading the remote processor > non-ELF firmware image before starting the boot sequence. This ops will

[PATCH AUTOSEL 6.12 11/15] remoteproc: qcom: pas: enable SAR2130P audio DSP support

2024-12-04 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit 009e288c989b3fe548a45c82da407d7bd00418a9 ] Enable support for the Audio DSP on the Qualcomm SAR2130P platform, reusing the SM8350 resources. Signed-off-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Link: https://lore.kernel.org/r/20241027-sar2130p-

[PATCH AUTOSEL 5.10 9/9] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

Re: [PATCH bpf-next] tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind

2024-12-04 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Mon, 2 Dec 2024 12:45:30 -0800 you wrote: > Commit f803bcf9208a ("selftests/bpf: Prevent client connect before > server bind in test_tc_tunnel.sh") added code that waits for the > netcat server to start before

[PATCH AUTOSEL 4.19 6/6] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH AUTOSEL 5.4 7/7] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH AUTOSEL 6.1 13/15] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH net-next v2] selftests: net: cleanup busy_poller.c

2024-12-04 Thread Joe Damato
Fix various integer type conversions by using strtoull and a temporary variable which is bounds checked before being casted into the appropriate cfg_* variable for use by the test program. While here: - free the strdup'd cfg string for overall hygenie. - initialize napi_id = 0 in setup_queue t

[PATCH AUTOSEL 5.15 9/9] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH net-next 2/4] netconsole: selftest: Split the helpers from the selftest

2024-12-04 Thread Breno Leitao
Split helper functions from the netconsole basic test into a separate library file to enable reuse across different netconsole tests. This change only moves the existing helper functions to lib/sh/lib_netcons.sh while preserving the same test functionality. The helpers provide common functions for

[PATCH AUTOSEL 6.6 22/24] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH AUTOSEL 6.11 29/33] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH AUTOSEL 6.12 31/36] nvdimm: rectify the illogical code within nd_dax_probe()

2024-12-04 Thread Sasha Levin
From: Yi Yang [ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's lo

[PATCH net-next 4/4] netconsole: selftest: verify userdata entry limit

2024-12-04 Thread Breno Leitao
Add a new selftest for netconsole that tests the userdata entry limit functionality. The test performs two key verifications: 1. Create MAX_USERDATA_ITEMS (16) userdata entries successfully 2. Confirm that attempting to create an additional userdata entry fails The selftest script uses the netcon

[PATCH net-next 3/4] netconsole: selftest: Delete all userdata keys

2024-12-04 Thread Breno Leitao
Modify the cleanup function to remove all userdata keys created during the test, instead of just deleting a single predefined key. This ensures a more thorough cleanup of temporary resources. Move the KEY_PATH variable definition inside the set_user_data function to reduce global variables and imp

[PATCH net-next 0/4] netconsole: selftest for userdata overflow

2024-12-04 Thread Breno Leitao
ase-commit: bb18265c3aba92b91a1355609769f3e967b65dee change-id: 20241204-netcons_overflow_test-eaf735d1f743 Best regards, -- Breno Leitao

[PATCH net-next 1/4] netconsole: Warn if MAX_USERDATA_ITEMS limit is exceeded

2024-12-04 Thread Breno Leitao
netconsole configfs helpers doesn't allow the creation of more than MAX_USERDATA_ITEMS items. Add a warning when netconsole userdata update function attempts sees more than MAX_USERDATA_ITEMS entries. Replace silent ignore mechanism with WARN_ON_ONCE() to highlight potential misuse during develop

Re: [PATCH bpf-next 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Stanislav Fomichev
On 12/04, Song Yoong Siang wrote: > Set tx_type to HWTSTAMP_TX_ON to enable hardware timestamping for all > outgoing packets. > > Besides, set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes > of per-chunk metadata. XDP_UMEM_TX_METADATA_LEN is missing after d5e726d9143c ("xsk: Requ

Re: [PATCH bpf-next] tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind

2024-12-04 Thread Stanislav Fomichev
On 12/03, Marco Leogrande wrote: > On Mon, Dec 2, 2024 at 4:15 PM Stanislav Fomichev > wrote: > > Do you see this failing in your CI or in the BPF CI? > > I see this failing in our internal CI, in around 1% to 2% of the CI runs. > > > It seems ok > > to add wait_for_port here, but the likelihoo

Re: [RFC PATCH 2/3] module: Don't fail module loading when setting ro_after_init section RO failed

2024-12-04 Thread Petr Pavlu
On 11/28/24 21:23, Daniel Gomez wrote: > On 11/12/2024 3:35 PM, Petr Pavlu wrote: >> On 11/12/24 10:43, Daniel Gomez wrote: >>> On Mon Nov 11, 2024 at 7:53 PM CET, Christophe Leroy wrote: Le 09/11/2024 à 23:17, Daniel Gomez a écrit : > On Sat Nov 9, 2024 at 11:35 AM CET, Christop

Re: [PATCH v6 01/18] tools: Add gendwarfksyms

2024-12-04 Thread Daniel Gomez
On 11/21/2024 9:42 PM, Sami Tolvanen wrote: Add a basic DWARF parser, which uses libdw to traverse the debugging information in an object file and looks for functions and variables. In follow-up patches, this will be expanded to produce symbol versions for CONFIG_MODVERSIONS from DWARF. Signed-o

Re: [PATCH net-next v12 13/22] ovpn: implement peer lookup logic

2024-12-04 Thread Antonio Quartulli
On 04/12/2024 09:28, Antonio Quartulli wrote: On 03/12/2024 17:09, Sabrina Dubroca wrote: 2024-12-03, 15:58:17 +0100, Antonio Quartulli wrote: On 02/12/2024 16:07, Antonio Quartulli wrote: [...] +#define ovpn_get_hash_slot(_key, _key_len, _tbl) ({    \ +    typeof(_tbl) *__tbl = &(_tbl);  

Re: [PATCH net-next v2] selftests/net: call sendmmsg via udpgso_bench.sh

2024-12-04 Thread Hangbin Liu
On Wed, Dec 04, 2024 at 07:28:44AM +0900, Kenjiro Nakayama wrote: > Currently, sendmmsg is implemented in udpgso_bench_tx.c, > but it is not called by any test script. > > This patch adds a test for sendmmsg in udpgso_bench.sh. > This allows for basic API testing and benchmarking > comparisons wit

[PATCH bpf-next 1/1] selftests/bpf: Enable Tx hwtstamp in xdp_hw_metadata

2024-12-04 Thread Song Yoong Siang
Set tx_type to HWTSTAMP_TX_ON to enable hardware timestamping for all outgoing packets. Besides, set XDP_UMEM_TX_METADATA_LEN flag to reserve tx_metadata_len bytes of per-chunk metadata. Signed-off-by: Song Yoong Siang --- tools/testing/selftests/bpf/xdp_hw_metadata.c | 3 ++- 1 file changed, 2

Re: [PATCH v6 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-12-04 Thread Maciej Wieczor-Retman
On 2024-12-03 at 15:26:41 -0800, Reinette Chatre wrote: >Hi Maciej, > >On 12/2/24 3:08 AM, Maciej Wieczor-Retman wrote: > >> diff --git a/tools/testing/selftests/resctrl/resctrlfs.c >> b/tools/testing/selftests/resctrl/resctrlfs.c >> index d38d6dd90be4..50561993d37c 100644 >> --- a/tools/testing/s

Re: [PATCH net-next v12 11/22] ovpn: implement TCP transport

2024-12-04 Thread Antonio Quartulli
On 03/12/2024 16:19, Paolo Abeni wrote: On 12/2/24 16:07, Antonio Quartulli wrote: +void ovpn_tcp_socket_detach(struct socket *sock) +{ + struct ovpn_socket *ovpn_sock; + struct ovpn_peer *peer; + + if (!sock) + return; + + rcu_read_lock(); + ovpn_sock

Re: [PATCH v6 2/2] selftests/resctrl: Discover SNC kernel support and adjust messages

2024-12-04 Thread Maciej Wieczor-Retman
On 2024-12-03 at 15:30:56 -0800, Reinette Chatre wrote: >Hi Maciej, > >On 12/2/24 3:08 AM, Maciej Wieczor-Retman wrote: > >> diff --git a/tools/testing/selftests/resctrl/resctrlfs.c >> b/tools/testing/selftests/resctrl/resctrlfs.c >> index 50561993d37c..d0a5c0f78397 100644 >> --- a/tools/testing/s

[PATCH 4/5] remoteproc: k3-r5: Use devm_ioremap_wc() helper

2024-12-04 Thread Beleswar Padhi
Use a device lifecycle managed ioremap helper function. This helps prevent mistakes like unmapping out of order in cleanup functions and forgetting to unmap on all error paths. Signed-off-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 40 +--- 1 file change

Re: [PATCH] selftests: arm coresight: sysfsmode testing

2024-12-04 Thread James Clark
On 04/12/2024 12:23 am, Shuah Khan wrote: On 11/29/24 01:38, Linu Cherian wrote: Add sysfs mode selftest for ARM Coresight hardware tracer. Please add details on what this test does in here. Include the output from the test? Does this test have dependencies on config? If it does, does this

Re: [PATCH] selftests: arm coresight: sysfsmode testing

2024-12-04 Thread James Clark
On 29/11/2024 8:38 am, Linu Cherian wrote: Add sysfs mode selftest for ARM Coresight hardware tracer. Signed-off-by: Linu Cherian --- .../drivers/hwtracing/coresight/Makefile | 5 + .../hwtracing/coresight/sysfs_test_trace.sh | 144 ++ 2 files changed, 149 insert

[PATCH 5/5] remoteproc: k3-r5: Use devm_rproc_add() helper

2024-12-04 Thread Beleswar Padhi
Use device lifecycle managed devm_rproc_add() helper function. This helps prevent mistakes like deleting out of order in cleanup functions and forgetting to delete on all error paths. Signed-off-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 4 +--- 1 file changed, 1 insertion

[PATCH 2/5] remoteproc: k3-r5: Use devm_kcalloc() helper

2024-12-04 Thread Beleswar Padhi
Use a device lifecycle managed action to free memory. This helps prevent mistakes like freeing out of order in cleanup functions and forgetting to free on error paths. Signed-off-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions

[PATCH 3/5] remoteproc: k3-r5: Add devm action to release tsp

2024-12-04 Thread Beleswar Padhi
Use a device lifecycle managed action to release tsp ti_sci_proc handle. This helps prevent mistakes like releasing out of order in cleanup functions and forgetting to release on error paths. Signed-off-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 17 +++-- 1 fil

[PATCH 1/5] remoteproc: k3-r5: Add devm action to release reserved memory

2024-12-04 Thread Beleswar Padhi
Use a device lifecycle managed action to release reserved memory. This helps prevent mistakes like releasing out of order in cleanup functions and forgetting to release on error paths. Signed-off-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 21 + 1 file c

[PATCH 0/5] Use Device Lifecycle managed functions in TI R5 Remoteproc

2024-12-04 Thread Beleswar Padhi
This series uses various devm_ helpers to simplify device removal path in ti_k3_r5_remoteproc driver. This is the first series in the TI K3 Remoteproc refactoring as long planned since [0]. Testing Done: 1. Tested boot of R5F remoteprocs in MCU and MAIN voltage domain in both IPC-Only mode and Ker

[syzbot] [wpan?] WARNING in cfg802154_switch_netns (3)

2024-12-04 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:2ba9f676d0a2 Merge tag 'drm-next-2024-11-29' of https://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13b7b9e858 kernel config: https://syzkaller.appspot.com/x/.config?x=7903df3280dd39ea das

Re: [PATCH net-next v12 17/22] ovpn: implement peer add/get/dump/delete via netlink

2024-12-04 Thread Antonio Quartulli
On 03/12/2024 18:46, Paolo Abeni wrote: On 12/2/24 16:07, Antonio Quartulli wrote: +/** + * ovpn_nl_peer_modify - modify the peer attributes according to the incoming msg + * @peer: the peer to modify + * @info: generic netlink info from the user request + * @attrs: the attributes from the user

Re: [PATCH net-next v12 13/22] ovpn: implement peer lookup logic

2024-12-04 Thread Antonio Quartulli
On 03/12/2024 17:09, Sabrina Dubroca wrote: 2024-12-03, 15:58:17 +0100, Antonio Quartulli wrote: On 02/12/2024 16:07, Antonio Quartulli wrote: [...] +#define ovpn_get_hash_slot(_key, _key_len, _tbl) ({\ + typeof(_tbl) *__tbl = &(_tbl); \ + jhash(_key, _key_l

[PATCH] selftests/powerpc: Fix typo in test-vphn.c

2024-12-04 Thread Zhu Jun
The word 'accross' is wrong, so fix it. Signed-off-by: Zhu Jun --- tools/testing/selftests/powerpc/vphn/test-vphn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/vphn/test-vphn.c b/tools/testing/selftests/powerpc/vphn/test-vphn.c index 81d30

[PATCH] selftests: net: Fix typo in psock_tpacket.c

2024-12-04 Thread Zhu Jun
The word 'accross' is wrong, so fix it. Signed-off-by: Zhu Jun --- tools/testing/selftests/net/psock_tpacket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/psock_tpacket.c b/tools/testing/selftests/net/psock_tpacket.c index 404a2ce75..221270cee

Re: [PATCH 2/2] sched: Move task_mm_cid_work to RCU callback

2024-12-04 Thread Gabriele Monaco
On Tue, 2024-12-03 at 10:00 -0500, Joel Fernandes wrote: > > Also there is no guarantee that RCU callback will run within a thread > context (example, some configurations run it in softirq). Further, > call_rcu() usage as shown in this patch can also delay callback runs > by seconds (with RCU_LA