]> git.baikalelectronics.ru Git - kernel.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)
commit13c2ebd1fbbe09412462f16c87a10cc72a73a5fa
treeba6a81047f4ff10deb754f0b02dd9b8270de3bf6
parent831859721e80b2c7363be77951e7b724d29f73f3
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