]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Ignore readonly failures when updating relocs
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 16:21:50 +0000 (17:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 21:40:39 +0000 (22:40 +0100)
commiteffc3604d0fde44cc006c6fa35ad5630a10b0180
tree0f2de92c5aa80091ecff2fc789a1ff06b0ea2a3e
parent1fd6cb15b6d4789a4cc4eb7b4a4d518f50fde8d8
drm/i915/gem: Ignore readonly failures when updating relocs

If the user passes in a readonly reloc[], by the time we notice we have
already committed to modifying the execobjects, or have indeed done so
already. Reporting the failure just compounds the issue as we have no
second pass to fall back to anymore.

"Be damned if you do, and damned if you don't."

Testcase: igt/gem_exec_reloc/readonly
Fixes: 99d6a5c7baee ("drm/i915/gem: Drop relocation slowpath")
References: 7007c9db99fa ("drm/i915: Force the slow path after a user-write error")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200331162150.3635-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c