Re: [PATCH v12 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-10-26 Thread kernel test robot
Hi Arnaud, kernel test robot noticed the following build warnings: [auto build test WARNING on 42f7652d3eb527d03665b09edac47f85fb600924] url: https://github.com/intel-lab-lkp/linux/commits/Arnaud-Pouliquen/remoteproc-core-Introduce-rproc_pa_to_va-helper/20241026-050443 base

Re: [PATCH v12 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-10-26 Thread kernel test robot
Hi Arnaud, kernel test robot noticed the following build errors: [auto build test ERROR on 42f7652d3eb527d03665b09edac47f85fb600924] url: https://github.com/intel-lab-lkp/linux/commits/Arnaud-Pouliquen/remoteproc-core-Introduce-rproc_pa_to_va-helper/20241026-050443 base

Re: [PATCH v12 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-10-26 Thread kernel test robot
Hi Arnaud, kernel test robot noticed the following build errors: [auto build test ERROR on 42f7652d3eb527d03665b09edac47f85fb600924] url: https://github.com/intel-lab-lkp/linux/commits/Arnaud-Pouliquen/remoteproc-core-Introduce-rproc_pa_to_va-helper/20241026-050443 base

[PATCH v6 2/5] pidfd: add PIDFD_SELF_* sentinels to refer to own thread/process

2024-10-26 Thread Lorenzo Stoakes
It is useful to be able to utilise the pidfd mechanism to reference the current thread or process (from a userland point of view - thread group leader from the kernel's point of view). Therefore introduce PIDFD_SELF_THREAD to refer to the current thread, and PIDFD_SELF_THREAD_GROUP to refer to the

Re: [PATCH] kvm: selftest: fix noop test in guest_memfd_test.c

2024-10-26 Thread Muhammad Usama Anjum
On 10/24/24 2:59 PM, Patrick Roy wrote: > The loop in test_create_guest_memfd_invalid that is supposed to test > that nothing is accepted as a valid flag to KVM_CREATE_GUEST_MEMFD was > initializing `flag` as 0 instead of BIT(0). This caused the loop to > immediately exit instead of iterating over

[RESEND PATCH] x86/sgx: Use vmalloc_array() instead of vmalloc()

2024-10-26 Thread Thorsten Blum
Use vmalloc_array() instead of vmalloc() to calculate the number of bytes to allocate. Reviewed-by: Jarkko Sakkinen Signed-off-by: Thorsten Blum --- arch/x86/kernel/cpu/sgx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/sgx/main.c b/arch/x86/kerne

[PATCH 0/3] remoteproc: qcom: pas: enable ADSP support on Qualcomm SAR2130P

2024-10-26 Thread Dmitry Baryshkov
Enable Audio DSP support on the Qualcomm SAR2130P platform. The CDSP, also present on this SoC, crashes the device during the start and is thus omitted from the series. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (3): dt-bindings: remoteproc: qcom,sm8350-pas: add SAR2130P aDSP comp

[PATCH 1/3] dt-bindings: remoteproc: qcom,sm8350-pas: add SAR2130P aDSP compatible

2024-10-26 Thread Dmitry Baryshkov
Document compatible for audio DSP on Qualcomm SAR2130P platform. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml b/Docum

[PATCH 2/3] remoteproc: qcom: pas: add minidump_id to SM8350 resources

2024-10-26 Thread Dmitry Baryshkov
Specify minidump_id for the SM8350 DSPs. It was omitted for in the original commit e8b4e9a21af7 ("remoteproc: qcom: pas: Add SM8350 PAS remoteprocs"). Fixes: e8b4e9a21af7 ("remoteproc: qcom: pas: Add SM8350 PAS remoteprocs") Signed-off-by: Dmitry Baryshkov --- drivers/remoteproc/qcom_q6v5_pas.c

Re: [PATCH v2] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-26 Thread Shuah Khan
On 10/26/24 13:16, Shivam Chaudhary wrote: Add kselftest support for open, linkat, unshare, mount tests - Replace direct error handling with `ksft_test_result_*` macros for better reporting of test outcomes. - Add `ksft_print_header()` and `ksft_set_plan()` to structure test outputs more

Re: [PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-26 Thread Shuah Khan
On 10/24/24 19:39, Li Zhijian wrote: Currently, watchdog-test keep running until it gets a SIGINT. However, when watchdog-test is executed from the kselftests framework, where it launches test via timeout which will send SIGTERM in time up. This could lead to 1. watchdog haven't stop, a watchdog

[PATCH 3/3] remoteproc: qcom: pas: enable SAR2130P audio DSP support

2024-10-26 Thread Dmitry Baryshkov
Enable support for the Audio DSP on the Qualcomm SAR2130P platform, reusing the SM8350 resources. Signed-off-by: Dmitry Baryshkov --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c in

Re: [PATCH net-next v10 23/23] testing/selftests: add test tool and scripts for ovpn module

2024-10-26 Thread Shuah Khan
On 10/25/24 03:14, Antonio Quartulli wrote: The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. It implements the netlink API and can thus be integrated in any script for more automated testing. Along with the tool, 4 scripts are added that perform basic functiona

Re: [PATCH] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run

2024-10-26 Thread Shuah Khan
On 10/25/24 02:08, zhouyuhang wrote: 在 2024/10/24 22:26, Shuah Khan 写道: On 10/24/24 03:50, zhouyuhang wrote: From: zhouyuhang Test case idmap_mount_tree_invalid failed to run on the newer kernel with the following output:   #  RUN mount_setattr_idmapped.idmap_mount_tree_invalid ...   # mou

[PATCH v2] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-26 Thread Shivam Chaudhary
Add kselftest support for open, linkat, unshare, mount tests - Replace direct error handling with `ksft_test_result_*` macros for better reporting of test outcomes. - Add `ksft_print_header()` and `ksft_set_plan()` to structure test outputs more effectively. - Introduce the helper function `

Re: [PATCH v5 2/5] pidfd: add PIDFD_SELF_* sentinels to refer to own thread/process

2024-10-26 Thread Lorenzo Stoakes
On Fri, Oct 25, 2024 at 01:31:49PM -0700, John Hubbard wrote: > On 10/25/24 12:49 PM, Lorenzo Stoakes wrote: > > On Fri, Oct 25, 2024 at 11:44:34AM -0700, John Hubbard wrote: > > > On 10/25/24 11:38 AM, Pedro Falcato wrote: > > > > On Fri, Oct 25, 2024 at 6:41 PM John Hubbard > > > > wrote: > ...

[PATCH v6 5/5] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-26 Thread Lorenzo Stoakes
Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() and pidfd_getfd(), but also explicitly test that we disallow this feature for setns() where it would make no sense. We cannot reasonably wait on our

[PATCH v6 0/5] introduce PIDFD_SELF* sentinels

2024-10-26 Thread Lorenzo Stoakes
If you wish to utilise a pidfd interface to refer to the current process or thread it is rather cumbersome, requiring something like: int pidfd = pidfd_open(getpid(), 0 or PIDFD_THREAD); ... close(pidfd); Or the equivalent call opening /proc/self. It is more convenient t

[PATCH v6 3/5] tools: testing: separate out wait_for_pid() into helper header

2024-10-26 Thread Lorenzo Stoakes
It seems tests other than the pidfd tests use the wait_for_pid() function declared in pidfd.h. Since we will shortly be modifying pidfd.h in a way that might clash with other tests, separate this out and update tests accordingly. Signed-off-by: Lorenzo Stoakes --- tools/testing/selftests/cgroup

[PATCH v6 4/5] selftests: pidfd: add pidfd.h UAPI wrapper

2024-10-26 Thread Lorenzo Stoakes
Conflicts can arise between system fcntl.h and linux/fcntl.h, imported by the linux/pidfd.h UAPI header. Work around this by adding a wrapper for linux/pidfd.h to tools/include/ which sets the linux/fcntl.h header guard ahead of importing the pidfd.h header file. Adjust the pidfd selftests Makefi

[PATCH v6 1/5] pidfd: extend pidfd_get_pid() and de-duplicate pid lookup

2024-10-26 Thread Lorenzo Stoakes
The means by which a pid is determined from a pidfd is duplicated, with some callers holding a reference to the (pid)fd, and others explicitly pinning the pid. Introduce __pidfd_get_pid() which narrows this to one approach of pinning the pid, with an optional output parameters for file->f_flags to

Re: [PATCH net-next v10 09/23] ovpn: implement basic RX path (UDP)

2024-10-26 Thread kernel test robot
Hi Antonio, kernel test robot noticed the following build errors: [auto build test ERROR on 03fc07a24735e0be8646563913abf5f5cb71ad19] url: https://github.com/intel-lab-lkp/linux/commits/Antonio-Quartulli/netlink-add-NLA_POLICY_MAX_LEN-macro/20241025-173611 base: 03fc07a24735e0be8646563913a