]> 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)
commitae5ce2045639b596ab6f7677f1ec367d87a6683a
tree9bd9c2da99ee5512898614a73ec39293ab9bb5d8
parent0dae7aec7fb85134fc4c8c6be15b53026c8a1cf9
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