Add gem_bad_reloc
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 May 2014 07:43:11 +0000 (08:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 May 2014 07:47:21 +0000 (08:47 +0100)
commitdaa9e3d80a6c25667b259e864376ac929d5a11bd
treedfda79efe74d9db32a7ccb35d7e57ed98e0d5f81
parent62cd793c37135339788fff7ddf99f5039b0282ae
Add gem_bad_reloc

This test feeds a batch containing self-references into the kernel and
checks that the relocation offsets remain as valid GTT addresses. This
is to exercise SNA passing in negative relocation deltas which can hang
the GPU if they wrap around.

References: https://bugs.freedesktop.org/show_bug.cgi?id=78533
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/.gitignore
tests/Makefile.sources
tests/gem_bad_reloc.c [new file with mode: 0644]