Ubuntu-focal-kernel/tools/testing/selftests/powerpc
Jordan Niethe eff2aa5339 selftests: Skip TM tests on synthetic TM implementations
BugLink: https://bugs.launchpad.net/bugs/2032641

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

(backported from commit e42edf9b9d)
[PHLin: skip changes on the non-existing tm-signal-pagefault.c]
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
2024-01-05 14:30:00 +01:00
..
alignment selftests/powerpc: Only test lwm/stmw on big endian 2021-03-24 11:11:34 +01:00
benchmarks
cache_shape
copyloops
dscr selftests/powerpc: Fix resource leaks 2023-02-01 15:23:06 +01:00
eeh selftests/powerpc: Make the test check in eeh-basic.sh posix compliant 2021-04-14 18:31:19 +02:00
include
lib
math
mm
pmu selftests/powerpc: Fix "no_handler" EBB selftest 2021-09-20 18:48:51 +02:00
primitives
ptrace selftests: Skip TM tests on synthetic TM implementations 2024-01-05 14:30:00 +01:00
scripts
security selftests/powerpc: entry flush test 2020-11-23 13:44:06 -03:00
signal selftests: Skip TM tests on synthetic TM implementations 2024-01-05 14:30:00 +01:00
stringloops
switch_endian
syscalls
tm selftests: Skip TM tests on synthetic TM implementations 2024-01-05 14:30:00 +01:00
vphn
Makefile
harness.c
utils.c