[PATCH v3 7/7] selftests/mm: Skip hugepage-mremap test if userfaultfd unavailable

2025-07-28 Thread Aboorva Devarajan
: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 ~ [SKIP] ok 4 hugepage-mremap # SKIP Acked-by: David Hildenbrand Reviewed-by: Zi Yan Co-developed-by: Donet Tom Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/hugepage-mremap.c | 16 +--- 1 file

[PATCH v3 6/7] selftests/mm: Skip thuge-gen test if system is not setup properly

2025-07-28 Thread Aboorva Devarajan
increase shmmax: ~ ~ echo 262144 > /proc/sys/kernel/shmmax ~ 1..0 ~ SKIP Test skipped due to insufficient shmmax value. ~ [SKIP] ok 29 thuge-gen ~ SKIP Reviewed-by: Dev Jain Acked-by: David Hildenbrand Reviewed-by: Zi Yan Co-developed-by: Donet Tom Signed-off-by: Donet Tom Signed-off-

[PATCH v3 5/7] selftests/mm: Fix child process exit codes in ksm_functional_tests

2025-07-28 Thread Aboorva Devarajan
Donet Tom Signed-off-by: Aboorva Devarajan --- .../testing/selftests/mm/ksm_functional_tests.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/mm/ksm_functional_tests.c b/tools/testing/selftests/mm/ksm_functional_tests.c index 99

[PATCH v3 4/7] mm/selftests: Fix split_huge_page_test failure on systems with 64KB page size

2025-07-28 Thread Aboorva Devarajan
page size systems. Fixes: fa6c02315f745 ("mm: huge_memory: a new debugfs interface for splitting THP tests") Reviewed-by: Dev Jain Reviewed-by: Zi Yan Co-developed-by: Aboorva Devarajan Signed-off-by: Aboorva Devarajan Signed-off-by: Donet Tom --- .../selftests/mm/split_huge_pa

[PATCH v3 3/7] selftest/mm: Fix ksm_funtional_test failures

2025-07-28 Thread Aboorva Devarajan
ksm fork/exec") Co-developed-by: Aboorva Devarajan Signed-off-by: Aboorva Devarajan Signed-off-by: Donet Tom --- tools/testing/selftests/mm/ksm_functional_tests.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/ksm_functional

[PATCH v3 2/7] selftests/mm: Add support to test 4PB VA on PPC64

2025-07-28 Thread Aboorva Devarajan
address. Reviewed-by: Dev Jain Acked-by: David Hildenbrand Reviewed-by: Zi Yan Co-developed-by: Aboorva Devarajan Signed-off-by: Aboorva Devarajan Signed-off-by: Donet Tom --- tools/testing/selftests/mm/virtual_address_range.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH v3 1/7] mm/selftests: Fix incorrect pointer being passed to mark_range()

2025-07-28 Thread Aboorva Devarajan
) Reviewed-by: Dev Jain Acked-by: David Hildenbrand Reviewed-by: Zi Yan Co-developed-by: Aboorva Devarajan Signed-off-by: Aboorva Devarajan Signed-off-by: Donet Tom --- tools/testing/selftests/mm/virtual_address_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/too

[PATCH v3 0/7] selftests/mm: Fix false positives and skip unsupported tests

2025-07-28 Thread Aboorva Devarajan
failing userfaultfd test when unsupported, instead of reporting a failure. --- Please let us know if you have any further comments. Thanks, Aboorva Aboorva Devarajan (3): selftests/mm: Fix child process exit codes in ksm_functional_tests selftests/mm: Skip thuge-gen test if system i

[PATCH v2 7/7] selftests/mm: Skip hugepage-mremap test if userfaultfd unavailable

2025-07-02 Thread Aboorva Devarajan
: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 ~ [SKIP] ok 4 hugepage-mremap # SKIP Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/hugepage-mremap.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mm/hugepage-mremap.c b

[PATCH v2 6/7] selftests/mm: Skip thuge-gen if shmmax is too small or no 1G huge pages

2025-07-02 Thread Aboorva Devarajan
increase shmmax: ~ ~ echo 262144 > /proc/sys/kernel/shmmax ~ 1..0 ~ SKIP Test skipped due to insufficient shmmax value. ~ [SKIP] ok 29 thuge-gen ~ SKIP Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/thuge-gen.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-)

[PATCH v2 5/7] selftests/mm: Fix child process exit codes in ksm_functional_tests

2025-07-02 Thread Aboorva Devarajan
skip:0 error:0 Fixes: 6c47de3be3a0 ("selftest/mm: ksm_functional_tests: extend test case for ksm fork/exec") Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/ksm_functional_tests.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/too

[PATCH v2 4/7] mm/selftests: Fix split_huge_page_test failure on systems with 64KB page size

2025-07-02 Thread Aboorva Devarajan
page size systems. Fixes: fa6c02315f745 ("mm: huge_memory: a new debugfs interface for splitting THP tests") Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- .../selftests/mm/split_huge_page_test.c | 23 ++- 1 file changed, 17 insertions(+), 6 deleti

[PATCH v2 3/7] selftest/mm: Fix ksm_funtional_test failures

2025-07-02 Thread Aboorva Devarajan
m fork/exec") Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/ksm_functional_tests.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/ksm_functional_tests.c b/tools/testing/selftests/mm/ksm

[PATCH v2 2/7] selftests/mm: Add support to test 4PB VA on PPC64

2025-07-02 Thread Aboorva Devarajan
address. Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/virtual_address_range.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/mm/virtual_address_range.c b/tools/testing/selftests/mm/virtual_address_range.c index

[PATCH v2 1/7] mm/selftests: Fix incorrect pointer being passed to mark_range()

2025-07-02 Thread Aboorva Devarajan
t;) Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/virtual_address_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/virtual_address_range.c b/tools/testing/selftests/mm/virtual_address_range.c index 16

[PATCH v2 0/7] selftests/mm: Fix false positives and skip unsupported tests

2025-07-02 Thread Aboorva Devarajan
nsupported, instead of reporting a failure. --- Please let us know if you have any further comments. Thanks, Aboorva Aboorva Devarajan (3): selftests/mm: Fix child process exit codes in ksm_functional_tests selftests/mm: Skip thuge-gen if shmmax is too small or no 1G huge pages se

Re: [PATCH 0/6] selftests/mm: Fix false positives and skip unsupported tests

2025-06-17 Thread Aboorva Devarajan
this out. We'll rebase the patches against mm-new and repost them as v2. Regards, Aboorva > > On Mon, Jun 16, 2025 at 09:36:26PM +0530, Aboorva Devarajan wrote: > > This patch series fixes some of the false positives in generic > > mm selftests and skips test

[PATCH 6/6] selftests/mm: Mark thuge-gen as skipped if shmmax is too small or no 1G pages

2025-06-16 Thread Aboorva Devarajan
ease run the following command to increase shmmax: ~ ~ echo 262144 > /proc/sys/kernel/shmmax ~ 1..0 ~ SKIP Test skipped due to insufficient shmmax value. ~ [SKIP] ok 29 thuge-gen ~ SKIP Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/thuge-gen.c | 11 +++ 1 file

[PATCH 2/6] selftest/mm: Fix ksm_funtional_test failures

2025-06-16 Thread Aboorva Devarajan
p to ensure the counter is reset and the system is in a clean state for subsequent tests. Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/ksm_functional_tests.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/testi

[PATCH 4/6] mm/selftests: Fix split_huge_page_test failure on systems with 64KB page size

2025-06-16 Thread Aboorva Devarajan
page size systems. Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- .../selftests/mm/split_huge_page_test.c | 23 +++ 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/se

[PATCH 3/6] selftests/mm : fix test_prctl_fork_exec failure

2025-06-16 Thread Aboorva Devarajan
From: Donet Tom execv argument is an array of pointers to null-terminated strings. In this patch we added NULL in the execv argument to fix the test failure. Signed-off-by: Donet Tom Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/ksm_functional_tests.c | 2 +- 1 file changed

[PATCH 5/6] selftests/mm: Fix child process exit codes in KSM tests

2025-06-16 Thread Aboorva Devarajan
unmerged ... - [RUN] test_prctl_fork - No pages got merged not ok 7 Merge in child failed - [RUN] test_prctl_fork_exec ok 8 PR_SET_MEMORY_MERGE value is inherited ... Bail out! 2 out of 9 tests failed - Totals: pass:7 fail:2 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Aboorva Devarajan

[PATCH 0/6] selftests/mm: Fix false positives and skip unsupported tests

2025-06-16 Thread Aboorva Devarajan
This patch series fixes some of the false positives in generic mm selftests and skips tests that cannot run correctly due to missing features or system limitations. Please let us know if you have any feedback. Thanks, Aboorva Aboorva Devarajan (2): selftests/mm: Fix child process exit codes

[PATCH 1/6] mm/selftests: Fix virtual_address_range test issues.

2025-06-16 Thread Aboorva Devarajan
elftests/mm: virtual_address_range: conform to TAP format output") Fixes: b2a79f62133a ("selftests/mm: virtual_address_range: unmap chunks after validation") Fixes: 010409649885 ("selftests/mm: confirm VA exhaustion without reliance on correctness of mmap()") Signed-off-b

[RFC v3 2/2] powerpc/selftest: Add support for cpuidle latency measurement

2023-09-10 Thread Aboorva Devarajan
g/selftest/powerpc/cpuidle_latency/ $ sudo ./cpuidle_latency.sh Reviewed-by: Srikar Dronamraju Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/powerpc/Makefile | 1 + .../powerpc/cpuidle_latency/.gitignore| 2 + .../powerpc/cpuidl

[RFC v3 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events

2023-09-10 Thread Aboorva Devarajan
wakeup the CPU. Define a simple debugfs interface that allows for adjusting the settings to trigger IPI and timer events on a designated CPU, and to observe the resulting cpuidle wakeup latencies. Reviewed-by: Srikar Dronamraju Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan

[RFC v3 0/2] CPU-Idle latency selftest framework

2023-09-10 Thread Aboorva Devarajan
988 # Observed Avg timeout diff(ns) - State stop5: 959137 Aboorva Devarajan (2): powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events powerpc/selftest: Add support for cpuidle latency measurement arch/powerpc/Kconfig.debug| 10 + arch/powerpc/kernel/Makef