mirror_ubuntu-kernels/tools/testing/selftests/powerpc/tm
Jordan Niethe e42edf9b9d selftests: Skip TM tests on synthetic TM implementations
Transactional Memory was removed from the architecture in ISA v3.1. For
threads running in P8/P9 compatibility mode on P10 a synthetic TM
implementation is provided. In this implementation, tbegin. always sets
cr0 eq meaning the abort handler is always called. This is not an issue
as users of TM are expected to have a fallback non transactional way to
make forward progress in the abort handler.  The TEXASR indicates if a
transaction failure is due to a synthetic implementation.

Some of the TM self tests need a non-degenerate TM implementation for
their testing to be meaningful so check for a synthetic implementation
and skip the test if so.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210729041317.366612-2-jniethe5@gmail.com
2021-08-26 21:21:06 +10:00
..
.gitignore powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
Makefile selftests/powerpc: Always build the tm-poison test 64-bit 2020-04-04 21:41:40 +11:00
settings selftests/powerpc: Turn off timeout setting for benchmarks, dscr, signal, tm 2020-03-25 12:09:30 +11:00
tm-exec.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-fork.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-poison.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-resched-dscr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-fpu.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-gpr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-vmx.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-vsx.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-force-tm.c selftests/powerpc: Don't rely on segfault to rerun the test 2020-03-25 12:06:30 +11:00
tm-signal-msr-resv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
tm-signal-pagefault.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-sigreturn-nt.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-stack.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tm-sigreturn.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-syscall-asm.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tm-syscall.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-tar.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-tmspr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-trap.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-unavailable.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-vmx-unavail.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-vmxcopy.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm.h selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00