kernel_samsung_a53x/tools/testing/selftests/powerpc
Michael Ellerman 390da123c8 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: e5ab8be68e44 ("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-11-18 12:12:20 +01:00
..
alignment Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
benchmarks Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache_shape Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copyloops Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dscr Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
math selftests/powerpc: Fix error handling in FPU/VMX preemption tests 2024-11-18 12:12:20 +01:00
mm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nx-gzip Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
primitives Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptrace Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scripts Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
security Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stringloops Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
switch_endian Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscalls Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vphn Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
harness.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00