Skip to content

Commit

Permalink
drm/i915/selftests: Flush live_evict
Browse files Browse the repository at this point in the history
Be sure to cleanup after live_evict by flushing any residual state off
the GPU using igt_flush_test.

Tvrtko mentioned that it is probably wise to stop repeating this ad hoc
around the tests and implement a live test runner.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618161951.28820-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Jun 18, 2019
1 parent 0bd6cb6 commit 1422768
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/selftests/i915_gem_evict.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "i915_selftest.h"

#include "igt_flush_test.h"
#include "lib_sw_fence.h"
#include "mock_drm.h"
#include "mock_gem_device.h"
Expand Down Expand Up @@ -505,6 +506,8 @@ static int igt_evict_contexts(void *arg)

mutex_lock(&i915->drm.struct_mutex);
out_locked:
if (igt_flush_test(i915, I915_WAIT_LOCKED))
err = -EIO;
while (reserved) {
struct reserved *next = reserved->next;

Expand Down

0 comments on commit 1422768

Please sign in to comment.