]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always retire residual requests before suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jul 2018 08:41:21 +0000 (09:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Jul 2018 13:49:55 +0000 (14:49 +0100)
commit1fe6547dea95519a50f34a5d6c3424249ca6c7c7
tree962e53d75bf039e26a74dd41711dddaa4551725f
parent16a95013585ee3496752325602f957166f5ca4b6
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
drivers/gpu/drm/i915/i915_gem.c