Skip to content

Commit

Permalink
drm/i915/selftests: Take rpm wakeref around partial tiling tests
Browse files Browse the repository at this point in the history
Since the partial tiling tests are poking into the GGTT to watch the
fence registers in operation, it itself needs the device rpm wakeref in
order for the GGTT to remain accessible.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107115653.10716-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
  • Loading branch information
Chris Wilson committed Nov 7, 2017
1 parent c29ccb9 commit 693b1cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/selftests/i915_gem_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ static int igt_partial_tiling(void *arg)
}

mutex_lock(&i915->drm.struct_mutex);
intel_runtime_pm_get(i915);

if (1) {
IGT_TIMEOUT(end);
Expand Down Expand Up @@ -418,6 +419,7 @@ next_tiling: ;
}

out_unlock:
intel_runtime_pm_put(i915);
mutex_unlock(&i915->drm.struct_mutex);
i915_gem_object_unpin_pages(obj);
out:
Expand Down

0 comments on commit 693b1cc

Please sign in to comment.