Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] selftests/mm: assorted fixes for hmm-tests
@ 2026-06-11  3:40 Aboorva Devarajan
  2026-06-11  3:41 ` [PATCH v3 1/3] selftests/mm: allow PUD-level entries in compound testcase of hmm tests Aboorva Devarajan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Aboorva Devarajan @ 2026-06-11  3:40 UTC (permalink / raw)
  To: Andrew Morton, linux-mm
  Cc: Jason Gunthorpe, Leon Romanovsky, David Hildenbrand,
	Lorenzo Stoakes, Liam R . Howlett, Vlastimil Babka, Mike Rapoport,
	Suren Baghdasaryan, Michal Hocko, Shuah Khan, Ralph Campbell,
	Matthew Brost, Balbir Singh, Alistair Popple, Alex Sierra,
	Matthew Wilcox, Sayali Patil, linux-kselftest, linux-kernel,
	Aboorva Devarajan

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.

Changes in v3:
- Rebased onto current mm-new.
- Patch 1: reworked the compound testcase check in response to the
  Shashiko review. Instead of an ASSERT_TRUE() that ORs the PMD and
  PUD cases on every page (which loses the expected/observed values on
  failure and would let a fragmented PMD+PUD mapping pass), determine
  the mapping level once from the first page and then enforce that every
  page matches it exactly with ASSERT_EQ().
- Patch 2: Unchanged from v2.
- Patch 3: No functional change from v2.


v1: https://lore.kernel.org/all/cover.1777870179.git.aboorvad@linux.ibm.com/
v2: https://lore.kernel.org/all/cover.1779090293.git.aboorvad@linux.ibm.com/

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 | 125 +++++++++++++++++++------
 1 file changed, 95 insertions(+), 30 deletions(-)


base-commit: 801c5efa788952095586d076fed1ea4902facff8
--
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-11  4:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11  3:40 [PATCH v3 0/3] selftests/mm: assorted fixes for hmm-tests Aboorva Devarajan
2026-06-11  3:41 ` [PATCH v3 1/3] selftests/mm: allow PUD-level entries in compound testcase of hmm tests Aboorva Devarajan
2026-06-11  3:41 ` [PATCH v3 2/3] selftests/mm: remove hardcoded THP sizing assumptions in " Aboorva Devarajan
2026-06-11  3:41 ` [PATCH v3 3/3] selftests/mm: fix exclusive_cow test fork() handling Aboorva Devarajan
2026-06-11  4:59   ` Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox