From: Aboorva Devarajan <aboorvad@linux.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Shuah Khan <shuah@kernel.org>,
linux-mm@kvack.org, linux-kselftest@vger.kernel.org
Cc: Sayali Patil <sayalip@linux.ibm.com>,
linux-kernel@vger.kernel.org,
Aboorva Devarajan <aboorvad@linux.ibm.com>
Subject: [PATCH v2 0/3] selftests/mm: assorted fixes for hmm-tests
Date: Tue, 19 May 2026 09:36:21 +0530 [thread overview]
Message-ID: <cover.1779090293.git.aboorvad@linux.ibm.com> (raw)
Hi all,
This series fixes a few issues in hmm-tests that show up when
page-size and huge-page configuration differ from the hardcoded
assumptions the tests were written for (PMD/THP sizing, default
hugepage size, and related cases).
It also includes a fix to exclusive_cow: the test ignored the return
value of fork(), so both parent and child ran the same teardown path.
v1: https://lore.kernel.org/all/cover.1777870179.git.aboorvad@linux.ibm.com/
Changes in v2:
- Patches 1 and 3 are unchanged.
- Patch 2: fall back to TWOMEG when read_pmd_pagesize() returns zero,
use a fixed-size array to avoid non-constant initialisers, and skip
benchmark sizes that exceed INT_MAX instead of capping the THP count
at runtime.
Please let us know if you have any comments.
Thanks,
Aboorva
Aboorva Devarajan (1):
selftests/mm: fix exclusive_cow test fork() handling
Sayali Patil (2):
selftests/mm: allow PUD-level entries in compound testcase of hmm
tests
selftests/mm: remove hardcoded THP sizing assumptions in hmm tests
tools/testing/selftests/mm/hmm-tests.c | 104 ++++++++++++++++++-------
1 file changed, 76 insertions(+), 28 deletions(-)
--
2.54.0
next reply other threads:[~2026-05-19 4:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 4:06 Aboorva Devarajan [this message]
2026-05-19 4:06 ` [PATCH v2 1/3] selftests/mm: allow PUD-level entries in compound testcase of hmm tests Aboorva Devarajan
2026-05-19 4:06 ` [PATCH v2 2/3] selftests/mm: remove hardcoded THP sizing assumptions in " Aboorva Devarajan
2026-05-19 4:06 ` [PATCH v2 3/3] selftests/mm: fix exclusive_cow test fork() handling Aboorva Devarajan
2026-05-19 18:44 ` [PATCH v2 0/3] selftests/mm: assorted fixes for hmm-tests Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1779090293.git.aboorvad@linux.ibm.com \
--to=aboorvad@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sayalip@linux.ibm.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox