OpenCloudOS-Kernel/tools/testing/selftests/powerpc/math
Michael Ellerman 0a16df5beb selftests/powerpc: Fix error handling in FPU/VMX preemption tests
[ Upstream commit 9dbd5927408c4a0707de73ae9dd9306b184e8fee ]

The FPU & VMX preemption tests do not check for errors returned by the
low-level asm routines, preempt_fpu() / preempt_vsx() respectively.
That means any register corruption detected by the asm routines does not
result in a test failure.

Fix it by returning the return value of the asm routines from the
pthread child routines.

Fixes: e5ab8be68e ("selftests/powerpc: Test preservation of FPU and VMX regs across preemption")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231128132748.1990179-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:13 -08:00
..
.gitignore selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
Makefile selftests/powerpc: Add matrix multiply assist (MMA) test 2022-04-27 16:32:42 +10:00
fpu_asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
fpu_denormal.c selftests/powerpc: Add FPU denormal test 2020-07-15 12:02:20 +10:00
fpu_preempt.c selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-01-25 15:35:13 -08:00
fpu_signal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
fpu_syscall.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mma.S selftests/powerpc: Fix matrix multiply assist test 2022-07-28 16:22:15 +10:00
mma.c selftests/powerpc: Add matrix multiply assist (MMA) test 2022-04-27 16:32:42 +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 2024-01-25 15:35:13 -08: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