igt/gem_workarounds: igt to test workaround registers
authorArun Siluvery <arun.siluvery@linux.intel.com>
Tue, 26 Aug 2014 13:50:28 +0000 (14:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Aug 2014 15:50:30 +0000 (17:50 +0200)
commitd0a41b47ea5ed1ac5ca45f83d2917c6ad41b644a
tree8b5347cb7c1b3c2a1dba516b7927c7337b86fa1d
parent2ef19ad79a07d862a2dc799ab2e71d2ad91c9065
igt/gem_workarounds: igt to test workaround registers

Some of the workarounds are lost followed by a gpu reset, suspend/resume;
this patch adds a test which compares register state before and after
the test scenario.

This test currently verifies only bdw workarounds.

v2: address patch cleanup comments (ThomasW)
 Add binary to ignore list and use igt_debugfs helper fns
 to read debugfs file and igt_info for printing debug info.

v2.1: address minor comments from Daniel
 use igt_main as opposed to normal main

Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
[danvet: Drop igt_exit, it's already in igt_main.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/.gitignore
tests/Makefile.sources
tests/gem_workarounds.c [new file with mode: 0644]