]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: switch to default context on idle
authorBen Widawsky <ben@bwidawsk.net>
Mon, 4 Jun 2012 21:42:53 +0000 (14:42 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Jun 2012 15:36:20 +0000 (17:36 +0200)
commitf226d4aa011341adcca717e870cedc2f8290399f
treeca12532b5514eb82e2e85206941b3652dad7d0fc
parent20f1c6609390a660f86d4cc7eca79c2ccad132d4
drm/i915: switch to default context on idle

To keep things as sane as possible, switch to the default context before
idling. This should help free context objects, as well as put things in
a more well defined state before suspending.

v2: remove seqno from context switch call (daniel)
return error on failed context switch instead of WARN+continue (daniel)

v3: move idling to i915_gpu idle (from i915_gem_idle) (Chris)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
drivers/gpu/drm/i915/i915_gem.c