public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] selftests/mm: skip several tests when thp is not available
@ 2026-03-19 16:06 Chunyu Hu
  2026-03-19 16:06 ` [PATCH v4 1/5] selftests/mm/guard-regions: skip collapse test when thp not enabled Chunyu Hu
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Chunyu Hu @ 2026-03-19 16:06 UTC (permalink / raw)
  To: akpm, david, shuah, linux-mm, ljs
  Cc: linux-kselftest, linux-kernel, lorenzo.stoakes, Liam.Howlett,
	vbabka, rppt, surenb, mhocko, ziy, baolin.wang, npache,
	ryan.roberts, dev.jain, baohua, lance.yang, chuhu

There are several tests requires transprarent hugepages, when run on thp
disabled kernel such as realtime kernel, there will be false negative.
Mark those tests as skip when thp is not available.

Changes in v4:
  - patch 1 update to use thp_available instead of thp_is_enabled,
    suggested by ai review
  - removed reviewed-by and acked-by

Changes in v3:
  - patch 1 update commit message to show the log snippet with where the
    fail happens, change the 'false positive' to 'false negative'.
    Update reviwed by
  - patch 2 update reviewed-by
  - patch 3 make write_file to void return
  - patch 4 and patch 5 updated reviewed-by/acked-by

Changes in v2:
  - replace 'false postive' with 'false negative' in cover letter
  - patch 1 and patch 2 add reviewed-by/acked-by
  - new patch 3 to add write_file() in vm_util as a common helper
  - patch 4 removed the {} in if block, removed the write_file helper
    rename chunk in v1. Add reviewed-by
  - patch 5 move the exit chunk to the front of ksft_print_headers() as
    suggested by David.  Add review by.

Chunyu Hu (5):
  selftests/mm/guard-regions: skip collapse test when thp not enabled
  selftests/mm: soft-dirty: skip two tests when thp is not available
  selftests/mm: move write_file helper to vm_util
  selftests/mm: split_huge_page_test: skip the test when thp is not
    available
  selftests/mm: transhuge_stress: skip the test when thp not available

 tools/testing/selftests/mm/guard-regions.c    |  4 ++++
 tools/testing/selftests/mm/soft-dirty.c       |  4 +++-
 .../selftests/mm/split_huge_page_test.c       | 19 ++++-----------
 tools/testing/selftests/mm/thp_settings.c     | 24 +------------------
 tools/testing/selftests/mm/thp_settings.h     |  1 -
 tools/testing/selftests/mm/transhuge-stress.c |  4 ++++
 tools/testing/selftests/mm/vm_util.c          | 16 +++++++++++++
 tools/testing/selftests/mm/vm_util.h          |  2 ++
 8 files changed, 34 insertions(+), 40 deletions(-)


base-commit: 8a30aeb0d1b4e4aaf7f7bae72f20f2ae75385ccb
-- 
2.53.0



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

end of thread, other threads:[~2026-03-23  3:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19 16:06 [PATCH v4 0/5] selftests/mm: skip several tests when thp is not available Chunyu Hu
2026-03-19 16:06 ` [PATCH v4 1/5] selftests/mm/guard-regions: skip collapse test when thp not enabled Chunyu Hu
2026-03-19 17:21   ` Mike Rapoport
2026-03-19 19:05   ` Zi Yan
2026-03-19 21:46   ` David Hildenbrand (Arm)
2026-03-19 16:06 ` [PATCH v4 2/5] selftests/mm: soft-dirty: skip two tests when thp is not available Chunyu Hu
2026-03-19 16:06 ` [PATCH v4 3/5] selftests/mm: move write_file helper to vm_util Chunyu Hu
2026-03-19 17:20   ` Mike Rapoport
2026-03-19 19:06   ` Zi Yan
2026-03-19 21:48   ` David Hildenbrand (Arm)
2026-03-23  3:10     ` Chunyu Hu
2026-03-19 16:06 ` [PATCH v4 4/5] selftests/mm: split_huge_page_test: skip the test when thp is not available Chunyu Hu
2026-03-19 16:06 ` [PATCH v4 5/5] selftests/mm: transhuge_stress: skip the test when thp " Chunyu Hu
2026-03-20  2:46 ` [PATCH v4 0/5] selftests/mm: skip several tests when thp is " Andrew Morton
2026-03-23  3:21   ` Chunyu Hu

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