]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit925d4465f8d0dc5688f59bf708aaff5d9efa7652
treea279400c17b19584e6b9bc3ecbe02d431e2b8ec1
parentfe3cec9bbf8bb2bf4c792e64bb8b4b2e5a1b1041
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]