Skip to content

selftests/x86: AMX-related test improvements

Chang S. Bae linux-kselftest lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/x86/sigaltstack: Adjust the test to the kernel's altstack checktools/testing/selftests/x86/sigaltstack.c+11 -10 replies
2/3selftests/x86/amx: Fix the test to avoid failure when AMX is unavailabletools/testing/selftests/x86/amx.c+10 -210 replies
3/3selftests/x86/amx: Remove unneeded codetools/testing/selftests/x86/amx.c+0 -200 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchShuah Khan
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] selftests/x86: AMX-related test improvements

Dear maintainers,

Let me follow up on the last posting [5] with these two small changes:
* Clean up unused code in the AMX test.
* Fix the subsystem name in the patch1 subject.

Here is a summary of the included test code changes:

* With the STRICT_SIGALTSTACK_SIZE option [1,2], the kernel's altstack check becomes stringent. The x86 sigaltstack test is ignorant about this. Adjust the test. This check was established [3] to ensure every AMX task's altstack is sufficient (regardless of that option) [4].

* The AMX test wrongly fails on non-AMX machines. Fix the code to skip the test instead.

* It also has some unused code. Remove them where at this.

The series is available in this repository:
git://github.com/intel/amx-linux.git selftest

Thanks,
Chang

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/Kconfig#n2467
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt#n6038
[3] 3aac3ebea08f ("x86/signal: Implement sigaltstack size validation")
[4] 4b7ca609a33d ("x86/signal: Use fpu::__state_user_size for sigalt stack validation")
[5] https://lore.kernel.org/lkml/[email protected]/

Chang S. Bae (3):
selftests/x86/sigaltstack: Adjust the test to the kernel's altstack
check
selftests/x86/amx: Fix the test to avoid failure when AMX is
unavailable
selftests/x86/amx: Remove unneeded code

 tools/testing/selftests/x86/amx.c         | 51 +++++------------------
 tools/testing/selftests/x86/sigaltstack.c | 12 +++++-
 2 files changed, 21 insertions(+), 42 deletions(-)

base-commit: 197b6b60ae7bc51dd0814953c562833143b292aa

Signature · 1 line
2.17.1