OSDN Git Service

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)
commitfddcd00a49e9122a3579247151e9cb3ce5a1a36e
tree9bd9c2da99ee5512898614a73ec39293ab9bb5d8
parentaae7c06b34e4a351c8dab28f3cda6b1ba0637bf9
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