linux-uconsole/tools/testing/selftests/powerpc/tm
Breno Leitao a3581509e8 selftests/powerpc: Do not fail with reschedule
[ Upstream commit 44d947eff1 ]

There are cases where the test is not expecting to have the transaction
aborted, but, the test process might have been rescheduled, either in the
OS level or by KVM (if it is running on a KVM guest machine). The process
reschedule will cause a treclaim/recheckpoint which will cause the
transaction to doom, aborting the transaction as soon as the process is
rescheduled back to the CPU. This might cause the test to fail, but this is
not a failure in essence.

If that is the case, TEXASR[FC] is indicated with either
TM_CAUSE_RESCHEDULE or TM_CAUSE_KVM_RESCHEDULE for KVM interruptions.

In this scenario, ignore these two failures and avoid the whole test to
return failure.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Gustavo Romero <gromero@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:46:58 +01:00
..
.gitignore selftests/powerpc: Add missing .gitignores 2018-05-25 00:08:25 +10:00
Makefile selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
tm-exec.c selftests/powerpc: exec() with suspended transaction 2016-07-26 14:28:22 +10:00
tm-fork.c selftests/powerpc: Add test for forking inside transaction 2016-05-11 21:54:13 +10:00
tm-resched-dscr.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tm-signal-context-chk-fpu.c selftests/powerpc: Add checks for transactional FPUs in signal contexts 2016-10-04 20:33:14 +11:00
tm-signal-context-chk-gpr.c selftests/powerpc: Add checks for transactional GPRs in signal contexts 2016-10-04 20:33:12 +11:00
tm-signal-context-chk-vmx.c selftests/powerpc: Add checks for transactional VMXs in signal contexts 2016-10-04 20:33:14 +11:00
tm-signal-context-chk-vsx.c selftests/powerpc: Add checks for transactional VSXs in signal contexts 2016-10-04 20:33:15 +11:00
tm-signal-msr-resv.c selftests/powerpc: Fix out of bounds access in TM signal test 2016-03-02 23:34:45 +11:00
tm-signal-stack.c selftests/powerpc: Standardise TM calls 2016-05-11 21:54:12 +10:00
tm-signal.S selftests/powerpc: Move shared headers into new include dir 2016-11-17 17:11:47 +11:00
tm-sigreturn.c selftests/powerpc: Only run some tests on ppc64le 2018-08-07 21:49:25 +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/powerpc: exec() with suspended transaction 2016-07-26 14:28:22 +10:00
tm-tar.c selftests/powerpc: Only run some tests on ppc64le 2018-08-07 21:49:25 +10:00
tm-tmspr.c powerpc/selftests: Wait all threads to join 2018-11-21 09:19:11 +01:00
tm-trap.c selftests/powerpc: Skip tm-trap if transactional memory is not enabled 2018-02-26 13:18:25 +11:00
tm-unavailable.c selftests/powerpc: Do not fail with reschedule 2019-11-20 18:46:58 +01:00
tm-vmx-unavail.c selftests/powerpc: Test TM and VMX register state 2017-05-16 13:03:05 +10:00
tm-vmxcopy.c selftests/powerpc: Only run some tests on ppc64le 2018-08-07 21:49:25 +10:00
tm.h selftests/powerpc: Do not fail with reschedule 2019-11-20 18:46:58 +01:00