]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Restore fences after resume and GPU resets
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jun 2013 09:15:12 +0000 (10:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 15 Jun 2013 23:10:45 +0000 (01:10 +0200)
commit27a11394d0d127fe27c2927c8d4f1a4facf95130
tree2c3da40ef05cb5b8a48945b877600e39a5d40ca5
parent16fda1b0faf15e238c0a5043370ec308ead91648
drm/i915: Restore fences after resume and GPU resets

Stéphane Marchesin found that fences for pinned objects (i.e. the
scanout) were not being restored upon resume, leading to corruption on
the display and reference counting issues. This is due to a bug in

commit edf58495582c4a9af19de7be3c8c40a16a990184 [2.6.38]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Nov 22 11:50:11 2010 +0000

    drm/i915: Only save and restore fences for UMS

that zapped the pinned fences even though they were in use.
Fortuitously, whilst we forced a VT switch during suspend and resume,
no fences were ever pinned at the time. However, we now can do
switchless S3 transitions and so the old bug finally surfaces.

Reported-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_suspend.c