]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: allow tests to run with no huge pages support
authorMark Brown <broonie@kernel.org>
Wed, 12 Feb 2025 17:44:26 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:51 +0000 (21:49 -0800)
commit515d28408784525ecd663d23a534517ad28a2486
tree9e4ea64023818e44b3d789c7560eee6c14e7b9f7
parentf9e58b11ec220b6444d6b2c2b46d939cd6d3b224
selftests/mm: allow tests to run with no huge pages support

Currently the mm selftests refuse to run if huge pages are not available
in the current system but this is an optional feature and not all the
tests actually require them.  Change the test during startup to be
non-fatal and skip or omit tests which actually rely on having huge pages,
allowing the other tests to be run.

The gup_test does support using madvise() to configure huge pages but it
ignores the error code so we just let it run.

Link: https://lkml.kernel.org/r/20250212-kselftest-mm-no-hugepages-v1-2-44702f538522@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Nico Pache <npache@redhat.com>
Cc: Mariano Pache <npache@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/run_vmtests.sh