[PATCH v2 15/15] selftests/futex: Remove logging.h file

2025-07-20 Thread André Almeida
Every futex selftest uses the kselftest_harness.h helper and don't need the logging.h file. Delete it. Signed-off-by: André Almeida --- tools/testing/selftests/futex/functional/Makefile | 3 +- tools/testing/selftests/futex/include/logging.h | 148 -- 2 files chang

[PATCH v2 14/15] selftests/futex: Drop logging.h include from futex_numa

2025-07-20 Thread André Almeida
futex_numa doesn't really use logging.h helpers, it's only need two includes from this file. So drop it and include the two missing includes. Signed-off-by: André Almeida --- tools/testing/selftests/futex/functional/futex_numa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH v2 13/15] selftests/futex: Refactor futex_numa_mpol with kselftest_harness.h

2025-07-20 Thread André Almeida
s the "Memory out of range" subtest fail, because the test address falls inside the first mmap() region, thus being a valid address. Create a "buffer zone" with mmap(PROT_NONE) to make sure there's invalid memory between the two mmaps and munmap() them by the end of the test.

[PATCH v2 12/15] selftests/futex: Refactor futex_priv_hash with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_priv_hash test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_priv_hash.c | 49 -- tools/testing/selftests/futex/functional/r

[PATCH v2 11/15] selftests/futex: Refactor futex_waitv with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_waitv test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_waitv.c | 98 ++ tools/testing/selftests/futex/functional/run.sh

[PATCH v2 10/15] selftests/futex: Refactor futex_requeue with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_requeue.c | 76 +++--- tools/testing/selftests/futex/functional/run.sh

[PATCH v2 09/15] selftests/futex: Refactor futex_wait with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_wait.c| 103 - tools/testing/selftests/futex/functional/run.sh

[PATCH v2 08/15] selftests/futex: Refactor futex_wait_private_mapped_file with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_private_mapped_file test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_wait_private_mapped_file.c| 83 ++ tools/testing/selftests/

[PATCH v2 07/15] selftests/futex: Refactor futex_wait_unitialized_heap with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_unitialized_heap test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_wait_uninitialized_heap.c | 76 +- tools/testing/selftests/futex/funct

[PATCH v2 06/15] selftests/futex: Refactor futex_wait_wouldblock with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_wouldblock test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_wouldblock.c | 75 +++--- tools/testing/selftests/futex/functional/r

[PATCH v2 04/15] selftests/futex: Refactor futex_requeue_pi_signal_restart with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue_pi_signal_restart test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_requeue_pi_signal_restart.c | 129 ++--- tools/testing/selftests/

[PATCH v2 05/15] selftests/futex: Refactor futex_wait_timeout with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_timeout test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_timeout.c | 139 + tools/testing/selftests/futex/functional/r

[PATCH v2 03/15] selftests/futex: Refactor futex_requeue_pi_mismatched_ops with kselftest_harness.h

2025-07-20 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue_pi_mismatched_ops test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_requeue_pi_mismatched_ops.c | 80 +- tools/testing/selftests/

[PATCH v2 02/15] selftests/futex: Refactor futex_requeue_pi with kselftest_harness.h

2025-07-20 Thread André Almeida
ff-by: André Almeida --- .../selftests/futex/functional/futex_requeue_pi.c | 261 ++--- tools/testing/selftests/futex/functional/run.sh| 26 +- 2 files changed, 122 insertions(+), 165 deletions(-) diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/

[PATCH v2 01/15] selftests: kselftest: Create ksft_print_dbg_msg()

2025-07-20 Thread André Almeida
Create ksft_print_dbg_msg() so testers can enable extra debug messages when running a test with the flag -d. Signed-off-by: André Almeida --- tools/testing/selftests/kselftest.h | 14 ++ tools/testing/selftests/kselftest_harness.h | 13 + 2 files changed, 23

[PATCH v2 00/15] selftests/futex: Refactor tests to use kselftest_harness.h

2025-07-20 Thread André Almeida
er zone" with mmap(PROT_NONE) between both mmaps. I have compared the results of run.sh before and after this patchset and didn't find any regression from the test results. Thanks, André [1] https://lore.kernel.org/lkml/87ecv6p364.ffs@tglx/ --- Changes in v2: - Rebased on

[PATCH 1/2] dt-bindings: input: syna,rmi4: Document F1A function

2025-07-07 Thread André Apitzsch via B4 Relay
From: André Apitzsch In some configurations the touch controller can support touch keys. Document the linux,keycodes property that enables those keys and specifies the keycodes that should be used to report the key events. Signed-off-by: André Apitzsch --- .../devicetree/bindings/input/syna

[PATCH 2/2] Input: synaptics-rmi4 - add support for F1A

2025-07-07 Thread André Apitzsch via B4 Relay
From: André Apitzsch RMI4 F1A implements capacitive keys. Add support for touch keys found in some Synaptics touch controller configurations. Signed-off-by: André Apitzsch --- drivers/input/rmi4/Kconfig | 7 ++ drivers/input/rmi4/Makefile | 1 + drivers/input/rmi4/rmi_bus.c

[PATCH 0/2] Input: synaptics-rmi4 - support capacitive keys

2025-07-07 Thread André Apitzsch via B4 Relay
Add support for touch keys found in some Synaptics touch controller configurations. Signed-off-by: André Apitzsch --- André Apitzsch (2): dt-bindings: input: syna,rmi4: Document F1A function Input: synaptics-rmi4 - add support for F1A .../devicetree/bindings/input/syna,rmi4.yaml

Re: [PATCH v4] selftests/futex: Convert 32bit timespec struct to 64bit version for 32bit compatibility mode

2025-07-04 Thread André Almeida
Hi Terry Em 04/07/2025 07:35, Terry Tritton escreveu: sys_futex_wait() can not accept old_timespec32 struct, so userspace should convert it from 32bit to 64bit before syscall to support 32bit compatible mode. This fix is based off [1] Link: https://lore.kernel.org/all/20231203235117.29677-1-we

Re: [PATCH v2] selftests/futex: Add futex_numa to .gitignore

2025-07-04 Thread André Almeida
Em 04/07/2025 07:37, Terry Tritton escreveu: futex_numa was never added to the .gitignore file. Add it. Fixes: 9140f57c1c13 ("futex,selftests: Add another FUTEX2_NUMA selftest") Signed-off-by: Terry Tritton Reviewed-by: André Almeida

[PATCH 15/15] selftests/futex: Remove logging.h file

2025-07-04 Thread André Almeida
Every futex selftest uses the kselftest_harness.h helper and don't need the logging.h file. Delete it. Signed-off-by: André Almeida --- tools/testing/selftests/futex/functional/Makefile | 3 +- tools/testing/selftests/futex/include/logging.h | 148 -- 2 files chang

[PATCH 14/15] selftests/futex: Drop logging.h include from futex_numa

2025-07-04 Thread André Almeida
futex_numa doesn't really use logging.h helpers, it's only need two includes from this file. So drop it and include the two missing includes. Signed-off-by: André Almeida --- tools/testing/selftests/futex/functional/futex_numa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH 11/15] selftests/futex: Refactor futex_waitv with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_waitv test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_waitv.c | 98 ++ tools/testing/selftests/futex/functional/run.sh

[PATCH 12/15] selftests/futex: Refactor futex_priv_hash with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_priv_hash test to use kselftest_harness header instead of futex's logging header. Use the fixture feature to run the same test with different parameters (with global hash enabled and disabled). Signed-off-by: André Almeida --- .../selftests/

[PATCH 13/15] selftests/futex: Refactor futex_numa_mpol with kselftest_harness.h

2025-07-04 Thread André Almeida
s the "Memory out of range" subtest fail, because the test address falls inside the first mmap() region, thus being a valid address. Create a "buffer zone" with mmap(PROT_NONE) to make sure there's invalid memory between the two mmaps and munmap() them by the end of the test.

[PATCH 09/15] selftests/futex: Refactor futex_wait with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_wait.c| 103 - tools/testing/selftests/futex/functional/run.sh

[PATCH 10/15] selftests/futex: Refactor futex_requeue with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../selftests/futex/functional/futex_requeue.c | 76 +++--- tools/testing/selftests/futex/functional/run.sh

[PATCH 08/15] selftests/futex: Refactor futex_wait_private_mapped_file with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_private_mapped_file test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_wait_private_mapped_file.c| 83 ++ tools/testing/selftests/

[PATCH 07/15] selftests/futex: Refactor futex_wait_unitialized_heap with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_unitialized_heap test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_wait_uninitialized_heap.c | 76 +- tools/testing/selftests/futex/funct

[PATCH 06/15] selftests/futex: Refactor futex_wait_wouldblock with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_wouldblock test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_wouldblock.c | 75 +++--- tools/testing/selftests/futex/functional/r

[PATCH 05/15] selftests/futex: Refactor futex_wait_timeout with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_wait_timeout test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_timeout.c | 139 + tools/testing/selftests/futex/functional/r

[PATCH 04/15] selftests/futex: Refactor futex_requeue_pi_signal_restart with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue_pi_signal_restart test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_requeue_pi_signal_restart.c | 129 ++--- tools/testing/selftests/

[PATCH 03/15] selftests/futex: Refactor futex_requeue_pi_mismatched_ops with kselftest_harness.h

2025-07-04 Thread André Almeida
To reduce the boilerplate code, refactor futex_requeue_pi_mismatched_ops test to use kselftest_harness header instead of futex's logging header. Signed-off-by: André Almeida --- .../functional/futex_requeue_pi_mismatched_ops.c | 80 +- tools/testing/selftests/

[PATCH 02/15] selftests/futex: Refactor futex_requeue_pi with kselftest_harness.h

2025-07-04 Thread André Almeida
ff-by: André Almeida --- .../selftests/futex/functional/futex_requeue_pi.c | 261 ++--- tools/testing/selftests/futex/functional/run.sh| 26 +- 2 files changed, 122 insertions(+), 165 deletions(-) diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/

[PATCH 00/15] selftests/futex: Refactor tests to use kselftest_harness.h

2025-07-04 Thread André Almeida
er zone" with mmap(PROT_NONE) between both mmaps. I have compared the results of run.sh before and after this patchset and didn't find any regression from the test results. Thanks, André [1] https://lore.kernel.org/lkml/87ecv6p364.ffs@tglx/ --- André Almeida (15):

[PATCH 01/15] selftests: kselftest: Create ksft_print_dbg_msg()

2025-07-04 Thread André Almeida
Create ksft_print_dbg_msg() so testers can enable extra debug messages when running a test with the flag -d. Signed-off-by: André Almeida --- tools/testing/selftests/kselftest.h | 13 + tools/testing/selftests/kselftest_harness.h | 13 + 2 files changed, 22

[PATCH v2 2/5] media: i2c: imx214: Drop dev argument from imx214_parse_fwnode()

2025-06-30 Thread André Apitzsch via B4 Relay
From: André Apitzsch The device can be accessed from struct imx214. Reviewed-by: Laurent Pinchart Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c

[PATCH v2 3/5] media: i2c: imx214: Use __free(fwnode_handle)

2025-06-30 Thread André Apitzsch via B4 Relay
From: André Apitzsch Use the __free(fwnode_handle) hook to free the endpoint when the function exits to simplify the error path. Reviewed-by: Laurent Pinchart Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

[PATCH v2 5/5] media: i2c: imx214: Separate legacy link frequency check from PLL calculation

2025-06-30 Thread André Apitzsch via B4 Relay
From: André Apitzsch Make it easier to drop the legacy support from the driver later. Reviewed-by: Laurent Pinchart Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers

[PATCH v2 0/5] media: i2c: imx214: Add some style improvements

2025-06-30 Thread André Apitzsch via B4 Relay
The following changes have be suggested by Laurent in [1]. But the related series had already be applied. That's why they are addressed in this series. [1] https://lore.kernel.org/linux-media/20250621181751.ga9...@pendragon.ideasonboard.com/ Signed-off-by: André Apitzsch --- Changes

[PATCH v2 1/5] media: i2c: imx214: Remove unneeded parentheses

2025-06-30 Thread André Apitzsch via B4 Relay
From: André Apitzsch The parentheses are not needed to calculate bit_rate_mbps. Reviewed-by: Laurent Pinchart Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c

[PATCH v2 4/5] media: i2c: imx214: Move imx214_pll_update to imx214_ctrls_init

2025-06-30 Thread André Apitzsch via B4 Relay
From: André Apitzsch It is more logical to call the PLL update in imx214_ctrls_init(). So let's move it there. Reviewed-by: Laurent Pinchart Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 219 +++-- 1 file changed, 110 inser

[PATCH 0/5] media: i2c: imx214: Add some style improvements

2025-06-29 Thread André Apitzsch via B4 Relay
The following changes have be suggested by Laurent in [1]. But the related series had already be applied. That's why they are addressed in this series. [1] https://lore.kernel.org/linux-media/20250621181751.ga9...@pendragon.ideasonboard.com/ Signed-off-by: André Apitzsch --- André Apitzs

[PATCH 5/5] media: i2c: imx214: Separat legacy link frequency check from PLL calculation

2025-06-29 Thread André Apitzsch via B4 Relay
From: André Apitzsch This makes it easier to drop this legacy support from the driver later. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index

[PATCH 3/5] media: i2c: imx214: Use __free(fwnode_handle)

2025-06-29 Thread André Apitzsch via B4 Relay
From: André Apitzsch Use the __free(fwnode_handle) hook to free the endpoint when the function exits to simplify the error path. While at it, simplify return if parsing endpoint node failed. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 9 +++-- 1 file changed, 3

[PATCH 4/5] media: i2c: imx214: Move imx214_pll_update to imx214_ctrls_init

2025-06-29 Thread André Apitzsch via B4 Relay
From: André Apitzsch It is more logical to call the PLL update in imx214_ctrls_init(). So let's move it there. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 219 +++-- 1 file changed, 110 insertions(+), 109 deletions(-) diff --

[PATCH 2/5] media: i2c: imx214: Drop dev argument from imx214_parse_fwnode()

2025-06-29 Thread André Apitzsch via B4 Relay
From: André Apitzsch The device can be accessed from struct imx214. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index

[PATCH 1/5] media: i2c: imx214: Remove unneeded parentheses

2025-06-29 Thread André Apitzsch via B4 Relay
From: André Apitzsch The parentheses are not needed to calculate bit_rate_mbps. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index

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

2025-06-27 Thread André Almeida
Em 26/06/2025 19:07, Thomas Gleixner escreveu: On Thu, Jun 26 2025 at 14:11, André Almeida wrote: Create ASSERT_{EQ, NE, TRUE, FALSE} macros to make test creation easier. What's so futex special about this that it can't use the same muck in tools/testing/selftests/kselftest_harne

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

2025-06-26 Thread André Almeida
test_robust_list_multiple_elements ok 7 test_circular_list # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: André Almeida --- .../testing/selftests/futex/functional/.gitignore | 1 + tools/testing/selftests/futex/functional/Makefile | 3 +- .../selftests/futex/functional

[PATCH v5 6/7] futex: Wire up set_robust_list2 syscall

2025-06-26 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

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

2025-06-26 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

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

2025-06-26 Thread André Almeida
32bit kernel both exit_robust_list() and compat_exit_robust_list() would be the exactly same function, with none of them dealing with 64bit robust lists. Signed-off-by: André Almeida --- include/linux/compat.h | 12 +--- include/linux/futex.h | 10 ++ include/linux/sched.h

[PATCH v5 5/7] futex: Remove the limit of elements for sys_set_robust_list2 lists

2025-06-26 Thread André Almeida
e API. Signed-off-by: André Almeida --- kernel/futex/core.c | 37 + 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/kernel/futex/core.c b/kernel/futex/core.c index 1049f8ef3ce3c611b3be0ca12df34a98f710121d..942b66facdea16cd7be2235d95c2bbbae8d7cc63 1

[PATCH v5 0/7] futex: Create set_robust_list2

2025-06-26 Thread André Almeida
galia.com/ Also, FEX-Emu added support for this interface to validate it: https://github.com/FEX-Emu/FEX/pull/3966 Feedback is very welcomed! Thanks, André [1] https://github.com/FEX-Emu/FEX Changelog: - Fixed compilation issues when CONFIG_COMPAT or CONFIG_FUTEX are not set - Rebased o

[PATCH v5 4/7] futex: Create set_robust_list2

2025-06-26 Thread André Almeida
ated by another syscall and they should have special care handling this element index. On exit, the linked list is parsed and all robust lists regardless of which interface it was used to create them are handled. Signed-off-by: André Almeida --- include/linux/futex.h | 20 +++-

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

2025-06-26 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

Re: [PATCH RESEND v4 0/7] futex: Create set_robust_list2

2025-06-18 Thread André Almeida
Hi Sebastian, Thanks for the feedback! Em 18/06/2025 04:08, Sebastian Andrzej Siewior escreveu: On 2025-06-17 15:34:17 [-0300], André Almeida wrote: 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.

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

2025-06-17 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

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

2025-06-17 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

[PATCH RESEND v4 4/7] futex: Create set_robust_list2

2025-06-17 Thread André Almeida
ated by another syscall and they should have special care handling this element index. On exit, the linked list is parsed and all robust lists regardless of which interface it was used to create them are handled. Signed-off-by: André Almeida --- include/linux/futex.h | 5 +-

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

2025-06-17 Thread André Almeida
32bit kernel both exit_robust_list() and compat_exit_robust_list() would be the exactly same function, with none of them dealing with 64bit robust lists. Signed-off-by: André Almeida --- include/linux/compat.h | 12 +--- include/linux/futex.h | 11 +++ include/linux/sched.h

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

2025-06-17 Thread André Almeida
test_robust_list_multiple_elements ok 7 test_circular_list # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: André Almeida --- .../testing/selftests/futex/functional/.gitignore | 1 + tools/testing/selftests/futex/functional/Makefile | 3 +- .../selftests/futex/functional

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

2025-06-17 Thread André Almeida
e API. Signed-off-by: André Almeida --- kernel/futex/core.c | 50 -- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/kernel/futex/core.c b/kernel/futex/core.c index 49b3bc592948a811f995017027f33ad8f28

[PATCH RESEND v4 0/7] futex: Create set_robust_list2

2025-06-17 Thread André Almeida
galia.com/ Also, FEX-Emu added support for this interface to validate it: https://github.com/FEX-Emu/FEX/pull/3966 Feedback is very welcomed! Thanks, André [1] https://github.com/FEX-Emu/FEX Changelog: - Rebased on top of new futex work (private hash) v4: https://lore.kernel.org/lkm

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

2025-06-17 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

Re: [PATCH v2 0/4] arm64: dts: qcom: msm8976-longcheer-l9360: Add initial device tree

2025-06-16 Thread André Apitzsch
Am Montag, dem 16.06.2025 um 13:46 +0200 schrieb Konrad Dybcio: > On 6/15/25 10:35 PM, André Apitzsch via B4 Relay wrote: > > This dts adds support for BQ Aquaris X5 Plus (Longcheer L9360) > > released > > in 2016. > > > > Add a device tree with initial support fo

[PATCH v2 2/4] dt-bindings: arm: qcom: Add MSM8976 BQ Aquaris X5 Plus

2025-06-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch BQ Aquaris X5 Plus (Longcheer L9360) is a smartphone based on MSM8976 SoC. Signed-off-by: André Apitzsch --- Documentation/devicetree/bindings/arm/qcom.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b

[PATCH v2 3/4] arm64: dts: qcom: msm8976: Add sdc2 GPIOs

2025-06-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch Downstream vendor code for reference: https://git.codelinaro.org/clo/la/kernel/msm-3.10/-/blob/LA.BR.1.3.7.c26/arch/arm/boot/dts/qcom/msm8976-pinctrl.dtsi#L223-263 Signed-off-by: André Apitzsch --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 36

[PATCH v2 0/4] arm64: dts: qcom: msm8976-longcheer-l9360: Add initial device tree

2025-06-15 Thread André Apitzsch via B4 Relay
This dts adds support for BQ Aquaris X5 Plus (Longcheer L9360) released in 2016. Add a device tree with initial support for: - GPIO keys - NFC - SDHCI - Status LED - Touchscreen Signed-off-by: André Apitzsch --- Changes in v2: - Add Fixes and R-b tag - Move sdc2 GPIO definitions into msm8976

[PATCH v2 4/4] arm64: dts: qcom: msm8976-longcheer-l9360: Add initial device tree

2025-06-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch This dts adds support for BQ Aquaris X5 Plus (Longcheer L9360) released in 2016. Add a device tree with initial support for: - GPIO keys - NFC - SDHCI - Status LED - Touchscreen Signed-off-by: André Apitzsch --- arch/arm64/boot/dts/qcom/Makefile | 1

[PATCH v2 1/4] arm64: dts: qcom: msm8976: Make blsp_dma controlled-remotely

2025-06-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch The blsp_dma controller is shared between the different subsystems, which is why it is already initialized by the firmware. We should not reinitialize it from Linux to avoid potential other users of the DMA engine to misbehave. In mainline this can be described using the

[PATCH 3/3] arm64: dts: qcom: msm8976-longcheer-l9360: Add initial device tree

2025-06-12 Thread André Apitzsch via B4 Relay
From: André Apitzsch This dts adds support for BQ Aquaris X5 Plus (Longcheer L9360) released in 2016. Add a device tree with initial support for: - GPIO keys - NFC - SDHCI - Status LED - Touchscreen Signed-off-by: André Apitzsch --- arch/arm64/boot/dts/qcom/Makefile | 1

[PATCH 0/3] arm64: dts: qcom: msm8976-longcheer-l9360: Add initial device tree

2025-06-12 Thread André Apitzsch via B4 Relay
This dts adds support for BQ Aquaris X5 Plus (Longcheer L9360) released in 2016. Add a device tree with initial support for: - GPIO keys - NFC - SDHCI - Status LED - Touchscreen Signed-off-by: André Apitzsch --- André Apitzsch (3): arm64: dts: qcom: msm8976: Make blsp_dma controlled

[PATCH 1/3] arm64: dts: qcom: msm8976: Make blsp_dma controlled-remotely

2025-06-12 Thread André Apitzsch via B4 Relay
From: André Apitzsch The blsp_dma controller is shared between the different subsystems, which is why it is already initialized by the firmware. We should not reinitialize it from Linux to avoid potential other users of the DMA engine to misbehave. In mainline this can be described using the

[PATCH 2/3] dt-bindings: arm: qcom: Add MSM8976 BQ Aquaris X5 Plus

2025-06-12 Thread André Apitzsch via B4 Relay
From: André Apitzsch BQ Aquaris X5 Plus (Longcheer L9360) is a smartphone based on MSM8976 SoC. Signed-off-by: André Apitzsch --- Documentation/devicetree/bindings/arm/qcom.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b

Re: [PATCH v3 1/2] dt-bindings: media: i2c: Add DW9719 and DW9761 VCM

2025-05-21 Thread André Apitzsch
Hi Sakari, Am Montag, dem 10.02.2025 um 09:53 + schrieb Sakari Ailus: > Hi André, > > Thanks for the update. > > On Sun, Feb 09, 2025 at 10:51:57PM +0100, André Apitzsch via B4 Relay > wrote: > > From: André Apitzsch > > > > Document Dongwoon DW971

[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

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

2025-05-20 Thread André Almeida
e API. Signed-off-by: André Almeida --- kernel/futex/core.c | 50 -- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/kernel/futex/core.c b/kernel/futex/core.c index 49b3bc592948a811f995017027f33ad8f28

[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

[PATCH v4 4/7] futex: Create set_robust_list2

2025-05-20 Thread André Almeida
ated by another syscall and they should have special care handling this element index. On exit, the linked list is parsed and all robust lists regardless of which interface it was used to create them are handled. Signed-off-by: André Almeida --- include/linux/futex.h | 5 +-

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

2025-05-20 Thread André Almeida
32bit kernel both exit_robust_list() and compat_exit_robust_list() would be the exactly same function, with none of them dealing with 64bit robust lists. Signed-off-by: André Almeida --- include/linux/compat.h | 12 +--- include/linux/futex.h | 11 +++ include/linux/sched.h

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

2025-05-20 Thread André Almeida
test_robust_list_multiple_elements ok 7 test_circular_list # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: André Almeida --- .../testing/selftests/futex/functional/.gitignore | 1 + tools/testing/selftests/futex/functional/Makefile | 3 +- .../selftests/futex/functional

[PATCH v4 0/7] futex: Create set_robust_list2

2025-05-20 Thread André Almeida
galia.com/ Also, FEX-Emu added support for this interface to validate it: https://github.com/FEX-Emu/FEX/pull/3966 Feedback is very welcomed! Thanks, André [1] https://github.com/FEX-Emu/FEX Changelog: - Rebased on top of new futex work (private hash) v4: https://lore.kernel.org/lkm

[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

Re: [PATCH] selftests/futex: Fix usage() message to clarify timeout value unit

2025-05-19 Thread André Almeida
Hi Jonathan, Em 19/05/2025 17:30, Jonathan Velez escreveu: On May 15, 2025, at 1:45 PM, Jonathan Velez wrote: futex_wait_timeout: Fix usage() message to clarify timeout value unit Signed-off-by: Jonathan Velez --- tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +- 1 file

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread André Apitzsch
0:58:46AM +0200, Laurent Pinchart wrote: > > > > On Tue, May 06, 2025 at 08:24:03AM +, Sakari Ailus wrote: > > > > > On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via > > > > > B4 Relay wrote: > > > > > > From: André Apitzsch

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-14 Thread André Apitzsch
Hello Sakari, Am Dienstag, dem 06.05.2025 um 08:24 + schrieb Sakari Ailus: > Hi André, > > On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via B4 Relay > wrote: > > From: André Apitzsch > > > > Instead rely on the rate set on the clock (using ass

Re: [PATCH v2 3/4] media: i2c: imx214: Make use of CCS PLL calculator

2025-05-06 Thread André Apitzsch
Hi Sakari, thanks for the feedback. One question below. Am Dienstag, dem 06.05.2025 um 08:05 + schrieb Sakari Ailus: > Hi André, > > A few more comments below. > > On Mon, May 05, 2025 at 11:05:55PM +0200, André Apitzsch via B4 Relay > wrote: > > From: André Apit

[PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Instead rely on the rate set on the clock (using assigned-clock-rates etc.) Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index

[PATCH v2 1/4] media: i2c: imx214: Reorder imx214_parse_fwnode call

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Reorder imx214_parse_fwnode call to reduce goto paths in upcoming patches. No functional change intended. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH v2 2/4] media: i2c: imx214: Prepare for variable clock frequency

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Move clock frequency related parameters out of the constant register sequences, such that the hard coded external clock frequency can be replaced by a variable in the upcoming patches. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c

[PATCH v2 3/4] media: i2c: imx214: Make use of CCS PLL calculator

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Calculate PLL parameters based on clock frequency and link frequency. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/imx214.c | 216 + 2 files changed, 178

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

2025-05-05 Thread André Apitzsch via B4 Relay
://lore.kernel.org/linux-media/20250308-imx214_clk_freq-v1-0-467a4c083...@apitzsch.eu/ Signed-off-by: André Apitzsch --- Changes in v2: - Add A-b tags - Switch to v4l2_ctrl_s_ctrl_int64() to acquire the control handler mutex - Add error handling for v4l2_ctrl_s_ctrl_int64() and imx214_pll_update() - Replace

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

2025-05-02 Thread André Apitzsch
Hi Sakari, Am Donnerstag, dem 24.04.2025 um 08:28 +0800 schrieb 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 device

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 > > > > > > Ad

[PATCH] ASoC: wm8998: Add Kconfig prompt

2025-04-18 Thread André Apitzsch via B4 Relay
From: André Apitzsch Add tristate prompt to allow codec selection. Signed-off-by: André Apitzsch --- sound/soc/codecs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 40bb7a1d44bcfa4c386f2eba0f475efeeedf1bdb

[PATCH 4/4] media: i2c: imx214: Read clock frequency from device tree

2025-04-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch Replace the hard coded external clock frequency by the one read from device tree. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c

[PATCH 2/4] media: i2c: imx214: Prepare for variable clock frequency

2025-04-15 Thread André Apitzsch via B4 Relay
From: André Apitzsch Move clock frequency related parameters out of the constant register sequences, such that the hard coded external clock frequency can be replaced by a variable in the upcoming patches. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 54

  1   2   3   4   5   6   7   8   9   >