]> www.infradead.org Git - users/dwmw2/linux.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>
Mon, 17 Mar 2025 05:06:14 +0000 (22:06 -0700)
commit85968b6a2042cd19c6afd1fb49b64bd32f3a4d07
tree56db5907204e7fd8759bc5a35cdf23176764a632
parent7bd1fa0d5624e78628ad7ce70d7e69082c34c634
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