]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: Return some errors instead of trying memcpy move
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 1 Feb 2022 07:03:40 +0000 (08:03 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 1 Feb 2022 13:10:12 +0000 (14:10 +0100)
commit1be44e4641e31f9f5636ce69bf723b3feab08a60
treed6eb666230db88d3e1a9895019d7be1f6a85c6e5
parent1827589d7d26fcaeb89fbbfcf09e2b932e7aa6de
drm/i915/ttm: Return some errors instead of trying memcpy move

The i915_ttm_accel_move() function may return error codes that should
be propagated further up the stack rather than consumed assuming that
the accel move failed and could be replaced with a memcpy move.

For -EINTR, -ERESTARTSYS and -EAGAIN, just propagate those codes, rather
than retrying with a memcpy move.

Fixes: 3860853ff0d2 ("drm/i915/ttm: Failsafe migration blits")
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220201070340.16457-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c