drm/i915: remove questionable fence optimization during copy
authorChristian König <christian.koenig@amd.com>
Tue, 21 Dec 2021 20:00:48 +0000 (21:00 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 22 Dec 2021 07:52:24 +0000 (08:52 +0100)
commit33654ef470a97f9fcb19abc7e7ef660ea37e3aed
treee0a78cb70bd5448b6f616efddd73bcc8b318d744
parent1193081710b361ddb4b81d3e2f929b6d6e1f89e1
drm/i915: remove questionable fence optimization during copy

First of all as discussed multiple times now kernel copies *must* always
wait for all fences in a BO before actually doing the copy. This is
mandatory.

Additional to that drop the handling when there can't be a shared slot
allocated on the source BO and just properly return an error code.
Otherwise this code path would only be tested under out of memory
conditions.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211221200050.436316-3-thomas.hellstrom@linux.intel.com
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c