]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only sanitize GEM from late suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 08:22:46 +0000 (09:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 18:29:54 +0000 (19:29 +0100)
commit9d075bc79d5ec02de95ae858627d7eac5153b002
tree3a9a2bf3918090d81d1ff577a2dde4006fcdca01
parentf02a33ef38171f4f4049068723e91be121b03dba
drm/i915: Only sanitize GEM from late suspend

During testing we encounter a conflict between SUSPEND_TEST_DEVICES and
disabling reset (gem_eio/suspend). This results in the device continuing
on without being reset, but since it has gone through HW sanitization to
account for the suspend/resume cycle, we have to assume the device has
been reset to its defaults. A simple way around this is to skip the
sanitize phase for SUSPEND_TEST_DEVICES by moving it to suspend-late.

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/20180531082246.9763-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c