diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-03 12:02:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-03 12:03:15 +0100 |
commit | 537e0b848660c65b9d235f5576f29ddea3629b07 (patch) | |
tree | 3595ad91b02523da713f99ea94cb9e4890f45bbd /tests/gem_hangcheck_forcewake.c | |
parent | 9f92893b11e83ed9ec71c3084ccb57f74b18705e (diff) |
tests: More precautionary selfchecks to filter out broken GPUs
If the driver is already wedged, trying to use GEM will only result in
misleading failure.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_hangcheck_forcewake.c')
-rw-r--r-- | tests/gem_hangcheck_forcewake.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_hangcheck_forcewake.c b/tests/gem_hangcheck_forcewake.c index 16f2167f..a3e7554c 100644 --- a/tests/gem_hangcheck_forcewake.c +++ b/tests/gem_hangcheck_forcewake.c @@ -69,6 +69,7 @@ igt_simple_main memset(blob, 'A', sizeof(blob)); fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); drm_intel_bufmgr_gem_enable_reuse(bufmgr); |