Skip to content

Commit

Permalink
drm/i915/selftests: Set igt_spinner.gt for early exit
Browse files Browse the repository at this point in the history
Set up a default gt pointer for an early cleanup of igt_spinnter, before
a request is created and igt_spinner.gt set to the active engine's.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190708215524.31639-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Jul 9, 2019
1 parent a17ce80 commit baf08ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/selftests/igt_spinner.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ int igt_spinner_init(struct igt_spinner *spin, struct drm_i915_private *i915)

memset(spin, 0, sizeof(*spin));
spin->i915 = i915;
spin->gt = &i915->gt;

spin->hws = i915_gem_object_create_internal(i915, PAGE_SIZE);
if (IS_ERR(spin->hws)) {
Expand Down

0 comments on commit baf08ed

Please sign in to comment.