Skip to content

Commit 01f8f33

Browse files
committed
drm/i915: Always retire residual requests before suspend
If the driver is wedged, we skip idling the GPU. However, we may still have a few requests still not retired following the wedging (since they will be waiting for a background worker trying to acquire struct_mutex). As we hold the struct_mutex, always do a quick request retirement in order to flush the wedged path. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107257 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/20180717084121.28185-1-chris@chris-wilson.co.uk
1 parent a8bd3b8 commit 01f8f33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,6 +5074,8 @@ int i915_gem_suspend(struct drm_i915_private *i915)
50745074

50755075
assert_kernel_context_is_current(i915);
50765076
}
5077+
i915_retire_requests(i915); /* ensure we flush after wedging */
5078+
50775079
mutex_unlock(&i915->drm.struct_mutex);
50785080

50795081
intel_uc_suspend(i915);

0 commit comments

Comments
 (0)