[Bug Report] Wrong value of __NR_userfaultfd in asm-generic/unistd.h

2024-10-20 Thread Muhammad Usama Anjum
Hi, The asm-generic/unistd.h file has wrong __NR_userfaultfd syscall number which doesn't even depend on the architecture. This has caused failure of a selftest which was fixed recently [1]. grep -rnIF "#define __NR_userfaultfd" tools/include/uapi/asm-generic/unistd.h:681:#define __NR_userfaultf

Re: [PATCH] next: use new shared modules tree

2024-10-20 Thread Luis Chamberlain
On Sun, Oct 20, 2024 at 09:59:49PM +1100, Stephen Rothwell wrote: > Hi, > > On Sat, 19 Oct 2024 14:21:00 -0700 Luis Chamberlain wrote: > > > > Use the new shared modules tree as we have more than one > > modules maintainer now. > > > > git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.

[PATCH v2 04/13] media: i2c: imx214: Convert to CCI register access helpers

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Use the new common CCI register access helpers to replace the private register access helpers in the imx214 driver. This simplifies the driver by reducing the amount of code. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/Kconfig | 1 + d

[PATCH v2 06/13] media: i2c: imx214: Drop IMX214_REG_EXPOSURE from mode reg arrays

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch The IMX214_REG_EXPOSURE is configured twice, once with a hardcoded value in the mode_ registers arrays, and once via v4l2_ctrl_ops. The latter is enough, drop the former. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 2 -- 1 file

[PATCH v2 09/13] media: i2c: imx214: Extract format and crop settings

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Remove format and crop settings from register sequences and set them programmatically. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 129 ++--- 1 file changed, 97 insertions(+), 32 deletions(-) diff --git a/drivers/

[PATCH v2 03/13] media: i2c: imx214: Simplify with dev_err_probe()

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Error handling in probe() can be a bit simpler with dev_err_probe(). Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 52 -- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a

[PATCH v2 02/13] media: i2c: imx214: Use subdev active state

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Port the imx214 sensor driver to use the subdev active state. Move all the format configuration to the subdevice state and simplify the format handling, locking and initialization. While at it, simplify imx214_start_streaming() by removing unneeded goto statements and the c

[PATCH v2 13/13] media: i2c: imx214: Add test pattern control

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch This adds V4L2_CID_TEST_PATTERN control support. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 77 -- 1 file changed, 75 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/im

[PATCH v2 10/13] media: i2c: imx214: Implement vflip/hflip controls

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch The imx214 sensor supports horizontal and vertical flipping. Add appropriate controls to the driver. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 69 -- 1 file changed, 61 insertions(+), 8 deletions(-) diff --g

[PATCH v2 01/13] media: i2c: imx214: Fix link frequency

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch The driver defines IMX214_DEFAULT_LINK_FREQ 48000, and then IMX214_DEFAULT_PIXEL_RATE ((IMX214_DEFAULT_LINK_FREQ * 8LL) / 10), which works out as 384MPix/s. (The 8 is 4 lanes and DDR.) Parsing the PLL registers with the defined 24MHz input. We're in single PLL mode, so M

[PATCH v2 00/13] media: i2c: imx214: Miscellaneous cleanups and improvements

2024-10-20 Thread André Apitzsch via B4 Relay
This patch series is a collection of miscellaneous cleanups and improvements to the imx214 driver. The series converts the driver to the CCI helpers and adds controls needed to make the driver work with libcamera. The changes are inspired by the imx219 driver. Signed-off-by: André Apitzsch ---

[PATCH v2 05/13] media: i2c: imx214: Replace register addresses with macros

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Define macros for all the known registers used in the register arrays, and use them to replace the numerical addresses. This improves readability. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 407 ++--

[PATCH v2 12/13] media: i2c: imx214: Verify chip ID

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Check the chip ID and stop probing if it is no imx214 sensor. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/media/i2c/imx214.c b/drivers/med

[PATCH v2 07/13] media: i2c: imx214: Check number of lanes from device tree

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch The imx214 camera is capable of either two-lane or four-lane operation. Currently only the four-lane mode is supported, as proper pixel rates and link frequences for the two-lane mode are unknown. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 26 +

[PATCH v2 08/13] media: i2c: imx214: Add vblank and hblank controls

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch Add vblank control to allow changing the framerate / higher exposure values. The vblank and hblank controls are needed for libcamera support. While at it, fix the minimal exposure time according to the datasheet. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214

[PATCH v2 11/13] media: i2c: imx214: Add analogue/digital gain control

2024-10-20 Thread André Apitzsch via B4 Relay
From: André Apitzsch The imx214 sensor supports analogue gain up to 8x and digital gain up to 16x. Implement the corresponding controls in the driver. Default gain values are not modified by this patch. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 5

Re: [PATCH] rcu/nocb: Fix the WARN_ON_ONCE() in rcu_nocb_rdp_deoffload()

2024-10-20 Thread Frederic Weisbecker
Le Sun, Oct 20, 2024 at 08:51:19PM +0800, Zqiang a écrit : > Currently, running rcutorture test with torture_type=rcu fwd_progress=8 > n_barrier_cbs=8 nocbs_nthreads=8 nocbs_toggle=100 onoff_interval=60 > test_boost=2, will trigger the following warning: > > WARNING: CPU: 19 PID: 100 at kernel/rcu

Re: [PATCH] rcu/nocb: Fix the WARN_ON_ONCE() in rcu_nocb_rdp_deoffload()

2024-10-20 Thread Z qiang
> > Le Sun, Oct 20, 2024 at 08:51:19PM +0800, Zqiang a écrit : > > Currently, running rcutorture test with torture_type=rcu fwd_progress=8 > > n_barrier_cbs=8 nocbs_nthreads=8 nocbs_toggle=100 onoff_interval=60 > > test_boost=2, will trigger the following warning: > > > > WARNING: CPU: 19 PID: 100

Re: [PATCH] next: use new shared modules tree

2024-10-20 Thread Stephen Rothwell
Hi, On Sat, 19 Oct 2024 14:21:00 -0700 Luis Chamberlain wrote: > > Use the new shared modules tree as we have more than one > modules maintainer now. > > git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git > > Signed-off-by: Luis Chamberlain > --- > Next/Trees | 2 +- > 1 file cha

Re: [PATCH v3 02/11] iommufd: Rename _iommufd_object_alloc to iommufd_object_alloc_elm

2024-10-20 Thread Alexey Kardashevskiy
On 18/10/24 02:37, Jason Gunthorpe wrote: On Thu, Oct 17, 2024 at 11:14:16AM -0300, Jason Gunthorpe wrote: On Wed, Oct 09, 2024 at 09:38:02AM -0700, Nicolin Chen wrote: @@ -217,12 +217,12 @@ iommufd_object_put_and_try_destroy(struct iommufd_ctx *ictx, iommufd_object_remove(ictx, obj,

[PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false()

2024-10-20 Thread Thorsten Blum
Replace the custom BOOL_TO_STR() macro with the str_true_false() helper function and remove the macro. Signed-off-by: Thorsten Blum --- net/ieee802154/trace.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/ieee802154/trace.h b/net/ieee802154/trace.h index 591ce0a16

Re: [PATCH] next: use new shared modules tree

2024-10-20 Thread Stephen Rothwell
Hi Luis, On Sun, 20 Oct 2024 10:28:20 -0700 Luis Chamberlain wrote: > > Yes please add: petr.pa...@suse.com, samitolva...@google.com, > da.go...@samsung.com Done. -- Cheers, Stephen Rothwell pgpkuoe4gO9RM.pgp Description: OpenPGP digital signature

[PATCH] rcu/nocb: Fix the WARN_ON_ONCE() in rcu_nocb_rdp_deoffload()

2024-10-20 Thread Zqiang
Currently, running rcutorture test with torture_type=rcu fwd_progress=8 n_barrier_cbs=8 nocbs_nthreads=8 nocbs_toggle=100 onoff_interval=60 test_boost=2, will trigger the following warning: WARNING: CPU: 19 PID: 100 at kernel/rcu/tree_nocb.h:1061 rcu_nocb_rdp_deoffload+0x292/0x2a0 RIP: 0010:rcu_n

[PATCH bpf-next v2 6/6] selftests/bpf: remove test_tcp_check_syncookie

2024-10-20 Thread eBPF Foundation
Now that btf_skc_cls_ingress has the same coverage as test_tcp_check_syncookie, remove the second one and keep the first one as it is integrated in test_progs Signed-off-by: Alexis Lothoré (eBPF Foundation) --- tools/testing/selftests/bpf/.gitignore | 1 - tools/testing/selftests/b

[PATCH bpf-next v2 5/6] selftests/bpf: test MSS value returned with bpf_tcp_gen_syncookie

2024-10-20 Thread eBPF Foundation
One remaining difference between test_tcp_check_syncookie.sh and btf_skc_cls_ingress is a small test on the mss value embedded in the cookie generated with the eBPF helper. Bring the corresponding test in btf_skc_cls_ingress. Signed-off-by: Alexis Lothoré (eBPF Foundation) --- tools/testing/sel

[PATCH bpf-next v2 1/6] selftests/bpf: factorize conn and syncookies tests in a single runner

2024-10-20 Thread eBPF Foundation
btf_skc_cls_ingress currently describe two tests, both running a simple tcp server and then initializing a connection to it. The sole difference between the tests is about the tcp_syncookie configuration, and some checks around this feature being enabled/disabled. Share the common code between tho

[PATCH bpf-next v2 4/6] selftests/bpf: add ipv4 and dual ipv4/ipv6 support in btf_skc_cls_ingress

2024-10-20 Thread eBPF Foundation
btf_skc_cls_ingress test currently checks that syncookie and bpf_sk_assign/release helpers behave correctly in multiple scenarios, but only with ipv4 socket. Increase those helpers coverage by adding testing support for IPv6-only sockets and IPv4/IPv6 sockets. The rework is mostly based on feature

[PATCH bpf-next v2 3/6] selftests/bpf: get rid of global vars in btf_skc_cls_ingress

2024-10-20 Thread eBPF Foundation
There are a few global variables in btf_skc_cls_ingress.c, which are not really used by different tests. Get rid of those global variables, by performing the following updates: - make srv_sa6 local to the main runner function - make skel local to the main function, and propagate it through functi

[PATCH bpf-next v2 2/6] selftests/bpf: add missing ns cleanups in btf_skc_cls_ingress

2024-10-20 Thread eBPF Foundation
btf_skc_cls_ingress.c currently runs two subtests, and create a dedicated network namespace for each, but never cleans up the created namespace once the test has ended. Add missing namespace cleanup after each subtest to avoid accumulating namespaces for each new subtest. While at it, switch names

[PATCH bpf-next v2 0/6] selftests/bpf: integrate test_tcp_check_syncookie.sh into test_progs

2024-10-20 Thread eBPF Foundation
Hello, this series aims to bring test_tcp_check_syncookie.sh scope into test_progs to make sure that the corresponding tests are also run automatically in CI. This script tests for bpf_tcp_{gen,check}_syncookie and bpf_skc_lookup_tcp, in different contexts (ipv4, v6 or dual, and with tc and xdp pro

[PATCH v2 1/2] selftest: rtc: Add to check rtc alarm status for alarm related test

2024-10-20 Thread Joseph Jang
In alarm_wkalm_set and alarm_wkalm_set_minute test, they use different ioctl (RTC_ALM_SET/RTC_WKALM_SET) for alarm feature detection. They will skip testing if RTC_ALM_SET/RTC_WKALM_SET ioctl returns an EINVAL error code. This design may miss detecting real problems when the efi.set_wakeup_time() r