Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread David Hildenbrand
On 11.08.24 08:06, Dev Jain wrote: On 8/11/24 00:22, David Hildenbrand wrote: On 10.08.24 20:42, Dev Jain wrote: On 8/9/24 19:17, David Hildenbrand wrote: On 09.08.24 12:31, Dev Jain wrote: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make t

[PATCH] kselftest/cgroup: Add missing newline in test_zswap.c

2024-08-11 Thread Mohammed Anees
Signed-off-by: Mohammed Anees --- tools/testing/selftests/cgroup/test_zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cgroup/test_zswap.c b/tools/testing/selftests/cgroup/test_zswap.c index 190096017..7c849d836 100644 --- a/tools/testing/selfte

Re: [PATCH] selftests: memfd_secret: don't build memfd_secret test on unsupported arches

2024-08-11 Thread Mike Rapoport
On Fri, Aug 09, 2024 at 12:56:42PM +0500, Muhammad Usama Anjum wrote: > [1] mentions that memfd_secret is only supported on arm64, riscv, x86 > and x86_64 for now. It doesn't support other architectures. I found the > build error on arm and decided to send the fix as it was creating noise > on Kern

[PATCH v4 0/4] Introduce userspace-driven ALSA timers

2024-08-11 Thread Ivan Orlov
There are multiple possible timer sources which could be useful for the sound stream synchronization: hrtimers, hardware clocks (e.g. PTP), timer wheels (jiffies). Currently, using one of them to synchronize the audio stream of snd-aloop module would require writing a kernel-space driver which expo

[PATCH v4 2/4] Docs/sound: Add documentation for userspace-driven ALSA timers

2024-08-11 Thread Ivan Orlov
Add the documentation which describes the new userspace-driven timers API introduced in this patch series. The documentation contains: - Description of userspace-driven ALSA timers, what they are for - Description of the timers API - Example of how the timers can be created and triggered - How the

[PATCH v4 1/4] ALSA: aloop: Allow using global timers

2024-08-11 Thread Ivan Orlov
Allow using global timers as a timer source when card id is equal to -1 in the timer_source parameter. Signed-off-by: Ivan Orlov --- V1 -> V2: - No changes V2 -> V3: - No changes V3 -> V4: - No changes sound/drivers/aloop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/drivers/alo

[PATCH v4 3/4] ALSA: timer: Introduce virtual userspace-driven timers

2024-08-11 Thread Ivan Orlov
Implement two ioctl calls in order to support virtual userspace-driven ALSA timers. The first ioctl is SNDRV_TIMER_IOCTL_CREATE, which gets the snd_timer_uinfo struct as a parameter and returns a file descriptor of a virtual timer. It also updates the `id` field of the snd_timer_uinfo struct, whic

[PATCH v4 4/4] selftests: ALSA: Cover userspace-driven timers with test

2024-08-11 Thread Ivan Orlov
Add a test for the new functionality of userspace-driven timers and the tool which allows us to count timer ticks in a certain time period. The test: 1. Creates a userspace-driven timer with ioctl to /dev/snd/timer 2. Starts the `global-timer` application to count the ticks of the timer from step

Re: [PATCH net-next v18 07/14] memory-provider: dmabuf devmem memory provider

2024-08-11 Thread Pavel Begunkov
On 8/11/24 03:21, Mina Almasry wrote: On Fri, Aug 9, 2024 at 11:52 PM Jakub Kicinski wrote: On Fri, 9 Aug 2024 16:45:50 +0100 Pavel Begunkov wrote: I think this is good, and it doesn't seem hacky to me, because we can check the page_pools of the netdev while we hold rtnl, so we can be sure no

Re: [PATCH 2/2] selftests: rust: config: disable GCC_PLUGINS

2024-08-11 Thread Shuah Khan
On 8/10/24 04:34, Miguel Ojeda wrote: On Fri, Aug 2, 2024 at 2:45 PM Anders Roxell wrote: CONFIG_RUST depends on !CONFIG_GCC_PLUGINS. Disable CONFIG_GCC_PLUGINS in rust/config file to make sure it doesn't get enabled. Signed-off-by: Anders Roxell Acked-by: Miguel Ojeda When https://lore

Re: [PATCH 1/2] selftests: rust: config: add trailing newline

2024-08-11 Thread Shuah Khan
On 8/10/24 04:33, Miguel Ojeda wrote: On Fri, Aug 2, 2024 at 2:45 PM Anders Roxell wrote: If adding multiple config files to the merge_config.sh script and rust/config is the fist one, then the last config fragment in this file and the first config fragment in the second file wont be set, sinc

Re: [PATCH] selftest/powerpc/benchmark: remove requirement libc-dev

2024-08-11 Thread Michael Ellerman
Christophe Leroy writes: > Le 05/08/2024 à 10:30, Madhavan Srinivasan a écrit : >> Currently exec-target.c file is linked as static and this >> post a requirement to install libc dev package to build. >> Without it, build-breaks when compiling selftest/powerpc/benchmark. >> >>CC exec_ta

[PATCH v1 1/1] selftests: net: af_unix: cast void* to char* in call to macro TH_LOG()

2024-08-11 Thread Mirsad Todorovac
GCC 13.2.0 reported warning about (void *) beeing used as a param where (char *) is expected: In file included from msg_oob.c:14: msg_oob.c: In function ‘__recvpair’: ../../kselftest_harness.h:106:40: warning: format ‘%s’ expects argument of type ‘char *’,

[bpf-next 0/3] samples/bpf: Remove obsolete tracing-related tests

2024-08-11 Thread Daniel T. Lee
The BPF tracing infrastructure has undergone significant evolution, leading to the introduction of more robust and efficient APIs. However, some of the existing tests in the samples/bpf directory have not kept pace with these developments. These outdated tests not only create confusion among users

[bpf-next 1/3] selftests/bpf: migrate tracepoint overhead test to prog_tests

2024-08-11 Thread Daniel T. Lee
As part of the cleanup of outdated test cases in sample/bpf, this commit migrates test for tracepoint overhead to selftest prog_tests. The test_overhead in selftest/bpf focus on the 'raw_tracepoint' only, and do not cover tracepoint-specific tests. To support this, this commit utilize 'vmlinux.h',

[bpf-next 2/3] selftests/bpf: add rename tracepoint bench test

2024-08-11 Thread Daniel T. Lee
In addition to migrating the tracepoint overhead test from sample/bpf to selftest/bpf, this commit extends benchmarking test with rename task. Since previous commit migrated tracepoint based on rename task, this commit updates the benchmarking program to utilize the newly added 'rename-tp'. Signe

[bpf-next 3/3] samples/bpf: remove obsolete tracing related tests

2024-08-11 Thread Daniel T. Lee
The samples/bpf has become outdated and often does not follow up with the latest. This commit removes obsolete tracing-related tests. Specifically, 'test_overhead' is migrated from previous two commits, and 'test_override_return', 'test_probe_write_user' tests are obsolete since they have been rep

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Dev Jain
On 8/11/24 14:38, David Hildenbrand wrote: On 11.08.24 08:06, Dev Jain wrote: On 8/11/24 00:22, David Hildenbrand wrote: On 10.08.24 20:42, Dev Jain wrote: On 8/9/24 19:17, David Hildenbrand wrote: On 09.08.24 12:31, Dev Jain wrote: As already being done in __migrate_folio(), wherein we b

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Huang, Ying
Hi, Dev, Dev Jain writes: > As already being done in __migrate_folio(), wherein we backoff if the > folio refcount is wrong, make this check during the unmapping phase, upon > the failure of which, the original state of the PTEs will be restored and > the folio lock will be dropped via migrate_f

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Dev Jain
On 8/12/24 11:04, Huang, Ying wrote: Hi, Dev, Dev Jain writes: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the original state of the PTEs will be restored and the folio

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Dev Jain
On 8/12/24 11:04, Huang, Ying wrote: Hi, Dev, Dev Jain writes: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the original state of the PTEs will be restored and the folio

[PATCH v2] selftests: memfd_secret: don't build memfd_secret test on unsupported arches

2024-08-11 Thread Muhammad Usama Anjum
[1] mentions that memfd_secret is only supported on arm64, riscv, x86 and x86_64 for now. It doesn't support other architectures. I found the build error on arm and decided to send the fix as it was creating noise on KernelCI: memfd_secret.c: In function 'memfd_secret': memfd_secret.c:42:24: error

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Huang, Ying
Dev Jain writes: > On 8/12/24 11:04, Huang, Ying wrote: >> Hi, Dev, >> >> Dev Jain writes: >> >>> As already being done in __migrate_folio(), wherein we backoff if the >>> folio refcount is wrong, make this check during the unmapping phase, upon >>> the failure of which, the original state of th

Re: [PATCH 2/2] selftests/mm: Do not fail test for a single migration failure

2024-08-11 Thread Dev Jain
On 8/9/24 22:43, Shuah Khan wrote: On 8/9/24 04:31, Dev Jain wrote: Do not fail the test for just a single instance of migration failure, since migration is a best-effort service. The cover letter says: "Given that migration is a best-effort service, it is wrong to fail the test for just a

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Huang, Ying
Dev Jain writes: > On 8/12/24 11:04, Huang, Ying wrote: >> Hi, Dev, >> >> Dev Jain writes: >> >>> As already being done in __migrate_folio(), wherein we backoff if the >>> folio refcount is wrong, make this check during the unmapping phase, upon >>> the failure of which, the original state of th

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Dev Jain
On 8/12/24 11:50, Huang, Ying wrote: Dev Jain writes: On 8/12/24 11:04, Huang, Ying wrote: Hi, Dev, Dev Jain writes: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-11 Thread Dev Jain
On 8/12/24 11:45, Huang, Ying wrote: Dev Jain writes: On 8/12/24 11:04, Huang, Ying wrote: Hi, Dev, Dev Jain writes: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the