Skip to content

Commit

Permalink
drm/i915/selftests: Check that gpu reset is usable from atomic context
Browse files Browse the repository at this point in the history
GPU reset is now available with GuC enabled, so re-enable our check that
this reset is usable from atomic context.

Signed-off-by: Fernando Pacheco <fernando.pacheco@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190419230015.18121-6-fernando.pacheco@intel.com
  • Loading branch information
Fernando Pacheco authored and Chris Wilson committed Apr 20, 2019
1 parent 40d211e commit f3c2b76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/i915/selftests/intel_hangcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,6 @@ static int igt_atomic_reset(void *arg)

/* Check that the resets are usable from atomic context */

if (USES_GUC_SUBMISSION(i915))
return 0; /* guc is dead; long live the guc */

igt_global_reset_lock(i915);
mutex_lock(&i915->drm.struct_mutex);
wakeref = intel_runtime_pm_get(i915);
Expand Down Expand Up @@ -1846,6 +1843,9 @@ static int igt_atomic_reset(void *arg)
force_reset(i915);
}

if (USES_GUC_SUBMISSION(i915))
goto unlock;

if (intel_has_reset_engine(i915)) {
struct intel_engine_cs *engine;
enum intel_engine_id id;
Expand Down

0 comments on commit f3c2b76

Please sign in to comment.