aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
diff options
context:
space:
mode:
authorJordan Niethe <jniethe5@gmail.com>2021-07-29 14:13:17 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2021-08-26 21:21:06 +1000
commite42edf9b9d126bb1c743f2e7984877ba27f09fe7 (patch)
tree90dc8432d15c6ed88f7e2e3b621ec8499ccc1f03 /tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
parentselftests/powerpc: Add missing clobbered register to to ptrace TM tests (diff)
downloadlinux-dev-e42edf9b9d126bb1c743f2e7984877ba27f09fe7.tar.xz
linux-dev-e42edf9b9d126bb1c743f2e7984877ba27f09fe7.zip
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
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c b/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
index 70ca01234f79..4f05ce4fd282 100644
--- a/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
+++ b/tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
@@ -113,6 +113,7 @@ int ptrace_tm_vsx(void)
int ret, status, i;
SKIP_IF(!have_htm());
+ SKIP_IF(htm_is_synthetic());
shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT);
for (i = 0; i < 128; i++) {