kernel_optimize_test/tools/testing/selftests/powerpc
Michael Ellerman fe06fe8602 selftests/powerpc: Fix TM resched DSCR test with some compilers
The tm-resched-dscr test has started failing sometimes, depending on
what compiler it's built with, eg:

  test: tm_resched_dscr
  Check DSCR TM context switch: tm-resched-dscr: tm-resched-dscr.c:76: test_body: Assertion `rv' failed.
  !! child died by signal 6

When it fails we see that the compiler doesn't initialise rv to 1 before
entering the inline asm block. Although that's counter intuitive, it
is allowed because we tell the compiler that the inline asm will write
to rv (using "=r"), meaning the original value is irrelevant.

Marking it as a read/write parameter would presumably work, but it seems
simpler to fix it by setting the initial value of rv in the inline asm.

Fixes: 96d0161086 ("powerpc: Correct DSCR during TM context switch")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Michael Neuling <mikey@neuling.org>
2017-05-19 19:46:34 +10:00
..
alignment selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
benchmarks selftests/powerpc: Fix remaining fallout from recent changes 2017-02-14 08:02:27 -07:00
cache_shape selftests/powerpc: Add cache_shape sniff test 2017-03-20 19:02:49 +11:00
context_switch selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
copyloops selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
dscr selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
include selftests/powerpc: Refactor the AUXV routines 2017-03-20 19:02:49 +11:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math selftests/powerpc: Fix remaining fallout from recent changes 2017-02-14 08:02:27 -07:00
mm selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
pmu linux-kselftest-4.11-rc1 2017-02-25 15:32:53 -08:00
primitives selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
ptrace selftests/powerpc: Add ptrace tests for TM SPR registers 2016-11-17 17:11:52 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal selftests/powerpc: Move shared headers into new include dir 2016-11-17 17:11:47 +11:00
stringloops selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
switch_endian selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
syscalls selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
tm selftests/powerpc: Fix TM resched DSCR test with some compilers 2017-05-19 19:46:34 +10:00
vphn selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-03-03 11:24:50 +11:00
Makefile linux-kselftest-4.12-rc1 2017-05-08 20:43:30 -07:00
utils.c selftests/powerpc: Refactor the AUXV routines 2017-03-20 19:02:49 +11:00