[PATCH 3/3] selftests/bpf: Define SYS_PREFIX for powerpc

2024-11-03 Thread Saket Kumar Bhaskar
SYS_PREFIX was missing for a powerpc, which made a kprobe test to sys_prctl fail. Add missing SYS_PREFIX for powerpc. Fixes: 7e92e01b7245 ("powerpc: Provide syscall wrapper") Fixes: 94746890202c ("powerpc: Don't add __powerpc_ prefix to syscall entry points") Signed-off-by: Saket Kumar Bhaskar

[PATCH 1/3] libbpf: Fix accessing the syscall argument on powerpc

2024-11-03 Thread Saket Kumar Bhaskar
Since commit 7e92e01b7245 ("powerpc: Provide syscall wrapper"), powerpc selects ARCH_HAS_SYSCALL_WRAPPER so let's use the generic implementation of PT_REGS_SYSCALL_REGS(). Also, allow overriding PT_REGS_PARM1{_CORE}_SYSCALL for powerpc as powerpc needs orig_gpr3, similar to s390 and arm64. Signed

[PATCH 2/3] libbpf: Remove powerpc prefix from syscall function names

2024-11-03 Thread Saket Kumar Bhaskar
Since commit 94746890202cf ("powerpc: Don't add __powerpc_ prefix to syscall entry points") drops _powerpc prefix to syscall entry points, even though powerpc now supports syscall wrapper, so /proc/kallsyms have symbols for syscall entry without powerpc prefix(sys_*). For this reason, arch specifi

[PATCH 0/3] Fix test_bpf_syscall_macro selftest on powerpc

2024-11-03 Thread Saket Kumar Bhaskar
Since, syscall wrapper is supported on powerpc with syscall entry symbols as sys_*, changes done to fix selftests like test_bpf_syscall_macro, attach_probe/auto, etc. Saket Kumar Bhaskar (3): libbpf: Fix accessing the syscall argument on powerpc libbpf: Remove powerpc prefix from syscall func

Re: [PATCH net-next] selftests/tc-testing: add tests for qdisc_tree_reduce_backlog

2024-11-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 1 Nov 2024 11:31:48 -0300 you wrote: > Add 3 tests to check for the expected behaviour of > qdisc_tree_reduce_backlog in special scenarios. > > - The first test checks if the qdisc class is notified of delet

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

2024-11-03 Thread Aren
On Sun, Nov 03, 2024 at 11:22:08AM +, Jonathan Cameron wrote: > Hi Aren, > > > @@ -624,7 +640,7 @@ static int stk3310_probe(struct i2c_client *client) > > device_property_read_u32(&client->dev, "proximity-near-level", > > &data->ps_near_level); > > > > - mu

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

2024-11-03 Thread Aren
On Sun, Nov 03, 2024 at 11:31:03AM +, Jonathan Cameron wrote: > On Sat, 2 Nov 2024 15:50:39 -0400 > Aren Moynihan wrote: > > > The vdd and leda supplies must be powered on for the chip to function > > and can be powered off during system suspend. > > > > This was originally based on a patch

Re: [PATCH v4 2/3] rust: macros: add macro to easily run KUnit tests

2024-11-03 Thread Miguel Ojeda
On Sat, Nov 2, 2024 at 1:08 AM Boqun Feng wrote: > > Hmm.. so I think clippy won't warn for a normal Rust #[test] function: > > https://github.com/rust-lang/rust-clippy/pull/7811 That is a very good point. It is a bit surprising that those details are not documented, but we could mimic th

Re: [PATCH net-next v1 2/7] net: page_pool: create page_pool_alloc_netmem

2024-11-03 Thread Yunsheng Lin
On 11/1/2024 9:10 PM, Mina Almasry wrote: ... Isn't it a little odd that old and new are not following the same pattern? Hi Yunsheng, The intention is that page_pool_alloc_pages is mirrored by page_pool_alloc_netmems. And page_pool_alloc is mirrored by page_pool_alloc_netmem. From your d

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

2024-11-03 Thread Jonathan Cameron
On Sat, 2 Nov 2024 15:50:39 -0400 Aren Moynihan wrote: > The vdd and leda supplies must be powered on for the chip to function > and can be powered off during system suspend. > > This was originally based on a patch by Ondrej Jirman[1], but has been > rewritten since. > > 1: > https://codeber

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

2024-11-03 Thread Jonathan Cameron
Hi Aren, > @@ -624,7 +640,7 @@ static int stk3310_probe(struct i2c_client *client) > device_property_read_u32(&client->dev, "proximity-near-level", >&data->ps_near_level); > > - mutex_init(&data->lock); > + devm_mutex_init(&client->dev, &data->lock);