* + selftests-vm-only-run-128tbswitch-with-5-level-paging-v4.patch added to mm-unstable branch
@ 2022-06-28 18:35 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-06-28 18:35 UTC (permalink / raw)
To: mm-commits, void, ats, aneesh.kumar, adam, akpm
The patch titled
Subject: selftests-vm-only-run-128tbswitch-with-5-level-paging-v4
has been added to the -mm mm-unstable branch. Its filename is
selftests-vm-only-run-128tbswitch-with-5-level-paging-v4.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-vm-only-run-128tbswitch-with-5-level-paging-v4.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Adam Sindelar <adam@wowsignal.io>
Subject: selftests-vm-only-run-128tbswitch-with-5-level-paging-v4
Date: Tue, 28 Jun 2022 18:36:54 +0200
restrict the check to x86_64
Link: https://lkml.kernel.org/r/20220628163654.337600-1-adam@wowsignal.io
Signed-off-by: Adam Sindelar <adam@wowsignal.io>
Cc: Adam Sindelar <ats@fb.com>
Cc: David Vernet <void@manifault.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/selftests/vm/va_128TBswitch.sh | 19 +++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
--- a/tools/testing/selftests/vm/va_128TBswitch.sh~selftests-vm-only-run-128tbswitch-with-5-level-paging-v4
+++ a/tools/testing/selftests/vm/va_128TBswitch.sh
@@ -19,7 +19,7 @@ die()
exit $exitcode
}
-check_test_requirements()
+check_supported_x86_64()
{
local config="/proc/config.gz"
[[ -f "${config}" ]] || config="/boot/config-$(uname -r)"
@@ -30,10 +30,25 @@ check_test_requirements()
local pg_table_levels=$(gzip -dcfq "${config}" | grep PGTABLE_LEVELS | cut -d'=' -f 2)
if [[ "${pg_table_levels}" -lt 5 ]]; then
- echo "$0: PG_TABLE_LEVELS=${pg_table_levels}, must be >= 5 to run this test"
+ echo "$0: PGTABLE_LEVELS=${pg_table_levels}, must be >= 5 to run this test"
exit $ksft_skip
fi
}
+check_test_requirements()
+{
+ # The test supports x86_64 and powerpc64. We currently have no useful
+ # eligibility check for powerpc64, and the test itself will reject other
+ # architectures.
+ case `uname -m` in
+ "x86_64")
+ check_supported_x86_64
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+}
+
check_test_requirements
./va_128TBswitch
_
Patches currently in -mm which might be from adam@wowsignal.io are
selftests-vm-only-run-128tbswitch-with-5-level-paging.patch
selftests-vm-only-run-128tbswitch-with-5-level-paging-v4.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-28 18:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 18:35 + selftests-vm-only-run-128tbswitch-with-5-level-paging-v4.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.