]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Force the slow path after a user-write error
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Sep 2018 08:33:35 +0000 (09:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Sep 2018 11:02:03 +0000 (12:02 +0100)
commit7007c9db99fa468e4fd80f3c00b30e66a902cef6
tree9bd9c2da99ee5512898614a73ec39293ab9bb5d8
parent8ce2bf303346e5acfb14161384a2d15ae1631e49
drm/i915: Force the slow path after a user-write error

If we fail to write the user relocation back when it is changed, force
ourselves to take the slow relocation path where we can handle faults in
the write path. There is still an element of dubiousness as having
patched up the batch to use the correct offset, it no longer matches the
presumed_offset in the relocation, so a second pass may miss any changes
in layout.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180903083337.13134-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c