mbox series

[v1,0/4] kselftest/arm64: Floating point stress test harness

Message ID 20220815130202.204725-1-broonie@kernel.org (mailing list archive)
Headers show
Series kselftest/arm64: Floating point stress test harness | expand

Message

Mark Brown Aug. 15, 2022, 1:01 p.m. UTC
This series has a few small enhancements for the existing standalone
floating point stress tests and then builds on those with a kselftest
integrated program which gives those a very quick spin from within
kselftest, as well as having an option to set a custom timeout to allow
for use with longer soak testing. This makes it much easier to get
thorough testing of the floating point state management logic, rather
than requiring custom setup for coverage of the various vector lengths
in the system as is needed at present.

It might be nice in future to extend this to attach to some or all of
the test programs with ptrace and read/write their registers as another
means of potentially triggering race conditions or corruption but that's
definitely another step.

This series has a runtime dependency on a fix "arm64/signal: Raise limit
on stack frames" which has previously been posted separately, without
this fix spurious failures will be seen on systems supporting large SME
vector lengths.

Mark Brown (4):
  kselftest/arm64: Always encourage preemption for za-test
  kselftest/arm64: Count SIGUSR2 deliveries in FP stress tests
  kselftest/arm64: Install signal handlers before output in FP stress
    tests
  kselftest/arm64: kselftest harness for FP stress tests

 tools/testing/selftests/arm64/fp/.gitignore   |   1 +
 tools/testing/selftests/arm64/fp/Makefile     |   5 +-
 .../testing/selftests/arm64/fp/asm-offsets.h  |   1 +
 tools/testing/selftests/arm64/fp/fp-stress.c  | 532 ++++++++++++++++++
 .../testing/selftests/arm64/fp/fpsimd-test.S  |  51 +-
 tools/testing/selftests/arm64/fp/sve-test.S   |  51 +-
 tools/testing/selftests/arm64/fp/za-test.S    |  58 +-
 7 files changed, 638 insertions(+), 61 deletions(-)
 create mode 100644 tools/testing/selftests/arm64/fp/fp-stress.c


base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868