]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Stop the machine as we install the wedged submit_request handler
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Nov 2016 14:41:21 +0000 (14:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Nov 2016 17:42:19 +0000 (17:42 +0000)
commit20e4933c478a1ca694b38fa4ac44d99e659941f5
treeba6a81047f4ff10deb754f0b02dd9b8270de3bf6
parent3dcf93f7f23a61e867a5ccadaf651cb2d29229fd
drm/i915: Stop the machine as we install the wedged submit_request handler

In order to prevent a race between the old callback submitting an
incomplete request and i915_gem_set_wedged() installing its nop handler,
we must ensure that the swap occurs when the machine is idle
(stop_machine).

v2: move context lost from out of BKL.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161122144121.7379-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c