selftests/powerpc: Check for VSX preservation across userspace preemption
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:13 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:10:09 +0000 (20:10 +1100)
commit65ca668f58a260e144621fd93a413da67635b999
treea279400c17b19584e6b9bc3ecbe02d431e2b8ec1
parentd11994314b2bfe028bc39be24b44298787925160
selftests/powerpc: Check for VSX preservation across userspace preemption

Ensure the kernel correctly switches VSX registers correctly. VSX
registers are all volatile, and despite the kernel preserving VSX
across syscalls, it doesn't have to. Test that during interrupts and
timeslices ending the VSX regs remain the same.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/math/Makefile
tools/testing/selftests/powerpc/math/vsx_asm.S [new file with mode: 0644]
tools/testing/selftests/powerpc/math/vsx_preempt.c [new file with mode: 0644]
tools/testing/selftests/powerpc/vsx_asm.h [new file with mode: 0644]