linux-stable/tools/testing/selftests/powerpc/math
Michael Ellerman 380cb2f4df selftests/powerpc: Fix fpu_signal failures
My recent commit e5d00aaac6 ("selftests/powerpc: Check all FPRs in
fpu_preempt") inadvertently broke the fpu_signal test.

It needs to take into account that fpu_preempt now loads 32 FPRs, so
enlarge darray.

Also use the newly added randomise_darray() to properly randomise darray.

Finally the checking done in signal_fpu_sig() needs to skip checking
f30/f31, because they are used as scratch registers in check_all_fprs(),
called by preempt_fpu(), and so could hold other values when the signal
is taken.

Fixes: e5d00aaac6 ("selftests/powerpc: Check all FPRs in fpu_preempt")
Reported-by: Spoorthy <spoorthy@linux.ibm.com>
Depends-on: 2ba107f679 ("selftests/powerpc: Generate better bit patterns for FPU tests")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240301101035.1230024-1-mpe@ellerman.id.au
2024-03-01 22:15:30 +11:00
..
.gitignore selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
fpu.h selftests/powerpc: Generate better bit patterns for FPU tests 2023-12-13 13:29:08 +11:00
fpu_asm.S selftests/powerpc: Check all FPRs in fpu_syscall test 2023-12-13 13:29:09 +11:00
fpu_denormal.c selftests/powerpc: Add FPU denormal test 2020-07-15 12:02:20 +10:00
fpu_preempt.c selftests/powerpc: Run fpu_preempt test for 60 seconds 2023-12-13 13:29:09 +11:00
fpu_signal.c selftests/powerpc: Fix fpu_signal failures 2024-03-01 22:15:30 +11:00
fpu_syscall.c selftests/powerpc: Check all FPRs in fpu_syscall test 2023-12-13 13:29:09 +11:00
Makefile selftests/powerpc: Add matrix multiply assist (MMA) test 2022-04-27 16:32:42 +10:00
mma.c selftests/powerpc: Add matrix multiply assist (MMA) test 2022-04-27 16:32:42 +10:00
mma.S selftests/powerpc: Fix matrix multiply assist test 2022-07-28 16:22:15 +10:00
vmx_asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
vmx_preempt.c selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2023-12-13 13:29:08 +11:00
vmx_signal.c selftests/powerpc: Increase timeout for vsx_signal test 2023-03-15 00:52:09 +11:00
vmx_syscall.c selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUs 2020-08-03 22:12:41 +10:00
vsx_asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
vsx_preempt.c selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUs 2020-08-03 22:12:41 +10:00