Re: [PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-04-28 Thread Jason Wang
On Mon, Apr 21, 2025 at 11:46 AM Jason Wang wrote: > > On Mon, Apr 21, 2025 at 11:45 AM Jason Wang wrote: > > > > On Mon, Apr 21, 2025 at 10:45 AM Cindy Lu wrote: > > > > > > Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, > > > to control the availability of the `VHOST_FORK_

Re: [PATCH] selftests/bpf: Fix kmem_cache iterator draining

2025-04-28 Thread T.J. Mercier
On Mon, Apr 28, 2025 at 1:06 PM Namhyung Kim wrote: > > Hello, > > On Mon, Apr 28, 2025 at 06:02:54PM +, T.J. Mercier wrote: > > The closing parentheses around the read syscall is misplaced, causing > > single byte reads from the iterator instead of buf sized reads. While > > the end result is

Re: [PATCH V2 2/2] remoteproc: core: release rproc->clean_table after rproc_attach() fails

2025-04-28 Thread Xiaolei Wang
On 4/26/25 14:53, Xiaolei Wang wrote: When rproc->state = RPROC_DETACHED is attached to remote processor through rproc_attach(), if rproc_handle_resources() returns failure, then the clean table should be released, otherwise the following memory leak will occur. unreferenced object 0x8

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-28 Thread Xiaolei Wang
On 4/29/25 00:49, Mathieu Poirier wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Xiaolei, On Sat, Apr 26, 2025 at 02:53:47PM +0800, Xiaolei Wang wrote: When rproc->

Re: [PATCH bpf-next v1 1/2] ktls, sockmap: Fix missing uncharge operation

2025-04-28 Thread Jiayuan Chen
2025/4/29 08:14, "Cong Wang" wrote: > > On Fri, Apr 25, 2025 at 01:59:57PM +0800, Jiayuan Chen wrote: > > > > > net/tls/tls_sw.c | 7 +++ > > > > 1 file changed, 7 insertions(+) > > > > > > > > diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c > > > > index f3d7d19482da..fc88e34b7f3

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-04-28 Thread Harry Yoo
On Fri, Apr 25, 2025 at 10:27:21AM +0200, Vlastimil Babka wrote: > Specifying a non-zero value for a new struct kmem_cache_args field > sheaf_capacity will setup a caching layer of percpu arrays called > sheaves of given capacity for the created cache. > > Allocations from the cache will allocate

Re: [PATCH 3/3] KVM: riscv: selftests: Add vector extension tests

2025-04-28 Thread Atish Patra
On 4/25/25 7:20 AM, Andrew Jones wrote: On Mon, Mar 24, 2025 at 05:40:31PM -0700, Atish Patra wrote: Add vector related tests with the ISA extension standard template. However, the vector registers are bit tricky as the register length is variable based on vlenb value of the system. That's why

Re: [PATCH bpf-next v1 1/2] ktls, sockmap: Fix missing uncharge operation

2025-04-28 Thread Cong Wang
On Fri, Apr 25, 2025 at 01:59:57PM +0800, Jiayuan Chen wrote: > net/tls/tls_sw.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c > index f3d7d19482da..fc88e34b7f33 100644 > --- a/net/tls/tls_sw.c > +++ b/net/tls/tls_sw.c > @@ -908,6 +908,13 @@ s

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

2025-04-28 Thread Bobby Eshleman
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 used. VMCI and hyperv support is automatically built, though not u

Re: [PATCH v6 0/4] virtio-net: disable delayed refill when pausing rx

2025-04-28 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 25 Apr 2025 14:10:14 +0700 you wrote: > Hi everyone, > > This only includes the selftest for virtio-net deadlock bug. The fix > commit has been applied already. > > Link: > https://lore.kernel.org/virtuali

Re: [PATCH 2/3] KVM: riscv: selftests: Decode stval to identify exact exception type

2025-04-28 Thread Atish Patra
On 4/25/25 6:33 AM, Andrew Jones wrote: On Mon, Mar 24, 2025 at 05:40:30PM -0700, Atish Patra wrote: Currently, the sbi_pmu_test continues if the exception type is illegal instruction because access to hpmcounter will generate that. However, we may get illegal for other reasons as well which s

Re: [PATCH 1/3] KVM: riscv: selftests: Add stval to exception handling

2025-04-28 Thread Atish Patra
On 4/25/25 6:50 AM, Andrew Jones wrote: On Mon, Mar 24, 2025 at 05:40:29PM -0700, Atish Patra wrote: Save stval during exception handling so that it can be decoded to figure out the details of exception type. Signed-off-by: Atish Patra --- tools/testing/selftests/kvm/include/riscv/processo

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Konrad Dybcio
On 4/28/25 9:41 AM, Luca Weiss wrote: > On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >> On 4/25/25 12:44 PM, Luca Weiss wrote: >>> Enable USB audio offloading which allows to play audio via a USB-C >>> headset with lower power consumption and enabling some other features. >>> >>> This

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

2025-04-28 Thread Iuliana Prodan
On 4/28/2025 3:23 PM, Rob Herring wrote: On Fri, Apr 25, 2025 at 6:34 PM Iuliana Prodan wrote: Hello Mathieu, Rob, I've tested imx_dsp_rproc and it fails with: [ 39.743770] Unable to handle kernel paging request at virtual address ffea ... [ 39.805078] Hardware name: NXP i.MX8

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Konrad Dybcio
On 4/28/25 9:41 AM, Luca Weiss wrote: > On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >> On 4/25/25 12:44 PM, Luca Weiss wrote: >>> Enable USB audio offloading which allows to play audio via a USB-C >>> headset with lower power consumption and enabling some other features. >>> >>> This

Re: [PATCH v3] DAX: warn when kmem regions are truncated for memory block alignment.

2025-04-28 Thread Dan Williams
Gregory Price wrote: > Device capacity intended for use as system ram should be aligned to the > architecture-defined memory block size or that capacity will be silently > truncated and capacity stranded. > > As hotplug dax memory becomes more prevelant, the memory block size > alignment becomes m

Re: [PATCH RFC bpf-next 3/4] bpf/selftests: add tests to validate proper arguments alignment on ARM64

2025-04-28 Thread Alexis Lothoré
On Mon Apr 28, 2025 at 6:52 PM CEST, Eduard Zingerman wrote: > Alexis Lothoré writes: > > [...] > >>> The function listened to is defined as accepting 'struct >>> bpf_testmod_struct_arg_7', >>> at the same time this function uses 'struct bpf_testmod_struct_arg_5'. >> >> That's not an accidental m

Re: [PATCH] selftests/bpf: Fix kmem_cache iterator draining

2025-04-28 Thread Namhyung Kim
Hello, On Mon, Apr 28, 2025 at 06:02:54PM +, T.J. Mercier wrote: > The closing parentheses around the read syscall is misplaced, causing > single byte reads from the iterator instead of buf sized reads. While > the end result is the same, many more read calls than necessary are > performed. >

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

2025-04-28 Thread Vishal Annapurve
On Sun, Apr 27, 2025 at 6:08 PM Yan Zhao wrote: > > On Fri, Apr 25, 2025 at 03:45:20PM -0700, Ackerley Tng wrote: > > Yan Zhao writes: > > ... > > > > > > For some memory region, e.g., "pc.ram", it's divided into 2 parts: > > > - one with offset 0, size 0x8000(2G), > > > positioned at GPA 0

Re: [PATCH] selftests/bpf: Fix kmem_cache iterator draining

2025-04-28 Thread Song Liu
On Mon, Apr 28, 2025 at 11:03 AM T.J. Mercier wrote: > > The closing parentheses around the read syscall is misplaced, causing > single byte reads from the iterator instead of buf sized reads. While > the end result is the same, many more read calls than necessary are > performed. > > $ tools/test

[PATCH] selftests/bpf: Fix kmem_cache iterator draining

2025-04-28 Thread T.J. Mercier
The closing parentheses around the read syscall is misplaced, causing single byte reads from the iterator instead of buf sized reads. While the end result is the same, many more read calls than necessary are performed. $ tools/testing/selftests/bpf/vmtest.sh "./test_progs -t kmem_cache_iter" 145/

Re: [PATCH 4/4] clk: qcom: gpucc-sm6350: Add *_wait_val values for GDSCs

2025-04-28 Thread Taniya Das
On 4/25/2025 5:42 PM, Luca Weiss wrote: > Compared to the msm-4.19 driver the mainline GDSC driver always sets the > bits for en_rest, en_few & clk_dis, and if those values are not set > per-GDSC in the respective driver then the default value from the GDSC > driver is used. The downstream drive

Re: [PATCH 2/4] clk: qcom: dispcc-sm6350: Add *_wait_val values for GDSCs

2025-04-28 Thread Taniya Das
On 4/25/2025 5:42 PM, Luca Weiss wrote: > Compared to the msm-4.19 driver the mainline GDSC driver always sets the > bits for en_rest, en_few & clk_dis, and if those values are not set > per-GDSC in the respective driver then the default value from the GDSC > driver is used. The downstream drive

Re: [PATCH 1/4] clk: qcom: camcc-sm6350: Add *_wait_val values for GDSCs

2025-04-28 Thread Taniya Das
On 4/25/2025 5:42 PM, Luca Weiss wrote: > Compared to the msm-4.19 driver the mainline GDSC driver always sets the > bits for en_rest, en_few & clk_dis, and if those values are not set > per-GDSC in the respective driver then the default value from the GDSC > driver is used. The downstream drive

Re: [PATCH 2/2] selftests/mm: Fix a build failure on powerpc

2025-04-28 Thread Donet Tom
On 4/28/25 6:49 PM, Nysal Jan K.A. wrote: The compiler is unaware of the size of code generated by the ".rept" assembler directive. This results in the compiler emitting branch instructions where the offset to branch to exceeds the maximum allowed value, resulting in build failures like the fol

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

2025-04-28 Thread Hiago De Franco
On Sat, Apr 26, 2025 at 09:49:58PM +0800, Peng Fan wrote: > On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: > >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

Re: [PATCH RFC bpf-next 3/4] bpf/selftests: add tests to validate proper arguments alignment on ARM64

2025-04-28 Thread Eduard Zingerman
Alexis Lothoré writes: [...] >> The function listened to is defined as accepting 'struct >> bpf_testmod_struct_arg_7', >> at the same time this function uses 'struct bpf_testmod_struct_arg_5'. > > That's not an accidental mistake, those are in fact the same definition. > bpf_testmod_struct_arg_

Re: [PATCH 2/2] selftests/mm: Fix a build failure on powerpc

2025-04-28 Thread Venkat Rao Bagalkote
On 28/04/25 6:49 pm, Nysal Jan K.A. wrote: The compiler is unaware of the size of code generated by the ".rept" assembler directive. This results in the compiler emitting branch instructions where the offset to branch to exceeds the maximum allowed value, resulting in build failures like the fo

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-28 Thread Mathieu Poirier
Hi Xiaolei, On Sat, Apr 26, 2025 at 02:53:47PM +0800, Xiaolei Wang wrote: > When rproc->state = RPROC_DETACHED and rproc_attach() is used > to attach to the remote processor, if rproc_handle_resources() > returns a failure, the resources allocated by rproc_prepare_device() > should be released, ot

Re: [PATCH 1/2] selftests/mm: Fix build break when compiling pkey_util.c

2025-04-28 Thread Venkat Rao Bagalkote
On 28/04/25 6:49 pm, Nysal Jan K.A. wrote: From: Madhavan Srinivasan Commit 50910acd6f615 ("selftests/mm: use sys_pkey helpers consistently") added a pkey_util.c to refactor some of the protection_keys functions accessible by other tests. But this broken the build in powerpc in two ways, pke

Re: [PATCH v1 0/7] Add generated modalias to modules.builtin.modinfo

2025-04-28 Thread Alexey Gladkov
On Mon, Apr 28, 2025 at 03:47:06PM +0200, Petr Pavlu wrote: > On 4/26/25 18:16, Alexey Gladkov wrote: > > The modules.builtin.modinfo file is used by userspace (kmod to be specific) > > to > > get information about builtin modules. Among other information about the > > module, > > information abo

Re: [PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-04-28 Thread Joel Fernandes
On 4/28/2025 6:59 AM, Z qiang wrote: >> >> Le Mon, Apr 28, 2025 at 05:54:03PM +0800, Zqiang a écrit : >>> For Preempt-RT kernel, when enable CONFIG_PROVE_RCU Kconfig, >>> disable local bh in rcuc kthreads will not affect preempt_count(), >>> this resulted in the following splat: >>> >>> WARNING:

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

2025-04-28 Thread Hiago De Franco
On Sun, Apr 27, 2025 at 10:08:25AM +0800, Peng Fan wrote: > On Sat, Apr 26, 2025 at 03:47:50PM -0600, Mathieu Poirier wrote: > >On Sat, 26 Apr 2025 at 06:41, Peng Fan wrote: > >> > >> On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: > >> >Hi Mathieu, > >> > > >> >On Wed, Apr 23, 20

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

2025-04-28 Thread Stefano Garzarella
On Thu, Apr 24, 2025 at 01:24:59PM +0200, Michal Luczaj wrote: On 4/24/25 10:36, Stefano Garzarella wrote: On Thu, 24 Apr 2025 at 09:53, Michal Luczaj wrote: On 4/24/25 09:28, Stefano Garzarella wrote: [...] You're right, it was me who was confused. VMCI and Hyper-V have their own vsock_tr

Re: [PATCH v1 0/7] Add generated modalias to modules.builtin.modinfo

2025-04-28 Thread Petr Pavlu
On 4/26/25 18:16, Alexey Gladkov wrote: > The modules.builtin.modinfo file is used by userspace (kmod to be specific) to > get information about builtin modules. Among other information about the > module, > information about module aliases is stored. This is very important to > determine > that

[PATCH 2/2] selftests/mm: Fix a build failure on powerpc

2025-04-28 Thread Nysal Jan K.A.
The compiler is unaware of the size of code generated by the ".rept" assembler directive. This results in the compiler emitting branch instructions where the offset to branch to exceeds the maximum allowed value, resulting in build failures like the following: CC protection_keys /tmp/ccy

[PATCH 1/2] selftests/mm: Fix build break when compiling pkey_util.c

2025-04-28 Thread Nysal Jan K.A.
From: Madhavan Srinivasan Commit 50910acd6f615 ("selftests/mm: use sys_pkey helpers consistently") added a pkey_util.c to refactor some of the protection_keys functions accessible by other tests. But this broken the build in powerpc in two ways, pkey-powerpc.h: In function ‘arch_is_powervm’: pke

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/sys/wait.h | 12

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

2025-04-28 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 v2 12/15] tools/nolibc: add namespace functionality

2025-04-28 Thread Thomas Weißschuh
This is used in various selftests and will be handy when integrating those with nolibc. Not all configurations support namespaces, so skip the tests where necessary. Also if the tests are running without privileges. Enable the namespace configuration for those architectures where it is not enable

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/stdio.h

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/time.h | 7 +++ tools/testing/selftests/nolibc/nolibc-test.c | 12 2 files changed, 19 inse

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys/timerfd.h

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/time.h | 86 tools/include/nolibc/types.h | 1 + tools/testing/

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys/random.h

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/time.h | 92 tools/include/nolibc/types.h | 2 + tools/testing/

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/math.h | 31 tools/include/

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/unistd.h| 28 tools/testing/selftests/nolibc/nolibc-test.c | 2 ++ 2 files chang

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/sys/mman.h | 19 +++ tools/testing/selftests/nolibc/nolibc-test.c | 14 +++--- 2 files ch

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/sys/stat.h | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/incl

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/stdio.h | 7 +++ tools

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

2025-04-28 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 Acked-by: Willy Tarreau --- tools/include/nolibc/string.h| 20 tools/testing/selftests/nolibc/nolibc-test.c | 3 +++ 2 files changed, 23

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

2025-04-28 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 --- Changes in v2: - Rebase onto latest nolibc

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

2025-04-28 Thread Rob Herring
On Fri, Apr 25, 2025 at 6:34 PM Iuliana Prodan wrote: > > Hello Mathieu, Rob, > > I've tested imx_dsp_rproc and it fails with: > > [ 39.743770] Unable to handle kernel paging request at virtual address > ffea > ... > [ 39.805078] Hardware name: NXP i.MX8MPlus EVK board (DT) > [ 3

Re: [PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-04-28 Thread Z qiang
> > Le Mon, Apr 28, 2025 at 05:54:03PM +0800, Zqiang a écrit : > > For Preempt-RT kernel, when enable CONFIG_PROVE_RCU Kconfig, > > disable local bh in rcuc kthreads will not affect preempt_count(), > > this resulted in the following splat: > > > > WARNING: suspicious RCU usage > > kernel/rcu/tree_

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

2025-04-28 Thread Thomas Weißschuh
On Sat, Apr 26, 2025 at 12:45:20PM +0200, Willy Tarreau wrote: > On Wed, Apr 23, 2025 at 05:01:41PM +0200, Thomas Weißschuh wrote: > > This is used in various selftests and will be handy when integrating > > those with nolibc. > > > > Signed-off-by: Thomas Weißschuh > > --- > > tools/include/nol

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

2025-04-28 Thread Thomas Weißschuh
On Sat, Apr 26, 2025 at 12:31:58PM +0200, Willy Tarreau wrote: > Hi Thomas, > > On Wed, Apr 23, 2025 at 05:01:35PM +0200, Thomas Weißschuh wrote: > > --- /dev/null > > +++ b/tools/include/nolibc/sys/random.h > > @@ -0,0 +1,32 @@ > > +/* SPDX-License-Identifier: LGPL-2.1 OR MIT */ > > +/* > > + * r

Re: [PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-04-28 Thread Frederic Weisbecker
Le Mon, Apr 28, 2025 at 05:54:03PM +0800, Zqiang a écrit : > For Preempt-RT kernel, when enable CONFIG_PROVE_RCU Kconfig, > disable local bh in rcuc kthreads will not affect preempt_count(), > this resulted in the following splat: > > WARNING: suspicious RCU usage > kernel/rcu/tree_plugin.h:36 Uns

Re: [PATCH RFC bpf-next 3/4] bpf/selftests: add tests to validate proper arguments alignment on ARM64

2025-04-28 Thread Alexis Lothoré
Hello Eduard, On Mon Apr 28, 2025 at 9:01 AM CEST, Eduard Zingerman wrote: > On Fri, 2025-04-11 at 22:32 +0200, Alexis Lothoré (eBPF Foundation) wrote: >> When dealing with large types (>8 bytes), ARM64 trampolines need to take >> extra care about the arguments alignment to respect the calling >>

[PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-04-28 Thread Zqiang
For Preempt-RT kernel, when enable CONFIG_PROVE_RCU Kconfig, disable local bh in rcuc kthreads will not affect preempt_count(), this resulted in the following splat: WARNING: suspicious RCU usage kernel/rcu/tree_plugin.h:36 Unsafe read of RCU_NOCB offloaded state! stack backtrace: CPU: 0 UID: 0 PI

Re: [PATCH 3/6] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card

2025-04-28 Thread Krzysztof Kozlowski
On Fri, Apr 25, 2025 at 12:44:53PM GMT, Luca Weiss wrote: > Document the bindings for the sound card on Fairphone 4 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

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

2025-04-28 Thread Arnaud POULIQUEN
On 4/23/25 21:42, Rob Herring (Arm) wrote: > While there's a common function to parse "memory-region" properties for > DMA pool regions, there's not anything for driver private regions. As a > result, drivers have resorted to parsing "memory-region" properties > themselves repeating the same pat

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

2025-04-28 Thread Arnaud POULIQUEN
Hello Rob, On 4/23/25 21:42, Rob Herring (Arm) wrote: > 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 s

[PATCH] dt-bindings: remoteproc: qcom,sm8150-pas: Add missing SC8180X compatible

2025-04-28 Thread Krzysztof Kozlowski
Commit 4b4ab93ddc5f ("dt-bindings: remoteproc: Consolidate SC8180X and SM8150 PAS files") moved SC8180X bindings from separate file into this one, but it forgot to add actual compatibles in top-level properties section making the entire binding un-selectable (no-op) for SC8180X PAS. Fixes: 4b4ab93

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

2025-04-28 Thread Krzysztof Kozlowski
On Wed, Apr 23, 2025 at 05:17:38PM GMT, Lijuan Gao wrote: > 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 + Acked-by: Krzysztof Kozlowski Best regards, Krzyszt

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

2025-04-28 Thread Krzysztof Kozlowski
On Wed, Apr 23, 2025 at 05:17:37PM GMT, Lijuan Gao wrote: > >reg: > maxItems: 1 > @@ -59,16 +68,17 @@ allOf: >- if: >properties: > compatible: > - enum: > -- qcom,sc8180x-adsp-pas > -- qcom,sc8180x-cdsp-pas > -- qcom,sc818

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Luca Weiss
On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: > On 4/25/25 12:44 PM, Luca Weiss wrote: >> Enable USB audio offloading which allows to play audio via a USB-C >> headset with lower power consumption and enabling some other features. >> >> This can be used like the following: >> >> $

Re: [PATCH 1/6] dt-bindings: usb: dwc3: Document usb-soc-be property

2025-04-28 Thread Luca Weiss
On Fri Apr 25, 2025 at 11:39 PM CEST, Wesley Cheng wrote: > > > On 4/25/2025 3:44 AM, Luca Weiss wrote: >> The property usb-soc-be is used by the new SoC USB layer which is used >> for USB audio offloading on Qualcomm SoCs. > > Hi Luca, > > This property can be dropped now, as in the latest revisio

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

2025-04-28 Thread Eduard Zingerman
On Fri, 2025-04-25 at 17:23 +0800, Xu Kuohai wrote: [...] > For the two questions you mentioned, I’m not sure if we can access DWARF > attributes > at runtime. As for adding parameter locations to BTF at building time, I > think it > means we would need to record CPU-related register info in BT

Re: [PATCH v4 9/9] mm, slub: skip percpu sheaves for remote object freeing

2025-04-28 Thread Vlastimil Babka
On 4/25/25 19:35, Christoph Lameter (Ampere) wrote: > On Fri, 25 Apr 2025, Vlastimil Babka wrote: > >> @@ -5924,8 +5948,15 @@ void slab_free(struct kmem_cache *s, struct slab >> *slab, void *object, >> if (unlikely(!slab_free_hook(s, object, slab_want_init_on_free(s), >> false))) >>

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-04-28 Thread Vlastimil Babka
On 4/25/25 19:31, Christoph Lameter (Ampere) wrote: > On Fri, 25 Apr 2025, Vlastimil Babka wrote: > >> @@ -4195,7 +4793,11 @@ static __fastpath_inline void *slab_alloc_node(struct >> kmem_cache *s, struct list >> if (unlikely(object)) >> goto out; >> >> -object = __slab_allo

Re: [PATCH RFC bpf-next 3/4] bpf/selftests: add tests to validate proper arguments alignment on ARM64

2025-04-28 Thread Eduard Zingerman
On Fri, 2025-04-11 at 22:32 +0200, Alexis Lothoré (eBPF Foundation) wrote: > When dealing with large types (>8 bytes), ARM64 trampolines need to take > extra care about the arguments alignment to respect the calling > convention set by AAPCS64. > > Add two tests ensuring that the BPF trampoline ar