Re: [PATCH] selftests/pidfd: align stack to fix SP alignment exception

2025-04-23 Thread Shuai Xue
在 2025/4/6 19:57, Shuai Xue 写道: 在 2025/4/4 20:18, Will Deacon 写道: On Wed, Mar 19, 2025 at 10:59:57AM +0800, Shuai Xue wrote: + ARM maintainers for review. 在 2025/3/12 14:15, Shuai Xue 写道: The pidfd_test fails on the ARM64 platform with the following error:   Bail out! pidfd_poll che

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-23 Thread Chenyi Qiang
On 4/24/2025 12:25 PM, Yan Zhao wrote: > On Thu, Apr 24, 2025 at 09:09:22AM +0800, Yan Zhao wrote: >> On Wed, Apr 23, 2025 at 03:02:02PM -0700, Ackerley Tng wrote: >>> Yan Zhao writes: >>> On Tue, Sep 10, 2024 at 11:44:10PM +, Ackerley Tng wrote: > +/* > + * Allocates and then

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-23 Thread Yan Zhao
On Thu, Apr 24, 2025 at 09:09:22AM +0800, Yan Zhao wrote: > On Wed, Apr 23, 2025 at 03:02:02PM -0700, Ackerley Tng wrote: > > Yan Zhao writes: > > > > > On Tue, Sep 10, 2024 at 11:44:10PM +, Ackerley Tng wrote: > > >> +/* > > >> + * Allocates and then caches a folio in the filemap. Returns a

Re: [RFC PATCH 13/39] KVM: guest_memfd: Make guest mem use guest mem inodes instead of anonymous inodes

2025-04-23 Thread Yan Zhao
On Wed, Apr 23, 2025 at 01:22:00PM -0700, Ackerley Tng wrote: > Yan Zhao writes: > > > Hi Ackerley, > > > > Not sure if below nits have been resolved in your latest code. > > I came across them and felt it's better to report them anyway. > > > > Apologies for any redundancy if you've already addr

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

2025-04-23 Thread Beleswar Prasad Padhi
Hi Judith, On 24/04/25 02:36, Judith Mendez wrote: > Hi Beleswar, > > On 4/17/25 1:19 PM, 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 serie

Re: [PATCH 0/4] media: i2c: imx214: Add support for more clock frequencies

2025-04-23 Thread Ricardo Ribalda Delgado
On Wed, Apr 16, 2025 at 5:22 AM André Apitzsch via B4 Relay wrote: > > The imx214 driver currently supports only a 24 MHz external clock. But > there are devices, like Qualcomm-MSM8916-based phones, which cannot > provide this frequency. To make the sensor usable by those devices, add > support fo

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-23 Thread Yan Zhao
On Wed, Apr 23, 2025 at 03:02:02PM -0700, Ackerley Tng wrote: > Yan Zhao writes: > > > On Tue, Sep 10, 2024 at 11:44:10PM +, Ackerley Tng wrote: > >> +/* > >> + * Allocates and then caches a folio in the filemap. Returns a folio with > >> + * refcount of 2: 1 after allocation, and 1 taken by

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

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

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

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

[PATCH net-next v4 0/3] Fix netdevim to correctly mark NAPI IDs

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

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

2025-04-23 Thread Jakub Kicinski
On Wed, 23 Apr 2025 17:06:05 -0700 Joe Damato wrote: > # Exception| Traceback (most recent call last): > # Exception| File > "/home/jdamato/code/net-next/tools/testing/selftests/net/lib/py/ksft.py", > line 223, in ksft_run > # Exception| case(*args) > # Exception| File > "/home/jdamato/c

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

2025-04-23 Thread Liam R. Howlett
* Andrii Nakryiko [250423 18:06]: > On Wed, Apr 23, 2025 at 2:49 PM Suren Baghdasaryan wrote: > > > > On Tue, Apr 22, 2025 at 3:49 PM Andrii Nakryiko > > wrote: > > > > > > On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan > > > wrote: > > > > > > > > With maple_tree supporting vma tree trav

Re: [PATCH net 0/2] mptcp: pm: Defer freeing userspace pm entries

2025-04-23 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 21 Apr 2025 19:07:12 +0200 you wrote: > Here are two unrelated fixes for MPTCP: > > - Patch 1: free userspace PM entry with RCU helpers. A fix for v6.14. > > - Patch 2: avoid a warning when running diag.sh selft

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

2025-04-23 Thread Joe Damato
On Wed, Apr 23, 2025 at 04:16:12PM -0700, Jakub Kicinski wrote: > On Fri, 18 Apr 2025 01:37:05 + Joe Damato wrote: > > +bin_remote = cfg.remote.deploy(cfg.test_dir / "napi_id_helper") > > +listen_cmd = f"{bin_remote} {cfg.addr_v['4']} {port}" > > + > > +with bkg(listen_cmd, ksft_wai

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

2025-04-23 Thread Jakub Kicinski
On Fri, 18 Apr 2025 01:37:05 + Joe Damato wrote: > +bin_remote = cfg.remote.deploy(cfg.test_dir / "napi_id_helper") > +listen_cmd = f"{bin_remote} {cfg.addr_v['4']} {port}" > + > +with bkg(listen_cmd, ksft_wait=3) as server: Sorry, not sure how I misread v2 but you are running the

Re: [PATCH net-next v3 2/3] selftests: drv-net: Factor out ksft C helpers

2025-04-23 Thread Jakub Kicinski
On Fri, 18 Apr 2025 01:37:04 + Joe Damato wrote: > +#if !defined(__KSFT_H__) > +#define __KSFT_H__ If you have to respin maybe __NET_KSFT_H__ ?

Re: [PATCH v4 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-23 Thread Jakub Kicinski
On Wed, 23 Apr 2025 22:20:41 +0700 Bui Quang Minh wrote: > I've tried to make the setup_xsk into each test. However, I've an issue > that the XDP socket destruct waits for an RCU grace period as I see this > sock's flag SOCK_RCU_FREE is set. So if we start the next test right > away, we can have

Re: [RFC PATCH 26/39] KVM: guest_memfd: Track faultability within a struct kvm_gmem_private

2025-04-23 Thread Ackerley Tng
Peter Xu writes: > On Tue, Sep 10, 2024 at 11:43:57PM +, Ackerley Tng wrote: >> @@ -1079,12 +1152,20 @@ static struct inode >> *kvm_gmem_inode_make_secure_inode(const char *name, >> if (err) >> goto out; >> >> +err = -ENOMEM; >> +private = kzalloc(sizeof(*private)

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

2025-04-23 Thread Andrii Nakryiko
On Wed, Apr 23, 2025 at 2:49 PM Suren Baghdasaryan wrote: > > On Tue, Apr 22, 2025 at 3:49 PM Andrii Nakryiko > wrote: > > > > On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan > > wrote: > > > > > > With maple_tree supporting vma tree traversal under RCU and vma and > > > its important membe

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-23 Thread Ackerley Tng
Yan Zhao writes: > On Tue, Sep 10, 2024 at 11:44:10PM +, Ackerley Tng wrote: >> +/* >> + * Allocates and then caches a folio in the filemap. Returns a folio with >> + * refcount of 2: 1 after allocation, and 1 taken by the filemap. >> + */ >> +static struct folio *kvm_gmem_hugetlb_alloc_and_c

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

2025-04-23 Thread Suren Baghdasaryan
On Tue, Apr 22, 2025 at 3:54 PM Andrii Nakryiko wrote: > > On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan wrote: > > > > Utilize speculative vma lookup to find and snapshot a vma without > > taking mmap_lock during PROCMAP_QUERY ioctl execution. Concurrent > > address space modifications are

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

2025-04-23 Thread Suren Baghdasaryan
On Tue, Apr 22, 2025 at 3:49 PM Andrii Nakryiko wrote: > > On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan wrote: > > > > With maple_tree supporting vma tree traversal under RCU and vma and > > its important members being RCU-safe, /proc/pid/maps can be read under > > RCU and without the need

Re: [PATCH bpf-next v1 1/2] bpf: Create cgroup storage if needed when updating link

2025-04-23 Thread Martin KaFai Lau
On 4/22/25 7:21 PM, Jiayuan Chen wrote: April 23, 2025 at 08:13, "Martin KaFai Lau" wrote: On 4/16/25 9:40 PM, Jiayuan Chen wrote: when we attach a prog without cgroup_storage map being used, cgroup_storage in struct bpf_prog_array_item is empty. Then, if we use BPF_LINK_UPDATE to re

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

2025-04-23 Thread Judith Mendez
Hi Beleswar, On 4/17/25 1:19 PM, 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 drivers. Below is

[PATCH v2 1/4] of: reserved_mem: Add functions to parse "memory-region"

2025-04-23 Thread Rob Herring (Arm)
Drivers with "memory-region" properties currently have to do their own parsing of "memory-region" properties. The result is all the drivers have similar patterns of a call to parse "memory-region" and then get the region's address and size. As this is a standard property, it should have common func

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-23 Thread Michal Luczaj
On 4/23/25 18:34, Stefano Garzarella wrote: > On Wed, Apr 23, 2025 at 05:53:12PM +0200, Luigi Leonardi wrote: >> Hi Michal, >> >> On Mon, Apr 21, 2025 at 11:50:41PM +0200, Michal Luczaj wrote: >>> Currently vsock's lingering effectively boils down to waiting (or timing >>> out) until packets are co

Re: [RFC PATCH 27/39] KVM: guest_memfd: Allow mmapping guest_memfd files

2025-04-23 Thread Ackerley Tng
Yan Zhao writes: > On Tue, Sep 10, 2024 at 11:43:58PM +, Ackerley Tng wrote: >> guest_memfd files can always be mmap()ed to userspace, but >> faultability is controlled by an attribute on the inode. >> >> Co-developed-by: Fuad Tabba >> Signed-off-by: Fuad Tabba >> Co-developed-by: Ackerley

Re: [RFC PATCH 27/39] KVM: guest_memfd: Allow mmapping guest_memfd files

2025-04-23 Thread Ackerley Tng
Peter Xu writes: > On Tue, Sep 10, 2024 at 11:43:58PM +, Ackerley Tng wrote: >> @@ -790,6 +791,9 @@ static long kvm_gmem_punch_hole(struct inode *inode, >> loff_t offset, loff_t len) >> */ >> filemap_invalidate_lock(inode->i_mapping); >> >> +/* TODO: Check if even_cows shoul

Re: [RFC PATCH 13/39] KVM: guest_memfd: Make guest mem use guest mem inodes instead of anonymous inodes

2025-04-23 Thread Ackerley Tng
Yan Zhao writes: > Hi Ackerley, > > Not sure if below nits have been resolved in your latest code. > I came across them and felt it's better to report them anyway. > > Apologies for any redundancy if you've already addressed them. No worries, thank you so much for your reviews! > > On Tue, Sep

Re: [PATCH] ASoC: wm8998: Add Kconfig prompt

2025-04-23 Thread André Apitzsch
Am Mittwoch, dem 23.04.2025 um 12:09 +0100 schrieb Richard Fitzgerald: > On 21/4/25 15:15, Charles Keepax wrote: > > On Fri, Apr 18, 2025 at 10:22:04PM +0200, André Apitzsch via B4 > > Relay wrote: > > > From: André Apitzsch > > > > > > Add tristate prompt to allow codec selection. > > > > > > S

[PATCH v2 4/4] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

2025-04-23 Thread Rob Herring (Arm)
Use the newly added of_reserved_mem_region_to_resource() and of_reserved_mem_region_count() functions to handle "memory-region" properties. The error handling is a bit different in some cases. Often "memory-region" is optional, so failed lookup is not an error. But then an error in of_reserved_mem

[PATCH v2 0/4] of: Common "memory-region" parsing

2025-04-23 Thread Rob Herring (Arm)
+-- drivers/remoteproc/xlnx_r5_remoteproc.c | 51 include/linux/of_reserved_mem.h | 26 ++ lib/devres.c | 1 + 18 files changed, 339 insertions(+), 369 deletions(-) --- base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8 change-id: 20250423-

Re: [PATCH bpf-next v4 0/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-23 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Wed, 23 Apr 2025 20:13:27 +0800 you wrote: > If we try to access argument which is pointer to const void, it's an > UNKNOWN type, verifier will fail to load. > > Use is_void_or_int_ptr to check if type is void or

[PATCH v2 3/4] devres: Export devm_ioremap_resource_wc()

2025-04-23 Thread Rob Herring (Arm)
devm_ioremap_resource_wc() is not exported, so add one. Signed-off-by: Rob Herring (Arm) --- v2: - New patch --- lib/devres.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/devres.c b/lib/devres.c index 73901160197e..378b07730420 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -206,6 +

[PATCH v2 2/4] of: Simplify of_dma_set_restricted_buffer() to use of_for_each_phandle()

2025-04-23 Thread Rob Herring (Arm)
Simplify of_dma_set_restricted_buffer() by using of_property_present() and of_for_each_phandle() iterator. Signed-off-by: Rob Herring (Arm) --- v2: - Maintain prior behavior only warning if of_reserved_mem_device_init_by_idx() fails --- drivers/of/device.c | 31 +++---

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-23 Thread Alexis Lothoré
Hi Andrii, On Wed Apr 23, 2025 at 7:15 PM CEST, Andrii Nakryiko wrote: > On Thu, Apr 17, 2025 at 12:14 AM Alexis Lothoré > wrote: >> >> Hi Andrii, >> >> On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko wrote: >> > On Fri, Apr 11, 2025 at 1:32 PM Alexis Lothoré (eBPF Foundation) >> > wrote:

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-23 Thread Hiago De Franco
Hi Mathieu, On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: > Good morning, > > On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: > > From: Hiago De Franco > > > > The "clocks" device tree property is not mandatory, and if not provided > > Linux will shut down th

Re: [PATCH bpf-next v4 1/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-23 Thread Andrii Nakryiko
On Wed, Apr 23, 2025 at 5:14 AM KaFai Wan wrote: > > Adding support to access arguments with const void pointer arguments > in tracing programs. > > Currently we allow tracing programs to access void pointers. If we try to > access argument which is pointer to const void like 2nd argument in kfree

Re: [GIT PULL] virtio, vhost: fixes

2025-04-23 Thread pr-tracker-bot
The pull request you sent on Wed, 23 Apr 2025 02:42:39 -0400: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0251ddbffbeb213f0f74ef94b2cacce580eb8d76 Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-23 Thread Paul E. McKenney
On Wed, Apr 23, 2025 at 05:17:31PM +0200, Benjamin Berg wrote: > Hi, > > On Wed, 2025-01-08 at 10:04 +0100, Sebastian Andrzej Siewior wrote: > > __module_text_address() can be invoked within a RCU section, there is no > > requirement to have preemption disabled. > > > > Replace the preempt_disabl

Re: [PATCH] selftests/bpf: Fix potential null pointer dereference in skb_pkt_end.c

2025-04-23 Thread Prabhav Kumar Vaish
From: Prabhav Kumar Hi Martin, Thank you for the feedback. You're right — I reviewed commit 9cc873e85800 and now understand that the test is designed to validate specific LLVM code generation, not just runtime behavior. I see how my change, although addressing the warning, could unintentional

[PATCH] rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send()

2025-04-23 Thread Dan Carpenter
The "ret" variable isn't initialized if we don't enter the loop. For example, if "channel->state" is not SMD_CHANNEL_OPENED. Fixes: 33e3820dda88 ("rpmsg: smd: Use spinlock in tx path") Signed-off-by: Dan Carpenter --- Naresh, could you test this patch and see if it fixes the boot problems you s

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-23 Thread Andrii Nakryiko
On Thu, Apr 17, 2025 at 12:14 AM Alexis Lothoré wrote: > > Hi Andrii, > > On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko wrote: > > On Fri, Apr 11, 2025 at 1:32 PM Alexis Lothoré (eBPF Foundation) > > wrote: > >> > >> In order to properly JIT the trampolines needed to attach BPF programs >

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-23 Thread Mathieu Poirier
Good morning, On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: > From: Hiago De Franco > > The "clocks" device tree property is not mandatory, and if not provided > Linux will shut down the remote processor power domain during boot if it > is not present, even if it is running (e

Re: [PATCH RFC v3 4/8] slab: sheaf prefilling for guaranteed allocations

2025-04-23 Thread Suren Baghdasaryan
On Wed, Apr 23, 2025 at 6:06 AM Vlastimil Babka wrote: > > On 4/10/25 22:47, Suren Baghdasaryan wrote: > >> +/* > >> + * refill a sheaf previously returned by kmem_cache_prefill_sheaf to at > >> least > >> + * the given size > >> + * > >> + * the sheaf might be replaced by a new one when requesti

Re: [PATCH v7 1/2] selftests: memcg: Allow low event with no memory.low and memory_recursiveprot on

2025-04-23 Thread Michal Koutný
On Tue, Apr 22, 2025 at 07:58:56PM -0400, Waiman Long wrote: > Am I correct to assume that the purpose of 1d09069f5313f ("selftests: > memcg: expect no low events in unprotected sibling") is to force a > failure in the test_memcg_low test to force a change in the current > behavior? Or was it the

Re: [PATCH v7 1/2] selftests: memcg: Allow low event with no memory.low and memory_recursiveprot on

2025-04-23 Thread Waiman Long
On 4/23/25 12:49 PM, Michal Koutný wrote: On Tue, Apr 22, 2025 at 07:58:56PM -0400, Waiman Long wrote: Am I correct to assume that the purpose of 1d09069f5313f ("selftests: memcg: expect no low events in unprotected sibling") is to force a failure in the test_memcg_low test to force a change

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-23 Thread Stefano Garzarella
On Wed, Apr 23, 2025 at 05:53:12PM +0200, Luigi Leonardi wrote: Hi Michal, On Mon, Apr 21, 2025 at 11:50:41PM +0200, Michal Luczaj wrote: 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,

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-23 Thread Luigi Leonardi
Hi Michal, On Mon, Apr 21, 2025 at 11:50:41PM +0200, Michal Luczaj wrote: 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 sema

Re: [PATCH v2 3/5] dt-bindings: remoteproc: mediatek: Drop redundant maxItems for mt8192/95

2025-04-23 Thread Rob Herring
On Mon, Apr 21, 2025 at 04:49:06PM -0400, Nícolas F. R. A. Prado wrote: > reg's maxItems is already defined as 3 in the base schema. Remove the > redundant assignment in the if branch for mt8192/mt8195. > > Suggested-by: Krzysztof Kozlowski > Signed-off-by: Nícolas F. R. A. Prado > --- > Docume

[PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-23 Thread Hiago De Franco
From: Hiago De Franco The "clocks" device tree property is not mandatory, and if not provided Linux will shut down the remote processor power domain during boot if it is not present, even if it is running (e.g. it was started by U-Boot's bootaux command). Use the optional devm_clk_get instead.

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-23 Thread Alexis Lothoré
On Mon Apr 21, 2025 at 4:14 AM CEST, Xu Kuohai wrote: > On 4/21/2025 12:02 AM, Alexis Lothoré wrote: >> Hi Xu, >> >> On Thu Apr 17, 2025 at 4:10 PM CEST, Xu Kuohai wrote: >>> On 4/17/2025 3:14 PM, Alexis Lothoré wrote: Hi Andrii, On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko

Re: [PATCH v2 1/5] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-04-23 Thread Rob Herring
On Mon, Apr 21, 2025 at 04:49:04PM -0400, Nícolas F. R. A. Prado wrote: > Both MT8192 and MT8195 have an L1TCM memory, so it should be described > in reg, and therefore reg's minItems should be 3, as is already implicit > by reg-names being three entries long. However minItems is currently > unset

Re: [PATCH 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari)

2025-04-23 Thread Rob Herring (Arm)
On Sat, 19 Apr 2025 11:00:40 +0200, Luca Weiss wrote: > From: Kevin Widjaja > > Based on the msm8974. > > Signed-off-by: Kevin Widjaja > Signed-off-by: Luca Weiss > --- > Documentation/devicetree/bindings/arm/qcom.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring (Arm)

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-23 Thread Benjamin Berg
Hi, On Wed, 2025-01-08 at 10:04 +0100, Sebastian Andrzej Siewior wrote: > __module_text_address() can be invoked within a RCU section, there is no > requirement to have preemption disabled. > > Replace the preempt_disable() section around __module_text_address() > with RCU. Unfortunately, this p

[PATCH 10/15] tools/nolibc: add timerfd functionality

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys/timerfd.h | 87

Re: [PATCH v4 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-23 Thread Bui Quang Minh
On 4/23/25 08:41, Jakub Kicinski wrote: On Thu, 17 Apr 2025 14:28:06 +0700 Bui Quang Minh wrote: The selftest reproduces the deadlock scenario when binding/unbinding XDP program, XDP socket, rx ring resize on virtio_net interface. Signed-off-by: Bui Quang Minh --- .../testing/selftests/drive

[PATCH 08/15] tools/nolibc: add clock_getres(), clock_gettime() and clock_settime()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/time.h | 92 tools/include/nolibc/types.h | 2 + tools/testing/selftests/nolibc/nolibc-t

[PATCH 02/15] tools/nolibc: add %m printf format

2025-04-23 Thread Thomas Weißschuh
The %m format can be used to format the current errno. It is non-standard but supported by other commonly used libcs like glibc and musl, so applications do rely on them. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/stdio.h | 7 +++ tools/testing/selftests/nolibc

[PATCH 15/15] tools/nolibc: implement wait() in terms of waitpid()

2025-04-23 Thread Thomas Weißschuh
Newer architectures like riscv 32-bit are missing sys_wait4(). Make use of the fact that wait(&status) is defined to be equivalent to waitpid(-1, status, 0) to implment it on all architectures. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys/wait.h | 12 ++-- 1 file changed,

[PATCH 14/15] tools/nolibc: implement fall back to sys_clock_gettime() in gettimeofday()

2025-04-23 Thread Thomas Weißschuh
Newer architectures (like riscv32) do not implement sys_gettimeofday(). In those cases fall back to sys_clock_gettime(). While that does not support the timezone argument of sys_gettimeofday(), specifying this argument invokes undefined behaviour, so it's safe to ignore. Signed-off-by: Thomas Weiß

[PATCH 09/15] tools/nolibc: add timer functions

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/time.h | 86 tools/include/nolibc/types.h | 1 + tools/testing/selftests/nolibc/nolibc-t

[PATCH 00/15] tools/nolibc: various new functions

2025-04-23 Thread Thomas Weißschuh
A few functions used by different selftests. Adding them now avoids later conflicts between different selftest serieses. Also add full support for nolibc-test.c on riscv32. All unsupported syscalls have been replaced. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (15): tools/nolibc:

[PATCH 13/15] tools/nolibc: add fopen()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Only the standard POSIX modes are supported. No extensions nor the (noop) "b" from ISO C are accepted. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/stdio.h | 27 ++

[PATCH 11/15] tools/nolibc: add difftime()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/time.h | 7 +++ tools/testing/selftests/nolibc/nolibc-test.c | 1 + 2 files changed, 8 insertions(+) diff --git a/tools/include/n

[PATCH 07/15] tools/nolibc: add support for access() and faccessat()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/unistd.h| 28 tools/testing/selftests/nolibc/nolibc-test.c | 2 ++ 2 files changed, 30 insertions(+) dif

[PATCH 06/15] tools/nolibc: add abs() and friends

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/math.h | 31 tools/include/nolibc/nolibc.h

[PATCH 05/15] tools/nolibc: add getrandom()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys/random.h| 32

[PATCH 03/15] tools/nolibc: add more stat() variants

2025-04-23 Thread Thomas Weißschuh
Add fstat(), fstatat() and lstat(). All of them use the existing implementation based on statx(). Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys/stat.h | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/include/nolibc/sys/stat.h b/t

[PATCH 01/15] tools/nolibc: add strstr()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/string.h| 20 tools/testing/selftests/nolibc/nolibc-test.c | 3 +++ 2 files changed, 23 insertions(+) diff --git

[PATCH 12/15] tools/nolibc: add namespace functionality

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sched.h | 50

[PATCH 04/15] tools/nolibc: add mremap()

2025-04-23 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys/mman.h | 19 +++ tools/testing/selftests/nolibc/nolibc-test.c | 14 +++--- 2 files changed, 30 insertions(+),

[PATCH bpf-next v4 1/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-23 Thread KaFai Wan
Adding support to access arguments with const void pointer arguments in tracing programs. Currently we allow tracing programs to access void pointers. If we try to access argument which is pointer to const void like 2nd argument in kfree, verifier will fail to load the program with; 0: R1=ctx() R

Re: [PATCH v2 1/5] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 5 sound card

2025-04-23 Thread Rob Herring (Arm)
On Fri, 18 Apr 2025 15:13:42 +0200, Luca Weiss wrote: > Document the bindings for the sound card on Fairphone 5 which uses the > older non-audioreach audio architecture. > > Signed-off-by: Luca Weiss > --- > Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + > 1 file changed, 1 in

Re: [PATCH 6/6] arm64: dts: qcom: qcs615-ride: enable remoteprocs

2025-04-23 Thread Dmitry Baryshkov
On Wed, Apr 23, 2025 at 05:17:42PM +0800, Lijuan Gao wrote: > Enable all remoteproc nodes on the qcs615-ride board and point to the > appropriate firmware files to allow proper functioning of the remote > processors. > > Signed-off-by: Lijuan Gao > --- > arch/arm64/boot/dts/qcom/qcs615-ride.dts

Re: [PATCH 0/6] arm64: dts: qcom: qcs615: enable remoteprocs - ADSP and CDSP

2025-04-23 Thread Rob Herring (Arm)
not the correct 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 20250423-add_qcs615_remoteproc_support-v1-0-a94fe8799...@quicinc.com: arch/arm64/boot/dts/qcom/qcs615-ride.dtb: qco

Re: [PATCH RFC v3 4/8] slab: sheaf prefilling for guaranteed allocations

2025-04-23 Thread Vlastimil Babka
On 4/10/25 22:47, Suren Baghdasaryan wrote: >> +/* >> + * refill a sheaf previously returned by kmem_cache_prefill_sheaf to at >> least >> + * the given size >> + * >> + * the sheaf might be replaced by a new one when requesting more than >> + * s->sheaf_capacity objects if such replacement is nec

[PATCH bpf-next v4 2/2] selftests/bpf: Add test to access const void pointer argument in tracing program

2025-04-23 Thread KaFai Wan
Adding verifier test for accessing const void pointer argument in tracing programs. The test program loads 1st argument of bpf_fentry_test10 function which is const void pointer and checks that verifier allows that. Signed-off-by: KaFai Wan Acked-by: Jiri Olsa --- net/bpf/test_run.c

Re: [PATCH v2] vdpa/octeon_ep: Control PCI dev enabling manually

2025-04-23 Thread Philipp Stanner
On Wed, 2025-04-23 at 12:39 +0200, Philipp Stanner wrote: > PCI region request functions such as pci_request_region() currently > have > the problem of becoming sometimes managed functions, if > pcim_enable_device() instead of pci_enable_device() was called. The > PCI > subsystem wants to remove th

[PATCH bpf-next v4 0/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-23 Thread KaFai Wan
If we try to access argument which is pointer to const void, it's an UNKNOWN type, verifier will fail to load. Use is_void_or_int_ptr to check if type is void or int pointer. Add a selftest to check it. --- KaFai Wan (2): bpf: Allow access to const void pointer arguments in tracing programs

Re: [PATCH] ASoC: wm8998: Add Kconfig prompt

2025-04-23 Thread Richard Fitzgerald
On 21/4/25 15:15, Charles Keepax wrote: On Fri, Apr 18, 2025 at 10:22:04PM +0200, André Apitzsch via B4 Relay wrote: From: André Apitzsch Add tristate prompt to allow codec selection. Signed-off-by: André Apitzsch --- Generally its good to say why one wants to make the symbol selectable, u

[PATCH v2] vdpa/octeon_ep: Control PCI dev enabling manually

2025-04-23 Thread Philipp Stanner
PCI region request functions such as pci_request_region() currently have the problem of becoming sometimes managed functions, if pcim_enable_device() instead of pci_enable_device() was called. The PCI subsystem wants to remove this deprecated behavior from its interfaces. octeopn_ep enables its de

[PATCH 1/6] dt-bindings: remoteproc: qcom,sm8150-pas: Document QCS615 remoteproc

2025-04-23 Thread Lijuan Gao
Document the components used to boot the ADSP and CDSP on the Qualcomm QCS615 SoC. Use fallback to indicate the compatibility of the remoteproc on the QCS615 with that on the SM8150. Signed-off-by: Lijuan Gao --- .../bindings/remoteproc/qcom,sm8150-pas.yaml | 59 +- 1 f

[PATCH 3/6] arm64: dts: qcom: qcs615: Add mproc node for SEMP2P

2025-04-23 Thread Lijuan Gao
From: Kyle Deng The Shared Memory Point to Point (SMP2P) protocol facilitates communication of a single 32-bit value between two processors. Add these two nodes for remoteproc enablement on QCS615 SoC. Signed-off-by: Kyle Deng Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615.dtsi

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

2025-04-23 Thread Stefano Garzarella
Hi Bobby, I had couple of more comments below: On Thu, Apr 17, 2025 at 10:05:53PM -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/vs

Re: [PATCH 5/6] arm64: dts: qcom: qcs615: add ADSP and CDSP nodes

2025-04-23 Thread Konrad Dybcio
On 4/23/25 11:17 AM, Lijuan Gao wrote: > Add nodes for remoteprocs: ADSP and CDSP for QCS615 SoC to enable proper > remoteproc functionality. > > Signed-off-by: Lijuan Gao > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 > > 1 file changed, 86 insertions(+

Re: [PATCH 4/6] arm64: dts: qcom: qcs615: Add IMEM and PIL info region

2025-04-23 Thread Konrad Dybcio
On 4/23/25 11:17 AM, Lijuan Gao wrote: > Add a simple-mfd representing IMEM on QCS615 and define the PIL > relocation info region, so that post mortem tools will be able > to locate the loaded remoteprocs. > > Signed-off-by: Lijuan Gao > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 14 ++

Re: [PATCH 3/6] arm64: dts: qcom: qcs615: Add mproc node for SEMP2P

2025-04-23 Thread Konrad Dybcio
On 4/23/25 11:17 AM, Lijuan Gao wrote: > From: Kyle Deng > > The Shared Memory Point to Point (SMP2P) protocol facilitates > communication of a single 32-bit value between two processors. > Add these two nodes for remoteproc enablement on QCS615 SoC. > > Signed-off-by: Kyle Deng > Signed-off-by

[PATCH 5/6] arm64: dts: qcom: qcs615: add ADSP and CDSP nodes

2025-04-23 Thread Lijuan Gao
Add nodes for remoteprocs: ADSP and CDSP for QCS615 SoC to enable proper remoteproc functionality. Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/

[PATCH 0/6] arm64: dts: qcom: qcs615: enable remoteprocs - ADSP and CDSP

2025-04-23 Thread Lijuan Gao
Enable the remote processor PAS loader for QCS615 ADSP and CDSP processors. This allows different platforms/architectures to control (power on, load firmware, power off) those remote processors while abstracting the hardware differences. Additionally, and add a PIL region in IMEM so that post morte

[PATCH 6/6] arm64: dts: qcom: qcs615-ride: enable remoteprocs

2025-04-23 Thread Lijuan Gao
Enable all remoteproc nodes on the qcs615-ride board and point to the appropriate firmware files to allow proper functioning of the remote processors. Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64

[PATCH 2/6] dt-bindings: soc: qcom: add qcom,qcs615-imem compatible

2025-04-23 Thread Lijuan Gao
Document qcom,qcs615-imem compatible. It has a child node for debugging purposes. Signed-off-by: Lijuan Gao --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicet

[PATCH 4/6] arm64: dts: qcom: qcs615: Add IMEM and PIL info region

2025-04-23 Thread Lijuan Gao
Add a simple-mfd representing IMEM on QCS615 and define the PIL relocation info region, so that post mortem tools will be able to locate the loaded remoteprocs. Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/

Re: [PATCH bpf-next 1/2] bpf: Create cgroup storage if needed when updating link

2025-04-23 Thread Markus Elfring
… > This cause a painc when accessing stroage in bpf_get_local_storage. Please avoid typos in such a change description. How do you think about to append parentheses to function names? See also: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/su

[PATCH][next] selftests/perf_events: Fix spelling mistake "sycnhronize" -> "synchronize"

2025-04-23 Thread Colin Ian King
There is a spelling mistake in an error message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/perf_events/watermark_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/perf_events/watermark_signal.c b/tools/testing/selftests/

Re: [PATCH v10 15/33] remoteproc: k3: Refactor rproc_reset() implementation into common driver

2025-04-23 Thread Beleswar Prasad Padhi
On 22/04/25 19:51, Andrew Davis wrote: > On 4/22/25 12:53 AM, Beleswar Prasad Padhi wrote: >> Hi Andrew, >> >> On 21/04/25 20:12, Andrew Davis wrote: >>> On 4/17/25 1:19 PM, Beleswar Padhi wrote: The rproc_reset() implementations in TI K3 DSP and M4 remoteproc drivers assert reset in th