Re: [PATCH 2/3] vsock/virtio: Add SIOCINQ support for all virtio based transports

2025-05-20 Thread Stefano Garzarella
On Mon, May 19, 2025 at 03:06:48PM +0800, Xuewei Niu wrote: The virtio_vsock_sock has a new field called bytes_unread as the return value of the SIOCINQ ioctl. Though the rx_bytes exists, we introduce a bytes_unread field to the virtio_vsock_sock struct. The reason is that it will not be updated

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-20 Thread Stefano Garzarella
On Mon, May 12, 2025 at 02:23:12PM +0200, Michal Luczaj wrote: On 5/7/25 10:26, Stefano Garzarella wrote: On Wed, 7 May 2025 at 00:47, Michal Luczaj wrote: On 5/6/25 11:46, Stefano Garzarella wrote: On Tue, 6 May 2025 at 11:43, Stefano Garzarella wrote: On Thu, May 01, 2025 at 10:05:24AM

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-20 Thread Stefano Garzarella
On Tue, 20 May 2025 at 10:54, Stefano Garzarella wrote: > > On Mon, May 12, 2025 at 02:23:12PM +0200, Michal Luczaj wrote: > >On 5/7/25 10:26, Stefano Garzarella wrote: > >> On Wed, 7 May 2025 at 00:47, Michal Luczaj wrote: > >>> > >>> On 5/6/25 11:46, Stefano Garzarella wrote: > On Tue, 6 M

Re: [PATCH v12 04/36] remoteproc: k3-m4: Don't assert reset in detach routine

2025-05-20 Thread Martyn Welch
On 17/05/2025 14:23, Beleswar Prasad Padhi wrote: On 5/16/2025 9:15 PM, Mathieu Poirier wrote: On Tue, May 13, 2025 at 11:14:38AM +0530, Beleswar Padhi wrote: The rproc_detach() function invokes __rproc_detach() before rproc_unprepare_device(). The __rproc_detach() function sets the rproc->

Re: [PATCH v5 5/5] x86/sgx: Enable automatic SVN updates for SGX enclaves

2025-05-20 Thread Ingo Molnar
* Reshetova, Elena wrote: > > > Yes, meaning is different, see above. > > > > So that's rather convoluted: > > > > atomic64_inc_not_zero(): returns 1 on successful increase, 0 on > > failure > > sgx_inc_usage_count(): returns 0 on successful increase, 1 on > > failure > >

Re: [PATCH v3 1/1] selftests/mm/uffd: Refactor non-composite global vars into struct

2025-05-20 Thread Brendan Jackman
On Mon May 19, 2025 at 1:50 PM UTC, Ujwal Kundur wrote: > Thanks for the review and testing! > >>> -static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, >>> - unsigned long offset) >>> +static void retry_copy_page(uffd_global_test_opts_t *gopts, struct >>>

Re: [PATCH 3/3] test/vsock: Add ioctl SIOCINQ tests

2025-05-20 Thread Stefano Garzarella
On Mon, May 19, 2025 at 03:06:49PM +0800, Xuewei Niu wrote: This patch adds two tests for ioctl SIOCINQ for SOCK_STREAM and SOCK_SEQPACKET. The client waits for the server to send data, and checks if the return value of the SIOCINQ is the size of the data. Then, consumes the data and checks if th

Re: [PATCH v5 4/5] x86/sgx: Implement ENCLS[EUPDATESVN]

2025-05-20 Thread Huang, Kai
On Tue, 2025-05-20 at 06:36 +, Reshetova, Elena wrote: > > > > > > > Why not just fail sgx_open() (e.g., return -EBUSY, or -EAGAIN) in that > > > > case? > > > > Userspace can then retry? > > > > > > The idea on the patch was that such a scenario where we run out of entropy > > > should not

Re: [PATCH v2 0/5] SC8280XP SLPI

2025-05-20 Thread Konrad Dybcio
On 5/19/25 11:35 AM, Johan Hovold wrote: > On Sat, May 17, 2025 at 07:27:49PM +0200, Konrad Dybcio wrote: >> SC8280XP features a SLPI, much like its distant relative, SM8350. > > Please get into the habit of spelling out *and* explaining internal > Qualcomm acronyms like "SLPI" so that your cover

Re: [PATCH] selftests: nci: Fix "Electrnoics" to "Electronics"

2025-05-20 Thread Simon Horman
On Fri, May 16, 2025 at 06:59:37PM -0700, Sumanth Gavini wrote: > Fix misspelling reported by codespell > > Signed-off-by: Sumanth Gavini Thanks, With this change this file appears to be codespell-clean. Reviewed-by: Simon Horman

Re: [PATCH v2 0/5] SC8280XP SLPI

2025-05-20 Thread Dmitry Baryshkov
On 20/05/2025 17:29, Konrad Dybcio wrote: On 5/19/25 11:35 AM, Johan Hovold wrote: On Sat, May 17, 2025 at 07:27:49PM +0200, Konrad Dybcio wrote: Konrad Dybcio (4): dt-bindings: remoteproc: qcom,sm8350-pas: Add SC8280XP arm64: dts: qcom: sc8280xp: Fix node order arm64:

Re: [PATCH v3 1/2] arm64: Implement arch_stack_walk_reliable

2025-05-20 Thread Will Deacon
On Mon, May 19, 2025 at 02:41:06PM +0100, Mark Rutland wrote: > I've pushed a arm64/stacktrace-updates branch [1] with fixups for those > as two separate commits atop this one. If that looks good to you I > suggest we post that as a series and ask Will and Catalin to take that > as-is. Yes, please

Re: [PATCH][next] selftests/futex: Fix spelling mistake "unitiliazed" -> "uninitialized"

2025-05-20 Thread Sebastian Andrzej Siewior
On 2025-05-20 09:06:57 [+0100], Colin Ian King wrote: > There is a spelling mistake in a fail error message. Fix it. > > Signed-off-by: Colin Ian King Reviewed-by: Sebastian Andrzej Siewior Sebastian

[PATCH bpf-next v5 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-20 Thread Lorenz Bauer
I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. With some upcoming changes the library is sitting at 5MiB for a parse. Most of that memory is simply copying the BTF blob into user space. By allowing vmlinux BTF to be mmapped read-only into user space I can cut memory usage

[PATCH bpf-next v5 1/3] btf: allow mmap of vmlinux btf

2025-05-20 Thread Lorenz Bauer
User space needs access to kernel BTF for many modern features of BPF. Right now each process needs to read the BTF blob either in pieces or as a whole. Allow mmaping the sysfs file so that processes can directly access the memory allocated for it in the kernel. remap_pfn_range is used instead of

[PATCH bpf-next v5 3/3] libbpf: Use mmap to parse vmlinux BTF from sysfs

2025-05-20 Thread Lorenz Bauer
Teach libbpf to use mmap when parsing vmlinux BTF from /sys. We don't apply this to fall-back paths on the regular file system because there is no way to ensure that modifications underlying the MAP_PRIVATE mapping are not visible to the process. Acked-by: Andrii Nakryiko Tested-by: Alan Maguire

[PATCH bpf-next v5 2/3] selftests: bpf: add a test for mmapable vmlinux BTF

2025-05-20 Thread Lorenz Bauer
Add a basic test for the ability to mmap /sys/kernel/btf/vmlinux. Ensure that the data is valid BTF and that it is padded with zero. Tested-by: Alan Maguire Signed-off-by: Lorenz Bauer --- tools/testing/selftests/bpf/prog_tests/btf_sysfs.c | 81 ++ 1 file changed, 81 inserti

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 12:58:18PM +0200, Paolo Abeni wrote: > On 5/20/25 10:24 AM, Stefano Garzarella wrote: > > https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style > > @Bobby: AFAICS this now has all the ingredients to fit NIPA integration > am I correct? the last com

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 01:09:25PM +0200, Stefano Garzarella wrote: > On Tue, May 20, 2025 at 12:58:18PM +0200, Paolo Abeni wrote: > > On 5/20/25 10:24 AM, Stefano Garzarella wrote: > > > > Still it could be worthy to re-introduce (behind a command line option) > > the ability to build the kernel

Re: [PATCH v4 04/38] perf: Add a EVENT_GUEST flag

2025-05-20 Thread Liang, Kan
On 2025-05-19 2:58 a.m., Namhyung Kim wrote: > Hello, > > On Mon, Mar 24, 2025 at 05:30:44PM +, Mingwei Zhang wrote: >> From: Kan Liang >> >> Current perf doesn't explicitly schedule out all exclude_guest events >> while the guest is running. There is no problem with the current >> emulate

Re: [PATCH v3 1/2] arm64: Implement arch_stack_walk_reliable

2025-05-20 Thread Mark Rutland
On Tue, May 20, 2025 at 03:28:45PM +0100, Will Deacon wrote: > On Mon, May 19, 2025 at 02:41:06PM +0100, Mark Rutland wrote: > > I've pushed a arm64/stacktrace-updates branch [1] with fixups for those > > as two separate commits atop this one. If that looks good to you I > > suggest we post that as

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-20 Thread Stefano Garzarella
On Tue, 20 May 2025 at 11:01, Stefano Garzarella wrote: > > On Tue, 20 May 2025 at 10:54, Stefano Garzarella wrote: > > > > On Mon, May 12, 2025 at 02:23:12PM +0200, Michal Luczaj wrote: > > >On 5/7/25 10:26, Stefano Garzarella wrote: > > >> On Wed, 7 May 2025 at 00:47, Michal Luczaj wrote: > >

Re: [PATCH v4 04/38] perf: Add a EVENT_GUEST flag

2025-05-20 Thread Namhyung Kim
On Tue, May 20, 2025 at 12:09:02PM -0400, Liang, Kan wrote: > > > On 2025-05-19 2:58 a.m., Namhyung Kim wrote: > > Hello, > > > > On Mon, Mar 24, 2025 at 05:30:44PM +, Mingwei Zhang wrote: > >> From: Kan Liang > >> > >> Current perf doesn't explicitly schedule out all exclude_guest events >

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 08:23:02PM +0100, Bryan O'Donoghue wrote: > On 20/05/2025 19:39, Vincent Knecht via B4 Relay wrote: > > From: Vincent Knecht > > > + compatible = "qcom,msm8939-camss"; > > + reg = <0x01b0ac00 0x200>, > <0x01b0ac00 0x0 0x200 0x0> No.

Re: [PATCH v5 1/5] x86/sgx: Introduce a counter to count the sgx_(vepc_)open()

2025-05-20 Thread Jarkko Sakkinen
On Tue, May 20, 2025 at 06:25:04AM +, Reshetova, Elena wrote: > > Maybe just use raw atomic_inc() and atomic_dec() at the sites? > > > > IMHO, it makes only sense to wrap, when it makes sense to wrap. > > You mean for this patch or overall? For overall we discussed in v4 > why we would like t

Re: [PATCH v5 4/5] x86/sgx: Implement ENCLS[EUPDATESVN]

2025-05-20 Thread Dave Hansen
On 5/20/25 12:57, Jarkko Sakkinen wrote: > unlikely() is both (minor) optimization and documents that it is not expected > branch so it obviously makes sense here. I'm not a big fan of unlikely() being thrown in without specific reasons. I don't think we need an annotation to tell us that the path

Re: [PATCH v5 4/5] x86/sgx: Implement ENCLS[EUPDATESVN]

2025-05-20 Thread Jarkko Sakkinen
On Tue, May 20, 2025 at 06:31:46AM +, Reshetova, Elena wrote: BTW, please keep the line which tells who responded. > > +/** > > > + * sgx_updatesvn() - Attempt to call ENCLS[EUPDATESVN] > > > + * If EPC is empty, this instruction attempts to update CPUSVN to the > > > + * currently loaded mi

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Bryan O'Donoghue
On 20/05/2025 19:39, Vincent Knecht via B4 Relay wrote: From: Vincent Knecht Add the camera subsystem and CCI used to interface with cameras on the Snapdragon 615. Signed-off-by: Vincent Knecht --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 4 + arch/arm64/boot/dts/qcom/msm8939.dtsi

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Konrad Dybcio
On 5/20/25 8:39 PM, Vincent Knecht via B4 Relay wrote: > From: Vincent Knecht > > Add the camera subsystem and CCI used to interface with cameras on the > Snapdragon 615. > > Signed-off-by: Vincent Knecht > --- [...] > + interrupts = , > +

Re: [PATCH net v2] selftests: net: validate team flags propagation

2025-05-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 16 May 2025 16:22:05 -0700 you wrote: > Cover three recent cases: > 1. missing ops locking for the lowers during netdev_sync_lower_features > 2. missing locking for dev_set_promiscuity (plus netdev_ops_assert_

Re: [PATCH] selftests: nci: Fix "Electrnoics" to "Electronics"

2025-05-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 16 May 2025 18:59:37 -0700 you wrote: > Fix misspelling reported by codespell > > Signed-off-by: Sumanth Gavini > --- > tools/testing/selftests/nci/nci_dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH] selftests: net: Fix spellings

2025-05-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 16 May 2025 20:25:33 -0700 you wrote: > Fix "withouth" to "without" > Fix "instaces" to "instances" > > Signed-off-by: Sumanth Gavini > --- > tools/testing/selftests/net/srv6_end_flavors_test.sh | 4 ++-- >

Re: [PATCH 0/3] vsock: Introduce SIOCINQ ioctl support

2025-05-20 Thread Xuewei Niu
> On Mon, May 19, 2025 at 03:06:46PM +0800, Xuewei Niu wrote: > >This patchset introduces SIOCINQ ioctl support for vsock, indicating the > >number of unread bytes. > > Thanks for this work, but please use net-next tree since this is a new > feature: > https://www.kernel.org/doc/html/latest/proc

Re: [PATCH 3/3] test/vsock: Add ioctl SIOCINQ tests

2025-05-20 Thread Xuewei Niu
> On Mon, May 19, 2025 at 03:06:49PM +0800, Xuewei Niu wrote: > >This patch adds two tests for ioctl SIOCINQ for SOCK_STREAM and > >SOCK_SEQPACKET. The client waits for the server to send data, and checks if > >the return value of the SIOCINQ is the size of the data. Then, consumes the > >data and

Re: [PATCH 2/3] vsock/virtio: Add SIOCINQ support for all virtio based transports

2025-05-20 Thread Xuewei Niu
> On Mon, May 19, 2025 at 03:06:48PM +0800, Xuewei Niu wrote: > >The virtio_vsock_sock has a new field called bytes_unread as the return > >value of the SIOCINQ ioctl. > > > >Though the rx_bytes exists, we introduce a bytes_unread field to the > >virtio_vsock_sock struct. The reason is that it will

Re: [PATCH bpf-next/net v3 4/5] selftests/bpf: Add mptcp_subflow bpf_iter subtest

2025-05-20 Thread Martin KaFai Lau
On 5/19/25 3:04 AM, Matthieu Baerts wrote: +SEC("cgroup/getsockopt") +int iters_subflow(struct bpf_sockopt *ctx) +{ +    struct mptcp_subflow_context *subflow; +    struct bpf_sock *sk = ctx->sk; +    struct sock *ssk = NULL; +    struct mptcp_sock *msk; +    int local_ids = 0; + +    if (ctx->le

[PATCH net-next v5 2/5] vsock: Move lingering logic to af_vsock core

2025-05-20 Thread Michal Luczaj
Lingering should be transport-independent in the long run. In preparation for supporting other transports, as well as the linger on shutdown(), move code to core. Generalize by querying vsock_transport::unsent_bytes(), guard against the callback being unimplemented. Do not pass sk_lingertime expli

[PATCH net-next v5 0/5] vsock: SOCK_LINGER rework

2025-05-20 Thread Michal Luczaj
Change vsock's lingerning to wait on close() until all data is sent, i.e. until workers picked all the packets for processing. Changes in v5: - Move unsent_bytes fetching logic to utils.c - Add a helper for enabling SO_LINGER - Accommodate for close() taking a long time for reasons unrelated to

[PATCH net-next v5 1/5] vsock/virtio: Linger on unsent data

2025-05-20 Thread Michal Luczaj
Currently vsock's lingering effectively boils down to waiting (or timing out) until packets are consumed or dropped by the peer; be it by receiving the data, closing or shutting down the connection. To align with the semantics described in the SO_LINGER section of man socket(7) and to mimic AF_INE

[PATCH net-next v5 3/5] vsock/test: Introduce vsock_wait_sent() helper

2025-05-20 Thread Michal Luczaj
Distill the virtio_vsock_sock::bytes_unsent checking loop (ioctl SIOCOUTQ) and move it to utils. Tweak the comment. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 25 + tools/testing/vsock/util.h | 1 + tools/testing/vsock/vsock_test.c | 23 +++

[PATCH net-next v5 4/5] vsock/test: Introduce enable_so_linger() helper

2025-05-20 Thread Michal Luczaj
Add a helper function that sets SO_LINGER. Adapt the caller. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 13 + tools/testing/vsock/util.h | 4 tools/testing/vsock/vsock_test.c | 10 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff

[PATCH net-next v5 5/5] vsock/test: Add test for an unexpectedly lingering close()

2025-05-20 Thread Michal Luczaj
There was an issue with SO_LINGER: instead of blocking until all queued messages for the socket have been successfully sent (or the linger timeout has been reached), close() would block until packets were handled by the peer. Add a test to alert on close() lingering when it should not. Signed-off

Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-20 Thread Tony Ambardar
On Thu, May 15, 2025 at 08:51:45AM +0100, Alan Maguire wrote: > > I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. > > With some upcoming changes the library is sitting at 5MiB for a parse. > > Most of that memory is simply copying the BTF blob into user space. > > By allowi

[GIT PULL] remoteproc fix for v6.15

2025-05-20 Thread Bjorn Andersson
The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8: Linux 6.15-rc1 (2025-04-06 13:11:33 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/rproc-v6.15-fixes for you to fetch changes up to 4ca45

Re: [GIT PULL] remoteproc fix for v6.15

2025-05-20 Thread pr-tracker-bot
The pull request you sent on Tue, 20 May 2025 21:41:51 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git > tags/rproc-v6.15-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4a95bc121ccdaee04c4d72f84dbfa6b880a514b6 Thank you! -- Deet-

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-20 Thread Peng Fan
Hi Ulf, On Tue, May 20, 2025 at 02:21:49PM +0200, Ulf Hansson wrote: >On Mon, 19 May 2025 at 19:24, Hiago De Franco wrote: >> >> Hi Ulf, >> >> On Mon, May 19, 2025 at 04:33:30PM +0200, Ulf Hansson wrote: >> > On Fri, 9 May 2025 at 21:13, Hiago De Franco wrote: >> > > >> > > On Fri, May 09, 2025

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-20 Thread Peng Fan
On Wed, May 21, 2025 at 12:13:06PM +0800, Peng Fan wrote: >Hi Ulf, > >On Tue, May 20, 2025 at 02:21:49PM +0200, Ulf Hansson wrote: >>On Mon, 19 May 2025 at 19:24, Hiago De Franco wrote: >>> >>> Hi Ulf, >>> >>> On Mon, May 19, 2025 at 04:33:30PM +0200, Ulf Hansson wrote: >>> > On Fri, 9 May 2025 at

Re: [PATCH v3 0/3] remoteproc: imx_rproc: allow attaching to running core kicked by the bootloader

2025-05-20 Thread Peng Fan
On Mon, May 19, 2025 at 02:15:11PM -0300, Hiago De Franco wrote: >From: Hiago De Franco Let's wait for V2 discussion a bit, then I will give a look if we reach an agreement on using firmware power API here. Thanks, Peng

[PATCH][next] selftests/futex: Fix spelling mistake "unitiliazed" -> "uninitialized"

2025-05-20 Thread Colin Ian King
There is a spelling mistake in a fail error message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/futex/functional/futex_numa_mpol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_numa_mpol.c b/tools/testin

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Paolo Abeni
On 5/20/25 10:24 AM, Stefano Garzarella wrote: > On Thu, May 15, 2025 at 03:00:48PM -0700, Bobby Eshleman wrote: >> This commit introduces a new vmtest.sh runner for vsock. >> >> It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, >> H2G, and loopback. The testing tools from tools/

Re: [PATCH 0/3] vsock: Introduce SIOCINQ ioctl support

2025-05-20 Thread Stefano Garzarella
On Mon, May 19, 2025 at 03:06:46PM +0800, Xuewei Niu wrote: This patchset introduces SIOCINQ ioctl support for vsock, indicating the number of unread bytes. Thanks for this work, but please use net-next tree since this is a new feature: https://www.kernel.org/doc/html/latest/process/maintaine

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Stefano Garzarella
On Tue, May 20, 2025 at 12:58:18PM +0200, Paolo Abeni wrote: On 5/20/25 10:24 AM, Stefano Garzarella wrote: On Thu, May 15, 2025 at 03:00:48PM -0700, Bobby Eshleman wrote: This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Paolo Abeni
On 5/16/25 12:00 AM, Bobby Eshleman wrote: > +tap_prefix() { > + sed -e "s/^/${TAP_PREFIX}/" > +} I think there is no need to the tap prefix to the output you intend to 'comment out', the kselftest infra should already add the tap prefix mark to each line generated by the test, > + > +tap_out

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Stefano Garzarella
On Thu, May 15, 2025 at 03:00:48PM -0700, Bobby Eshleman wrote: This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, H2G, and loopback. The testing tools from tools/testing/vsock/ are reused. Currently, only vsock_test is u

Re: [PATCH] Documentation: kunit: improve example on testing static functions

2025-05-20 Thread Thomas Weißschuh
On 2025-05-16 19:06:31+, Rae Moar wrote: > -Alternatively, you could conditionally ``#include`` the test file at the end > of > -your .c file. For example: > + /* In the KUnit test file "my_file_test.c" */ > + > + #include > + #include > + ... > + MODULE_IMPORT_NS(EXPO

Re: [PATCH] kunit: tool: add test counts to JSON output

2025-05-20 Thread Thomas Weißschuh
On 2025-05-16 20:16:15+, Rae Moar wrote: > test_group = { > "name": test.name, > "sub_groups": sub_groups, > "test_cases": test_cases, > + "misc": counts_json Should have a trailing comma for future extensibility. In case history is

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-20 Thread Ulf Hansson
On Mon, 19 May 2025 at 19:24, Hiago De Franco wrote: > > Hi Ulf, > > On Mon, May 19, 2025 at 04:33:30PM +0200, Ulf Hansson wrote: > > On Fri, 9 May 2025 at 21:13, Hiago De Franco wrote: > > > > > > On Fri, May 09, 2025 at 12:37:02PM +0200, Ulf Hansson wrote: > > > > On Thu, 8 May 2025 at 22:28, H

Re: [PATCH v12 04/36] remoteproc: k3-m4: Don't assert reset in detach routine

2025-05-20 Thread Hari Nagalla
On 5/20/25 00:06, Beleswar Prasad Padhi wrote: Hi Mathieu, On 19/05/25 20:07, Mathieu Poirier wrote: On Sat, May 17, 2025 at 06:53:29PM +0530, Beleswar Prasad Padhi wrote: On 5/16/2025 9:15 PM, Mathieu Poirier wrote: On Tue, May 13, 2025 at 11:14:38AM +0530, Beleswar Padhi wrote: The rproc_d

[PATCH 3/4] media: dt-bindings: Add qcom,msm8939-camss

2025-05-20 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Add bindings for qcom,msm8939-camss in order to support the camera subsystem for MSM8939. Signed-off-by: Vincent Knecht --- .../bindings/media/qcom,msm8939-camss.yaml | 269 + 1 file changed, 269 insertions(+) diff --git a/Documentation/devicet

[PATCH 2/4] media: qcom: camss: Add support for MSM8939

2025-05-20 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht The camera subsystem for the MSM8939 is the same as MSM8916 except with 3 CSID instead of 2, and some higher clock rates. As a quirk, this SoC needs writing values to 2 VFE VBIF registers (see downstream msm8939-camera.dtsi vbif-{regs,settings} properties). This fixes black

[PATCH 1/4] media: qcom: camss: vfe: Add VBIF setting support

2025-05-20 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Some devices need writing values to VFE VBIF registers. Add helper functions to do this. Signed-off-by: Vincent Knecht --- drivers/media/platform/qcom/camss/Makefile | 1 + drivers/media/platform/qcom/camss/camss-vfe-vbif.c | 30 ++ drivers/med

[PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Add the camera subsystem and CCI used to interface with cameras on the Snapdragon 615. Signed-off-by: Vincent Knecht --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 4 + arch/arm64/boot/dts/qcom/msm8939.dtsi| 152 +++ 2 files changed, 1

[PATCH 0/4] CAMSS support for MSM8939

2025-05-20 Thread Vincent Knecht via B4 Relay
This series adds CAMSS support for MSM8939. It's mostly identical to MSM8916, except for some clocks and an additional CSI. To fix black stripes across sensor output, and garbage in CSID TPG output, 2 VFE VBIF register settings are needed. So the 1st patch adds helper functions to do just that. P

[PATCH v2] kunit: tool: add test counts to JSON output

2025-05-20 Thread Rae Moar
Add the test counts to the JSON output from kunit.py. For example: ... "git_branch": "kselftest", "misc": { "tests": 2, "passed": 1. "failed": 1, "crashed": 0, "skipped": 0, "errors": 0, } ... To output the JSON using the following command: ./tools/testing/kunit/kunit.py r

Re: [PATCH 2/4] media: qcom: camss: Add support for MSM8939

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 08:39:07PM +0200, Vincent Knecht via B4 Relay wrote: > From: Vincent Knecht > > The camera subsystem for the MSM8939 is the same as MSM8916 except with > 3 CSID instead of 2, and some higher clock rates. > > As a quirk, this SoC needs writing values to 2 VFE VBIF register

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Dmitry Baryshkov
On Tue, May 20, 2025 at 10:30:30PM +0300, Vladimir Zapolskiy wrote: > Hello Vincent. > > On 5/20/25 21:39, Vincent Knecht via B4 Relay wrote: > > From: Vincent Knecht > > > > Add the camera subsystem and CCI used to interface with cameras on the > > Snapdragon 615. > > > > Signed-off-by: Vincen

[PATCH v2] Documentation: kunit: improve example on testing static functions

2025-05-20 Thread Rae Moar
The documentation on testing static functions using the KUnit macros VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT is lacking clarity and missing key steps in the example. This has caused bugs and confusion among developers. Improve wording of description and add missing steps to the example. This e

Re: [PATCH] selftests: seccomp: Fix "performace" to "performance"

2025-05-20 Thread Kees Cook
On Fri, 16 May 2025 18:17:22 -0700, Sumanth Gavini wrote: > Fix misspelling reported by codespell > > Applied to for-next/seccomp, thanks! [1/1] selftests: seccomp: Fix "performace" to "performance" https://git.kernel.org/kees/c/a9b33aae79ce Take care, -- Kees Cook

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Bryan O'Donoghue
On 20/05/2025 20:53, Dmitry Baryshkov wrote: <0x01b0ac00 0x0 0x200 0x0> No. Ah you're right I see we are only doing this for new SoCs. --- bod

Re: [PATCH 1/2] nvdimm/btt: Fix memleaks in discover_arenas()

2025-05-20 Thread Verma, Vishal L
On Fri, 2025-05-16 at 13:13 +0800, Li Zhijian wrote: > kmemleak reported a memleak after the ndctl_test > unreferenced object 0x88800e6cf2c0 (size 32): >   comm "modprobe", pid 969, jiffies 4294698691 >   hex dump (first 32 bytes): >     03 00 00 00 a0 0a 00 00 00 b0 b4 00 00 c9 ff ff 

Re: [PATCH 2/2] nvdimm/btt: Fix memleaks in btt_init()

2025-05-20 Thread Verma, Vishal L
On Fri, 2025-05-16 at 13:13 +0800, Li Zhijian wrote: > Call free_arenas() to release the arena instances in btt->arena_list > in the error paths. > > Signed-off-by: Li Zhijian > --- >  drivers/nvdimm/btt.c | 12 >  1 file changed, 8 insertions(+), 4 deletions(-) > Reviewed-by: Vishal

[PATCH v4 0/7] futex: Create set_robust_list2

2025-05-20 Thread André Almeida
This patch adds a new robust_list() syscall. The current syscall can't be expanded to cover the following use case, so a new one is needed. This new syscall allows users to set multiple robust lists per process and to have either 32bit or 64bit pointers in the list. * Use case FEX-Emu[1] is an ap

[PATCH v4 2/7] selftests/futex: Create test for robust list

2025-05-20 Thread André Almeida
Create a test for the robust list mechanism. Test the following uAPI operations: - Creating a robust mutex where the lock waiter is wake by the kernel when the lock owner died - Setting a robust list to the current task - Getting a robust list from the current task - Getting a robust list from a

[PATCH v4 3/7] futex: Use explicit sizes for compat_exit_robust_list

2025-05-20 Thread André Almeida
There are two functions for handling robust lists during the task exit: exit_robust_list() and compat_exit_robust_list(). The first one handles either 64bit or 32bit lists, depending if it's a 64bit or 32bit kernel. The compat_exit_robust_list() only exists in 64bit kernels that supports 32bit sysc

[PATCH v4 1/7] selftests/futex: Add ASSERT_ macros

2025-05-20 Thread André Almeida
Create ASSERT_{EQ, NE, TRUE, FALSE} macros to make test creation easier. Signed-off-by: André Almeida --- tools/testing/selftests/futex/include/logging.h | 38 + 1 file changed, 38 insertions(+) diff --git a/tools/testing/selftests/futex/include/logging.h b/tools/testin

[PATCH net-next 1/3] net: devmem: support single IOV with sendmsg

2025-05-20 Thread Stanislav Fomichev
sendmsg() with a single iov becomes ITER_UBUF, sendmsg() with multiple iovs becomes ITER_IOVEC. iter_iov_len does not return correct value for UBUF, so teach to treat UBUF differently. Cc: Al Viro Cc: Pavel Begunkov Cc: Mina Almasry Fixes: bd61848900bf ("net: devmem: Implement TX path") Signed-

[PATCH net-next 2/3] selftests: ncdevmem: make chunking optional

2025-05-20 Thread Stanislav Fomichev
Add new -z argument to specify max IOV size. By default, use single large IOV. Signed-off-by: Stanislav Fomichev --- .../selftests/drivers/net/hw/ncdevmem.c | 49 +++ 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/tools/testing/selftests/drivers/net/hw/ncde

[PATCH net-next 3/3] selftests: ncdevmem: add tx test with multiple IOVs

2025-05-20 Thread Stanislav Fomichev
Use prime 3 for length to make offset slowly drift away. Signed-off-by: Stanislav Fomichev --- .../testing/selftests/drivers/net/hw/devmem.py | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/net/hw/devmem.py b/tools/testing/s

[PATCH v4 5/7] futex: Wire up set_robust_list2 syscall

2025-05-20 Thread André Almeida
Wire up the new set_robust_list2 syscall in all available architectures. Signed-off-by: André Almeida --- arch/alpha/kernel/syscalls/syscall.tbl | 1 + arch/arm/tools/syscall.tbl | 1 + arch/m68k/kernel/syscalls/syscall.tbl | 1 + arch/microblaze/kernel/syscalls/sysca

[PATCH v4 6/7] futex: Remove the limit of elements for sys_set_robust_list2 lists

2025-05-20 Thread André Almeida
Remove the limit of ROBUST_LIST_LIMIT elements that a robust list can have, for the ones created with the new interface. This is done by overwritten the list as it's proceeded in a way that we avoid circular lists. For the old interface, we keep the limited behavior to avoid changing the API. Sig

[PATCH v4 4/7] futex: Create set_robust_list2

2025-05-20 Thread André Almeida
Create a new robust_list() syscall. The current syscall can't be expanded to cover the following use case, so a new one is needed. This new syscall allows users to set multiple robust lists per process and to have either 32bit or 64bit pointers in the list. * Interface This is the proposed interf

[PATCH v4 7/7] selftests: futex: Expand robust list test for the new interface

2025-05-20 Thread André Almeida
Expand the current robust list test for the new set_robust_list2 syscall. Create an option to make it possible to run the same tests using the new syscall, and also add two new relevant test: test long lists (bigger than ROBUST_LIST_LIMIT) and for unaligned addresses. Signed-off-by: André Almeida

Re: [PATCH] dt-bindings: pmem: Convert binding to YAML

2025-05-20 Thread Drew Fustini
On Tue, May 20, 2025 at 04:51:42PM +0100, Conor Dooley wrote: > On Mon, May 19, 2025 at 07:22:21PM -0700, Drew Fustini wrote: > > On Mon, May 19, 2025 at 07:14:40PM -0700, Drew Fustini wrote: > > > Convert the PMEM device tree binding from text to YAML. This will allow > > > device trees with pmem-

Re: [PATCH 0/4] CAMSS support for MSM8939

2025-05-20 Thread Rob Herring (Arm)
orrect base, please add 'base-commit' tag (or use b4 which does this automatically) New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20250520-camss-8x39-vbif-v1-0-a12cd6006...@mailoo.org: arch/arm64/boot/dts/qcom/msm8939-wingtech-wt82918.dtb: cci@1b

[PATCH v2 1/1] mm/memory_hotplug: PG_offline_skippable for offlining memory blocks with PageOffline pages

2025-05-20 Thread David Hildenbrand
A long-term goal is supporting frozen PageOffline pages, and later PageOffline pages that don't have a refcount at all. Some more work for that is needed -- in particular around non-folio page migration and memory ballooning drivers -- but let's start by handling PageOffline pages that can be skipp

[PATCH v2 0/1] mm/memory_hotplug: introduce and use PG_offline_skippable

2025-05-20 Thread David Hildenbrand
This is a requirement for making PageOffline pages not have a refcount in the long future ("frozen"), and for reworking non-folio page migration in the near future. I have patches mostly ready to go to handle the latter. For turning all PageOffline() pages frozen, the non-folio page migration and

Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-20 Thread Bobby Eshleman
On Tue, May 20, 2025 at 01:24:43PM +0200, Paolo Abeni wrote: > On 5/16/25 12:00 AM, Bobby Eshleman wrote: > > +tap_prefix() { > > + sed -e "s/^/${TAP_PREFIX}/" > > +} > > I think there is no need to the tap prefix to the output you intend to > 'comment out', the kselftest infra should already ad

Re: [PATCH] dt-bindings: pmem: Convert binding to YAML

2025-05-20 Thread Conor Dooley
On Mon, May 19, 2025 at 07:22:21PM -0700, Drew Fustini wrote: > On Mon, May 19, 2025 at 07:14:40PM -0700, Drew Fustini wrote: > > Convert the PMEM device tree binding from text to YAML. This will allow > > device trees with pmem-region nodes to pass dtbs_check. > > > > Signed-off-by: Drew Fustini

Re: [PATCH v12 00/36] Refactor TI K3 R5, DSP and M4 Remoteproc Drivers

2025-05-20 Thread Mathieu Poirier
On Tue, May 13, 2025 at 11:14:34AM +0530, Beleswar Padhi wrote: > This series refactors a lot of functions & callbacks from > ti_k3_dsp_remoteproc.c, ti_k3_r5_remoteproc.c and ti_k3_m4_remoteproc.c > drivers. This is a consolidated and final series as part of the > refactoring of K3 remoteproc driv

Re: [PATCH 2/4] media: qcom: camss: Add support for MSM8939

2025-05-20 Thread Bryan O'Donoghue
On 20/05/2025 19:39, Vincent Knecht via B4 Relay wrote: +static const struct camss_subdev_resources csiphy_res_8x39[] = { + /* CSIPHY0 */ + { + .regulators = {}, Regulators should be declared with the PHY not the CSID. --- bod

Re: [PATCH 3/4] media: dt-bindings: Add qcom,msm8939-camss

2025-05-20 Thread Bryan O'Donoghue
On 20/05/2025 19:39, Vincent Knecht via B4 Relay wrote: From: Vincent Knecht Add bindings for qcom,msm8939-camss in order to support the camera subsystem for MSM8939. Signed-off-by: Vincent Knecht --- .../bindings/media/qcom,msm8939-camss.yaml | 269 + 1 file ch

Re: [PATCH 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-05-20 Thread Vladimir Zapolskiy
Hello Vincent. On 5/20/25 21:39, Vincent Knecht via B4 Relay wrote: From: Vincent Knecht Add the camera subsystem and CCI used to interface with cameras on the Snapdragon 615. Signed-off-by: Vincent Knecht --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 4 + arch/arm64/boot/dts/qcom/

Re: [PATCH v4 04/38] perf: Add a EVENT_GUEST flag

2025-05-20 Thread Liang, Kan
On 2025-05-20 1:51 p.m., Namhyung Kim wrote: @@ -1089,6 +1094,7 @@ struct bpf_perf_event_data_kern { */ struct perf_cgroup_info { struct perf_time_ctxtime; + struct perf_time_ctxtimeguest; int active; >>>

[PATCH] kselftest/pidfd: Make all test functions return int

2025-05-20 Thread Ivan Pravdin
The pidfd_test suite currently defines six test functions, four of which return an int, while the remaining two return void. This is inconsistent. To address this, convert the two void-returning test functions to return int, bringing them in line with the rest. For now, the functions always return

[PATCH] kselftest/pidfd: Fix typos in comments

2025-05-20 Thread Ivan Pravdin
Fix typos in comments in pidfd_info_test.c Signed-off-by: Ivan Pravdin --- tools/testing/selftests/pidfd/pidfd_info_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/pidfd/pidfd_info_test.c b/tools/testing/selftests/pidfd/pidfd_info_test.c