]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20c197897db159981af4d7aab15c4b63c6ae5ea1
treee0a78cb70bd5448b6f616efddd73bcc8b318d744
parentdf5103aa5bb98e25dfc68ae1a167094354f3d831
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